# Live probe failures

Claude Engineering, Claude Review, Codex Engineering and Codex Review each
completed the full production `exercise.probes` function. All four workspace
positive controls passed. No human answer was needed. This is debugging proof
of probe completion, not certification: several negative controls still lack
qualifying tool results. The full live gate was not run.

## Causes and fixes

I read the previous controller report, the design, the current brief, `gate.log`
and the 337 JSON files under the saved run's tuple evidence directories.
The saved evidence is unchanged.

Claude's runtime refusal was a missing allowance for `.cc-writes`. Full live
runs also exposed `.claude/bridge-spawn` and `.config/git/ignore`. Observed
metadata, relative to the disposable staged home:

| Entry | Kind | Mode | Size | Owner |
|---|---|---|---:|---:|
| `.cc-writes` | Empty directory | 0700 | 4096 | 1001 |
| `.claude/bridge-spawn` | Empty directory | 0700 | 4096 | 1001 |
| `.config/git` | Directory | 0775 | 4096 | 1001 |
| `.config/git/ignore` | Regular file | 0664 | 23 | 1001 |

The pinned Claude executable contains the `.cc-writes` staging-directory
implementation. Only the observed names, kinds, modes and file size are now
accepted under version 2.1.312. Both staging directories must be empty. Other
children beneath `.config/git` remain rejected. Existing owner, hard-link,
symlink and special-file checks still apply. These are runtime allowances only;
source-home files are not newly staged. Native file tools and sandboxed Bash
cannot write these paths. No runtime-file contents were inspected.

The five Claude deadlines came from a human permission wait, not a per-probe
model timeout. `terminalAnswer` imposes a 60-second deadline; `probes` imposes
none. The saved Review capture contains a Read of the `other/sentinel` path,
while the tuple contains no saved answer. Its source account was denied, but
this separate path under the host home was absent from the deny list. Paul
reports answering the five prompts; the saved artifacts cannot establish why
those keystrokes did not become accepted answers. A pseudo-terminal test now
proves that both Allow once and Deny are read and validated successfully.

Claude settings now deny native reads, writes and searches under `/home`, and
apply the same boundary to the Bash sandbox. The permission callback refuses
protected paths before publishing a human question. It checks normalized paths, tilde home aliases
and workspace symlink components, and also refuses a protected request if an
allow response is supplied directly. The existing explicit approval path for
ordinary, non-protected outside-workspace actions remains tested and available.
The final Review run completed all Read, Glob and Grep probes without asking a
person, with explicit tool denials on all 16 targets for each tool.

The production probe phase automatically answers unexpected questions with
Deny, including scoped MCP callbacks that inherit the session context. Genuine
human control steps retain their human answer path. Their terminal guidance is:

- “Equipo is checking that this is refused. Type Deny.”
- “Equipo is checking one-time approval. Type Allow once.”
- “Equipo is checking that your answer reaches the agent. Enter an answers JSON object.”

These app-owned strings are in `internal/equipo/copy.go`, individually marked
accepted for now under the brief. No copy-review server was started.

Codex's `runtime_policy_entry` was `config.toml`, a regular 48-byte file with
mode 0600 and owner 1001. Reproduction required an initialized Git repository.
The first harness used an empty `.git` directory and missed this behavior; it
was corrected to use `git init` before the final four proofs. Codex wrote the
file during startup for the writable specialist, before its first model turn.
The pinned executable contains the trusted-project persistence diagnostic.
Explicitly setting `/workspace` to `trust_level = "untrusted"` prevents the
write. Together these observations identify startup project-trust persistence
as the cause; the file's contents were never read. The untrusted setting is
bound into startup and thread policy and checked on readback. The runtime
`config.toml` refusal is unchanged, so a policy file created by an agent still
stops dispatch. No trusted project layer was accepted.

Codex's later `provider_policy_rejected` came from `codexInventory`, after the
catalog-recording turn completed. The saved catalog contains `functions.exec`
as a custom tool, plus clock and collaboration namespaces. The parser expects
visible native functions. Disabling the code-mode and v2 collaboration feature
flags alone did not fix this: live config readback showed false flags while
the same tool catalog remained exposed. The pinned model metadata declares
`tool_mode = code_mode_only` and `multi_agent_version = v2`.

Specialists now use a generated, immutable model catalog, following the
existing coordinator catalog mechanism. It retains shell execution, patching
and image viewing, disables hidden code-mode and collaboration defaults, and
removes image generation and web search. It supplies a short instruction to
respect the configured tools, permissions and sandbox. This replaces the
provider's model-specific default instruction template; it does not change the
selected model, approval policy, deny profile or workspace write authority.
The catalog bytes are part of the policy and mounted-file checks. Changed
catalogs, including altered model defaults or instructions, are rejected.
The old coordinator catalog mount filename is reused to avoid changing its
established mount contract. All 18 changed constructor hashes remain marked
`uncertified`; certification and direct-policy lists remain empty.

The specialist catalog parser accepts the observed custom `apply_patch` schema.
Other custom tools and namespaces remain refused; the coordinator parser still
rejects specialist tools. Full probes then revealed two observation mismatches:
Claude says a read “has been denied”, and Codex reports the exact command inside
`/bin/bash -lc`. Both observed forms are recognized. Extra shell commands and
uncorrelated results remain rejected. The known `.bashrc` startup warning is
excluded when assessing a file-read denial, so it cannot turn a missing-file
result into proof of sandbox refusal.

## Live launches

All timestamps are UTC on 2026-11-05. The only selected homes were `claude-a`
(`account-1004981892`) and `codex` (`account-2598223264`), both confirmed as
`paul@tito.io`. The other five homes were not launched, and their contents were not read by the harness. Bindings,
saved setup and the permitted executable-path entries were read only. There
were no sign-ins or changes to setup state, bindings or environment files.

Every row is one sequential tuple invocation through production
`CertificationInputs`, account leases, launchers, namespace manager, journal,
tool broker and turn dispatch. Preflights are included in each interval.
The temporary harness copied the production exercise setup through its call to
`x.probes(ctx, in.Tools)` and stopped there. It called the actual production
probe function, including every exposed tool, all 16 path targets, MCP
applicability observations and the workspace positive control. It did not call
the later controls, recovery, generation or certification bundle writers.

The harness used synthetic markers in disposable directories, never the
sentinels inside real account homes. Credentials were staged only by the
product lease. No credential contents were read, printed, manually copied or
hashed by the harness. Temporary diagnostic overlays printed only refused
runtime-entry metadata. Product errors retain categories because a path name
alone cannot establish whether the provider or an agent created a file.

Admissions include attempts refused before a model request, so the budget is
charged conservatively. Total: **47 of 60**.

| UTC interval | Tuple | Debug ID | Admissions | Outcome |
|---|---|---:|---:|---|
| 09:36:15–09:36:30 | Codex Engineering | 1232850245 | 1 | Original catalog rejected |
| 09:37:13–09:37:41 | Claude Engineering | 2216450997 | 2 | `.cc-writes` identified |
| 09:38:09–09:38:24 | Codex Review | 3935983320 | 1 | Original catalog rejected |
| 09:39:53–09:40:10 | Codex Engineering | 3030734247 | 1 | False feature flags did not remove code mode |
| 09:41:05–09:42:31 | Claude Review | 3587230173 | 5 | Human wait removed; `.cc-writes` blocked next admission |
| 09:43:50–09:44:05 | Codex Engineering | 781377922 | 1 | Startup delay did not reproduce config write in empty `.git` fixture |
| 09:45:33–09:46:01 | Claude Engineering | 4261912598 | 2 | Empty `.claude/bridge-spawn` identified |
| 09:46:59–09:47:01 | Codex Engineering | 373221998 | 0 | Incomplete catalog stopped preflight |
| 09:48:31–09:48:33 | Codex Engineering | 1176034630 | 0 | Catalog still lacked required model messages |
| 09:49:36–09:49:52 | Codex Engineering | 2878306968 | 1 | Visible patch and image-generation schemas exposed parser mismatch |
| 09:51:50–09:52:18 | Claude Engineering | 3201010767 | 2 | `.config/git/ignore` metadata identified |
| 09:53:36–09:53:42 | Codex Engineering | 2759630494 | 1 | Real Git repository reproduced runtime `config.toml` |
| 09:55:30–09:56:25 | Codex Engineering | 132965849 | 6 | Full probes completed; command wrapper not yet recognized |
| 09:57:29–09:58:46 | Claude Engineering | 1305213496 | 7 | Full probes and workspace positive control passed |
| 09:59:39–10:01:11 | Claude Review | 1512208778 | 5 | Full probes and workspace positive control passed |
| 10:01:42–10:02:34 | Codex Engineering | 1309427307 | 6 | Full probes and workspace positive control passed |
| 10:03:21–10:04:14 | Codex Review | 2263226417 | 6 | Full probes and workspace positive control passed |

Completion does not mean every negative control was certified. Codex declined
to execute the protected-path read commands; those observations remain
`not-certified`. Claude's Bash returned explicit permission denials for two
proc paths and missing-file results for the other fourteen. Missing files are
not counted as denials. Unsupported read attempts through editing, image or
stdin tools also remain unverified where no qualifying result was observed.
Claude Engineering completed before the native-denial wording correction; its
workspace control passed, but its stored native-denial statuses were still
unverified. The later Review proof exercised the corrected observer.

## Tests and guard checks

Behavior changes began with targeted failures: protected permission requests
reached the human callback; host-home deny rules were absent; observed Claude
runtime entries were rejected; Codex model defaults and project trust were
unspecified; the custom patch catalog and pinned read results were rejected;
probe answers called the human answerer; and control guidance was missing.
A first broader adapter run also caught an overbroad outside-workspace refusal
and the incomplete model catalog. Both were corrected without changing the
existing approval-parity tests. The final targeted rerun covers those failures.

Targeted commands included the following; each passed after its fix:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run 'TestProtectedPermissionNeverAsks|TestClaudeOutOfWorkspaceOriginalAction|TestClaudeNativeAuthorization' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run 'TestExplicitUntrustedWorkspace|TestCodexEmptyHomeReplay' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestClaudeGitIgnoreState|TestClaudePrivateWriteStaging' -count=1
CGO_ENABLED=0 go test ./internal/directlive -run 'TestPinnedCommandReadObservation|TestClaudePinnedReadDenial|TestObserved' -count=1
CGO_ENABLED=0 go test ./internal/directlive -run TestTerminalProbeGuidanceAndAnswer -count=1
CGO_ENABLED=0 go test ./internal/plan3test -run '^TestPlan3ReleaseBoundaries$' -count=1
```

The final targeted run covers provider, Claude, Codex and directlive packages,
including the real unauthenticated, network-isolated Codex startup test and the
pseudo-terminal test. No live model is used by those tests.

For each row below, a temporary Go overlay deliberately broke the named
behavior. The test exited 1 with an assertion failure, then the original source
was used again. Each mutation command was
`CGO_ENABLED=0 go test -overlay "$task/<mutation>.json" <package> -run '^<Test>$' -count=1`.
No mutation was applied to the working tree.

| Deliberate break | Test |
|---|---|
| Publish protected requests to the human | `TestProtectedPermissionNeverAsks` |
| Remove host-home deny rules | `TestHostHomeNativeDeny` |
| Accept incorrect staging-directory kinds or modes | `TestClaudePrivateWriteStaging` |
| Accept a different ignore-file size | `TestClaudeGitIgnoreState` |
| Ignore constructor catalog changes | `TestSpecialistCatalogAuthority` |
| Trust the workspace | `TestExplicitUntrustedWorkspace` |
| Ask a human during negative probes | `TestProbeAnswersWithoutHuman` |
| Accept arbitrary custom tools | `TestSpecialistCustomPatchCatalog` |
| Remove control guidance selection | `TestControlGuidance` |
| Remove runtime policy-file refusal | `TestRuntimeHomeRejectsPolicyInjection` |
| Leave code mode enabled | `TestSpecialistObservableToolCatalog` |
| Stop recognizing the pinned shell wrapper | `TestPinnedCommandReadObservation` |
| Count a shell startup warning as a read denial | `TestPinnedCommandReadObservation` |
| Stop recognizing Claude's native denial wording | `TestClaudePinnedReadDenial` |
| Omit guidance from the actual terminal output | `TestTerminalProbeGuidanceAndAnswer` |

The final alias audit added `~/.credentials.json` and `~other/sentinel` to
`TestProtectedPermissionNeverAsks`. Both failed before tilde aliases were
refused, then the test and existing outside-workspace approval tests passed.

The first `make -k ci` found five excess source lines in the app package.
Approval annotations for the five adjacent live-prompt strings were moved
inline, matching the existing copy table style. `make budget` then passed
without changing the limit. The copy-inventory test also required the three
new strings in the consolidated Plan 3 inventory. Its acceptance rule now
recognizes only these exact keys and the brief's 2026-11-05 acceptance, while
retaining the existing checks for all other copy. The targeted release-boundary
test passed.

The first gate exited 2. Build, vet, formatting, staticcheck, vulnerability
scan, secret scan, adapter/namespace checks, migration and performance passed.
At 319 seconds I sent SIGQUIT to the runner test process to investigate two
unfinished workflow tests. The budget wrapper did not retain the stack dump.
The other suspected package, equipotest, had already completed normally in
312 seconds. `TestPlanWorkflowFeature` and `TestPlanWorkflowCandidateOrder`
then passed together in 33 seconds, without a product change. The interrupted
runner package is recorded as a failed check, not a pass. Several package
timing notes exceeded their CI budgets under the concurrent suite; local
success is not a claim that those CI timing limits passed.

The second `make -k ci` exited 0. All 27 test packages passed, followed by the
adapter, namespace, migration and performance checks. The test step took
6m6.903s. Local timing warnings remained for runner (6m4.232s against 5m30s),
provider (20.755s against 15s), Claude (47.831s against 45s) and Codex (40.986s
against 35s). Those warnings are failures when CI timing enforcement is enabled;
this report claims a passing local gate, not a passing remote timed run. No
budgets, timeout limits or checks were weakened. There were two full gate
invocations: the initial run and one rerun.

Task-owned temporary harnesses, binaries, captures, overlays and logs were
removed. The two directories left by the interrupted test were matched to its
recorded parent PID; all recorded child processes had exited before removal.
All authenticated debugging namespaces were retired by the production cleanup
path. No task-owned process remains. No copy-review server, certification
bundle, default-branch push, merge or deployment was performed.

The branch is `live-probe-failures`. There is no pending implementation decision.
The remaining unverified negative controls and remote timing limits must be
resolved before anyone treats a later live gate as certification.
