Ship oracle journal values, bytecode/frontend hardening, and replay-policy Lean.

Host exposes oracle journals as language values with refuse/copy gates; bytecode and foreign session paths get modularized; applications and verification replay-policy sources land with Lake builds ignored.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-11-06 15:04:27 +08:00
1 parent e3d9021bb6
commit 8f1010f967
101 files changed
+17962 -1727

No files matched your search

+5 -6
View File
@@ -100,12 +100,11 @@ pub(crate) fn execute_source_function(
}
Backend::Bytecode => {
let program = compile_for_call(Some(path), &module)?;
let key: Vec<String> = display_name
.split('.')
.filter(|s| !s.is_empty())
.map(|s| s.to_string())
.collect();
let idx = program.path_index.get(&key).copied().ok_or_else(|| {
// Source binding is authoritative even when declaration paths repeat.
let idx = program.functions.iter().position(|chunk|
chunk.module_scope == 0 && chunk.declaration_span == fun.span
&& chunk.name == fun.name && chunk.source.sha256 == module.source.sha256
).ok_or_else(|| {
call_diag(
Some(path),
line,