oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

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