Repository navigation
accept-native 6/7: prove trusted roots unwritable with the sandbox on; record what the disabled default allows - #35
Conversation
…the disabled default allows The probe-secrets plant-a-module step now runs on its own cua serve connection with CUA_SHIM_SANDBOX=default (row: sandbox on: trusted roots unwritable, PASS or FAIL), and the default (disabled) connection records which trusted roots a cell could write as an informational INFO row, the accepted consequence of the owner's decision on #20. Every file a cell writes is created exclusively, then removed and verified removed; one left behind fails the row. The runner treats INFO as neutral in every roll-up, and the probe phases name the items they are evidence for. README and the Decision Log state the consequence.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Live acceptance from this branch (scratch CUA_HOME, pinned 26.928.40906, |
What
Since #20,
cua servesends thedisabledsandbox by default, so the probe-secrets step "model cells cannot plant a module in a trusted code root" failed on every Mac. That failed acceptance items 6 and 7. The owner's decision on #34 keepsdisabledas the default and states the consequence instead.scripts/probe-secrets.mjs: the plant attempt now runs twice.cua serveconnection withCUA_SHIM_SANDBOX=defaultand reports PASS or FAIL. That connection's close is a new step in the "every connection closed" phase.INFO, never FAIL. That connection explicitly unsetsCUA_SHIM_SANDBOX.wx, so it never overwrites anything. The probe then removes every file the cell wrote, in the trusted roots, the cell's own cwd and tmpDir, and the run dirs, and checks again that each trusted root is clean. A file left behind fails the row and names the path.scripts/probe/trusted-roots.mjs(new): the cell source and the pure step logic (trustedRootStep).scripts/accept/lib.mjs:INFOis neutral inrollup. A roll-up made only of informational rows staysINFO.scenarioVerdictlists informational steps separately and does not count them as "not passed".probePhasesFor(6|7)). This replaces the name regexes inaccept-native.mjs, and the item split is unchanged. Both trusted-root rows belong to item 7.CUA_SHIM_SANDBOXparagraph: under the default, a cell can write cua's trusted code roots and the runtime's own files. The user accepts this under the trust model, anddefaultrestores the guarantee.INFOstatus.Verification
npm test: 459/459. TDD: the newtest/probe-trusted-roots.test.mjsand the new cases intest/accept-lib.test.mjsfailed before the implementation existed.CUA_HOME=<scratch> node scripts/probe-secrets.mjsfrom this branch, against a scratch home with the pinned release 26.928.40906 installed, the helper built and the pty driver built. Status PASS, 34 steps. Sandbox on: state/codex, src/services, src/secrets and vendor modules all returned EPERM. Disabled: all four were writable (INFO), and every file was removed and verified removed. The Keychain round trip, sentinel scan and cleanup all passed. Running the runner's row logic over that report gives item 6 PASS and item 7 PASS, with the informational row showing asINFO.Closes #34