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:
1 parent
e3d9021bb6
commit
8f1010f967
101 files changed
+17962
-1727
No files matched your search
@@ -0,0 +1,15 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: code values are not copied foreign payloads
|
||||
import:
|
||||
foreign: lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
`payload` =
|
||||
```python
|
||||
1
|
||||
```
|
||||
|
||||
**> foreign.invoke lang="python" source="print('unexpected')" input=`payload`**
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: failed foreign responses remain observable values
|
||||
import:
|
||||
foreign: lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
**s = > foreign.session_open lang="python"**
|
||||
**> foreign.session_eval id=`s` source="raise ValueError('outside V_safe')"**
|
||||
**j = > foreign.oracle_journal**
|
||||
**> print text=[channel](access(access(`j`, 1), "channel"))**
|
||||
**> print text=[ok](access(access(access(`j`, 1), "value"), "ok"))**
|
||||
**> foreign.session_eval id=`s` source="import os; os._exit(7)"**
|
||||
**later = > foreign.oracle_journal**
|
||||
**> print text=[alive](access(access(access(`later`, 2), "value"), "alive"))**
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: document oracle journal is a first-class value
|
||||
import:
|
||||
foreign: lib/foreign.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
**s = > foreign.session_open lang="python"**
|
||||
**> foreign.session_set id=`s` name="n" value=2**
|
||||
**> foreign.session_eval id=`s` source="n + 1"**
|
||||
**> foreign.session_get id=`s` name="n"**
|
||||
**> foreign.session_close id=`s`**
|
||||
**j = > foreign.oracle_journal**
|
||||
**same = > foreign.replay_check expected=`j` observed=`j`**
|
||||
**> print text=[ok](access(`same`, "ok"))**
|
||||
**> json.parse text="3"**
|
||||
**later = > foreign.oracle_journal**
|
||||
**changed = > foreign.replay_check expected=`j` observed=`later`**
|
||||
**> print text=[ok](access(`changed`, "ok"))**
|
||||
**> print text=[index](access(`changed`, "index"))**
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: explicit names response is a decode observation
|
||||
import:
|
||||
foreign: lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
**s = > foreign.session_open lang="python"**
|
||||
**> foreign.session_set id=`s` name="zzz" value=7**
|
||||
**> foreign.session_names id=`s`**
|
||||
**j = > foreign.oracle_journal**
|
||||
**> print text=[channel](access(access(`j`, 1), "channel"))**
|
||||
**> print text=[name](access(access(access(`j`, 1), "value"), 2))**
|
||||
**> foreign.session_close id=`s`**
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: persistent sessions enforce the same code payload refusal
|
||||
import:
|
||||
foreign: lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
`payload` =
|
||||
```python
|
||||
1
|
||||
```
|
||||
|
||||
**s = > foreign.session_open lang="python"**
|
||||
**> foreign.session_set id=`s` name="payload" value=`payload`**
|
||||
Reference in new issue
Block a user