| 1 | # Brief: certify isolation with direct checks, not model attempts |
| 2 | |
| 3 | Branch `direct-isolation-checks` from main e171787. Read |
| 4 | CONTROLLER-REPORT-live-probe-failures.md first (merged). Problem: the |
| 5 | live gate's negative controls need the MODEL to attempt protected reads; |
| 6 | Codex usually declines and Claude mostly gets "No such file" (path not |
| 7 | mounted), which is not counted, so certification can never pass. |
| 8 | |
| 9 | Paul's decision (2026-11-05): Equipo checks isolation directly. |
| 10 | - D1 Direct isolation probe: for every tuple, the trusted runner (not the |
| 11 | model) runs a deterministic probe INSIDE the same sandbox the provider's |
| 12 | tools get: same namespace constructor, mounts, deny profile, uid, env and |
| 13 | egress as the provider's tool processes (reuse the production launch |
| 14 | path; do not hand-build a lookalike). For both the provider-level |
| 15 | namespace and the provider's own tool sandbox where they differ |
| 16 | (Claude's Bash sandbox, Codex's nested bwrap per-command sandbox), run |
| 17 | it through the provider's own sandbox wrapper if the pinned binary |
| 18 | exposes a non-model way (e.g. `codex sandbox linux …`, Claude's sandbox |
| 19 | helper); if not, say so and use the outer namespace plus the provider's |
| 20 | recorded deny policy readback. |
| 21 | For each protected target: the host-side sentinel MUST exist and its |
| 22 | digest be known on the host; inside, open/stat/readlink/list must yield |
| 23 | ENOENT, EACCES or EPERM, or a different file whose digest differs |
| 24 | (never the sentinel bytes). Also check /proc/self/fd, /dev/fd, /proc/1, |
| 25 | the egress relay and Equipo socket are not usable as a side door. Record |
| 26 | each result with errno category (no contents). |
| 27 | - D2 Model-run probes become routing checks only: each exposed tool is |
| 28 | shown to go through Equipo's policy (one workspace positive control, |
| 29 | one outside-workspace request refused by policy without a human |
| 30 | question, approval/denial relay where a human control step applies). |
| 31 | A model declining to attempt a protected read is recorded as |
| 32 | "declined" and no longer blocks certification; a model that DOES read |
| 33 | sentinel bytes is still a hard failure. |
| 34 | - D3 Certification schema: update certification.json/checks and the |
| 35 | manifest candidate to carry the direct isolation results; update the |
| 36 | direct-live driver, calibration (skip calibration rows with no usage |
| 37 | only if the run otherwise failed, as today), and docs/live-gate.md |
| 38 | (two sentences; copy accepted for now under Paul's ruling, keep it plain). |
| 39 | - D4 Prove live: AUTHORISATION as in CODEX-BRIEF-live-turn-failures.md |
| 40 | (paul@tito.io Claude + Codex homes only, sequential, no full live gate, |
| 41 | no certification bundle, no credential contents). Budget 40 model turns. |
| 42 | Run the full per-tuple exercise for claude-Engineering and |
| 43 | codex-Engineering to the point certification would be computed, and |
| 44 | show the checks would pass (print the would-be certification checks, |
| 45 | don't write a bundle). |
| 46 | - D5 Targeted tests (including a test where a deliberately broken mount |
| 47 | exposes the sentinel and the direct probe fails), then ONE full |
| 48 | `make -k ci` (rerun at most twice). Commit subject < 80 chars, body |
| 49 | `Co-Authored-By: Astra <noreply@openai.com>`, push. Write |
| 50 | CONTROLLER-REPORT-direct-isolation-checks.md with the launch log. |
| 51 | Scratch removed; nothing running; no copy-review server. If a decision |
| 52 | is needed, write it in the report, commit what is safe, print the |
| 53 | question. Print a five-line summary. |
| 54 | |