oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1# Approval controls, 2026-11-05
2
3Claude Engineering and Codex Engineering completed the production controls
4phase with all six requested checks passing. Ordinary workspace file actions
5completed without a person. I played the person through the guide's actual
6terminal reader, as authorized. These were focused debugging runs, not
7certification. No full live gate or certification bundle was produced.
8
9## Causes and changes
10
11Claude Review's saved `turn-8.json` and `turn-9.json` in
12`~/.local/share/equipo/try/run-582068017/evidence/claude-Review/` contain
13successful Bash results for both control markers. Their permission metadata
14says `decision: accept`, `source: config`. The deny marker actually printed.
15`autoAllowBashIfSandboxed: true` admitted these commands before the permission
16callback. Neither the protected-path refusal nor workspace file auto-approval
17swallowed these requests: those paths only handle file tools.
18
19The Claude policy now has exact ask rules for `printf equipo-cert-allow` and
20`printf equipo-cert-deny`. Ordinary sandboxed commands retain automatic approval.
21The sandbox remains required and unsandboxed commands remain forbidden.
22Workspace file requests still pass through the protected-path check and are
23answered automatically inside the profile. Protected files and workspace
24symlinks retain their refusals. The nine changed Claude constructor hashes
25were updated in the release inventory; every entry remains uncertified.
26
27For every saved Codex specialist, the only answer artifact is from turn 7.
28There is no answer artifact for the turn 9 native control. The Engineering
29capture ends after request ID 1 asks for approval of the allow marker, followed
30by moderation and usage notifications. There is no completed command after it.
31`terminalAnswer` printed “Allow once is recorded as approved beyond profile.”
32before it read any input. That message was not evidence that Paul's answer
33had been read or delivered. The timeout occurred while collecting terminal
34input, before the adapter could send a response.
35
36The existing adapter response is accepted by Codex 0.165.0. A live run of the
37unchanged adapter completed the allow and deny controls. There was no reason
38to broaden its protocol or accept policy amendments.
39
40The terminal reader accepted only LF. A pseudo-terminal with canonical mode
41and CR-to-LF conversion disabled reproduced the timeout after `Allow once`
42and Return arrived as CR. The reader now accepts CR and LF, and ignores the
43empty LF left between successive CRLF answers. Tests exercise allow, deny and
44structured question answers consecutively with each line ending. The premature
45approval message was removed; no new app-owned text was added.
46
47The saved run does not contain terminal flags or input bytes. It establishes
48the failing stage, but cannot establish that Paul's terminal sent CR. That
49historical detail remains unproven. I asked which terminal he used and whether
50he pressed Enter. The CR defect is reproduced and fixed independently of that
51answer; a live Codex run with raw CR input now passes all controls.
52
53## Live proof and launch log
54
55Only `claude-a` (`account-1004981892`) and `codex`
56(`account-2598223264`), both bound to `paul@tito.io`, were launched. The harness
57read the permitted bindings and run configuration and used the pinned
58executables. It did not inspect credential contents, sign in, use another
59account, or modify state.json, bindings.json or runner.env. Only production
60account leases staged credentials.
61
62The temporary harness copied the production exercise setup through `open`,
63then called `exercise.turn` for ordinary workspace operations and the actual
64`exercise.controls`. It used production policies, launchers, journal, tool
65broker, namespace manager and `terminalAnswer`. It did not call the bundle or
66certificate writers. The disposable workspace was an initialized Git repository.
67A pseudo-terminal feeder typed exactly `Allow once`, `Deny`, and
68`{"answers":{"answer":"ordinary"}}` when the guide requested them.
69
70All times below are UTC on 2026-11-05. Launches were sequential. Model-turn
71admissions total **15 of 40**; preflights did not dispatch model turns.
72
73| Start–end | Tuple / debug directory | Turns | Outcome |
74| --- | --- | ---: | --- |
75| 14:01:53–14:01:53 | Codex Engineering / codex-before | 0 | Harness scratch mode was 0755; containment refused before account open. Corrected to 0700. |
76| 14:02:12–14:04:43 | Codex Engineering / codex-before | 4 | Existing wire response completed allow and deny. My delayed question response exceeded 60 seconds. Reusing the earlier evidence directory also caused exclusive capture creation to fail at cleanup. Later runs used fresh directories and immediate terminal feeding. |
77| 14:06:06–14:06:34 | Claude Engineering / claude-after | 4 | Workspace turn and all six controls passed. |
78| 14:06:59–14:07:39 | Codex Engineering / codex-after-raw | 3 | Raw CR allow succeeded. Terminal echo joined the next guidance line to the echoed answer, breaking the temporary feeder. It stopped the worker. Production ResumeInterrupted verified and retired the orphaned namespace before the next launch. |
79| 14:08:33–14:09:45 | Codex Engineering / codex-after-raw2 | 4 | Raw CR input with terminal echo disabled: workspace turn and all six controls passed. |
80
81An earlier harness invocation could not read its missing config
82because its generator used the wrong JSON field case. It launched no provider
83and admitted no model turn.
84
85| Check | Claude Engineering | Codex Engineering |
86| --- | --- | --- |
87| person-native-approval | pass | pass |
88| equipo-broker-approval | pass | pass |
89| real-question-answer | pass | pass |
90| stale-broker-denied | pass | pass |
91| invalid-broker-denied | pass | pass |
92| policy-escalation-denied | pass | pass |
93
94Both successful runs recorded one native allow, one native deny and one person
95answer. Claude recorded one broker validation; Codex recorded two, including
96its provider MCP elicitation. Stale and invalid broker submissions were refused.
97The attempt to respond `acceptForSession` was refused before the one-time
98answer was delivered. Both provider tool results contained the exact structured
99answer `{"answers":{"answer":"ordinary"}}`.
100
101Claude's preceding workspace turn successfully used Write, Read, Edit, Glob,
102Grep and Bash. Codex used apply_patch to create and edit the file and shell
103commands to read and search it. Neither turn produced an answer artifact or
104terminal question. Each file ended with `ordinary-updated`.
105
106The six control observations had identical payload digests within each run:
107Claude `5423dbd49284999b26028bd16bd3d7ba7ba9e873914c62a958059bafd39ce10b`;
108Codex `eba2d47fa9cdc375d7949d893fd4a42e5e7c7bd4cc34841ca7962210caba9f0f`.
109These identify the debug observations, not certified policies.
110
111## Verification
112
113Before implementation, these commands failed on the stated regressions:
114
115```
116CGO_ENABLED=0 go test ./internal/directlive -run '^TestControlTerminalRawReturn$' -count=1
117CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestNativeControlCommandsRequireApproval$' -count=1
118```
119
120The first failed with `context deadline exceeded` after raw Return. The second
121reported that both native controls could be auto-approved. After the fixes,
122the restored tests pass. Targeted tests also covered the existing canonical
123terminal reader, probe auto-denial, control guidance, protected native paths,
124all five ordinary workspace file callbacks, scoped Claude responses, Codex
125one-time approvals, persistent-approval refusal and release inventory authority.
126
127Six temporary source overlays deliberately broke the guards. Each command
128used `CGO_ENABLED=0 go test -overlay <overlay> <package> -run '^<test>$' -count=1`
129and returned exit 1 with a test assertion failure:
130
131| Deliberate break | Failing test |
132| --- | --- |
133| Accept only LF | TestControlTerminalRawReturn |
134| Treat the LF following CR as an empty answer | TestControlTerminalRawReturn |
135| Restore the premature approval message | TestControlTerminalRawReturn |
136| Remove the two exact Bash ask rules | TestNativeControlCommandsRequireApproval |
137| Disable workspace auto-approval | TestWorkspaceFileControlsStayAutomatic |
138| Skip the first protected-path refusal | TestProtectedPermissionNeverAsks |
139
140No mutation was retained. The release inventory test also failed on all nine
141old Claude hashes before their update, and passed afterward.
142
143The first `make -k ci` exited 2. Its full test step ran uncached in
1445m21.01s and failed only `TestReviewExpiredAccountSignsIn/claude` and
145`TestReviewUnconfirmedExpiredAccountSignsIn/claude` with
146`provider_account_busy`. These tests use disposable fake account homes.
147The two tests passed together on a focused rerun (0.676s), and the complete
148`internal/tryequipo` package then passed uncached (4.200s). No account code was
149changed to hide the failure.
150
151Every other lane passed, including migration and performance. Cold boot was
15294ms against 500ms; all screens stayed within 150ms. Timing warnings were
153provider 21.258s against 15s, Claude 47.807s against 45s and Codex 39.919s
154against 35s. Local timing warnings would fail with CI timing enforcement.
155
156The first permitted full rerun exited 0. All 28 packages ran uncached and
157passed in 5m7.397s. Build, vet, formatting, static analysis, vulnerability and
158secret scans, reference checks, size budgets, provider and namespace checks,
159migration and performance all passed. Cold boot was 91ms; all screens stayed
160within 150ms. Local timing warnings remained: provider 20.548s against 15s,
161Claude 46.426s against 45s and Codex 38.700s against 35s. No passing remote
162gate is claimed. There were exactly two full `make -k ci` invocations.
163
164## Delivery
165
166No README prose or copy.go entries were changed. No copy-review server,
167merge, default-branch push or deployment was performed. The delivery branch
168is `certification-gaps`. Task-created harnesses, overlays, captures, logs and
169scratch were removed after their results were recorded here. The interrupted
170worker's extra scratch was identified by its journal attempt key before
171removal; the recorded worker and namespace PIDs were absent. No task process
172or server remains.
173