| 1 | # Live turn failures |
| 2 | |
| 3 | Both providers now complete a specialist's first turn and focused sandbox |
| 4 | probes. Both coordinator fixtures complete their single structured question |
| 5 | with the exact expected tool inventory. This is debugging evidence, not release |
| 6 | certification. The full live gate was not run. |
| 7 | |
| 8 | ## Causes and fixes |
| 9 | |
| 10 | The saved run `run-2006336109` identifies Claude's first failure without |
| 11 | another model call: its `system/init` frame reports `permissionMode: default` |
| 12 | and omits `mcp__equipo__permission` from the model-visible tools. The launcher |
| 13 | expected `manual` and counted that callback as a visible tool. It rejected the |
| 14 | frame and cancelled the process before any assistant response. The caller then |
| 15 | replaced the reason with `provider_uncertain`. |
| 16 | |
| 17 | The launcher still requests manual permissions and uses the same permission |
| 18 | callback, sandbox settings and exact tool policy. Init validation now requires |
| 19 | the pinned binary's observed `default` value and exact visible inventory. It |
| 20 | rejects other modes, missing tools, extra tools and duplicate tools. The direct |
| 21 | fixture's readback and coordinator inventory use the same observed convention. |
| 22 | Its specialist probe inventory records the permission callback as non-exposed. |
| 23 | |
| 24 | Claude failures now emit a structured terminal payload after process cleanup: |
| 25 | fixed reason category, last frame category, exit code, signal, stderr category |
| 26 | and egress-denial count. Unknown measurements remain null. Raw stderr and |
| 27 | untrusted frame-type text never enter that payload. Policy rejection is retained |
| 28 | instead of being overwritten by incomplete-turn cleanup. The journal retains |
| 29 | the event, and the direct driver saves `turn-N-failure.json` before returning an |
| 30 | error that names it. The egress relay counts rejected CONNECT requests without |
| 31 | recording their submitted destinations. |
| 32 | |
| 33 | Codex's original mount error was caused by redundant denials, rather than a |
| 34 | missing outer `/dev` mount. Both the earlier nesting probe and production use |
| 35 | `--dev /dev` and `--proc /proc`. The earlier probe denied an ordinary sentinel; |
| 36 | it did not combine the production denials. Codex masks `/proc`, then tries to |
| 37 | mask `/dev/fd`, whose symlink now points into the masked tree. Removing that |
| 38 | redundant entry exposed a second failure: masking `/tool` read-only before |
| 39 | creating a child mask for `/tool/equipo.sock`. The policy now denies the parent |
| 40 | directories. The same protected paths remain inaccessible. A nested bubblewrap |
| 41 | test reproduces both original mount failures when either child entry returns. |
| 42 | No device binds, mount propagation changes or sandbox bypasses were needed. |
| 43 | |
| 44 | Once those failures were fixed, the live launches exposed these additional |
| 45 | pinned behaviors: |
| 46 | |
| 47 | - Claude writes `.last-cleanup` after a turn. Only that exact 24-byte regular |
| 48 | file is accepted, under version 2.1.312. |
| 49 | - Codex writes a three-byte `.sandbox_migration`, an empty coordination lock, |
| 50 | empty UUIDv7 thread locks, and the three `thread_history_1.sqlite` database |
| 51 | files. These names, kinds and applicable sizes are checked under 0.165.0; |
| 52 | existing owner, hard-link, symlink and policy-file checks still apply. |
| 53 | - A fresh Codex thread has no rollout to resume before turn 1. The first turn |
| 54 | uses the effective policy already verified by `thread/start`, with fresh |
| 55 | account/config/source checks. Later turns still reassert and validate the |
| 56 | saved thread's policy. Resume requests exclude old turns. |
| 57 | - Resume emits the completed turn's usage snapshot again. One exact snapshot |
| 58 | replay is accepted per resume, compared with the previously observed |
| 59 | thread, turn and counters. It is retained in capture but not counted again |
| 60 | or assigned to the next turn. Changed snapshots still fail closed. |
| 61 | - Codex discovers an empty disabled `/workspace/.codex` project layer lazily. |
| 62 | Validation accepts one such layer with the exact observed disabled reason. |
| 63 | Enabled, nonempty, duplicated or differently located layers remain rejected. |
| 64 | - Subscription rate-limit notifications have no session ID. They remain in |
| 65 | capture and are not projected as session events. Requests and malformed |
| 66 | envelopes are rejected. The five exact deprecation notices generated by the |
| 67 | coordinator's disabled legacy flags receive the same treatment. Other |
| 68 | notices and account-change events remain rejected. |
| 69 | |
| 70 | ## Live launches |
| 71 | |
| 72 | All times below are UTC on 2026-11-05. Only `claude-a` and `codex`, both confirmed |
| 73 | as `paul@tito.io`, were selected. Their source homes were |
| 74 | `account-1004981892` and `account-2598223264` under the existing accounts directory. |
| 75 | The other five homes were not launched or read. The bindings and setup-state |
| 76 | files were read only. No sign-in or configuration change was performed. |
| 77 | |
| 78 | The temporary harness used `CertificationInputs`, production account leases, |
| 79 | launchers, capture/journal, tool broker, namespace manager and turn dispatch. |
| 80 | It used the pinned executables and a test executable running the production |
| 81 | namespace entry point. It did not call a provider CLI with hand-built flags. |
| 82 | It used synthetic markers in disposable workspaces and staged homes, never |
| 83 | source-home sentinels. Runtime investigations inspected names, sizes and modes |
| 84 | only. No credential contents were inspected, printed, copied manually or hashed |
| 85 | by the harness. Credential staging was performed only by the product lease. |
| 86 | |
| 87 | Each row is one sequential tuple invocation, including its production |
| 88 | preflights. A launched Claude tuple includes auth-status, empty-input dependency |
| 89 | preflight and session processes; Codex includes preflight and session processes. |
| 90 | The three setup-only rows started no provider process. The interval bounds all |
| 91 | subprocess launches for that row. No tuples ran concurrently. |
| 92 | |
| 93 | The Calls column charges admissions conservatively, including those rejected |
| 94 | before a model prompt reached the provider. Its total is **26 of 40**. Sixteen |
| 95 | turns are directly visible as Claude result frames or Codex turn-start frames; |
| 96 | additional cancelled or rejected admissions remain charged in the 26. |
| 97 | |
| 98 | | UTC interval | Tuple | Debug ID | Calls | Outcome | |
| 99 | |---|---|---:|---:|---| |
| 100 | | 07:40:40–07:40:41 | Claude Engineering | 2828611459 | 0 | Harness executable identity check; no provider launch | |
| 101 | | 07:41:05–07:41:06 | Claude Engineering | 1814237159 | 0 | Harness bindings path correction; no provider launch | |
| 102 | | 07:41:55–07:42:10 | Claude Engineering | 4019389454 | 3 | Two turns completed; cleanup marker blocked next admission | |
| 103 | | 07:42:54–07:42:55 | Codex Engineering | 3811154342 | 0 | Binary source-path guard; no provider launch | |
| 104 | | 07:43:26–07:43:38 | Claude Engineering | 3507904384 | 3 | Reproduced cleanup marker; captured metadata | |
| 105 | | 07:44:05–07:44:12 | Codex Engineering | 357022885 | 0 | `/dev/fd` fixed; redundant socket mask failed | |
| 106 | | 07:44:29–07:44:54 | Claude Engineering | 109350906 | 3 | First turn, native Read probes and Bash probes completed | |
| 107 | | 07:45:26–07:45:34 | Codex Engineering | 1726159049 | 1 | Mounts fixed; runtime thread state rejected | |
| 108 | | 07:46:25–07:46:31 | Codex Engineering | 3087197226 | 1 | Transient per-thread lock rejected | |
| 109 | | 07:47:02–07:47:08 | Codex Engineering | 3078603337 | 1 | Captured active lock metadata before shutdown | |
| 110 | | 07:47:42–07:47:50 | Codex Engineering | 1095714057 | 1 | Premature resume: no rollout found | |
| 111 | | 07:49:27–07:49:39 | Codex Engineering | 660293223 | 1 | Model answered; unscoped rate notice rejected | |
| 112 | | 07:51:10–07:51:19 | Codex Engineering | 2991876854 | 2 | Turn 1 completed; thread-history files blocked next admission | |
| 113 | | 07:51:52–07:51:59 | Codex Engineering | 1455404923 | 1 | Empty disabled project layer rejected | |
| 114 | | 07:53:12–07:53:23 | Codex Engineering | 4077550212 | 2 | Turn 1 completed; resume usage replay raced with turn 2 | |
| 115 | | 07:55:03–07:55:35 | Codex Engineering | 2919593894 | 2 | Two turns completed; workspace read succeeded | |
| 116 | | 07:56:02–07:56:11 | Claude Coordinator | 748372905 | 1 | One question, exact inventory, fixture passed | |
| 117 | | 07:56:20–07:56:27 | Codex Coordinator | 1600362866 | 1 | Unscoped legacy-flag notices rejected | |
| 118 | | 07:57:54–07:58:11 | Codex Coordinator | 2683324626 | 1 | One question, exact inventory, fixture passed | |
| 119 | | 07:59:13–07:59:44 | Codex Engineering | 1870392552 | 2 | First turn and deterministic access probe completed | |
| 120 | |
| 121 | Claude's native Read returned the synthetic workspace marker and rejected the |
| 122 | staged-home marker, `/proc/1/root` and `/dev/fd/0` through configured permission |
| 123 | rules. Bash read the workspace marker; the staged-home marker was hidden and |
| 124 | `/proc/1/root` returned permission denied. Its own stdin through `/dev/fd/0` |
| 125 | was empty, not a denied handle; that is not claimed as a protected-file denial. |
| 126 | |
| 127 | Codex initially declined to call tools on paths described as denied. That |
| 128 | model refusal was not treated as proof. A later real shell call checked |
| 129 | `os.access(path, os.R_OK)` without reading contents. Its output was: |
| 130 | |
| 131 | ```text |
| 132 | /workspace/sentinel True |
| 133 | /home/runner/equipo-read-sentinel False |
| 134 | /proc/1/root/home/runner/equipo-read-sentinel False |
| 135 | /tool/equipo.sock False |
| 136 | ``` |
| 137 | |
| 138 | These are focused debugging probes, not certification of every tool or account. |
| 139 | The coordinator runs used the existing fixture line, not a real team operation. |
| 140 | Temporary captures and fixture observations were removed, with no certification |
| 141 | bundle, release evidence or installed capability change. |
| 142 | |
| 143 | ## Tests and guard checks |
| 144 | |
| 145 | Every behavior change began with a failing targeted test. Initial failures were: |
| 146 | `TestPinnedLiveInit` rejected the recorded init; `TestClaudeFailureDiagnostics` |
| 147 | received opaque failures; `TestEgressDenialCount` had no counter; and |
| 148 | `TestNestedProcDeny` reproduced the nested mount errors. The cleanup-marker, |
| 149 | thread-state, first-turn, rate-notice, disabled-project, resume-usage and |
| 150 | coordinator-notice tests each failed before their corresponding fix. |
| 151 | |
| 152 | Targeted commands used `CGO_ENABLED=0 go test <package> -run <test> -count=1`. |
| 153 | The complete Claude and Codex adapter suites passed after restoration, as did |
| 154 | the focused provider, relay, containment and coordinator-inventory tests. |
| 155 | |
| 156 | For each row below, the listed expression was deliberately broken, the named |
| 157 | test failed, and the source was restored. The mutation runs all exited 1. |
| 158 | |
| 159 | | Broken behavior | Package under `internal/runner/` | Test | |
| 160 | |---|---|---| |
| 161 | | Accept other permission modes | `provider/claude` | `TestPinnedLiveInit` | |
| 162 | | Ignore visible tool inventory | `provider/claude` | `TestPinnedLiveInit` | |
| 163 | | Emit raw stderr | `provider/claude` | `TestFailurePayloadSanitized` | |
| 164 | | Stop counting relay denials | `egress` | `TestEgressDenialCount` | |
| 165 | | Restore redundant `/dev/fd` mask | `provider/codex` | `TestNestedProcDeny` | |
| 166 | | Restore redundant socket mask | `provider/codex` | `TestNestedProcDeny` | |
| 167 | | Accept other cleanup-marker sizes | `provider` | `TestClaudeLiveCleanupMarker` | |
| 168 | | Accept nonempty thread locks | `provider` | `TestCodexLiveThreadState` | |
| 169 | | Resume a fresh unpersisted thread | `provider/codex` | `TestCodexFirstTurnDoesNotResumeUnpersistedThread` | |
| 170 | | Accept changed replayed counters | `provider/codex` | `TestCodexResumeUsageSnapshot` | |
| 171 | | Accept nonempty disabled project config | `provider/codex` | `TestCodexDisabledEmptyProjectLayer` | |
| 172 | | Accept extra notice parameters | `provider/codex` | `TestPinnedCoordinatorNotices` | |
| 173 | |
| 174 | The first `make -k ci` completed with exit 2. Build, vet, formatting, |
| 175 | staticcheck, govulncheck, gitleaks, size budgets, migration and performance passed. |
| 176 | The reference scanner found the supplied brief's unclassified runtime reference; |
| 177 | that exact line was added to its inventory. Nine Codex constructor hashes changed |
| 178 | with the parent-directory denial fix. Their entries in the release manifest were |
| 179 | updated, retaining `uncertified` status and empty certification/evidence lists. |
| 180 | The inventory tests then passed. |
| 181 | |
| 182 | The full fake driver also exposed its remaining assumption that Claude's |
| 183 | permission callback was model-visible. Specialist probes now record that callback |
| 184 | as non-exposed, matching the launcher and coordinator checks. One unrelated |
| 185 | `TestReviewUnconfirmedExpiredAccountSignsIn/claude` run returned `account_busy`; |
| 186 | its isolated rerun passed, without a product change. Local timing notes exceeded |
| 187 | some package budgets; those notes are not a claim that CI timing limits passed. |
| 188 | |
| 189 | The second `make -k ci` passed with exit 0. All 27 test packages passed, |
| 190 | followed by provider/check-sandbox, namespace and migration checks. Performance |
| 191 | checks also passed. There were two full gate invocations in total, one initial |
| 192 | run and one permitted rerun. No checks or timing budgets were weakened. |
| 193 | |
| 194 | The final scratch cleanup removed the temporary harness, binaries, logs, |
| 195 | mutation script and captures from the task-owned directory under `$TMPDIR`. |
| 196 | No staged account homes, namespace state or debugging processes remained. |
| 197 | No copy-review server was started. The branch is `live-turn-failures`; no merge, |
| 198 | default-branch push or deployment was performed. |
| 199 | |