oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

Approval controls, 2026-11-05

Claude Engineering and Codex Engineering completed the production controls phase with all six requested checks passing. Ordinary workspace file actions completed without a person. I played the person through the guide's actual terminal reader, as authorized. These were focused debugging runs, not certification. No full live gate or certification bundle was produced.

Causes and changes

Claude Review's saved turn-8.json and turn-9.json in ~/.local/share/equipo/try/run-582068017/evidence/claude-Review/ contain successful Bash results for both control markers. Their permission metadata says decision: accept, source: config. The deny marker actually printed. autoAllowBashIfSandboxed: true admitted these commands before the permission callback. Neither the protected-path refusal nor workspace file auto-approval swallowed these requests: those paths only handle file tools.

The Claude policy now has exact ask rules for printf equipo-cert-allow and printf equipo-cert-deny. Ordinary sandboxed commands retain automatic approval. The sandbox remains required and unsandboxed commands remain forbidden. Workspace file requests still pass through the protected-path check and are answered automatically inside the profile. Protected files and workspace symlinks retain their refusals. The nine changed Claude constructor hashes were updated in the release inventory; every entry remains uncertified.

For every saved Codex specialist, the only answer artifact is from turn 7. There is no answer artifact for the turn 9 native control. The Engineering capture ends after request ID 1 asks for approval of the allow marker, followed by moderation and usage notifications. There is no completed command after it. terminalAnswer printed “Allow once is recorded as approved beyond profile.” before it read any input. That message was not evidence that Paul's answer had been read or delivered. The timeout occurred while collecting terminal input, before the adapter could send a response.

The existing adapter response is accepted by Codex 0.165.0. A live run of the unchanged adapter completed the allow and deny controls. There was no reason to broaden its protocol or accept policy amendments.

The terminal reader accepted only LF. A pseudo-terminal with canonical mode and CR-to-LF conversion disabled reproduced the timeout after Allow once and Return arrived as CR. The reader now accepts CR and LF, and ignores the empty LF left between successive CRLF answers. Tests exercise allow, deny and structured question answers consecutively with each line ending. The premature approval message was removed; no new app-owned text was added.

The saved run does not contain terminal flags or input bytes. It establishes the failing stage, but cannot establish that Paul's terminal sent CR. That historical detail remains unproven. I asked which terminal he used and whether he pressed Enter. The CR defect is reproduced and fixed independently of that answer; a live Codex run with raw CR input now passes all controls.

Live proof and launch log

Only claude-a (account-1004981892) and codex (account-2598223264), both bound to paul@tito.io, were launched. The harness read the permitted bindings and run configuration and used the pinned executables. It did not inspect credential contents, sign in, use another account, or modify state.json, bindings.json or runner.env. Only production account leases staged credentials.

The temporary harness copied the production exercise setup through open, then called exercise.turn for ordinary workspace operations and the actual exercise.controls. It used production policies, launchers, journal, tool broker, namespace manager and terminalAnswer. It did not call the bundle or certificate writers. The disposable workspace was an initialized Git repository. A pseudo-terminal feeder typed exactly Allow once, Deny, and {"answers":{"answer":"ordinary"}} when the guide requested them.

All times below are UTC on 2026-11-05. Launches were sequential. Model-turn admissions total 15 of 40; preflights did not dispatch model turns.

| Start–end | Tuple / debug directory | Turns | Outcome | | --- | --- | ---: | --- | | 14:01:53–14:01:53 | Codex Engineering / codex-before | 0 | Harness scratch mode was 0755; containment refused before account open. Corrected to 0700. | | 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. | | 14:06:06–14:06:34 | Claude Engineering / claude-after | 4 | Workspace turn and all six controls passed. | | 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. | | 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. |

An earlier harness invocation could not read its missing config because its generator used the wrong JSON field case. It launched no provider and admitted no model turn.

| Check | Claude Engineering | Codex Engineering | | --- | --- | --- | | person-native-approval | pass | pass | | equipo-broker-approval | pass | pass | | real-question-answer | pass | pass | | stale-broker-denied | pass | pass | | invalid-broker-denied | pass | pass | | policy-escalation-denied | pass | pass |

Both successful runs recorded one native allow, one native deny and one person answer. Claude recorded one broker validation; Codex recorded two, including its provider MCP elicitation. Stale and invalid broker submissions were refused. The attempt to respond acceptForSession was refused before the one-time answer was delivered. Both provider tool results contained the exact structured answer {"answers":{"answer":"ordinary"}}.

Claude's preceding workspace turn successfully used Write, Read, Edit, Glob, Grep and Bash. Codex used apply_patch to create and edit the file and shell commands to read and search it. Neither turn produced an answer artifact or terminal question. Each file ended with ordinary-updated.

The six control observations had identical payload digests within each run: Claude 5423dbd49284999b26028bd16bd3d7ba7ba9e873914c62a958059bafd39ce10b; Codex eba2d47fa9cdc375d7949d893fd4a42e5e7c7bd4cc34841ca7962210caba9f0f. These identify the debug observations, not certified policies.

Verification

Before implementation, these commands failed on the stated regressions:

CGO_ENABLED=0 go test ./internal/directlive -run '^TestControlTerminalRawReturn$' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestNativeControlCommandsRequireApproval$' -count=1

The first failed with context deadline exceeded after raw Return. The second reported that both native controls could be auto-approved. After the fixes, the restored tests pass. Targeted tests also covered the existing canonical terminal reader, probe auto-denial, control guidance, protected native paths, all five ordinary workspace file callbacks, scoped Claude responses, Codex one-time approvals, persistent-approval refusal and release inventory authority.

Six temporary source overlays deliberately broke the guards. Each command used CGO_ENABLED=0 go test -overlay <overlay> <package> -run '^<test>$' -count=1 and returned exit 1 with a test assertion failure:

| Deliberate break | Failing test | | --- | --- | | Accept only LF | TestControlTerminalRawReturn | | Treat the LF following CR as an empty answer | TestControlTerminalRawReturn | | Restore the premature approval message | TestControlTerminalRawReturn | | Remove the two exact Bash ask rules | TestNativeControlCommandsRequireApproval | | Disable workspace auto-approval | TestWorkspaceFileControlsStayAutomatic | | Skip the first protected-path refusal | TestProtectedPermissionNeverAsks |

No mutation was retained. The release inventory test also failed on all nine old Claude hashes before their update, and passed afterward.

The first make -k ci exited 2. Its full test step ran uncached in 5m21.01s and failed only TestReviewExpiredAccountSignsIn/claude and TestReviewUnconfirmedExpiredAccountSignsIn/claude with provider_account_busy. These tests use disposable fake account homes. The two tests passed together on a focused rerun (0.676s), and the complete internal/tryequipo package then passed uncached (4.200s). No account code was changed to hide the failure.

Every other lane passed, including migration and performance. Cold boot was 94ms against 500ms; all screens stayed within 150ms. Timing warnings were provider 21.258s against 15s, Claude 47.807s against 45s and Codex 39.919s against 35s. Local timing warnings would fail with CI timing enforcement.

The first permitted full rerun exited 0. All 28 packages ran uncached and passed in 5m7.397s. Build, vet, formatting, static analysis, vulnerability and secret scans, reference checks, size budgets, provider and namespace checks, migration and performance all passed. Cold boot was 91ms; all screens stayed within 150ms. Local timing warnings remained: provider 20.548s against 15s, Claude 46.426s against 45s and Codex 38.700s against 35s. No passing remote gate is claimed. There were exactly two full make -k ci invocations.

Delivery

No README prose or copy.go entries were changed. No copy-review server, merge, default-branch push or deployment was performed. The delivery branch is certification-gaps. Task-created harnesses, overlays, captures, logs and scratch were removed after their results were recorded here. The interrupted worker's extra scratch was identified by its journal attempt key before removal; the recorded worker and namespace PIDs were absent. No task process or server remains.