oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Direct isolation checks
2
3## Round 3
4
5Codex clean resume passed live. Claude's mounted-settings and complete-stream
6hook evidence passed live and again against the final parser. Both authorized
7subscription bindings pass the currency-cap check after replay corrected a
8false match on `concurrency_limit`. The guide now proposes enough job funding
9for the measured maximum, with margin, and larger calibration totals for the
10full exercise family. No full live gate, certificate, index or manifest candidate
11was created. Full certification remains unproven outside this debugging scope.
12
13### C1: subscription limits
14
15Design sections 6.8 and 7 and plan 2b Task 11 distinguish subscription allowance
16from metered API spending. Plan 2b explicitly requires calls, tokens, duration,
17twice-max reservations and period headroom without a hard subscription currency
18cap. This agrees with the controller's interpretation.
19
20The check now requires every configured certification binding to match exactly
21one runner binding by ID, provider, account, source home and model, with Kind
22`subscription`. It records the binding kinds and the authorized funding fields.
23Missing, duplicate, mismatched, API or unknown bindings fail. Funding has only
24call, token and time fields. Structured currency-cap configuration or provider
25cap events fail the check; display-only `total_cost_usd` does not. Configuration,
26settings, launch flags and captured streams, including recovery, contribute to
27this evidence. No credential files are inspected by the evidence reader.
28
29The first live implementation matched the word currency inside concurrency.
30Claude's result frames contain `subagent_stats.refused.concurrency_limit`, which
31made the currency verdict fail. A failing regression test reproduced this.
32The final parser checks named currency-cap keys and the pinned
33`error_max_budget_usd` subtype. Replay of both complete captured streams passes.
34The replay made no model request and did not replace the original observations.
35
36### C2: Claude hooks and plugins
37
38The trusted driver reads the actual mounted settings through the provider
39namespace at every open, including resume. It records their SHA-256, the
40expected policy-settings SHA-256 and the failed write-open proving immutability.
41The two live readbacks matched and were read-only. The settings require
42`disableAllHooks: true`, both built-in plugins explicitly false, no enabled
43plugin and no `hooks` key. Missing or null evidence fails.
44
45The pinned Claude 2.1.312 binary contains stream emitters with
46`type: system` and subtypes `hook_started`, `hook_progress`, `hook_response`.
47The adjacent fields include hook_id, hook_name and hook_event; progress and
48response also carry output. These were identified in the installed pinned
49executable, without running another provider command. The checker rejects all
50`hook_` system events, including these three known types.
51
52Every init frame must report version 2.1.312 and explicit empty arrays for
53plugins, skills and slash_commands. The live tuple had ten init frames, all
54valid, and no hook event. Finalization reads the whole journal after provider
55shutdown, so later resume or generation turns cannot leave an earlier pass
56intact. Recovery adds its mounted readback and durable frames to the same
57observation. Tests inject each hook subtype during recovery and require the
58previous passing verdict to fail. Recovery itself was not exercised live.
59
60A fixture caught a storage bug during implementation: indenting a JSON settings
61value changed the bytes used for its digest on recovery readback. Settings now
62persist as exact bytes, encoded by JSON, preserving their original hash. The
63full fake Engineering exercise passed after this correction.
64
65### C3: funding arithmetic
66
67| Tuple measured in this round | Completed turns | Maximum input | Maximum output | Total input | Total output |
68|---|---:|---:|---:|---:|---:|
69| Claude Engineering, authorized exercise phases | 10 | 60,446 | 2,323 | 375,353 | 12,798 |
70| Codex Engineering, initial turn and clean resume | 2 | 4,387 | 6 | 7,924 | 11 |
71
72Claude input includes ordinary input, cache reads and cache creation once.
73The combined debug usage was 383,277 input and 12,809 output tokens.
74Codex's two-turn sample does not measure its entire exercise family.
75
76The measured Claude reservation is ceil(2 × 60,446 / 1,000) × 1,000 = 121,000
77input and ceil(2 × 2,323 / 1,000) × 1,000 = 5,000 output. The job floor is
7823 × 121,000 = 2,783,000 input and 23 × 5,000 = 115,000 output. The former
792,300,000 input default would fail on this run too.
80
81The new job proposal is 23 × 250,000 = 5,750,000 input and
8223 × 10,000 = 230,000 output. This gives more than twice the measured required
83input reservation and twice the output reservation. Project and team headroom
84use the same proposed job amounts. Output job funding therefore stays at the
85old default; input increases.
86
87Calibration totals also need to cover all roles and the deliberately unknown
88recovery and identity-guard charges. A conservative planning allowance is
8916 completed turns for each of 17 specialist tuples, plus two coordinator
90turns: 274 completed turns. Allow another two full admission reservations per
91specialist: 34 reservations. Using twice the measured maximum rounded to 1,000
92for every completed turn gives 274 × 121,000 + 34 × 250,000 = 41,654,000 input
93and 274 × 5,000 + 34 × 10,000 = 1,710,000 output. This deliberately overcounts
94some turns to allow margin. Proposed calibration totals are therefore
9550,000,000 input and 2,000,000 output, within the unchanged 500 calls and 7,200
96seconds. This is a funding estimate for the full family, not an observation that
97all roles have already run or a guarantee against larger future usage.
98
99Saved values equal to the old defaults are re-proposed in the guide's prompts.
100Custom values remain selected, and each prompt still accepts another value.
101The final funding display and `RUN LIVE GATE` authorization remain mandatory.
102No current run raises its configured limits. Insufficient job or period
103headroom now returns the six exact values to enter on the next run. The new
104message lives in `internal/equipo/copy.go` as `CopyCalibrationFunding`, marked
105COPY REVIEW REQUIRED before release. No copy-review server was started.
106
107### C4: live launch log and replay
108
109Both launches used production leases, policy construction, launchers, the Go
110namespace helper and direct isolation probes. A temporary test overlay omitted
111human controls, generation, accountChange, identity tampering and recovery.
112Codex used an initial short turn and the production cleanResume path; Claude
113ran the original probes, workspace control, both routing turns, namespace
114checks, resume, lifetime checks, inventory and calibration. Policies, launch
115flags and sandbox settings were unchanged. Source-home markers were synthetic
116scratch fixtures, as in Round 2; the harness never read account-home contents.
117Only production lease staging handled credentials.
118
119| UTC on 2026-11-05 | Tuple | Admissions | Outcome |
120|---|---|---:|---|
121| 11:57:09–11:57:31 | Codex Engineering, paul@tito.io, codex | 2 | Initial turn and same-session resume completed; direct isolation passed |
122| 11:57:31–11:59:50 | Claude Engineering, paul@tito.io, claude-a | 10 | Authorized exercise completed; direct isolation, mounted hook evidence and resume passed |
123
124Exactly 12 of 12 admissions were used, sequentially. There were no rejected
125launches or additional model requests. The fixed debug bounds were 12 calls,
12610,000,000 input, 1,000,000 output and 1,800 seconds; job and period funding
127were 9,200,000 input and 920,000 output. Those bounds were chosen before launch
128and were never increased. They are separate from the guide's new proposals.
129
130The Claude routing turn also exposed an existing parser gap: ask_person
131received an extra path field and returned Equipo's exact schema-refusal text,
132with a matching tool-use ID, is_error true and zero approval questions.
133The original parser left this unverified. The narrow fix recognizes the existing
134`CopyToolRejected` value only for a correlated Equipo MCP call. Unmatched IDs,
135success replies, generic errors and any human question still cannot certify
136automatic refusal. A failing test preceded the fix; captured-frame replay passed.
137
138| Check | Codex Engineering | Claude Engineering |
139|---|---|---|
140| clean-session-resume | live pass, same session ID | live pass |
141| direct-isolation | live pass | live pass |
142| no-hooks-plugins | live pass | live pass and final-parser replay pass |
143| no-subscription-currency-cap | live pass and replay pass | final-parser replay pass |
144| 23-reservations-per-job | live pass with fixed debug funding | live pass with fixed debug funding |
145| tool-routing | not exercised in this round | original verdict not-certified; all routing observations pass or decline after the correlated refusal replay |
146
147Human approval controls, crash recovery, generation and account-change behavior
148remain live-unproven in this scope. No replay or fixture is labelled as a full
149passing certification. Paul's separately authorized full run is still required.
150
151### C5: verification and cleanup
152
153New tests first failed compilation for the missing evidence helpers. Subsequent
154assertion failures reproduced the concurrency false match, unrecognized schema
155refusal, old funding defaults and recovery settings-byte mismatch. Restored
156targeted tests passed. The fake CLI Engineering exercise passed in 28.668s,
157including initial/resumed mounted readbacks, recovery and both new checks.
158
159Commands used, with CGO disabled:
160
161```sh
162CGO_ENABLED=0 go test ./internal/directlive ./internal/tryequipo -run 'TestSubscriptionCurrencyEvidence|TestClaudeHookEvidence|TestClaudeRecoveryHook|TestClaudeEquipoSchemaDenial|TestCalibration|TestDriverCalibration|TestFundingProposedDefaults|TestToolRouting|TestPolicyEvidence' -count=1
163CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$' -count=1
164CGO_ENABLED=0 go test -overlay <replay-overlay> ./internal/directlive -run '^TestRound3Replay$' -count=1 -v
165make budget
166make -k ci
167```
168
169Thirteen temporary source mutations each failed an assertion with exit 1 using
170`CGO_ENABLED=0 go test -overlay <mutation-overlay> <package> -run <test> -count=1`.
171No mutation touched the working source, and all overlays were removed.
172
173| Deliberate break | Failing test |
174|---|---|
175| Accept API binding kinds | TestSubscriptionCurrencyEvidence |
176| Ignore observed currency caps | TestSubscriptionCurrencyEvidence/observed |
177| Accept writable settings | TestClaudeHookEvidence/writable |
178| Ignore mounted or expected digest mismatch | TestClaudeHookEvidence/hash, expected |
179| Allow a hooks key | TestClaudeHookEvidence/hooks |
180| Ignore disableAllHooks false | TestClaudeHookEvidence/hooks-enabled |
181| Accept enabled plugins | TestClaudeHookEvidence/enabled |
182| Ignore hook stream events | TestClaudeHookEvidence |
183| Accept null/nonempty init arrays | TestClaudeHookEvidence |
184| Omit recovery frames from hook proof | TestClaudeRecoveryHookInvalidatesEarlierPass |
185| Suppress exact insufficient-funding error | TestCalibrationFundingRerun |
186| Restore old proposed input funding | TestFundingProposedDefaults |
187| Ignore a schema refusal's tool-use ID | TestClaudeEquipoSchemaDenial |
188
189The size gate initially caught three extra root-package lines. The new runtime
190message now occupies one individually marked line in the existing copy block,
191using one existing blank line. All 38 directories fit the unchanged budgets.
192
193The initial full gate failed staticcheck ST1005 because the new funding error
194started with a capital letter, and the Plan 3 release-boundary inventory test
195because the pending message lacked its review-inventory row. Both are fixed: the
196error starts in lowercase and the exact pending text is in the existing Plan 3
197copy inventory. No review requirement was waived. The test step ran 27 packages
198uncached in 5m27.005s, with one package failure. Local timing warnings were
199provider 20.104s/15s, Claude 46.936s/45s and Codex 39.960s/35s.
200
201The second full `make -k ci` exited 0 on the final code. All 28 test packages
202ran uncached and passed in 5m26.457s. Build, vet, formatting, staticcheck,
203vulnerability and secret scans, reference checks, size budgets, provider and
204namespace checks, migration and performance all passed. Cold boot measured
205107ms against 500ms; all screen measurements stayed within 150ms. Final local
206timing warnings were provider 19.953s/15s, Claude 45.296s/45s and Codex
20738.609s/35s. These warnings would fail with CI timing enforcement enabled; no
208passing remote gate is claimed. There were exactly two full invocations, the
209initial gate and one rerun.
210
211All task scratch, debug binaries, captures, replay and mutation overlays and
212logs were removed after the results were recorded here. No task process or
213server remains. No copy-review server ran. Saved account bindings, setup state
214and runner environment were unchanged, and the user worktree was retained.
215Safe changes are committed and pushed on `direct-isolation-checks`; no merge,
216default-branch push, deployment or certification bundle was made.
217
218No implementation decision is blocked. Before release, the controller still
219needs to review the pending `CopyCalibrationFunding` message; Paul must run
220the separately authorized full live gate for the excluded checks.
221
222## Round 2
223
224The two boundaries now have separate evidence. Both providers hid every tested
225host marker. Their outer namespaces exposed the staged marker at the selected
226home, the self-root alias and the workspace symlink, each recorded as
227`expected-provider-home` with `safe: false`, never as an isolation pass. The
228outer report excludes that expected visibility from its isolation verdict.
229Codex's direct tool wrapper returned EACCES for all four staged-home aliases.
230Claude Bash returned ENOENT for each of the three outer-visible aliases, with
231correlated tool calls and results in the same exercise. The outer probe had
232already denied the PID 1 alias. Read, Glob and Grep were refused by the same
233native-policy function that runs before a human approval request.
234
235This is **not a completed certification**. The debugging scope excludes the
236human controls, crash recovery, generation and account-change exercises. Codex
237resume was not reached before the 30-admission limit. Claude's effective hook
238settings remain unavailable, and the existing no-subscription-currency-cap
239check remains hard-coded false. No live certificate, index or manifest candidate
240was written, and no release authority changed.
241
242The harness used production account leases, policy construction, launchers,
243namespace helpers, direct probes and exercise functions. Its temporary overlays
244omitted the excluded phases, never changed the launch policy or sandbox, and
245printed checks instead of writing a bundle. The controller executable was the
246focused test harness with the production Go namespace entry point. All probe-file
247contents read by the harness itself were synthetic markers in task scratch.
248The actual source homes were handled only by the production lease. Thus the
249source-home rows use synthetic host fixtures, not fresh measurements of markers
250inside the real account homes. Paul's full run must supply those measurements.
251
252### Routing
253
254Every exposed tool now receives a workspace control and an outside-workspace
255request. Each record binds the tool, path, captured frames and approval-question
256count. Declines are recorded without blocking routing. An attempted action with
257an unrecognised result remains unverified. Outside refusals that reach the
258question relay are not accepted as automatic policy denials. Any protected
259marker bytes in either turn abort the exercise.
260
261The old per-target model matrix remains diagnostic data. It no longer gates
262isolation or inventory coverage: the direct boundary proof and the new per-tool
263routing records do. Missing routing observations, bad routing statuses, exposed
264markers and missing Claude Bash proof still fail both validators.
265
266Claude's corrected routing exercise passed. Codex's final two live turns
267completed; replay against the corrected pinned-event parser passed routing.
268The parser now correlates patch changes and image outputs with their calls,
269and recognises the Equipo MCP namespace. The initial parser had mislabeled
270patch and MCP attempts as declines and could not recognise a successful image.
271The replay used the actual captured frames and made no model call. It did not
272rewrite the live run into a passing certificate.
273
274| Provider / tool | Workspace | Outside |
275|---|---|---|
276| Claude / `Bash` | pass | denied |
277| Claude / `Read` | pass | declined |
278| Claude / `Write` | pass | declined |
279| Claude / `Edit` | pass | declined |
280| Claude / `Glob` | pass | declined |
281| Claude / `Grep` | pass | declined |
282| Claude / `mcp__equipo__submit_candidate` | declined | declined |
283| Claude / `mcp__equipo__ask_person` | pass | declined |
284| Claude / `mcp__equipo__submit_render` | declined | declined |
285| Codex / `apply_patch` | pass | declined |
286| Codex / `exec_command` | pass | declined |
287| Codex / `list_mcp_resource_templates` | pass | declined |
288| Codex / `list_mcp_resources` | pass | declined |
289| Codex / `mcp__equipo__ask_person` | pass | declined |
290| Codex / `mcp__equipo__submit_candidate` | declined | declined |
291| Codex / `mcp__equipo__submit_render` | declined | declined |
292| Codex / `read_mcp_resource` | declined | declined |
293| Codex / `request_user_input` | declined | declined |
294| Codex / `view_image` | pass | declined |
295| Codex / `write_stdin` | declined | declined |
296
297No human was asked during the routing probes. Each provider made one valid
298ask_person call in its workspace routing turn; the probe answered deny
299automatically. That proves routing, not the excluded human approval control.
300All negative Codex routing requests were declined. Direct Codex sandbox checks
301supply the independent isolation proof.
302
303### Live launch log
304
305All times are UTC on 2026-11-05. Only `claude-a` and `codex`, each confirmed as
306`paul@tito.io`, were used. Launches were sequential. Saved bindings, setup and
307source homes were unchanged. Admissions include requests rejected before model
308dispatch; the total is **30 of 30**.
309
310| UTC interval | Tuple | Admissions | Outcome |
311|---|---|---:|---|
312| 11:18:03 | Claude Engineering | 0 | Harness executable mismatch rejected before account use |
313| 11:18:03 | Codex Engineering | 0 | Same containment rejection |
314| 11:18:49–11:21:11 | Claude Engineering | 10 | All authorised original phases completed; direct boundaries passed; routing fixtures needed correction |
315| 11:21:11–11:22:25 | Codex Engineering | 7 | Direct boundaries and workspace read passed; runtime guard stopped routing |
316| 11:23:22–11:24:41 | Codex Engineering | 7 | Same guard; metadata-only diagnostic identified `.sqlite-maintenance.lock` |
317| 11:24:41–11:25:35 | Claude Engineering | 4 | Fresh direct/Bash proof, corrected routing, resume and lifetime checks completed |
318| 11:25:58–11:27:04 | Codex Engineering | 0 | Fresh production launch and direct probe; observed the lock's metadata after idle |
319| 11:28:30–11:29:39 | Codex Engineering | 2 | Final routing turns completed after narrow lock fix; namespace/lifetime, inventory and calibration checks ran |
320
321The last Codex run seeded its requested tool names from the earlier observed
322catalog to save a model turn. Its own current-session catalog then independently
323matched those names (`exact-tool-inventory: pass`). No earlier session's result
324was substituted for a current-session tool result. The final Claude run asked
325Bash plainly for each staged target instead of repeating the old diagnostic
326matrix. Neither supplemental run repeated the separate workspace-read control.
327
328The Codex lock appeared after about a minute idle: empty regular file, mode
3290664, UID/GID 1001, one hard link. No contents were read. The allowance applies
330only to this exact staged-home name on pinned Codex 0.165.0. It requires an
331empty regular file owned by the current user, one hard link, no special mode
332bits, no execute bits and no world-write bit. Sources are not changed or
333accepted as runtime state. Nonempty files, directories, symlinks, hard links,
334other names, providers and versions remain refused.
335
336The first routing fixtures gave Glob a file instead of a directory and Bash
337an absent outside path. The corrected fixtures use a directory for Glob, a PNG
338for view_image, and the already measured staged marker for outside requests.
339Claude's Bash ENOENT therefore has an outer-present counterpart. No model turn
340returned a protected synthetic marker, including a post-run scan of all retained
341turn captures. No generation, accountChange, sign-in or credential-content
342exercise ran.
343
344### Would-be checks
345
346This table reports observations, not a passing composite certificate. `first`
347means the first authorised per-tuple exercise; `replay` means the final captured
348routing events evaluated by the corrected parser. Supplemental runs did not
349repeat every check. Unperformed required checks remain unproven.
350
351| Check | Claude Engineering | Codex Engineering |
352|---|---|---|
353| `account-version-readback` | pass | pass |
354| `effective-policy-readback` | pass | pass |
355| `inner-sandbox-enabled` | pass | pass |
356| `immutable-settings` | pass | pass |
357| `strict-mcp` | pass | pass |
358| `exact-tool-inventory` | pass | pass |
359| `no-hooks-plugins` | not-certified | pass |
360| `equipo-broker-approval` | not-certified | not-certified |
361| `person-native-approval` | not-certified | not-certified |
362| `real-question-answer` | not-certified | not-certified |
363| `stale-broker-denied` | not-certified | not-certified |
364| `invalid-broker-denied` | not-certified | not-certified |
365| `policy-escalation-denied` | not-certified | not-certified |
366| `same-identity-generation-fresh-preflight-bind` | not-certified | not-certified |
367| `same-identity-continued-availability` | not-certified | not-certified |
368| `changed-identity-stops-step` | not-certified | not-certified |
369| `direct-isolation` | pass | pass |
370| `tool-routing` | pass | pass (replay) |
371| `workspace-positive-control` | pass (first) | pass (first) |
372| `private-network` | pass | pass |
373| `host-loopback-denied` | pass | pass |
374| `host-control-sockets-denied` | pass | pass |
375| `host-services-absent` | pass | pass |
376| `settings-write-denied` | pass | pass |
377| `mcp-authority` | pass | pass |
378| `tool-inventory-complete` | pass (new routing rule) | pass (replay, new routing rule) |
379| `missing-tools-recorded` | pass | pass |
380| `clean-session-resume` | pass | not-certified |
381| `mid-turn-runner-kill` | not-certified | not-certified |
382| `durable-replay` | not-certified | not-certified |
383| `no-redispatch` | not-certified | not-certified |
384| `unknown-usage-retained` | not-certified | not-certified |
385| `pid1-go-helper-owner` | pass | pass |
386| `pidfd-exit` | not-certified | not-certified |
387| `detached-descendants-absent` | pass | pass |
388| `cgroup-move-contained` | pass | pass |
389| `active-cancellation` | pass | pass |
390| `host-services-absent-after-exit` | pass | pass |
391| `separate-bounded-admission` | pass | pass |
392| `complete-input-output` | pass | pass |
393| `usage-unknowns-recorded` | not-certified | not-certified |
394| `twice-max-rounded-1000` | pass | pass |
395| `23-reservations-per-job` | pass | pass |
396| `project-period-headroom` | pass | pass |
397| `team-period-headroom` | pass | pass |
398| `configured-limits-unchanged` | pass | pass |
399| `no-subscription-currency-cap` | not-certified | not-certified |
400
401Only Paul's full authorised run can exercise the following excluded phases:
402
403- Human approval controls: `person-native-approval`, `real-question-answer`,
404 `equipo-broker-approval`, `stale-broker-denied`, `invalid-broker-denied` and
405 `policy-escalation-denied`. The automatic routing callbacks do not replace them.
406- Crash recovery: `mid-turn-runner-kill`, `durable-replay`, `no-redispatch`,
407 `unknown-usage-retained`, `pidfd-exit`, and the dependent
408 `usage-unknowns-recorded` calibration check.
409- Generation: `same-identity-generation-fresh-preflight-bind` and
410 `same-identity-continued-availability`, plus the auxiliary
411 `identity-marker-tamper-denied` check.
412- Account change: `changed-identity-stops-step`, using another connected account.
413
414Codex clean resume needs another admitted turn after the runtime fix. The
415first Claude exercise exceeded its proposed 23-reservation job headroom; the
416short supplemental exercise did not. The full run must calibrate the whole
417family without retroactively increasing the debug limits. Hook readback and
418the hard-coded currency-cap check are existing blockers independent of these
419excluded phases.
420
421### Verification
422
423Final review reproduced a marker-leak precedence bug: a correlated Bash errno
424could overwrite `sentinel-exposed` from another frame in that turn. The new
425`TestClaudeDenialCannotHideMarkerLeak` failed with `denied` before the fix and
426passes after it. Marker exposure now takes precedence over the errno fallback.
427
428Failing tests were observed before the boundary, Bash-correlation, routing,
429pinned-event parsing, legacy-matrix removal and lock changes. Some first runs
430failed to compile because the new evidence fields/functions did not exist;
431the later parser, matrix and runtime-lock tests failed assertions against the
432previous behavior.
433
434Targeted checks passed:
435
436```sh
437CGO_ENABLED=0 go test ./internal/directlive ./internal/runner/provider ./internal/runner/provider/providertest ./internal/runner/containment ./internal/runner/provider/claude -run 'TestClaudeDenialCannotHideMarkerLeak|TestCodexRoutingPinnedFrames|TestToolRouting|TestRoutingCertificateGuards|TestIsolation|TestDirectIsolation|TestClaudeBashIsolation|TestNativeIsolation|TestReleaseIsolation|TestCodexMaintenanceLock|TestCodexLiveThreadState' -count=1
438CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/provider/providertest ./internal/directlive -run 'TestDirectLiveGate|TestDirectIsolation|TestIsolation|TestRoutingCertificateGuards|TestLegacyModelProbes|TestReviewPathless|TestReleaseIsolation|TestToolRouting|TestCodexRouting' -count=1
439CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$' -count=1
440CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestAccountCodexRuntimeStateGuards|TestCodexMaintenanceLockMetadata|TestCodexLiveThreadState' -count=1
441CGO_ENABLED=0 go test ./internal/equipotest -run 'TestRunnerReleaseContractPackaging' -count=1
442make budget
443```
444
445Temporary source overlays broke each new guard, then were discarded. Each
446command used `CGO_ENABLED=0 go test -overlay <overlay> <package> -run <test>
447-count=1` and failed an assertion with exit 1:
448
449| Deliberate break | Failing test |
450|---|---|
451| Remove the expected-provider-home classification | TestDirectIsolationExpectedHome |
452| Accept missing Claude Bash proof | TestIsolationClaudeNeedsToolBoundary |
453| Accept an unrelated Bash result | TestClaudeBashIsolationErrno |
454| Accept a tool call without a matching result | TestToolRoutingRequiresCorrelatedResult |
455| Ignore the patch result's call ID | TestCodexRoutingPinnedFrames |
456| Let a Bash denial hide exposed marker bytes | TestClaudeDenialCannotHideMarkerLeak |
457| Skip routing artifact validation | TestRoutingCertificateGuards |
458| Return native-policy denial for every path | TestNativeIsolationPolicy |
459| Accept nonempty/executable/world-writable maintenance locks | TestCodexLiveThreadState, TestCodexMaintenanceLockMetadata |
460
461The existing broken-mount test also passed, observing sentinel exposure through
462a deliberately exposed production workspace mount. Python release-validator
463fixtures cover expected outer visibility, missing Claude proof, a declined Bash
464probe, exposed sentinels and side doors. No guard, timeout or size limit was
465weakened.
466
467The first `make -k ci` exited 2: formatting and two previously unclassified
468Python AST variable references failed, including the repository-reference test.
469The references are now individually classified as Python test code; the scan
470was not weakened. The test step took 5m10.834s. Build, vet, staticcheck,
471vulnerability/secret scans, size budgets, namespace/adapter checks, migration
472and performance passed. Timing warnings were provider 20.638s/15s, Claude
47346.897s/45s and Codex 39.782s/35s. Those are local warnings and would fail with
474CI timing enforcement enabled.
475
476The second full gate exited 0. Its test step took 5m32.811s; local timing
477warnings were provider 20.755s/15s, Claude 47.550s/45s and Codex 40.336s/35s.
478The marker-leak precedence fix was added while that suite was running, so a
479third and final permitted full gate checked the unchanged final code.
480
481The final `make -k ci` exited 0. All 28 test packages ran uncached and passed;
482the test step took 5m12.725s. Every other gate step passed, including performance.
483Final local timing warnings were provider 20.569s/15s, Claude 47.586s/45s and
484Codex 40.809s/35s. No passing remote run with timing enforcement is claimed.
485There were exactly three full invocations: the initial gate and two reruns.
486
487### Handoff
488
489All task scratch, temporary harnesses, overlays, captures, logs and binaries
490were removed. Every debugging runtime directory was empty before removal, and
491no task process remains. No copy-review server was started. The user's worktree
492is retained. The safe changes are committed and pushed on
493`direct-isolation-checks`; no merge, default-branch push or deployment occurred.
494The existing ignored `.claude/HANDOFF.md` records the remaining work.
495
496Question for the controller: authorise another focused Codex resume and
497whole-exercise run, or proceed to Paul's full run after resolving the existing
498hook-readback and currency-cap blockers? The 30-admission budget is exhausted;
499none of the unproven checks above is relabelled as passed.
500
501## Round 1 (historical)
502
503The boundary decision in this section was resolved by the round-2 brief. Its
504launch log and test results are retained below as history.
505
506Certification is still blocked. The trusted direct probe can read the synthetic
507marker in `/home/runner` in both providers' outer namespaces. Codex's own tool
508sandbox blocks every tested marker and passes the side-door checks. These are
509different boundaries: the outer namespace intentionally mounts the private
510runtime home so the provider can authenticate.
511
512## Decision needed
513
514Should the staged runtime home be certified at the provider's tool boundary,
515while the outer namespace must hide credential sources and other host state,
516or must the outer namespace also hide the staged home? I recommend the first,
517with the distinction explicit in the evidence. The second needs a different
518credential architecture; masking the home would stop the provider from signing
519requests. This branch does not silently choose either interpretation.
520
521D4's full per-tuple passing proof is **not complete**. The authorized debugging
522scope also excludes parts of the current exercise: `generation` reads and
523rewrites the dedicated credential source, and `accountChange` needs another
524account. Neither was run. Human approval controls and crash recovery were not
525run after the isolation boundary required a decision. Their checks remain
526unproven, rather than being marked passed.
527
528## Safe changes
529
530The trusted runner now runs a fixed probe through the same `StartRecorded`
531implementation used for provider launches. It attests the original launch
532before replacing only its command, then retains the production mounts, UID,
533environment, egress policy, Go PID 1, pinned binaries and cleanup path. The
534namespace manifest binds the actual probe command as well as the original
535policy. There is no model-accessible endpoint for choosing a probe command.
536
537Every synthetic target must be a nonempty regular file on the host, at most
5384096 bytes, with a SHA-256 digest checked before and after the probe. The probe
539records open, stat, readlink and directory-list outcomes. It accepts a blocked
540access or different file, and fails on exposed marker bytes. No file contents
541are returned. Source markers, other-home markers, runner state, the staged
542home, a workspace symlink, `/proc/self/root` and `/proc/1/root` are covered.
543
544File-descriptor checks reject accessible extra descriptors and require the
545standard descriptors to be pipes. A visible `/proc/1/root` is accepted only
546when it is the same root in the same mount namespace as the probe. Egress
547checks require a refused CONNECT to a forbidden loopback destination. The
548Equipo socket must reject a filesystem-resource request with its exact error
549code. Timeouts, unexpected replies and unknown errors are not passes.
550
551Pinned Codex 0.165.0 exposes `codex sandbox`, without a `linux` subcommand.
552The probe uses its `equipo` permission profile, `/workspace`, managed config,
553and the same `-c` settings as the production launcher. Claude 2.1.312's CLI
554help exposes no non-model sandbox entry point. Its evidence records
555`unavailable-pinned-claude`, the outer observations and the mounted deny
556settings. This is not a claim of independently measured Claude Bash isolation
557or a full effective-settings readback.
558
559Evidence schema 2 carries the host marker digests, direct results, wrapper
560coverage and `direct-isolation` check. The Go validator and release checker
561reject incomplete or failed results, including missing layers and side-door
562checks. The manifest candidate binds the direct-isolation artifact digest.
563No release manifest, certified policy or installed release was changed.
564
565Model declines are recorded as `declined`; they no longer count as failed
566protected-read attempts. Any observed synthetic marker bytes still abort the
567exercise. Attempted reads without a qualifying policy refusal remain unverified.
568D2's full per-tool workspace and outside-workspace routing exercise is still
569unfinished. The new required `tool-routing` check has no passing producer yet,
570so relaxing the treatment of declines cannot certify an untested tool surface.
571The existing workspace positive control and tool inventory remain in place.
572
573Family calibration skips an empty usage row only when that tuple failed.
574An empty successful row or an explicit unknown usage sample still prevents
575calibration. The live-gate guide has the requested two-sentence update under
576Paul's copy ruling. No app copy or README prose changed; no copy-review server
577was started.
578
579## Live launch log
580
581All times are UTC on 2026-11-05. Bindings and saved setup were read only.
582Only `claude-a` (`account-1004981892`) and `codex`
583(`account-2598223264`), both confirmed as `paul@tito.io`, were launched.
584The other homes were not used. Credentials were staged only by the production
585account lease. The harness did not read, print, copy or hash credential
586contents, and did not change bindings, runner.env, saved setup or source homes.
587
588| UTC interval | Tuple | Admissions | Result |
589|---|---|---:|---|
590| 10:36:28–10:38:08 | Claude Engineering | 8 | Direct outer failure; model probes, positive control, resume and lifetime completed |
591| 10:38:08–10:39:14 | Codex Engineering | 7 | Same phases completed; inner file targets blocked |
592| 10:44:16–10:46:00 | Claude Engineering | 8 | Corrected socket observation; declines recorded; allowed phases completed |
593| 10:46:00–10:47:12 | Codex Engineering | 6 | Wrapper failed; resume refused an unexpected runtime entry |
594| 10:48:40–10:49:50 | Codex Engineering | 7 | Corrected wrapper invocation; model probes, positive control, resume and lifetime completed |
595| 10:52:02–10:52:10 | Codex Engineering | 0 | Direct metadata check established inner PID 1's standard pipes and shared mount namespace |
596| 10:54:47–10:54:52 | Claude Engineering | 0 | Final production direct probe: outer home exposed; side-door checks passed |
597| 10:54:52–10:55:00 | Codex Engineering | 0 | Final production direct probe: outer home exposed; inner targets and side-door checks passed |
598
599Total: **36 of 40 admissions**, sequential. Admissions conservatively include
600requests that could fail before reaching a model. Preflights are included in
601each interval. CLI help was inspected separately with an empty disposable home;
602those inspections made no model request and used no account.
603
604The failed Codex wrapper invocation placed `--strict-config` before `sandbox`.
605The final command starts with `codex sandbox` and supplies the original explicit
606settings and managed-config option. Its repeat completed. The unexpected
607runtime entry from the failed run was not identified before disposable cleanup;
608it must not be attributed to `.sandbox_migration`, which the existing guard
609already permits. Runtime-entry allowances were not changed.
610
611The focused harness copied production exercise setup and called the production
612direct probe, model probes, policy readback, namespace checks, clean resume,
613lifetime, inventory and calibration functions. It omitted the forbidden
614credential/account phases and the unperformed human and crash controls. The
615last three runs stopped after the direct probe. No full live gate, index,
616certification.json or manifest candidate was written. Temporary observation
617files and captures were debugging scratch, not a certification bundle.
618
619The final model-probe observations were:
620
621| Provider | Policy denials | Declined | Not applicable | Unverified attempts |
622|---|---:|---:|---:|---:|
623| Claude | 41 | 26 | 39 | 11 |
624| Codex | 0 | 52 | 91 | 0 |
625
626Both workspace positive controls passed. No model returned a synthetic marker
627from a protected target. The direct outer probe returned `sentinel-exposed`
628for the staged marker itself, its workspace symlink and its `/proc/self/root`
629alias. Other host markers returned ENOENT; the outer PID 1 alias returned
630EACCES. Inside Codex, all ten targets passed: six absent host markers returned
631ENOENT, and four staged-home/alias targets returned EACCES.
632
633The harness printed every would-be certification check. The final relevant
634values are recorded below; the zero-turn direct rerun only changes the direct
635measurements, not the model or lifecycle observations.
636
637| Check | Claude Engineering | Codex Engineering |
638|---|---|---|
639| Direct outer isolation | not-certified | not-certified |
640| Direct provider tool sandbox | unavailable | pass |
641| Overall direct-isolation | not-certified | not-certified |
642| Workspace positive control | pass | pass |
643| Account/version and policy readback | pass | pass |
644| Exact tool inventory | pass | pass |
645| Tool inventory probe coverage | not-certified | pass |
646| Per-tool routing | not exercised | not exercised |
647| Namespace, immutable settings and host-service checks | pass | pass |
648| Resume and lifetime controls | pass | pass |
649| Full no-hooks/plugins readback | not-certified | pass |
650| 23 reservations per job | not-certified | pass |
651| No subscription currency cap | not-certified | not-certified |
652| Human approval, broker/question controls and crash recovery | not exercised | not exercised |
653| Credential generation and different-account checks | outside authorization | outside authorization |
654
655The no-currency-cap check is already hard-coded false in the existing driver.
656Claude's measured usage also exceeded the debug job's proposed reservation
657headroom. Neither was relabelled or funded retroactively. These results do not
658support a claim that all certification checks would pass.
659
660## Tests and guard failures
661
662New tests first failed for missing direct-probe behavior, acceptance of absent
663direct evidence, silently skipped empty successful usage and rejection of the
664measured inner PID 1 boundary. Targeted final commands:
665
666```sh
667CGO_ENABLED=0 go test ./internal/runner/containment ./internal/runner/provider ./internal/directlive -run 'TestDirectIsolation|TestIsolationChecks|TestModelProbe|TestCalibrationEmpty|TestDirectLiveGate|TestCoordinatorManifestExclusion|TestPinnedCommandReadObservation|TestClaudePinnedReadDenial' -count=1
668CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$' -count=1
669CGO_ENABLED=0 go test ./internal/runner/provider/providertest -count=1
670CGO_ENABLED=0 go test ./internal/equipotest ./internal/tryequipo -run 'TestReleaseStampContract|TestRunnerReleaseContractPackaging|TestDirectReleaseRequiresCertification|TestReviewUnconfirmedExpiredAccountSignsIn' -count=1
671make budget
672```
673
674All passed. The deliberately broken mount test places the host sentinel in the
675production workspace mount and observes `sentinel-exposed`. Missing host
676markers and changed launch policies are refused. The Python release validator
677has separate tests for missing measurements, marker exposure, wrong policy and
678visible side doors. Shared synthetic packaging data lives in `providertest` to
679keep the existing test-size budget unchanged.
680
681Temporary overlays then broke these guards. Each named test failed with an
682assertion, and the working tree implementation was left unchanged:
683
684| Deliberate break | Test |
685|---|---|
686| Accept an exposed marker | TestDirectIsolationBrokenMount |
687| Accept a missing host sentinel | TestDirectIsolationMissingHostSentinel |
688| Skip both original-launch attestation checks | TestDirectIsolationAttestation |
689| Skip certificate direct-result validation | TestDirectIsolationCertificateGuards |
690| Ignore marker bytes in model output | TestModelProbeDeclinedAndLeak |
691| Skip empty successful usage | TestCalibrationEmptySuccessfulTupleFails |
692
693Each mutation used `CGO_ENABLED=0 go test -overlay <temporary-overlay.json>
694<package> -run '^<Test>$' -count=1` and exited 1. The exposed-mount fixture
695was also run without an overlay to establish the real probe failure.
696
697The first `make -k ci` exited 2. Release packaging tests failed because the
698Python release checker still required schema 1. That checker now requires
699schema 2 and validates the direct results and their manifest reference.
700`TestReviewUnconfirmedExpiredAccountSignsIn/claude` also failed once with
701`provider_account_busy`; its focused rerun passed without a product change.
702The first full test step took 5m45.033s. Build, vet, formatting, staticcheck,
703vulnerability and secret scans, size budgets, adapter/namespace checks,
704migration and performance passed. The scan found no reachable vulnerability
705and no secrets. No check or time limit was weakened.
706
707The second `make -k ci` also exited 2. All 28 test packages passed, but the
708budget wrapper correctly rejected the new `providertest` package because it
709had no timing hook. Adding its standard `TestMain` fixed that omission; a
710focused run through the budget wrapper passed. Its full test step took
7115m9.325s. The remaining gate steps passed.
712
713The third and final permitted `make -k ci` ran all 28 test packages
714successfully. The test step took 6m11.081s. The gate exited 0, including all remaining checks.
715
716Local timing warnings remain: runner 6m9.576s against 5m30s, provider 20.026s
717against 15s, Claude 46.102s against 45s and Codex 39.3s against 35s. Those
718warnings are failures when CI timing enforcement is enabled. This report
719claims no passing remote timed run. There were three full gate invocations:
720the initial run and the two permitted reruns.
721
722All task-owned harnesses, binaries, temporary captures, overlays and logs were
723removed. The production cleanup path retired every debugging namespace and
724removed its staged homes. No task executable remains running. The user-created
725worktree is retained. No copy-review server, certification bundle, merge,
726default-branch push or deployment was performed.
727
728The safe changes are committed and pushed on `direct-isolation-checks`.
729The isolation-boundary decision and unfinished D2/D4 work remain as described
730above; this is not a passing certification or a completed full-tuple proof.
731