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

+11
View File
@@ -194,6 +194,17 @@ impl Clone for PluginState {
}
impl PluginState {
/// Exercise the real JSON/C ABI without loading an external shared library.
#[cfg(test)]
pub(crate) fn register_binding_probe(&mut self) {
unsafe extern "C" fn echo(args: *const c_char, out: *mut *mut c_char, _err: *mut *mut c_char) -> c_int {
if args.is_null() || out.is_null() { return 1; }
let Ok(input)=CStr::from_ptr(args).to_str() else { return 1; };
*out=host_strdup(input);
if (*out).is_null() {1} else {0}
}
self.fns.insert("binding_probe".into(),RegisteredFn{params:vec!["a".into(),"b".into()],fn_ptr:echo});
}
pub fn get(&self, name: &str) -> Option<&RegisteredFn> {
self.fns.get(name)
}