1.5 KiB
1.5 KiB
markup, title, description, import
| markup | title | description | import | ||||
|---|---|---|---|---|---|---|---|
| occlusion | agent-sandbox-okf — trial then commit | O1 example: opt-in sandbox trial with GFM-table returns and link-index reads. |
|
main
Short demo: write via agent.trial, prove the host is clean until commit.
had = fs.exists path="_example_sbx"
had
fs.remove path="_example_sbx"
_ = 0
fs.make_dir path="_example_sbx"
dry = agent.trial root="_example_sbx" write_path="note.txt" text=sandbox-okf commit=False dry_ok = ok) dry_committed = committed)
dry_ok- not
dry_committed> print text=dry-ok -
> print text=dry-bad-commit
print text=dry-fail
leaked = fs.exists path="_example_sbx/note.txt"
leaked
print text=host-leaked
print text=host-clean
wet = agent.trial root="_example_sbx" write_path="note.txt" text=sandbox-okf commit=True wet_ok = ok) wet_committed = committed)
wet_okwet_committed> print text=wet-ok-
> print text=wet-no-commit
print text=wet-fail
body = fs.read_text path="_example_sbx/note.txt"
body== "sandbox-okf"
print text=proof-visible
print text=proof-missing
pname = name), "name"))
pname== "default"
print text=profile-default
print text=profile-other