| 1 | # Native-read retry controller report |
| 2 | |
| 3 | Three consecutive Engineering runs passed 49/49 each. Review passed 49/49. |
| 4 | All production evidence validation groups passed. One full `make -k ci` passed. |
| 5 | The six live attempts charged 129 of the authorized 150 calls; earlier provider |
| 6 | API refusals stayed failures. No certification bundle or release was created. |
| 7 | |
| 8 | ## Changes |
| 9 | |
| 10 | Claude isolation now retries missing native Read evidence for every target, |
| 11 | including paths absent from the outer namespace. Each request names one tool and |
| 12 | one synthetic marker. Read and staged-home Bash get at most three additional |
| 13 | attempts after the batch request. Already proven targets require no further call. |
| 14 | The existing optional staged-home Glob and Grep probes retain one retry. |
| 15 | |
| 16 | The retry explains that the tool's permission handler must return the denial. |
| 17 | The handler remains configured to deny the request. A model's written refusal, |
| 18 | a result for another call, or a result for another target cannot prove isolation. |
| 19 | Exhausted retries leave the target uncertified. Capture and turn errors stop the |
| 20 | exercise; any exposed protected marker also stops it. Retry responses are checked |
| 21 | against every protected marker, including the source-home markers. |
| 22 | |
| 23 | `inner-sandbox-enabled` already derives from the final `direct-isolation` result |
| 24 | and effective policy readback. `probes` collects retries and rewrites the isolation |
| 25 | evidence before the driver computes that check. No dependency change was needed. |
| 26 | Positive and exhausted-retry simulations now assert both check results and run |
| 27 | `ValidateIsolation` against the final evidence. |
| 28 | |
| 29 | The guide proposes a saved Claude account total in starter scope, with two as the |
| 30 | minimum. A saved five is proposed as `[5]`. Tests cover a smaller or invalid saved |
| 31 | value, reloading five confirmed homes, and completing the rerun without another |
| 32 | sign-in. No UI strings or README prose changed. No copy-review server was started. |
| 33 | |
| 34 | ## Tests and deliberate failures |
| 35 | |
| 36 | Before implementation, these commands exited 1: |
| 37 | |
| 38 | ```sh |
| 39 | CGO_ENABLED=0 go test ./internal/tryequipo -run '^TestStarterGuideSavedAccountTotal$' -count=1 |
| 40 | CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/Engineering$' -count=1 |
| 41 | ``` |
| 42 | |
| 43 | The guide connected two accounts and proposed `[2]` despite a saved five. The |
| 44 | Engineering fixture declined the batch and the first two individual Read requests |
| 45 | for each target. The old retry failed to prove the Claude tool boundary. |
| 46 | |
| 47 | Deliberate mutations were applied separately and restored: |
| 48 | |
| 49 | | Broken guard | Command | Observed failure | |
| 50 | |---|---|---| |
| 51 | | Allow a fourth individual attempt | `CGO_ENABLED=0 go test ./internal/directlive -run '^TestClaudeNativeRetry$' -count=1` | Exit 1; declined and mismatched cases made four calls, and a fourth-call success was accepted | |
| 52 | | Stop retries on any captured frames | Same command | Exit 1; mismatched call IDs and targets stopped after one unproven call | |
| 53 | | Ignore an exposed marker | `CGO_ENABLED=0 go test -overlay "$proof/mutation-leak-overlay.json" ./internal/directlive -run '^TestClaudeNativeRetryStopsOnErrorOrLeak$' -count=1` | Exit 1; the exposed marker caused three calls and no isolation error | |
| 54 | | Derive inner sandbox status without isolation | `CGO_ENABLED=0 go test ./internal/directlive -run '^TestClaudeNativeDeclineFakeCLI$' -count=1` | Exit 1; the sandbox check disagreed with the exhausted native-read evidence | |
| 55 | |
| 56 | The restored Engineering and Review simulations passed. They require a correlated |
| 57 | Read denial on the third individual request for every target. Batch declines stay |
| 58 | recorded as declines; they are not relabelled as successful proofs. |
| 59 | |
| 60 | Final focused checks passed: |
| 61 | |
| 62 | ```sh |
| 63 | CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI/(Engineering|Review)$' -count=1 |
| 64 | CGO_ENABLED=0 go test ./internal/directlive ./internal/tryequipo ./internal/runner/provider -run '^TestClaudeNativeRetry|^TestClaudeNativeEvidenceGuards|^TestStarterGuide' -count=1 |
| 65 | make budget |
| 66 | ``` |
| 67 | |
| 68 | The focused retry tests cover existing proof, success on each allowed attempt, |
| 69 | exhaustion, narrative declines, mismatched calls and targets, capture and turn |
| 70 | errors, and exposed markers. The source-size gate passed without increasing a |
| 71 | budget. |
| 72 | |
| 73 | ## Live proof |
| 74 | |
| 75 | The proof uses the pinned production CLIs, driver, launchers, containment, broker, |
| 76 | recovery and calibration. A disposable Go overlay adds a runner entry point that |
| 77 | calls `driver.exercise`, `driver.recover`, pooled calibration and `ValidateGroup` |
| 78 | for Contract, Isolation, Recovery and Calibration. It does not replace provider |
| 79 | pins, policy, permission handling or observations. It writes no certification |
| 80 | index, certification.json, manifest candidate or release bundle. |
| 81 | |
| 82 | The selected account is paul@tito.io on Claude 2.1.312 with `claude-opus-5-5`. |
| 83 | The second Claude account, paul@keymail.dev, is used only by the identity exercise. |
| 84 | The prior configuration and Paul's failed evidence are read-only inputs. Each |
| 85 | proof has a fresh disposable repository, state, markers and runtime scratch. |
| 86 | Credential contents are not printed. No sign-in occurs. |
| 87 | |
| 88 | The first attempt charged 16 calls and stopped on turn 16. Its earlier native-read |
| 89 | retries were narrative declines: Claude interpreted the request as bypassing the |
| 90 | Bash sandbox. They remained uncertified. The retry wording was then clarified to |
| 91 | ask for the native tool's own permission-handler denial. |
| 92 | |
| 93 | The second attempt completed one Engineering tuple, then stopped on the second |
| 94 | tuple's third turn, charging 19 calls overall. Both failures were provider API |
| 95 | safety refusals with `stop_reason: refusal` and `is_error: true`. The driver |
| 96 | correctly failed those turns. The process diagnostics recorded signal 9 during |
| 97 | shutdown; the captured provider results identify the refusal as the cause. |
| 98 | |
| 99 | The third attempt completed one Engineering tuple, then stopped on the second |
| 100 | at turn 10, charging 26 calls. This run did exercise the new retry live: the batch |
| 101 | was declined, then individual Read calls for the selected source home, the other |
| 102 | source home and the host marker each produced correlated permission denials. |
| 103 | The provider API refused the next request, for the `/proc/1/root` marker. That |
| 104 | refusal remained a failed turn. |
| 105 | |
| 106 | The fourth attempt stopped on its third turn with the same API refusal, charging |
| 107 | three calls. The fifth ran Review first: it passed 49/49 and all four validation |
| 108 | groups, then Engineering was refused on turn three. That attempt charged 17 calls. |
| 109 | The sixth ran only Engineering, three times consecutively. Every run passed |
| 110 | 49/49, both individually and after pooled calibration, charging 48 calls. |
| 111 | |
| 112 | The successive call caps were 150, 134, 115, 89, 86 and 69, subtracting each |
| 113 | preceding attempt's charged calls from the authorized total. The total is 129; |
| 114 | 21 remain unused. Token and duration limits come from the prior configuration |
| 115 | and were not increased. Charged calls include the identity guard requests that |
| 116 | are rejected before dispatch. |
| 117 | |
| 118 | With `proof` set to the task-owned directory under on-disk `$TMPDIR`, the launch |
| 119 | commands are: |
| 120 | |
| 121 | ```sh |
| 122 | CGO_ENABLED=0 go build -tags direct_live -overlay "$proof/overlay.json" -o "$proof/runner5" ./cmd/<runner command> |
| 123 | CGO_ENABLED=0 go build -o "$proof/proxy" ./cmd/equipo-tool-proxy |
| 124 | EQUIPO_LIVE_DIRECT=1 \ |
| 125 | EQUIPO_RUNNER_EXECUTABLE="$proof/runner5" \ |
| 126 | EQUIPO_TOOL_PROXY_PATH="$proof/proxy" \ |
| 127 | EQUIPO_CLAUDE_PATH=/home/paulca/.local/share/equipo/try/bin/claude \ |
| 128 | EQUIPO_CODEX_PATH=/home/paulca/.local/share/equipo/try/bin/codex \ |
| 129 | EQUIPO_CODEX_CODE_MODE_HOST_PATH=/home/paulca/.local/share/equipo/try/bin/codex-code-mode-host \ |
| 130 | EQUIPO_BWRAP_PATH=/usr/bin/bwrap \ |
| 131 | "$proof/runner5" __native-read-proof "$proof/live6" |
| 132 | ``` |
| 133 | |
| 134 | The first attempt used `runner` and `live`; the second and third used `runner2` |
| 135 | with `live2` and `live3`. The fourth used `runner3` and `live4`. The fifth used |
| 136 | `runner4` and `live5`, running Review before Engineering. The sixth used `runner5` |
| 137 | and `live6`, running three Engineering tuples. From the fourth attempt, the entry |
| 138 | point saves completed tuple observations before continuing; from the fifth, it |
| 139 | also validates each tuple immediately. All use the same production driver. |
| 140 | The bounded continuation allowed another sequence only while at least 48 charged |
| 141 | calls remained, enough for three Engineering tuples without additional retries. |
| 142 | |
| 143 | Launch log, UTC: |
| 144 | |
| 145 | ```text |
| 146 | ATTEMPT 1 calls_cap=150 |
| 147 | LAUNCH 2026-11-05T21:33:04Z claude/Engineering sequence=1 calls_before=0 |
| 148 | FINISH 2026-11-05T21:35:25Z claude/Engineering sequence=1 calls_after=16 error=probes: turn-16-ended (turn-16-failure.json): provider_uncertain |
| 149 | TOTAL calls=16 input=3032271 output=58744 |
| 150 | ATTEMPT 2 calls_cap=134 |
| 151 | LAUNCH 2026-11-05T21:36:21Z claude/Engineering sequence=1 calls_before=0 |
| 152 | FINISH 2026-11-05T21:40:37Z claude/Engineering sequence=1 calls_after=16 error=<nil> |
| 153 | LAUNCH 2026-11-05T21:40:37Z claude/Engineering sequence=2 calls_before=16 |
| 154 | FINISH 2026-11-05T21:41:38Z claude/Engineering sequence=2 calls_after=19 error=probes: turn-3-ended (turn-3-failure.json): provider_uncertain |
| 155 | TOTAL calls=19 input=9442768 output=175670 |
| 156 | ATTEMPT 3 calls_cap=115 |
| 157 | LAUNCH 2026-11-05T21:43:11Z claude/Engineering sequence=1 calls_before=0 |
| 158 | FINISH 2026-11-05T21:46:36Z claude/Engineering sequence=1 calls_after=16 error=<nil> |
| 159 | LAUNCH 2026-11-05T21:46:36Z claude/Engineering sequence=2 calls_before=16 |
| 160 | FINISH 2026-11-05T21:48:39Z claude/Engineering sequence=2 calls_after=26 error=probes: turn-10-ended (turn-10-failure.json): provider_uncertain |
| 161 | TOTAL calls=26 input=9493991 output=174463 |
| 162 | ATTEMPT 4 calls_cap=89 |
| 163 | LAUNCH 2026-11-05T21:49:58Z claude/Engineering sequence=1 calls_before=0 |
| 164 | FINISH 2026-11-05T21:50:59Z claude/Engineering sequence=1 calls_after=3 error=probes: turn-3-ended (turn-3-failure.json): provider_uncertain |
| 165 | TOTAL calls=3 input=2670128 output=56136 |
| 166 | ATTEMPT 5 calls_cap=86 |
| 167 | LAUNCH 2026-11-05T21:51:40Z claude/Review sequence=1 calls_before=0 |
| 168 | FINISH 2026-11-05T21:54:43Z claude/Review sequence=1 calls_after=14 error=<nil> |
| 169 | TUPLE CHECKS sequence=1 claude/Review 49/49 |
| 170 | LAUNCH 2026-11-05T21:54:43Z claude/Engineering sequence=2 calls_before=14 |
| 171 | FINISH 2026-11-05T21:55:38Z claude/Engineering sequence=2 calls_after=17 error=probes: turn-3-ended (turn-3-failure.json): provider_uncertain |
| 172 | TOTAL calls=17 input=8797550 output=169311 |
| 173 | ATTEMPT 6 calls_cap=69 |
| 174 | LAUNCH 2026-11-05T21:57:21Z claude/Engineering sequence=1 calls_before=0 |
| 175 | FINISH 2026-11-05T22:01:15Z claude/Engineering sequence=1 calls_after=16 error=<nil> |
| 176 | TUPLE CHECKS sequence=1 claude/Engineering 49/49 |
| 177 | LAUNCH 2026-11-05T22:01:16Z claude/Engineering sequence=2 calls_before=16 |
| 178 | FINISH 2026-11-05T22:05:02Z claude/Engineering sequence=2 calls_after=32 error=<nil> |
| 179 | TUPLE CHECKS sequence=2 claude/Engineering 49/49 |
| 180 | LAUNCH 2026-11-05T22:05:02Z claude/Engineering sequence=3 calls_before=32 |
| 181 | FINISH 2026-11-05T22:08:35Z claude/Engineering sequence=3 calls_after=48 error=<nil> |
| 182 | TUPLE CHECKS sequence=3 claude/Engineering 49/49 |
| 183 | CHECKS sequence=1 claude/Engineering 49/49 |
| 184 | CHECKS sequence=2 claude/Engineering 49/49 |
| 185 | CHECKS sequence=3 claude/Engineering 49/49 |
| 186 | TOTAL calls=48 input=19577847 output=352251 |
| 187 | ``` |
| 188 | |
| 189 | Proof binary SHA-256 values: |
| 190 | |
| 191 | - Review runner: `d6b772fe289528f27f91d4dd09d9782a6dec80ea819131deaaec6b41540a2395` |
| 192 | - Engineering runner: `31081ff4f5b32170cc6944916f1c0bcefc4eeed909eaf228daef383e6881bcf5` |
| 193 | - Tool proxy: `419a459827f86f8b9567ff28194f02c30885f038bdf2d30022d1ec012c8ede0c` |
| 194 | |
| 195 | ## Full local gate |
| 196 | |
| 197 | One full `make -k ci` invocation exited 0. All 30 test packages ran without cache |
| 198 | and passed; the test step took 6m18.578s. Build, vet, formatting, staticcheck, |
| 199 | govulncheck, gitleaks, size budgets, adapter and namespace tests, migration and |
| 200 | performance passed. No reachable vulnerabilities or secrets were reported. |
| 201 | The native-read exhaustion simulation passed in the full suite. |
| 202 | |
| 203 | Local timing warnings were reported for `internal/runner` (6m14.994s against |
| 204 | 5m30s), `internal/runner/provider` (22.43s against 15s), its Claude adapter |
| 205 | (53.165s against 45s), its Codex adapter (43.504s against 35s), and |
| 206 | `internal/tryequipo` (18.123s against 10s). Timing budgets were not raised. |
| 207 | Local timing warnings do not establish a passing timed remote CI run. |
| 208 | |
| 209 | ## Handback |
| 210 | |
| 211 | All task-owned proof binaries, observations, overlays, mutation logs and gate logs |
| 212 | were removed from on-disk `$TMPDIR`. Runtime directories contained no namespace |
| 213 | records or staged homes before removal. Neither account had a restoration backup |
| 214 | left. No task process, server or watcher remains running. Go caches stayed at |
| 215 | their defaults. No copy-review server was started. |
| 216 | |
| 217 | The user-created worktree is retained. The branch is committed and pushed to |
| 218 | `native-read-retry`. No merge, default-branch push, deployment, certification |
| 219 | bundle or execution enablement was performed. |
| 220 | |