oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

Live open failures

The four rounds fix auth framing, config readback and the runtime-home conflicts reproduced with the pinned providers. Both providers now pass unauthenticated runtime replays for the specialist and coordinator. The branch is not live-certified; authenticated behavior remains unobserved.

Causes and confidence

| Symptom | Cause and evidence | Confidence and result | | --- | --- | --- | | Claude open ends with SIGKILL and runner.invalid | Claude 2.1.312 auth status --json writes one indented JSON document. The production capture loop treated its first line, {, as a complete frame. AppendFrame rejected it and capture called Contain, producing signal 9. See internal/runner/capture.go:241, :318, and the recorded empty-home output in internal/runner/testdata/claude-auth-status-2.1.312.json. | High for the framing defect and kill mechanism. The real authenticated output was not inspected. The production-capture regression reproduced the failure before the fix. | | Codex coordinator rejects config | Saved codex-Coordinator/capture.json, response equipo:3, retains tools.update_plan.enabled=false and tools.experimental_request_user_input.enabled=false in sessionFlags, but effective config.tools is exactly {"web_search":null}. Recursive subset comparison rejected those two absent fields. The proposed allow_login_shell and approvals_reviewer leads were not the mismatch: the former is an expanded default; the latter matches user. | High. The saved response fails on the base and passes with the narrow exception. | | Codex specialists report containment | The saved specialist captures are null, so they do not identify the failing check. A pinned 0.165.0 app-server in an empty, network-isolated home creates .tmp, goals_1.sqlite, installation_id, memories_1.sqlite, queue_1.sqlite, skills/.system, and tmp. The existing runtime-home validator rejects .tmp first, and independently forbids skills. Replaying the recorded names reproduces containment. | High for the startup-layout conflict; insufficient evidence to assign that exact cause to the authenticated failures. No speculative permission change. Added diagnostics identify lease, probe, or post-preflight runtime-policy failure. | | Every calibration reports policy rejection | All opens failed, so every saved certification has null usage. internal/directlive/driver.go:117 pools those empty samples and still invokes calibration at :131; internal/directlive/probes.go:149 calls DirectReservations, which rejects absent samples (internal/runner/provider/direct_certification.go:77). | High. Consequence of failed opens, not a second provider config failure. Unknown usage remains unknown; calibration is unchanged. | | Guide reports forge for a private-directory failure | Wizard.Run retained its last configuration-field phase while creating runner directories and writing bindings. privateDir omitted the offending path from policy errors. | High. The phase now names the runner root, and the directory error includes the actual path. |

The saved evidence was read only from ~/.local/share/equipo/try/run-2425960409/. Files under ~/.local/share/equipo/accounts/ were only listed and statted. No account file contents were read, copied, printed, or hashed. No existing Equipo state was changed. No sign-in, live gate, authenticated CLI call, merge, default-branch push, deployment, or copy-review server was run.

The coordinator cannot explain the earlier specialist failures by running first: runRoles schedules it last (internal/directlive/driver.go:54), and each exercise opens a fresh lease. Source-home SQLite files are not copied by AccountLease.stage; the runtime guard inspects the staged home, not the source account directory. These details rule out those two proposed paths, but do not identify the exact failed authenticated check.

Fix boundaries

internal/runner/capture_framing.go:16 selects document framing only for the exact launcher-generated auth command, Claude 2.1.312, and a matching manifest hash. It reads at most 1 MiB plus one byte, requires one JSON object, and rejects duplicate keys or trailing documents. Agent streams keep their existing line framing. Invalid output gets a fixed stdout_invalid_json reason without echoing output bytes.

internal/runner/provider/codex/config_readback.go:9 accepts only the recorded omission, only for a hashed coordinator manifest at 0.165.0. Both requested tools must be exactly disabled, and effective tools must be exactly the recorded {"web_search":null} object. The original settings are still checked against the full command-line layer. Other configured fields, approvals, config layers, origins, and the MCP server inventory remain checked. Live certification must still verify the available tools before a release. The fixture preserves response equipo:3; /home/paulca was replaced with /home/fixture. It contains no account response or credentials.

internal/runner/provider/accounts.go and runtime_home.go now attach fixed reason codes to containment failures. They never include file contents, arbitrary filenames, or underlying filesystem errors. Known Codex startup artifacts get fixed categories, such as runtime_codex_dot_tmp. This does not allow those artifacts or bypass identity, permissions, refresh, or policy checks. In particular, bundled skills are still rejected.

internal/tryequipo/run.go:90 sets the phase to the runner directory. internal/tryequipo/state.go:72 adds the actual failing directory to the existing error. For the reported case it names /home/paulca/.local/share/equipo-runner. Existing reviewed guide wording is reused; no new app copy or README prose was added.

Reproductions and verification

Both binary probes used the pinned executables under ~/.local/share/equipo/try/bin, with separate fresh empty homes under the on-disk $TMPDIR. SHA-256 checks matched both adapter pins: Claude 4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d and Codex c06a67fd8ac76508dc78bd99ce20c9f317b8d568beda59485f3f4134df9962d5. Bubblewrap used --unshare-all --die-with-parent --new-session, read-only /usr and binary mounts, /proc, /dev, a private /tmp, and only the new home and workspace as writable mounts. The environment was cleared, with HOME and the provider home set to /home/runner.

  • Claude command: /opt/claude --setting-sources '' auth status --json, with updater and nonessential traffic disabled. Exit 1, empty stderr, indented JSON with loggedIn:false. The stdout fixture is byte-for-byte.
  • Codex command: /opt/codex app-server --strict-config --listen stdio:// -c features.remote_control=false. Sent initialize with experimental API, initialized, then account/read with refreshToken:false. Account was null. No thread or turn was started. Only path names and file kinds were retained in internal/runner/provider/testdata/codex-empty-home-0.165.0.json. This minimal startup probe was not the full specialist policy.

All Go commands used CGO_ENABLED=0 GOTOOLCHAIN=go1.26.10, with default Go caches. Tests were written before implementation:

go test ./internal/runner ./internal/runner/provider/codex ./internal/tryequipo \
  -run 'TestDirectClaudeAuthDocument|TestDirectFrameDiagnosticNoContents|TestCodexLiveConfig|TestPrivateDirectoryFailureNamesPath' -count=1
go test ./internal/runner/provider -run '^TestAccountContainmentDiagnostics$' -count=1
go test ./internal/runner/provider -run '^TestAccountRecordedCodexRuntimeRefused$' -count=1

The first command failed on auth framing, opaque frame errors, the saved Codex config, and the missing directory path. All five diagnostic subtests in the second command failed before their fixes. The inventory replay in the third failed to identify the startup directory before the diagnostic change. All pass after implementation.

Guard mutations were applied separately and restored immediately. Each command below failed by assertion, not by a compile error:

| Temporary break | Command after go test | | --- | --- | | Accept any nonempty Claude version for document framing | ./internal/runner -run '^TestDirectClaudeAuthDocument/other-version$' -count=1 | | Remove the exact auth argv comparison | ./internal/runner -run '^TestDirectClaudeAuthDocument/(stream\|extra-arg)$' -count=1 | | Bypass config validation | ./internal/runner/provider/codex -run '^TestCodexLiveConfigStrict$' -count=1 | | Bypass runtime entry checks | ./internal/runner/provider -run '^TestAccount(ContainmentDiagnostics\|RecordedCodexRuntimeRefused)$' -count=1 | | Drop the failing path from the guide error | ./internal/tryequipo -run '^TestPrivateDirectoryFailureNamesPath$' -count=1 |

After restoring all guards, the targeted suite was run with:

go test ./internal/runner ./internal/runner/provider/... ./internal/tryequipo \
  -run 'TestAccountContainmentDiagnostics|TestAccountRecordedCodexRuntimeRefused|TestDirectClaudeAuthDocument|TestDirectFrameDiagnosticNoContents|TestCodexLiveConfig|TestPrivateDirectoryFailureNamesPath|TestDirectJournalFailureContains|TestCodexRecorded|TestPlanWorkflowProviderPoliciesLauncher|TestCoordinatorOnlyMCPServer|TestAccount' \
  -count=1

The first make -k ci completed with two causes of failure: the supplied brief lacked two reference-inventory entries, and the runner test package was 14 lines over its existing limit. The inventory issue also failed TestDirectDeadReferencesRepository. All other checks passed. The runner package took 350.106 seconds against its 330-second local advisory budget; the budget was not raised.

The frame diagnostic assertion now shares the existing malformed-frame case in TestDirectJournalFailureContains, preserving all coverage and bringing the runner tests to exactly 8,800 lines. The reference inventory includes exact, reasoned entries for the supplied brief and new artifacts.

The first full rerun of make -k ci passed (exit 0): reference inventory, build, vet, formatting, staticcheck, govulncheck, gitleaks, size budgets, all tests, adapter checks, namespace checks, migration check, and performance. The main suite ran 27 packages with no cached results and no failures. The runner package took 299.643 seconds, within its 330-second limit. The performance lane passed, including a 101 ms median cold boot against 500 ms. There were two full gate runs total, with no second rerun needed. EQUIPO_LIVE_DIRECT and EQUIPO_LIVE_CONFIG were unset.

The standalone frame-diagnostic test named in the initial failing command was consolidated into TestDirectJournalFailureContains/malformed for the size gate. After consolidation, go test ./internal/runner -run 'TestDirectClaudeAuthDocument|TestDirectJournalFailureContains' -count=1 also passed. Temporary guard mutations were all restored before either full gate.

Next authenticated observation

Only Paul may authorize and run a new live trial. Retain its tuple-completed.json, capture.json, and certification.json. The new Codex error prefix separates these cases:

  • codex_preflight_lease: source or runtime identity/credential validation failed before the probe. The fixed suffix identifies which check.
  • codex_preflight_probe: process/identity/config readback or post-probe account validation failed.
  • codex_open_runtime_policy with runtime_codex_plugins or runtime_policy_entry: the CLI created startup files that conflict with the strict runtime policy.

If an unexpected entry remains, capture only its path, type, mode, owner, link count, size, and mtime before the disposable runtime home is removed. Do not capture credential, SQLite, or skill contents. Any policy adjustment needs evidence that the particular files cannot introduce tools or settings; the empty-home observation alone does not establish that. No claim is made that the next authenticated run will pass.

Round 2

The pinned 0.165.0 binary supports skills.bundled.enabled=false. Both specialist and coordinator policies now pass that setting and features.memories=false through their hashed settings, argv and thread policy. Config readback must retain both values. The runtime validator still refuses skills, including skills/.system.

Switch evidence

The probes used only new credential-free homes under the on-disk $TMPDIR, with bwrap --unshare-all --die-with-parent --new-session, an empty environment, and the verified pinned binary. There was no egress relay, account-home mount, sign-in, thread, turn or live gate.

codex --help and codex app-server --help describe -c, --disable and --strict-config, but no dedicated bundled-skills option. The recorded round-one equipo:3 response has skills:null and memories:null; its coordinator feature map already has memories:false.

codex features list includes memories and skip_host_skill_discovery. A probe with the latter enabled still installed and listed all five bundled skills. That flag is insufficient. The pinned binary's config type names include SkillsConfig, bundled and BundledSkillsConfig, which led to the successful strict-config probe:

/opt/codex app-server --strict-config --listen stdio:// \
  -c features.remote_control=false \
  -c skills.bundled.enabled=false -c features.memories=false

The effective config and session layer both retain the requested values. skills/list with forceReload:true returns one workspace with empty skills and errors arrays. No skills directory is created. Direct responses from initialize, account/read, config/read and skills/list are recorded in internal/runner/provider/codex/testdata/disabled-skills-0.165.0.json. The account is null. Installation-specific notifications were omitted. The manifest fallback in D1 is therefore unnecessary.

Runtime state

For Codex 0.165.0 only, the staged-home validator now permits .tmp and tmp directories, installation_id, and the three named SQLite files with their -shm and -wal siblings. Entries must belong to the runner uid, with no setuid or setgid bits. State entries must be regular files; regular files with multiple hard links are refused. Nested scratch entries retain the policy-name and special-file checks. Other versions, providers and new top-level names do not gain these allowances. AccountLease.stage is unchanged and copies none of these source-home artifacts. A regression checks that source scratch and state stay out of the staged home.

Replay and remaining decision

TestCodexEmptyHomeReplay invokes the production Launcher.Open for implement and coordinate with the real pinned executable and code mode helper. Its test transport uses a network-isolated bubblewrap home and the existing frame-capture fixture. It skips clearly when the pinned installation is absent. The source is newly created, with an auth_mode:apikey marker and no key or other credential. An empty JSON object is unsuitable: Codex interprets it as incomplete ChatGPT auth and returns a protocol error requiring a plan type.

Both real opens now return codex_preflight_probe: provider_identity_mismatch from the missing account. Since this occurs before config readback, a second unauthenticated process checks the same policy through production readConfig. Only after every process exits does the test mark its synthetic lease ready, solely to run ValidatePolicy against the actual startup tree. No real process runs with that synthetic identity.

That final check found another artifact not retained by the graceful round-one probe: tmp/arg0-linux/codex-arg0*/apply_patch, applypatch and codex-linux-sandbox are symlinks to /opt/codex. They remain after the launcher's cancellation path. The current validator refuses them with runtime_special_entry. D2 says no escaping symlinks; these leave the runtime home but target the pinned binary inside the namespace. Permission to allow only those verified links is pending. The replay still fails its final runtime check, so this round is not complete.

Verification so far

All Go commands use CGO_ENABLED=0 GOTOOLCHAIN=go1.26.10 and default caches. Before implementation, this command failed for all twelve allowed state entries and for the missing disable settings in both roles:

go test ./internal/runner/provider ./internal/runner/provider/codex \
  -run 'TestAccountCodexRuntimeState|TestCodexRuntimeSettings' -count=1

Those tests now pass. The complete provider and Codex packages pass with the unresolved real replay excluded (11.135 seconds and 20.380 seconds):

go test ./internal/runner/provider ./internal/runner/provider/codex \
  -skip '^TestCodexEmptyHomeReplay$' -count=1

Each guard below was temporarily broken, observed failing by assertion, and restored before continuing. Commands use go test, the package shown, -run with the pattern shown, and -count=1.

| Temporary break | Package and test pattern | | --- | --- | | Ignore uid | ./internal/runner/provider -run '^TestAccountCodexRuntimeOwner' | | Ignore setuid/setgid | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/(nested-setuid\|setgid)$' | | Accept wrong entry kinds | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/(scratch-file\|state-directory)$' | | Accept hard links | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/hardlink$' | | Remove version restriction | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/other-version$' | | Remove provider restriction | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/other-provider$' | | Allow an unrecorded database name | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/other-state$' | | Accept policy-bearing names | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/(skills\|nested-policy)$' | | Accept special entries | ./internal/runner/provider -run '^TestAccountCodexRuntimeStateGuards/(symlink\|fifo)$' | | Ignore effective config mismatch | ./internal/runner/provider/codex -run '^TestCodexRuntimeSettings$' | | Enable memories in policy | ./internal/runner/provider/codex -run '^TestCodexRuntimeSettings$' | | Enable bundled skills | ./internal/runner/provider/codex -run '^TestCodexEmptyHomeReplay/implement$' |

The last mutation made the real replay fail specifically because bundled skills were installed. Size budgets pass unchanged. The reference inventory includes the two null JS-path fields in the new config fixture. The expanded targeted checks also passed for the runner and all provider packages, selecting the account, Codex, workflow-policy and coordinator MCP tests, with only the unresolved replay excluded.

After adding the production TMPDIR and LANG environment values to the replay transport, the specialist still failed on the leftover symlinks; the coordinator passed that run. Their survival depends on cancellation timing. The full make -k ci has not yet run in round 2. Nothing has been committed or pushed for this round. All temporary mutations are restored, and this session's scratch and processes have been removed.

Round 3

E1 resolves round 2's pending decision. Codex 0.165.0 may leave exactly tmp/arg0-linux/codex-arg0[A-Za-z0-9]{6}/apply_patch, applypatch, and codex-linux-sandbox as links to /opt/codex. This round observed suffixes gpkiVb and 5Tf46c in the failing specialist and coordinator replays. The validator uses Readlink, never resolves the target, and checks the link's uid and mode. The containing directories retain the round 2 metadata guards. The launcher independently verifies the pinned executable and its namespace mount. Other names, suffix lengths, characters, parents, targets, owners, providers and versions are refused. Source-home links are not staged. Both real Codex Opens now reach the missing-account error, and the resulting runtime trees pass whether cancellation leaves the links or removes them.

Claude observations and fix

TestClaudeEmptyHomeReplay checks the pinned 2.1.312 binary's SHA-256 and uses the production specialist and coordinator policy, Open, lease and no-input preflight probe. The test transport runs bubblewrap without any network or egress relay. It mounts only fresh test homes, a fresh workspace, read-only runtime files and generated policy. Its capture decodes JSON; the existing runner capture tests separately exercise production framing. The tool-proxy mount is an inert fixture: this is not a tool-call test.

Real Open stops at unauthenticated auth status, with exit 1 and no signal. It does not reach the full -p dependency probe. The replay therefore also invokes that exact production probe inside the lease's checking callback, with stdin closed and no prompt. It first substitutes a completely empty CLAUDE_CONFIG_DIR, then runs against the newly staged credential-free fixture. The full probe exits successfully in both roles. Only after every real process exits does a synthetic identity callback enable the final ValidatePolicy check. No provider process uses that synthetic identity.

The baseline probe created plugins/store/cc-plugin-agents-md_builtin-*.json despite disableAllHooks=true, an empty enabledPlugins object, and --disable-slash-commands. It also created .cache, .claude, .config, .npm, dev-mods and seed-admin, which were outside the runtime allowlist. These are reproduced startup conflicts, not guesses about authenticated sessions.

The pinned binary contains the enabledPlugins setting and the agents-md@builtin alias. Setting that entry to false prevents the plugin directory in both roles. The launcher now sets it, and the replay asserts the setting and the absence of plugins, skills, agents, commands, shell snapshots and session env scripts. --bare was considered and rejected: its embedded help says it disables OAuth reads. --safe-mode disables MCP servers while retaining built-in plugins, so it is also unsuitable.

Names, kinds and modes from the empty-home probes are recorded in internal/runner/provider/testdata/claude-empty-home-before-2.1.312.json and claude-empty-home-disabled-2.1.312.json. No runtime file contents were retained. The new 2.1.312 allowances are limited to:

  • The exact cache directories through .cache/claude-cli-nodejs/-workspace/mcp-logs-equipo, and timestamped JSONL log files there.
  • .npm, .npm/_logs, its recorded timestamped debug-log names, and the regular _update-notifier-last-checked marker.
  • The empty directories .claude, .claude/ssh, .config, .config/anthropic, dev-mods and seed-admin. No files or further directories under these paths are allowed.

Claude entries must belong to the runner uid, have no setuid/setgid bits, and be directories or regular files with one hard link. Symlinks and other special files remain refused. The new allowances do not apply to source homes, other providers or other versions. Policy names are refused at any depth, including plugins, skills, agents, commands, hooks, settings*.json, CLAUDE.md, MCP config, shell-snapshots and session-env. Fixed runtime_claude_* categories identify cache, config, npm, mod, seed, metadata, kind, policy, special-file and unexpected-entry failures without echoing arbitrary names or contents. The baseline fixture remains refused at its plugin directory; the disabled-plugin fixture passes.

Minor fixes and verification

Auth argv now comes from claude.AuthStatusArgs, which returns a fresh slice. The shared framing selector lives beside it in the Claude adapter and is called by runner capture. It checks both the binding and manifest provider versions, along with the existing manifest hash and exact argv. The manifest-version test covers a wrong version and an absent version. The Codex readback comment now identifies the live coordinator tool inventory as the real guard for the two flags missing from typed config.

All Go commands use CGO_ENABLED=0 GOTOOLCHAIN=go1.26.10 and default Go caches. New tests were run before their implementation:

go test ./internal/runner ./internal/runner/provider/codex \
  -run 'TestDirectClaudeAuthDocument|TestCodexEmptyHomeReplay' -count=1 -v
go test ./internal/runner/provider -run '^TestAccountCodexRuntimeLinks$' -count=1
go test ./internal/runner/provider/claude -run '^TestClaudeEmptyHomeReplay$' -count=1 -v
go test ./internal/runner/provider -run '^TestAccountClaude' -count=1

The first run failed on missing/wrong manifest versions and both Codex runtime trees. The link test rejected the three authorized links. The corrected Claude replay reached the full no-input probe and failed runtime validation; adding the plugin-setting assertion also failed before its implementation. Claude inventory and refusal tests failed before their runtime changes. The manifest-version cases now live in TestClaudeAuthManifestVersion, keeping the runner's existing 8,800-line test ceiling without removing coverage or raising budgets.

Each new guard was temporarily broken and restored. Every row below failed by assertion. Two initial mutation attempts had unused-variable compile errors; those were corrected and rerun before counting the guard as tested. Commands use go test, the package and -run pattern shown, and -count=1.

| Temporary break | Package and test pattern | | --- | --- | | Ignore the Codex link path pattern | ./internal/runner/provider -run '^TestAccountCodexRuntimeLinks$' | | Accept any nonempty link target | ./internal/runner/provider -run '^TestAccountCodexRuntimeLinks$' | | Ignore link uid | ./internal/runner/provider -run '^TestAccountCodexLinkOwner$' | | Ignore the link's provider version | ./internal/runner/provider -run '^TestAccountCodexLinkScope/version$' | | Ignore the link's provider | ./internal/runner/provider -run '^TestAccountCodexLinkScope/provider$' | | Accept unrecorded Claude paths | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards$' | | Ignore the Claude version pin | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards/.cache/version$' | | Apply Claude allowances to other providers | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards/.cache/provider$' | | Skip Claude metadata checks | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards$' | | Accept the wrong Claude entry kind | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards/.cache/file$' | | Skip policy-name checks | ./internal/runner/provider -run '^TestAccountClaudeRuntimeGuards$' | | Ignore the auth manifest version | ./internal/runner/provider/claude -run '^TestClaudeAuthManifestVersion$' | | Remove the built-in plugin disable setting | ./internal/runner/provider/claude -run '^TestClaudeEmptyHomeReplay/Engineering$' |

The complete provider, Claude and Codex suites passed before the final consolidated targeted run. With all mutations restored, that run is:

go test ./internal/runner ./internal/runner/provider/... ./internal/tryequipo \
  -run 'TestAccount|TestCodex|TestClaude|TestDirectClaudeAuthDocument|TestDirectJournalFailureContains|TestPlanWorkflowProviderPoliciesLauncher|TestCoordinatorOnlyMCPServer|TestPrivateDirectoryFailureNamesPath' \
  -count=1

Size budgets and the exact reference inventory pass without raising any limits. Full CI and final cleanup results follow below.

The first full make -k ci finished with two failing inventory tests: TestMergedPlanPolicyInventory and TestPlanWorkflowReleasePolicyInventory. All 18 pending constructor hashes were stale after the changed Claude and Codex settings. internal/release/manifest.json now contains the hashes reported by those tests. Every status remains uncertified; no certificate, live evidence or execution authority was added. Both tests and TestPlanWorkflowReleaseRejectsOldCertificate pass after that update.

All other first-run gates passed. The main suite ran 25 packages without cached results; only the two inventory packages failed. Local advisory time limits were exceeded by the runner (375.642 seconds against 330), provider (16.352 against 15), Claude (47.680 against 45) and Codex (39.659 against 35). No limit was raised. The performance lane passed with a 116 ms median cold boot against 500 ms. The first full rerun follows the inventory correction.

The first full rerun of make -k ci passed, exit 0. There were two full gate runs in this round; no second rerun was needed. All 27 test packages ran without cached results or failures. The adapter, namespace, migration and performance lanes also passed. Median cold boot was 132 ms against 500 ms.

The successful local gate still reported advisory timing overruns: application integration 341.948 seconds against 300, runner 524.230 against 330, provider 17.414 against 15, Claude 54.636 against 45, and Codex 41.347 against 35. These timing limits are enforced when the CI environment is set; this local success does not establish that those limits will pass there. No budget was relaxed and no additional full suite was run.

There are no pending controller decisions for this round. Account-home contents and existing Equipo state were untouched. No sign-in, authenticated model call, live gate, merge, default-branch push, deployment or copy-review server was run. Both live-test environment flags were unset. Test processes have exited; session scratch is removed at handoff.

Round 4

Specialists now disable Codex goals, plugins, remote plugins and tool suggestions, using the same feature flags as the coordinator. Both real 0.165.0 empty-home replays pass the production config/read comparison under --strict-config. Tests also change each effective flag to true and require refusal. The specialist live inventory rejects goal, plugin and suggestion tools, including functions inside the functions namespace. This assertion is tested with synthetic catalog frames; no live gate or authenticated turn was run.

Neither real replay leaves .tmp/plugins.sha or .tmp/plugins in its staged home. That observation is limited to network-isolated startup; it cannot prove what an authenticated startup would attempt. The runtime validator now refuses .tmp/plugins* outright. Known paths have fixed categories: runtime_codex_plugins, runtime_codex_dot_tmp, runtime_codex_tmp, runtime_codex_arg0, runtime_codex_skills, runtime_codex_installation_id, runtime_codex_goals, runtime_codex_memories and runtime_codex_queue. Unknown names and file contents never appear in these diagnostics. The earlier references to the category for .tmp have been corrected.

For Claude 2.1.312, only these three root-level policy-limit files are newly accepted: policy-limits.json, policy-limits.json.signature.json and policy-limits.json.signature-iat.json. They must be regular files with the runner uid, no setuid/setgid bits and one hard link. remote-settings.json remains refused, with runtime_claude_remote_settings. Tests cover wrong kinds, links, mode, provider and version, plus source-home exclusion and a second BeginTurn.

Claude settings disable both agents-md@builtin and plugin-authoring@builtin, and set autoMemoryEnabled and autoDreamEnabled false. Both role replays assert the constructed settings and read back the actual settings mount before starting the pinned CLI. The production no-input startup probe still requires an empty plugin inventory. Claude does not provide the Codex effective-config RPC here; the settings-file readback is not a claim of such an RPC. Separate policy refusal tests reject attempts to enable each new setting.

Bash state fallback and binary evidence

The pinned Claude executable was inspected directly, without executing it against an account home. Its embedded source has no compatible setting or environment switch that disables both shell snapshots and session env files. CLAUDE_CODE_DONT_INHERIT_ENV changes the snapshot subprocess environment; it does not suppress the files. The snapshot function's Kv() check refuses program starts in diskless sessions, so it is not a switch for this Bash-capable launcher. The brief's fallback applies.

The embedded snapshot constructor, ikn, chooses bash, zsh or sh, then builds snapshot-${shell}-${Date.now()}-${random}.sh. Random text is Math.random().toString(36).substring(2,8), at most six lowercase base-36 characters, possibly empty for zero. Its optional session suffix calls k_n, whose guard d_n() is hardcoded false in this binary. The accepted pattern therefore has a 13-digit millisecond timestamp, zero to six base-36 characters and no session suffix. Other shells, uppercase text, long random text, suffixes and nested directories are refused.

The embedded YNt constructor writes a lowercased hook name and index. Its reader's exact vG pattern is ^(setup|sessionstart|cwdchanged|filechanged)-hook-(\d+)\.sh$. These regular files are accepted only directly under session-env/<uuid>/. The UUID directory and both root directories must be directories. Unrecognized names, extra depth, special files, hard links, foreign owners and unsafe modes remain refused.

This exception relies on the staged home being denied to native file operations and Bash. The comment in runtime_claude.go cites the deny construction at claude/launcher.go:139-149; existing launch-policy tests check those paths. Synthetic provider-written state survives EndTurn and passes the next BeginTurn. The unauthenticated replay does not exercise an authenticated Bash call, so the filename evidence is the pinned binary and the second-turn evidence is the account-lease regression.

The provider version strings now have shared constants, with the adapter Version constants referring to them. This avoids an import cycle between account validation and its adapters. Codex arg0 shim paths accept only the already-authorized symlinks; regular files and directories at those paths are refused. Seventeen changed constructor hashes were refreshed in the release manifest. All 18 policies remain uncertified; the Codex coordinator's hash did not change.

Verification

All Go commands use CGO_ENABLED=0 GOTOOLCHAIN=go1.26.10, default Go caches and on-disk $TMPDIR. New assertions were added before implementation:

go test ./internal/runner/provider ./internal/runner/provider/codex \
  ./internal/runner/provider/claude ./internal/directlive \
  -run 'TestAccountClaudeAuthenticatedState|TestAccountStartupRefusals|TestAccountCodexRuntimeLinks|TestCodexRuntimeSettings|TestClaudeEmptyHomeReplay|TestSpecialistNoGoalOrPluginTools' \
  -count=1

The first command had a missing test brace in the provider package; that was corrected and the provider subset rerun before implementation. The assertions failed for missing specialist flags, missing Claude settings, exposed goal/plugin tools, accepted regular arg0 shims, rejected startup files on a second turn and missing fixed refusal categories. An initial hardlink fixture linked the credential itself, causing EndTurn to refuse it before the runtime check; the fixture now links a separate test file.

After implementation, one old recording expected a skills refusal, but its curated-plugin cache is now refused first. Its assertion now names that observed failure. The two policy-inventory tests identified the 17 changed hashes before the manifest update. The targeted run then passed:

go test ./internal/runner/provider ./internal/runner/provider/codex \
  ./internal/runner/provider/claude ./internal/directlive ./internal/release \
  -run 'TestAccount|TestCodexRuntime|TestCodexEmptyHomeReplay|TestClaudeEmptyHomeReplay|TestClaudeLaunchPolicy|TestClaudePolicyRefusals|TestSpecialist|TestMergedPlanPolicyInventory|TestPlanWorkflowReleasePolicyInventory|TestPlanWorkflowReleaseRejectsOldCertificate' \
  -count=1

Every mutation below failed by assertion and was restored immediately. Commands are go test <package> -run '<pattern>' -count=1.

| Temporary break | Package | Pattern | | --- | --- | --- | | Enable each of goals, plugins, remoteplugin and toolsuggest separately | ./internal/runner/provider/codex | ^TestCodexRuntimeSettings/implement$ | | Accept effective config without comparison | ./internal/runner/provider/codex | ^TestCodexRuntimeSettings/implement$ | | Enable plugin-authoring, memory or dreaming separately | ./internal/runner/provider/claude | ^TestClaudeLaunchPolicy/Engineering$ | | Accept goal/plugin/suggestion tools | ./internal/directlive | ^TestSpecialistNoGoalOrPluginTools$ | | Permit the curated plugin cache | ./internal/runner/provider | ^TestAccountStartupRefusals/codex/.tmp/plugins.sha$ | | Accept regular arg0 files or directories | ./internal/runner/provider | ^TestAccountCodexRuntimeLinks/(regular\|directory)$ | | Accept remote settings | ./internal/runner/provider | ^TestAccountStartupRefusals/claude/remote-settings.json$ | | Ignore Claude version | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/version$ | | Apply Claude allowances to other providers | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/provider$ | | Ignore uid | ./internal/runner/provider | ^TestAccountCodexRuntimeOwner$ | | Ignore setuid/setgid | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/(setuid\|setgid)$ | | Ignore hardlink count | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/hardlink$ | | Permit symlinks and FIFOs | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/(link\|fifo)$ | | Ignore file kind | ./internal/runner/provider | ^TestAccountClaudeAuthenticatedState/policy-limits.json/directory$ | | Ignore snapshot filename pattern | ./internal/runner/provider | ^TestAccountStartupRefusals/claude/shell-snapshots/evil.sh$ | | Ignore session-env filename pattern | ./internal/runner/provider | ^TestAccountStartupRefusals/claude/session-env/12345678-1234-4123-8123-123456789abc/evil.sh$ | | Drop fixed Codex categories | ./internal/runner/provider | ^TestAccountStartupRefusals/codex$ |

With all 22 mutations restored, the targeted command above passed again. The exact reference inventory and size budgets passed without raising any limits. One full make -k ci then passed, exit 0; no rerun was needed. All 27 main-suite test packages ran without cached results or failures. Build, vet, formatting, staticcheck, govulncheck, gitleaks, adapter, namespace, migration and performance checks passed. Median cold boot was 103 ms against the 500 ms limit.

The local gate reported two advisory timing overruns: provider tests took 20.195 seconds against 15, and Codex tests took 37.638 seconds against 35. These limits become failures in the CI environment, so this local result does not establish that CI timing will pass. No budget was changed. The runner took 326.395 seconds, within its 330-second limit.

Account-home contents and existing Equipo state were untouched. No sign-in, authenticated provider call, live gate, merge, default-branch push, deployment or copy-review server was run. Both live-test flags were unset for the full gate. Test subprocesses exited and session scratch was removed before commit and branch push.