1.3 KiB
markup, title, description, import
| markup | title | description | import | ||||||
|---|---|---|---|---|---|---|---|---|---|
| occlusion | agent trial sandbox opt-in — host unchanged until commit | O1: agent.trial write stays upper until commit=True. Prefer link index over json.get. |
|
main
Reset leftover workspace from prior runs.
had = fs.exists path="_sbx_optin"
had
fs.remove path="_sbx_optin"
_ = 0
fs.make_dir path="_sbx_optin"
Trial with commit=False: upper write must not touch the host tree.
dry = agent.trial root="_sbx_optin" write_path="proof.txt" text=optin-ok commit=False dry_ok = ok) dry_committed = committed)
print text=
dry_okprint text=dry_committed
before = fs.exists path="_sbx_optin/proof.txt"
print text=
before
Trial with commit=True: host sees the file after success.
wet = agent.trial root="_sbx_optin" write_path="proof.txt" text=optin-ok commit=True wet_ok = ok) wet_committed = committed)
print text=
wet_okprint text=wet_committed
after = fs.read_text path="_sbx_optin/proof.txt"
print text=
after
Profile row is attached (link-index readable).
print text=
pname