# Plan 2b controller report

## Task 1: Direct provider contract and historical compatibility

Status: DONE. Work stayed on `plan-2b` in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### Built

Declared the exact Selection, Binding, Identity, Mount, Policy, Launch, Session, Turn, Answer, Event, Exit, Process, ProcessHost and Launcher contracts from the brief. Declared Task 7's Frame, Capture and CaptureFactory signatures exactly as supplied. Provider types are independent declarations with only standard-library imports. The package documents that Open sends no prompt, Events attaches before StartTurn, constructors require ProcessHost and CaptureFactory, and adapters decode captured frames rather than raw process stdout.

Added direct contract version/provider validation, observed-session correlation against selection and binding, and turn-event correlation. Session IDs, attempt keys, turn IDs and admission IDs remain separate fields. These checks confer no execution authority.

Extended isolation tuples, connection reports and the release manifest with LauncherVersion, BwrapVersion and PolicyVersion. Direct tuple identity includes all six values: provider, provider version, launcher revision, bubblewrap version, policy schema and effective policy hash. Existing full-struct comparisons retain every new identity field. ContainmentProof has an optional Version field, with zero preserving historical unversioned proofs.

Historical Paseo, trial and unconfined JSON remains readable. ValidForDirectLaunch rejects historical tuples, mixed identities, tainted snapshots, incomplete tuples, unsupported provider names and invalid hashes. This is a structural check; actual dispatch also needs release certification. Core schema version remains 7. Scope, Handle, Usage, TokenUsage and action classifications are unchanged. No runtime cutover or certified tuple was fabricated.

### Files

- `internal/runner/provider/types.go`: exact contracts and correlation checks.
- `internal/runner/provider/errors.go`: typed internal error codes.
- `internal/runner/provider/types_test.go`: contract signatures, version/provider refusals and identity tests.
- `internal/runner/provider/budget_test.go`: TestMain copied from the existing runner/paseo budget pattern.
- `internal/equipo/team/git_evidence.go`: additive tuple fields, historical validation and direct validity check.
- `internal/equipo/team/direct_history_test.go`: fixed historical JSON fixtures, tuple identity, wire and manifest tests.
- `internal/runnerproto/types.go`: DirectVersion and report fields.
- `internal/runnerproto/containment.go`: additive proof version.
- `internal/release/manifest.go`: additive direct release metadata.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this task's evidence.

Full local report: `/home/paulca/amadan.net/oficina/equipo-plan-2b/.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-1-report.md`. The repository ignores `.superpowers/`; the local report is saved there, while the controller report is committed.

### Interpretations

1. Version 2 is additive: `provider.Version = 2`, exposed as `runnerproto.DirectVersion`. Existing `runnerproto.Version = 1` remains for Paseo and enrolment. Inspection found explicit version-1 requests and validations throughout the current runtime and instance. Changing that constant alone would break the runtime before Task 9. Future direct producers and consumers must use DirectVersion; the current instance does not yet accept direct requests.
2. Unsupported versions in the contract test means protocol versions. Task 1 does not pin production provider, bubblewrap or policy versions. Values in test fixtures are examples, not release certification.
3. `IsolationSnapshot.Valid()` remains the historical evidence reader. `ValidForDirectLaunch()` is a separate structural prerequisite, so retaining readable trial/unconfined history does not grant direct eligibility. Actual verified-tuple matching and removal of active legacy exception paths remain later tasks.
4. The brief lists containment.go and manifest.go without giving new containment-proof internals or release pins. Added only optional proof versioning and the named direct version fields. Task 2 defines namespace exit proofs; later release work sets real pins after certification.
5. Session.Validate and Event.ValidateIdentity provide the identity checks required by the tests without adding fields to the prescribed interfaces. ValidateIdentity applies to turn-bound events; adapters must validate session-level events through their session path. Contract validation and correlation are separate from authorization and account/policy preflight.

### RED

Tests and the budget TestMain were written before implementation. Command, from the repository root:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/equipo/team -run 'TestDirect|TestHistoricalIsolation' -count=1
```

Exit 1. Output excerpts:

```text
internal/runner/provider/types_test.go:15:13: undefined: ValidateContract
internal/runner/provider/types_test.go:26:12: undefined: Launch
FAIL amadan.net/oficina/equipo/internal/runner/provider [build failed]
internal/equipo/team/direct_history_test.go:15:76: unknown field LauncherVersion in struct literal of type team.IsolationTuple
internal/equipo/team/direct_history_test.go:29:11: got.ValidForDirectLaunch undefined
FAIL amadan.net/oficina/equipo/internal/equipo/team [build failed]
```

### GREEN

Repeated the exact RED command after implementation, after strengthening the fixtures and identity assertions, and after all mutations were restored. Every green run exited 0. Final output:

```text
ok  amadan.net/oficina/equipo/internal/runner/provider  0.002s
ok  amadan.net/oficina/equipo/internal/equipo/team      0.004s
```

Targeted compatibility command:

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/paseo ./internal/equipo/team -run '^(TestRunnerServiceLifecycleWiring|TestRunnerServiceVersions|TestRunnerJournalCrashBoundaries|TestPaseoAdapterContract|TestTrialEvidenceAndPublication|TestEvidenceObservedIsolation)$' -count=1
```

Exit 0:

```text
ok  amadan.net/oficina/equipo/internal/runner        0.988s
ok  amadan.net/oficina/equipo/internal/runner/paseo  0.004s
ok  amadan.net/oficina/equipo/internal/equipo/team   0.785s
```

`git diff --check` exited 0. `gofmt -l` on all nine Go files returned no paths. Dependency inspection used:

```sh
CGO_ENABLED=0 go list -f '{{join .Imports "\n"}}' ./internal/runner/provider
```

Output: `context`, `encoding/json`, `io`, `time`. No runner, runnerproto or Paseo import, and no aliases to Paseo types.

### Mutations

36 distinct mutations compiled, failed the named test with assertions, and passed after restoration. Each mutation was applied alone to the implementation, then restored from its exact pre-mutation contents in a finally block. The same targeted command was run for the mutation and its restoration. No compiler failure was counted as proof. The history-ineligible mutation uses `_ = v` to remain compilable.

One initial mutation survived: removing the selection-provider comparison was still covered by the binding-provider comparison when only the observed session changed. Added assertions that change the selection independently of the binding. The repeated mutation then failed as required. That initial run and its restoration both exited 0; it was not counted among the 36 proved mutations.

1. `version` in `internal/runner/provider/types.go`.

   Change: `if version != Version {` to `if false {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectContractRejectsUnknownVersion$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectContractRejectsUnknownVersion (0.00s)
   types_test.go:21: version -1 accepted: <nil>
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

2. `provider` in `internal/runner/provider/types.go`.

   Change: `if name != "claude" && name != "codex" {` to `if false {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectContractRejectsUnknownVersion$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectContractRejectsUnknownVersion (0.00s)
   types_test.go:26: provider "" accepted: <nil>
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

3. `session-required` in `internal/runner/provider/types.go`.

   Change: `s.ID == "" || (l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)` to `(l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:70: empty new session accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

4. `resume-identity` in `internal/runner/provider/types.go`.

   Change: `s.ID == "" || (l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)` to `s.ID == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:51: changed session identity accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

5. `identity-required` in `internal/runner/provider/types.go`.

   Change: `pair[0] == "" || pair[0] != pair[1]` to `pair[0] != pair[1]`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:73: empty matching launch identities accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

6. `identity-match` in `internal/runner/provider/types.go`.

   Change: `pair[0] == "" || pair[0] != pair[1]` to `pair[0] == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:51: changed session identity accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

7. `identity-l.AttemptKey` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.AttemptKey, l.AttemptKey},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:47: missing session identity accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.001s`.

8. `identity-l.Selection.Provider` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.Provider, l.Selection.Provider},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:59: changed selection Provider accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

9. `identity-l.Selection.AccountID` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.AccountID, l.Selection.AccountID},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:59: changed selection AccountID accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.001s`.

10. `identity-l.Selection.Model` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.Model, l.Selection.Model},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:47: missing session identity accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

11. `identity-l.Selection.Family` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.Family, l.Selection.Family},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:47: missing session identity accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

12. `identity-l.Binding.Provider` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.Provider, l.Binding.Provider},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:66: changed binding Provider accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

13. `identity-l.Binding.AccountID` in `internal/runner/provider/types.go`.

   Change: `\t\t{s.AccountID, l.Binding.AccountID},\n` to `(delete this row)`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:66: changed binding AccountID accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

14. `event-e.SessionID == ""` in `internal/runner/provider/types.go`.

   Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:83: empty matching session identities accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

15. `event-e.SessionID != s.ID` in `internal/runner/provider/types.go`.

   Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.TurnID == "" || e.TurnID != t.ID`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:100: mismatched event accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

16. `event-e.TurnID == ""` in `internal/runner/provider/types.go`.

   Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.SessionID != s.ID || e.TurnID != t.ID`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:86: empty matching turn identities accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

17. `event-e.TurnID != t.ID` in `internal/runner/provider/types.go`.

   Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s)
   types_test.go:100: mismatched event accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s`.

18. `history-readable` in `internal/equipo/team/git_evidence.go`.

   Change: `return v.Provider != "" && v.ProviderVersion != "" && v.PaseoVersion != "" && lowerHex(v.IsolationConfigHash, 64)` to `return false`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s)
   direct_history_test.go:42: history lost or rejected: {"status":"confined","runner_tainted":false,"acknowledgement_ids":null,"observed_tuples":[{"provider":"codex","provider_version":"0.165.0","paseo_version":"0.14.0","isolation_config_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}]}
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

19. `history-excludes-LauncherVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.BwrapVersion == "" && v.PolicyVersion == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s)
   direct_history_test.go:62: partial direct identity accepted as history: LauncherVersion
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

20. `history-excludes-BwrapVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.LauncherVersion == "" && v.PolicyVersion == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s)
   direct_history_test.go:62: partial direct identity accepted as history: BwrapVersion
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

21. `history-excludes-PolicyVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.LauncherVersion == "" && v.BwrapVersion == ""`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s)
   direct_history_test.go:62: partial direct identity accepted as history: PolicyVersion
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

22. `snapshot-valid` in `internal/equipo/team/git_evidence.go`.

   Change: `if !p.valid() || p.RunnerTainted {` to `if p.RunnerTainted {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:confined RunnerTainted:false AcknowledgementIDs:[] ObservedTuples:[]}
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

23. `snapshot-untainted` in `internal/equipo/team/git_evidence.go`.

   Change: `if !p.valid() || p.RunnerTainted {` to `if !p.valid() {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:unconfined RunnerTainted:true AcknowledgementIDs:[ack] ObservedTuples:[{Provider:codex ProviderVersion:0.165.0 PaseoVersion: LauncherVersion:revision BwrapVersion:0.11.0 PolicyVersion:1 IsolationConfigHash:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}]}
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

24. `history-ineligible` in `internal/equipo/team/git_evidence.go`.

   Change: `if !v.direct() {` to `_ = v\n\t\tif false {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s)
   direct_history_test.go:53: historical evidence granted direct eligibility
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

25. `direct-provider` in `internal/equipo/team/git_evidence.go`.

   Change: `(v.Provider == "claude" || v.Provider == "codex") &&` to `true &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.004s`.

26. `direct-ProviderVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.ProviderVersion != "" && v.PaseoVersion == "" &&` to `true && v.PaseoVersion == "" &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

27. `direct-LauncherVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.LauncherVersion != "" &&` to `true &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.010s`.

28. `direct-BwrapVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.BwrapVersion != "" &&` to `true &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.013s`.

29. `direct-PolicyVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `v.PolicyVersion != "" &&` to `true &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

30. `direct-no-paseo` in `internal/equipo/team/git_evidence.go`.

   Change: `v.PaseoVersion == "" &&` to `true &&`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:confined RunnerTainted:false AcknowledgementIDs:[] ObservedTuples:[{Provider:codex ProviderVersion:0.165.0 PaseoVersion:0.14.0 LauncherVersion:revision BwrapVersion:0.11.0 PolicyVersion:1 IsolationConfigHash:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}]}
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

31. `direct-hash` in `internal/equipo/team/git_evidence.go`.

   Change: `\t\tlowerHex(v.IsolationConfigHash, 64)\n` to `\t\ttrue\n`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:82: incomplete tuple accepted
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

32. `tuple-identity-LauncherVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n        for _, candidate := range have.ObservedTuples {\n            candidate.LauncherVersion = ""\n            v.LauncherVersion = ""\n            if candidate == v { found = true }\n        }\n        if !found {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:95: tuple identity change ignored
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

33. `tuple-identity-BwrapVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n        for _, candidate := range have.ObservedTuples {\n            candidate.BwrapVersion = ""\n            v.BwrapVersion = ""\n            if candidate == v { found = true }\n        }\n        if !found {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:95: tuple identity change ignored
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.003s`.

34. `tuple-identity-PolicyVersion` in `internal/equipo/team/git_evidence.go`.

   Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n        for _, candidate := range have.ObservedTuples {\n            candidate.PolicyVersion = ""\n            v.PolicyVersion = ""\n            if candidate == v { found = true }\n        }\n        if !found {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectIsolationTupleIdentity (0.00s)
   direct_history_test.go:95: tuple identity change ignored
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.003s`.

35. `wire-version` in `internal/runnerproto/types.go`.

   Change: `DirectVersion       = provider.Version` to `DirectVersion       = provider.Version + 1`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectWireAndManifest$ -count=1`.

   RED exit 1; assertion excerpt:

   ```text
   --- FAIL: TestDirectWireAndManifest (0.00s)
   direct_history_test.go:127: direct or historical wire version changed
   ```

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.003s`.

36. `snapshot-tuple-validation` in `internal/equipo/team/git_evidence.go`.

   Change: `if !v.valid() {` to `_ = v` followed by `if false {`.

   Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`.

   RED exit 1: `--- FAIL: TestDirectIsolationTupleIdentity`; assertion: `incomplete tuple accepted`.

   Restored exit 0: `ok  	amadan.net/oficina/equipo/internal/equipo/team	0.002s`.

### User-facing strings

No UI strings, README prose or copy.go entries were added. New internal diagnostic codes are `provider_version_unsupported`, `provider_unsupported` and `provider_identity_mismatch`. They have no new user-facing route in this task. If later surfaced, map them to individually pending copy.go entries for review. No copy-review skill, server, model prompt or helper agent was used.

### Concerns and limits

No unresolved Task 1 failure. Direct runtime wiring, provider adapters, namespace proof enforcement, policy/account preflight, durable capture implementation and release certification remain later tasks. The old runtime and historical readers remain in place by design. No full suite or make ci was run, as instructed; only the named targeted tests ran. No provider login, enrolment, credential home or live provider run occurred.

All mutation source changes were restored. The task's scratch evidence directory is removed after saving these reports. No server or background process was left running. No push, merge or deployment was performed.

## Task 2: Owned bubblewrap PID namespaces

Status: DONE_WITH_CONCERNS. Implementation and local capability gates pass. The controller must push `plan-2b` and inspect the Amadan worker result; this run did not push, select a remote worker or claim remote CI evidence.

### What changed

`containment.Manager` implements `provider.ProcessHost` and the requested New, Start, Stop and Recover APIs. Each launch gets a random local ID, a durable pre-fork intent, then a durable init identity before the helper receives its release byte. Records and exit proofs are written with file and directory fsync under the private scratch root. The runner holds the exact init pidfd, signals that descriptor and waits for its kernel exit before publishing proof. The bubblewrap launcher is also reaped. Scratch paths are tied to the durable ID; recovery removes only that attempt after proven exit or a changed boot. Wait is acknowledged after live cleanup finishes, without a later duplicate deletion. CLI exit, an empty process group and an empty cgroup are never containment proof.

The lifecycle goroutine locks its OS thread before starting bubblewrap and keeps it alive until reaping. Bubblewrap uses explicit user, PID, IPC, UTS, cgroup and network isolation, `--die-with-parent`, `--new-session`, `--as-pid-1`, and dropped capabilities. The Go helper stays PID 1, reaps orphans and starts the harness as a child. Parent death, caller-thread exit, detached children and a successful cgroup move are covered by real Linux tests. Only test-owned processes are signalled.

The parent uses bubblewrap status FD 3 to learn the helper's host PID. FD 4 is the release barrier; FD 5 carries helper readiness and the final harness outcome. Namespace identity, start ticks and PID-1 topology are checked before release. The helper marks itself nondumpable before starting the harness, preventing the harness from reopening its protocol descriptors through `/proc/1/fd`. It marks all nonstandard descriptors close-on-exec. Stdin, stdout and stderr belong to the Process caller, so buffered output remains readable after Wait. No provider process or credential home was created in this run; all harnesses were local test commands.

Mount sources use `openat2` without symlink or magic-link resolution and bubblewrap FD bind arguments. A live rename/symlink replacement test proves the pinned workspace remains the source. Workspace/state overlap, broad homes, unapproved targets, writable runtime imports, imported sockets and unsafe environment entries are rejected. The namespace receives fresh proc/dev, an empty run/sys, a private on-disk tmp, a private runtime home, and explicit read-only runtime files. Host loopback and inherited host sockets are unavailable. Nested user namespaces remain available for provider sandboxes.

Recovery matches a complete durable record and reacquires only that exact PID/start/namespace identity. It rejects non-init processes, mismatched records, stale start ticks, missing handshakes and missing/corrupt/unverified exit proofs. A new boot proves absence with unknown outcome (`Code=-1`, `Signal=0`). An incomplete same-boot intent or a vanished PID without a saved exit remains blocked; there is no broad same-user process scan.

### Files

- `internal/runner/containment/linux.go`: Manager, lifecycle, startup protocol, owned Process and PID-1 helper.
- `internal/runner/containment/mounts.go`: pinned sources, mounts, private homes and environment allowlist.
- `internal/runner/containment/recovery.go`: durable records/proofs, exact identity and recovery.
- `internal/runner/containment/{linux,mounts,recovery,budget}_test.go`: Linux tests, fixtures and budget TestMain.
- `cmd/equipo-runner/{main,namespace}.go`: internal command dispatch to the shared helper implementation.
- `internal/runnerproto/containment.go`: additive NamespaceExit and NamespaceContainmentProof wire types, without a containment import.
- `Makefile`: exact `bubblewrap 0.11.0` prerequisite, required `runner-namespace-test`, and inclusion in `ci`.
- `.amadan/ci.d/36-runner-namespaces`: executable delegate to `make runner-namespace-test`.
- `internal/equipotest/foundation_test.go`: require the new target in both CI routes.
- This controller section and the requested task report.

### Interpretations and integration notes

1. The controller's explicit no-push instruction supersedes the brief's push/remote-worker wording. Local worker-capability proof is complete; the Amadan result belongs to the controller's subsequent push.
2. The brief explicitly requests full `make ci` on a capable runner. The first full gate passed. Final review then found a crash-cleanup gap: randomly named scratch could not be recovered from the durable ID. After adding failing tests and fixing that production behavior, the targeted gate and three new mutations passed. The full gate passed again after that fix. A final run explicitly exported `CGO_ENABLED=0` for every Make recipe after noticing that the generic test/tool recipes otherwise inherit the host default of 1. All targeted tests and the Make build target already used 0. These repeats addressed a production change and the build-environment requirement.
3. `Config.ScratchRoot` must already be an absolute, symlink-free directory with mode 0700. New grants no execution authority. An optional staged `Binding.Home` must be a mode-0700 direct child of `ScratchRoot/homes`; otherwise each attempt gets an empty private home. These fixture directories contained no credentials. Adapters and Task 4 remain responsible for producing the reviewed manifest and staged account content; this task records `Policy.Hash` as ManifestHash.
4. `/etc` uses a temporary overlay, masks `/etc/claude-code` and `/etc/codex`, then remounts all three read-only. This permits controlled replacement paths even when the host has no `/etc/codex`. The local namespace suite exercises this capability too. `/usr` is the explicit read-only system runtime tree, consistent with the nesting evidence.
5. The command wrapper lives in `cmd/equipo-runner/namespace.go`; the reusable implementation is `containment.NamespaceMain`, so tests execute the same helper code. Task 3 should extend this helper, retain its nondumpable state, and add only the explicit relay socket capability. General socket imports remain rejected. Task 9 can use the same Manager.
6. The helper is bubblewrap's child, not the runner's direct child. Production waits on the init pidfd's readable exit state, then reaps bubblewrap. The capability test separately exercises `waitid(P_PIDFD, WEXITED|WNOWAIT)` on a direct test-owned child. The host user can still read the nondumpable helper's namespace identity in this user-namespace layout, so recovery requires the kernel namespace check; no permission-error fallback was retained.
7. `.amadan/ci` and `.amadan/ci.d/35-runner-adapter-test` already delegate to Make targets and needed no changes. Existing node/npm prerequisite and adapter commands remain unchanged.
8. A namespace-member fixture must enumerate the tasks of each owned process, since Go may fork on a non-main thread. Tests enumerate only descendants of the exact init they started. The orphan-reaping fixture waits for PID-file content, avoiding an empty-file creation race. Neither test scans unrelated host processes.

### Local capability evidence

Host: DOCS-T1. User: paulca, UID 1001. Go: go1.26.10 linux/amd64. `/usr/bin/bwrap --version` returned exactly `bubblewrap 0.11.0`.

Read-only observations:

```sh
id
/usr/bin/bwrap --version
cat /proc/self/cgroup
ls -ld /sys/fs/cgroup/user.slice/user-$(id -u).slice/user@$(id -u).service
cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/user@$(id -u).service/cgroup.subtree_control
```

```text
uid=1001(paulca) gid=1001(paulca)
bubblewrap 0.11.0
0::/user.slice/user-1001.slice/user@1001.service/app.slice/paseo.service
drwxr-xr-x ... paulca paulca ... user@1001.service
cpu memory pids
```

`TestNamespacePidfdCapability` successfully opened a pidfd, sent SIGKILL through it and called `waitid(P_PIDFD, WEXITED|WNOWAIT)` on a sleep process the test started. All launch tests ran real user/PID/network namespaces. `TestNamespaceNestedUserNamespace` also ran a second bubblewrap inside the first namespace.

`TestNamespaceCgroupMoveKeepsMembership` created its own parent and two leaf cgroups under the delegated user service, moved an owned harness PID into both leaves through `cgroup.procs`, verified `/proc/<pid>/cgroup` after each write, and compared its PID namespace before/after. It then killed namespace init and observed that exact harness pidfd exit. The test removed its cgroups. This is a successful move, separate from `TestNamespaceHidesHostControl` denying an in-namespace cgroup write. Missing delegation or syscall capability causes a clear test failure; no test skips.

Required job/step: `.amadan/ci.d/36-runner-namespaces`, delegating to `make runner-namespace-test`. Local runner: DOCS-T1. Remote Amadan job and runner: not yet observed; controller action required after push. Every Linux launch test needs userns and pidfd support; the move test additionally needs the writable delegated subtree.

### RED evidence

All commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b` on `plan-2b`, with default Go caches and on-disk TMPDIR. The initial test-only implementation failed before Manager or the helper existed:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner/containment [amadan.net/oficina/equipo/internal/runner/containment.test]
internal/runner/containment/linux_test.go:23:30: undefined: Manager
internal/runner/containment/linux_test.go:31:12: undefined: New
internal/runner/containment/linux_test.go:31:16: undefined: Config
internal/runner/containment/linux_test.go:35:29: undefined: Manager
internal/runner/containment/linux_test.go:44:29: undefined: Manager
internal/runner/containment/linux_test.go:44:57: undefined: Record
internal/runner/containment/linux_test.go:47:8: undefined: Record
internal/runner/containment/linux_test.go:138:7: undefined: New
internal/runner/containment/linux_test.go:138:11: undefined: Config
internal/runner/containment/budget_test.go:10:63: undefined: NamespaceMain
internal/runner/containment/linux_test.go:138:11: too many errors
FAIL    amadan.net/oficina/equipo/internal/runner/containment [build failed]
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(RecoveryCleansScratch|ScratchIdentity)$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryCleansScratch (0.13s)
    --- FAIL: TestNamespaceRecoveryCleansScratch/saved-exit (0.06s)
        recovery_test.go:241: recovery left owned scratch: <nil>
    --- FAIL: TestNamespaceRecoveryCleansScratch/new-boot (0.07s)
        recovery_test.go:241: recovery left owned scratch: <nil>
--- FAIL: TestNamespaceScratchIdentity (0.06s)
    recovery_test.go:250: scratch not bound to durable ID: stat /home/paulca/t/e2b/TestNamespaceScratchIdentity2348921627/001/state/attempt-f53aceebc32ab1e29f126e8cf49ba187/tmp: no such file or directory
FAIL
rastrillo-budget/v1 ran 188ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.190s
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(Startup|Intent|Stop|ExitStatus|Socket|Nested|RecoverySaved)' -count=1
```

```text
--- FAIL: TestNamespaceStartupFailure (0.02s)
    linux_test.go:391: missing readiness accepted
--- FAIL: TestNamespaceExitStatus (0.05s)
    linux_test.go:447: numeric exit fabricated signal: {Code:-1 Signal:9 ObservedAt:2026-11-03 09:45:40.096810068 +0000 UTC}
--- FAIL: TestNamespaceRecoverySavedExit (0.05s)
    recovery_test.go:116: durable exit recovery: {Record:{ID:f88b63fd621d06c2f2bea8900b79c8ff AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532762] ManifestHash:fixture-policy HostPID:4033652 StartTicks:855685293} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 242ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.244s
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(RecoveryRejects|PinnedMount|RejectsBroad)' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryRejectsNonInit (0.05s)
    recovery_test.go:130: host process accepted as namespace init
FAIL
rastrillo-budget/v1 ran 96ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.098s
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceHelperProtocolPrivate$' -count=1
```

```text
--- FAIL: TestNamespaceHelperProtocolPrivate (0.06s)
    linux_test.go:509: helper pipe exposed: {Code:1 Signal:0 ObservedAt:2026-11-03 09:50:23.095916577 +0000 UTC} <nil>
FAIL
rastrillo-budget/v1 ran 58ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.060s
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceMountEscape/.*environment' -count=1
```

```text
--- FAIL: TestNamespaceMountEscape (0.09s)
    --- FAIL: TestNamespaceMountEscape/home_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
    --- FAIL: TestNamespaceMountEscape/tmp_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 86ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.088s
FAIL
```

Additional red command (exit 1):

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestCIGateSteps$' -count=1
```

```text
--- FAIL: TestCIGateSteps (0.01s)
    foundation_test.go:185: make ci targets = [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test runner-namespace-test staticcheck test vet], want [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test staticcheck test vet]
    foundation_test.go:221: CI step targets = [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test runner-namespace-test staticcheck test vet], want [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test staticcheck test vet]
FAIL
rastrillo-budget/v1 ran 15ms
FAIL    amadan.net/oficina/equipo/internal/equipotest   0.062s
FAIL
```

The crash-cleanup regression exposed an attempt directory name that was absent from the durable identity. Binding the directory name to the ID made recovery cleanup possible. A follow-up failure caught a duplicate deferred deletion after Wait; live cleanup now finishes before acknowledgment and does not run twice. The startup regression exposed a typed-nil Process on error; Start now returns a nil interface and waits for failed-start cleanup. Exit tests exposed the incorrect inference that numeric exit 137 means SIGKILL; a private helper outcome frame now preserves the distinction. The protocol test exposed same-UID reopening of `/proc/1/fd/5`; the helper now becomes nondumpable before starting the harness. Environment path checks now reject traversal as well as enforcing their namespace roots.

### GREEN evidence

The final targeted namespace command runs 26 top-level namespace tests, plus their subtests, without skips:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1 -v
```

```text
=== RUN   TestNamespaceKillsDetachedChildren
--- PASS: TestNamespaceKillsDetachedChildren (0.07s)
=== RUN   TestNamespaceCgroupMoveKeepsMembership
--- PASS: TestNamespaceCgroupMoveKeepsMembership (0.12s)
=== RUN   TestNamespaceHidesHostControl
--- PASS: TestNamespaceHidesHostControl (0.07s)
=== RUN   TestNamespacePidfdCapability
--- PASS: TestNamespacePidfdCapability (0.00s)
=== RUN   TestNamespaceParentDeath
--- PASS: TestNamespaceParentDeath (0.05s)
=== RUN   TestNamespaceStartingThreadExit
--- PASS: TestNamespaceStartingThreadExit (0.10s)
=== RUN   TestNamespaceStartupFailure
--- PASS: TestNamespaceStartupFailure (0.02s)
=== RUN   TestNamespaceIntentBeforeFork
--- PASS: TestNamespaceIntentBeforeFork (0.04s)
=== RUN   TestNamespaceStopWaitsForExit
--- PASS: TestNamespaceStopWaitsForExit (0.07s)
=== RUN   TestNamespaceExitStatus
--- PASS: TestNamespaceExitStatus (0.12s)
=== RUN   TestNamespaceSocketImport
--- PASS: TestNamespaceSocketImport (0.00s)
=== RUN   TestNamespaceNestedUserNamespace
--- PASS: TestNamespaceNestedUserNamespace (0.07s)
=== RUN   TestNamespaceHelperProtocolPrivate
--- PASS: TestNamespaceHelperProtocolPrivate (0.07s)
=== RUN   TestNamespaceHelperBarrier
--- PASS: TestNamespaceHelperBarrier (0.04s)
=== RUN   TestNamespaceReapsOrphans
--- PASS: TestNamespaceReapsOrphans (0.11s)
=== RUN   TestNamespaceCancellation
--- PASS: TestNamespaceCancellation (0.06s)
=== RUN   TestNamespacePinnedMountSwap
--- PASS: TestNamespacePinnedMountSwap (0.04s)
=== RUN   TestNamespaceRejectsBroadWorkspace
--- PASS: TestNamespaceRejectsBroadWorkspace (0.00s)
=== RUN   TestNamespaceRecoveryIdentity
=== RUN   TestNamespaceRecoveryIdentity/reused_pid
=== RUN   TestNamespaceRecoveryIdentity/changed_manifest
=== RUN   TestNamespaceRecoveryIdentity/changed_namespace
=== RUN   TestNamespaceRecoveryIdentity/missing_handshake
=== RUN   TestNamespaceRecoveryIdentity/unavailable_proof
--- PASS: TestNamespaceRecoveryIdentity (0.06s)
    --- PASS: TestNamespaceRecoveryIdentity/reused_pid (0.00s)
    --- PASS: TestNamespaceRecoveryIdentity/changed_manifest (0.00s)
    --- PASS: TestNamespaceRecoveryIdentity/changed_namespace (0.00s)
    --- PASS: TestNamespaceRecoveryIdentity/missing_handshake (0.00s)
    --- PASS: TestNamespaceRecoveryIdentity/unavailable_proof (0.00s)
=== RUN   TestNamespaceMountEscape
=== RUN   TestNamespaceMountEscape/traversal
=== RUN   TestNamespaceMountEscape/outside_private_home
=== RUN   TestNamespaceMountEscape/broad_home
=== RUN   TestNamespaceMountEscape/protected_state
=== RUN   TestNamespaceMountEscape/parent_of_protected_state
=== RUN   TestNamespaceMountEscape/host_runtime
=== RUN   TestNamespaceMountEscape/host_cgroup
=== RUN   TestNamespaceMountEscape/writable_runtime
=== RUN   TestNamespaceMountEscape/reserved_target
=== RUN   TestNamespaceMountEscape/home_environment_traversal
=== RUN   TestNamespaceMountEscape/tmp_environment_traversal
=== RUN   TestNamespaceMountEscape/environment
=== RUN   TestNamespaceMountEscape/symlink_swap
--- PASS: TestNamespaceMountEscape (0.00s)
    --- PASS: TestNamespaceMountEscape/traversal (0.00s)
    --- PASS: TestNamespaceMountEscape/outside_private_home (0.00s)
    --- PASS: TestNamespaceMountEscape/broad_home (0.00s)
    --- PASS: TestNamespaceMountEscape/protected_state (0.00s)
    --- PASS: TestNamespaceMountEscape/parent_of_protected_state (0.00s)
    --- PASS: TestNamespaceMountEscape/host_runtime (0.00s)
    --- PASS: TestNamespaceMountEscape/host_cgroup (0.00s)
    --- PASS: TestNamespaceMountEscape/writable_runtime (0.00s)
    --- PASS: TestNamespaceMountEscape/reserved_target (0.00s)
    --- PASS: TestNamespaceMountEscape/home_environment_traversal (0.00s)
    --- PASS: TestNamespaceMountEscape/tmp_environment_traversal (0.00s)
    --- PASS: TestNamespaceMountEscape/environment (0.00s)
    --- PASS: TestNamespaceMountEscape/symlink_swap (0.00s)
=== RUN   TestNamespaceRecoverySavedExit
--- PASS: TestNamespaceRecoverySavedExit (0.06s)
=== RUN   TestNamespaceRecoveryRejectsNonInit
--- PASS: TestNamespaceRecoveryRejectsNonInit (0.09s)
=== RUN   TestNamespaceRecoveryStaleDurableTicks
--- PASS: TestNamespaceRecoveryStaleDurableTicks (0.10s)
=== RUN   TestNamespaceRecoveryUnavailableProof
=== RUN   TestNamespaceRecoveryUnavailableProof/missing
=== RUN   TestNamespaceRecoveryUnavailableProof/corrupt
=== RUN   TestNamespaceRecoveryUnavailableProof/record
=== RUN   TestNamespaceRecoveryUnavailableProof/unverified
=== RUN   TestNamespaceRecoveryUnavailableProof/timestamp
--- PASS: TestNamespaceRecoveryUnavailableProof (0.36s)
    --- PASS: TestNamespaceRecoveryUnavailableProof/missing (0.06s)
    --- PASS: TestNamespaceRecoveryUnavailableProof/corrupt (0.06s)
    --- PASS: TestNamespaceRecoveryUnavailableProof/record (0.08s)
    --- PASS: TestNamespaceRecoveryUnavailableProof/unverified (0.09s)
    --- PASS: TestNamespaceRecoveryUnavailableProof/timestamp (0.07s)
=== RUN   TestNamespaceRecoveryCleansScratch
=== RUN   TestNamespaceRecoveryCleansScratch/saved-exit
=== RUN   TestNamespaceRecoveryCleansScratch/new-boot
--- PASS: TestNamespaceRecoveryCleansScratch (0.12s)
    --- PASS: TestNamespaceRecoveryCleansScratch/saved-exit (0.05s)
    --- PASS: TestNamespaceRecoveryCleansScratch/new-boot (0.06s)
=== RUN   TestNamespaceScratchIdentity
--- PASS: TestNamespaceScratchIdentity (0.06s)
PASS
rastrillo-budget/v1 ran 1.911s
ok      amadan.net/oficina/equipo/internal/runner/containment   1.913s
```

Command (exit 0):

```sh
make runner-namespace-test
```

```text
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok      amadan.net/oficina/equipo/internal/runner/containment   1.877s
```

Command (exit 0):

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestCIGateSteps$' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/equipotest   0.054s
```

Final full required gate (exit 0):

```sh
CGO_ENABLED=0 make ci
```

Complete gate output:

```text
CGO_ENABLED=0 go build ./...
go vet ./...
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf ./...
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 1
vulnerability in modules you require, but your code doesn't appear to call these
vulnerabilities.
Use '-show verbose' for more details.
10:19AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:19AM INF 112 commits scanned.
10:19AM INF scanned ~4078895 bytes (4.08 MB) in 432ms
10:19AM INF no leaks found
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 17 directories within budget
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 ./...

receipt: test step 3m12.543s against a 60s target (the gate's other steps are not in this figure)
receipt: 13 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 3m11.715s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 2m52.086s amadan.net/oficina/equipo/internal/runner
receipt: slow package 27.207s amadan.net/oficina/equipo/internal/equipo/team
receipt: slow package 11.475s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 5.978s amadan.net/oficina/equipo/internal/runner/forge
receipt: slow test 22.56s amadan.net/oficina/equipo/internal/equipotest TestRunnerEndToEnd
receipt: slow test 21.89s amadan.net/oficina/equipo/internal/runner TestRunnerBugWorkflow
receipt: slow test 17.08s amadan.net/oficina/equipo/internal/runner TestAccountFailoverStops
receipt: slow test 16.6s amadan.net/oficina/equipo/internal/runner TestDeterministicAttemptErrorsFailWithReason
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/runner TestRunnerBugWorkflowRejectedTools
command -v node
/usr/local/bin/node
command -v npm
/usr/local/bin/npm
npm ci --prefix runner/paseo --ignore-scripts --no-audit --no-fund --registry=https://registry.npmjs.org
npm warn deprecated uuid@9.0.1: uuid@10 and below is no longer supported.  For ESM codebases, update to uuid@latest.  For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).

added 294 packages in 3s
node --test runner/paseo/bridge.test.mjs
✔ structured events (8.965317ms)
✔ permission IDs (1.53576ms)
✔ MCP at creation (0.844928ms)
✔ workspace identity (0.499186ms)
✔ unknown version (0.205111ms)
✔ read isolation required (0.146903ms)
✔ provider option schema (0.35596ms)
✔ cancelAgent export (116.570388ms)
✔ daemon credentials (0.521848ms)
✔ subscription ready before prompt (0.406694ms)
✔ SDK serializes the pinned creation and permission contracts (13.053433ms)
✔ pinned provider schemas reject unsupported profile passthrough (4.858525ms)
✔ creation requires durable daemon receipts (0.246738ms)
✔ timeline gaps and disconnects revoke readiness (0.394763ms)
✔ recovery cursor and live overlap (0.961494ms)
✔ agent and MCP credentials cannot be injected (0.197747ms)
✔ unknown structured events and session changes stop dispatch (0.256416ms)
✔ pending permission recovery keeps original identity (0.228023ms)
✔ bounded bridge frames and redacted diagnostics (7.770892ms)
✔ locked dependency versions (1.817192ms)
✔ workspace isolation mode (0.141763ms)
✔ project registration (0.22666ms)
✔ terminal cleanup uses exact workspace IDs and unknown lists fail closed (0.292152ms)
✔ runner obtains the pinned creation policy before recording creation (0.149368ms)
✔ recovery looks up preassigned IDs without creating resources (0.384814ms)
✔ creation sends preassigned resource IDs (0.194972ms)
✔ definitive create failures are only tagged before effects (0.43126ms)
✔ creation absence requires a complete lookup (0.364998ms)
✔ definitive policy failures retain their specific wire codes (0.18843ms)
✔ trial routes the chosen credential home using supported agent env (0.12935ms)
✔ trial starts an empty live timeline and refuses recovered completion (0.183911ms)
ℹ tests 31
ℹ suites 0
ℹ pass 31
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 303.153669
CGO_ENABLED=0 go test ./internal/runner/paseo -run 'TestPaseo|TestSubscriptionReady' -count=1
ok      amadan.net/oficina/equipo/internal/runner/paseo 0.376s
CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckSandbox' -count=1
ok      amadan.net/oficina/equipo/internal/runner/checks    5.771s
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok      amadan.net/oficina/equipo/internal/runner/containment   1.472s
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok      amadan.net/oficina/equipo/internal/equipo   0.090s
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 120µs, worst 139µs, budget 150ms
perf: GET /auth/callback: median 50µs, worst 53µs, budget 150ms
perf: GET /auth/verify: median 54µs, worst 60µs, budget 150ms
perf: GET /connections: median 3.371ms, worst 3.617ms, budget 150ms
perf: GET /conversation: median 3.75ms, worst 4.602ms, budget 150ms
perf: GET /journey: median 3.624ms, worst 3.893ms, budget 150ms
perf: GET /needs-you: median 3.5ms, worst 3.863ms, budget 150ms
perf: GET /people: median 2.41ms, worst 2.689ms, budget 150ms
perf: GET /projects: median 2.815ms, worst 3.327ms, budget 150ms
perf: GET /projects/new: median 2.594ms, worst 2.81ms, budget 150ms
perf: GET /projects/{id}: median 3.631ms, worst 3.922ms, budget 150ms
perf: GET /projects/{id}/edit: median 2.68ms, worst 2.826ms, budget 150ms
perf: GET /runners/enrol: median 8.794ms, worst 9.904ms, budget 150ms
perf: GET /settings: median 2.611ms, worst 2.785ms, budget 150ms
perf: GET /settings/recovery: median 8.358ms, worst 9.729ms, budget 150ms
perf: GET /settings/recovery/release: median 8.197ms, worst 8.643ms, budget 150ms
perf: GET /signin: median 194µs, worst 239µs, budget 150ms
perf: GET /specialists/{key}: median 4.219ms, worst 5.692ms, budget 150ms
perf: GET /tasks/new: median 2.745ms, worst 3.457ms, budget 150ms
perf: GET /tasks/{id}: median 3.592ms, worst 3.671ms, budget 150ms
perf: GET /tasks/{id}/merge: median 3.29ms, worst 4.034ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 3.567ms, worst 3.712ms, budget 150ms
perf: GET /work: median 2.558ms, worst 2.714ms, budget 150ms
perf: cold boot: median 59ms of [57.991055ms 58.592532ms 59.697522ms], budget 500ms

receipt: test step 8.484s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 16 without tests, 0 failed
receipt: slow package 4.556s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo/team
receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo/teamcontract
receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 4.35s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 200ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
```

Additional verification: `make fmt-check`, `git diff --check`, and `CGO_ENABLED=0 go vet ./internal/runner/containment ./cmd/equipo-runner ./internal/runnerproto` passed. The real command binary was built and its private helper entry refused to run outside PID 1:

```text
CGO_ENABLED=0 go build -o "$TMPDIR/task2-evidence/equipo-runner" ./cmd/equipo-runner
"$TMPDIR/task2-evidence/equipo-runner" __namespace /usr/bin/true
exit 125 (expected 125 outside PID 1)
```

### Guard mutations

40 distinct guard mutations compiled and made the named tests fail. Each mutation was applied alone and restored from the saved original in a `finally` block. No mutation is retained. The complete restored namespace gate and CI-alignment test above passed after the last mutation. The following are the exact mutation diffs, commands and red outputs; each listed command exited 1.

#### 1. pid-isolation

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceKillsDetachedChildren (0.01s)
    linux_test.go:182: namespace capability/start failed (userns, pidfd required): namespace_startup_failed: bwrap: Specifying --as-pid-1 requires --unshare-pid
FAIL
rastrillo-budget/v1 ran 13ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.015s
FAIL
```

#### 2. helper-pid-one

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceKillsDetachedChildren (0.02s)
    linux_test.go:182: namespace capability/start failed (userns, pidfd required): namespace_startup_failed:
FAIL
rastrillo-budget/v1 ran 20ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.022s
FAIL
```

#### 3. network-isolation

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHidesHostControl (0.06s)
    linux_test.go:320: isolation:  {Code:1 Signal:0 ObservedAt:2026-11-03 09:56:16.808517203 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 10, in <module>
            s=socket.socket(); assert s.connect_ex(('127.0.0.1',40593))!=0
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        AssertionError
FAIL
rastrillo-budget/v1 ran 59ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.061s
FAIL
```

#### 4. host-bus

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -108,7 +108,7 @@
        return nil, err
    }
    p.args = append(p.args, "--overlay-src", "/etc", "--tmp-overlay", "/etc")
-   p.args = append(p.args, "--symlink", "usr/bin", "/bin", "--symlink", "usr/lib", "/lib", "--symlink", "usr/lib64", "/lib64", "--proc", "/proc", "--dev", "/dev", "--dir", "/run", "--dir", "/sys", "--dir", "/home/runner", "--tmpfs", "/etc/claude-code", "--tmpfs", "/etc/codex")
+   p.args = append(p.args, "--symlink", "usr/bin", "/bin", "--symlink", "usr/lib", "/lib", "--symlink", "usr/lib64", "/lib64", "--proc", "/proc", "--dev", "/dev", "--ro-bind", "/run", "/run", "--dir", "/sys", "--dir", "/home/runner", "--tmpfs", "/etc/claude-code", "--tmpfs", "/etc/codex")
    if err = p.bind(l.Workspace, "/workspace", false, true); err != nil {
        return nil, err
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHidesHostControl (0.06s)
    linux_test.go:320: isolation:  {Code:1 Signal:0 ObservedAt:2026-11-03 09:56:17.137968151 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 3, in <module>
            assert all(not os.path.exists(p) for p in paths), paths
                   ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        AssertionError: ['/sys/fs/cgroup', '/run/user/1001/bus', '/run/user/1001/systemd/private', '/home/paulca', '/proc/1/root/home/paulca', '/etc/claude-code/managed-settings.json', '/etc/codex/config.toml']
FAIL
rastrillo-budget/v1 ran 59ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.061s
FAIL
```

#### 5. host-cgroup

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -108,7 +108,7 @@
        return nil, err
    }
    p.args = append(p.args, "--overlay-src", "/etc", "--tmp-overlay", "/etc")
-   p.args = append(p.args, "--symlink", "usr/bin", "/bin", "--symlink", "usr/lib", "/lib", "--symlink", "usr/lib64", "/lib64", "--proc", "/proc", "--dev", "/dev", "--dir", "/run", "--dir", "/sys", "--dir", "/home/runner", "--tmpfs", "/etc/claude-code", "--tmpfs", "/etc/codex")
+   p.args = append(p.args, "--symlink", "usr/bin", "/bin", "--symlink", "usr/lib", "/lib", "--symlink", "usr/lib64", "/lib64", "--proc", "/proc", "--dev", "/dev", "--dir", "/run", "--ro-bind", "/sys", "/sys", "--dir", "/home/runner", "--tmpfs", "/etc/claude-code", "--tmpfs", "/etc/codex")
    if err = p.bind(l.Workspace, "/workspace", false, true); err != nil {
        return nil, err
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHidesHostControl (0.06s)
    linux_test.go:320: isolation:  {Code:1 Signal:0 ObservedAt:2026-11-03 09:56:17.46310184 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 3, in <module>
            assert all(not os.path.exists(p) for p in paths), paths
                   ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        AssertionError: ['/sys/fs/cgroup', '/run/user/1001/bus', '/run/user/1001/systemd/private', '/home/paulca', '/proc/1/root/home/paulca', '/etc/claude-code/managed-settings.json', '/etc/codex/config.toml']
FAIL
rastrillo-budget/v1 ran 60ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.062s
FAIL
```

#### 6. pid-reuse

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -57,7 +57,7 @@
    if e != nil {
        return -1, e
    }
-   ticks, ns, e := identity(r.HostPID)
+   ticks, ns, e := identity(r.HostPID); _ = ticks
    // Once released, the helper is nondumpable, so namespace readlink is
    // denied even to its host parent. Start ticks and NSpid remain readable.
    // Recover has already matched the durable handshake record; PID namespace
@@ -66,7 +66,7 @@
        ns = r.NamespaceID
        e = nil
    }
-   if e != nil || ticks != r.StartTicks || ns != r.NamespaceID {
+   if e != nil || ns != r.NamespaceID {
        unix.Close(fd)
        return -1, errIdentity
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryStaleDurableTicks$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryStaleDurableTicks (0.10s)
    recovery_test.go:162: reused PID accepted
FAIL
rastrillo-budget/v1 ran 97ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.099s
FAIL
```

#### 7. durable-identity-match

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -172,7 +172,7 @@
    }
    stored, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".json"))
    var durable Record
-   if readErr != nil || json.Unmarshal(stored, &durable) != nil || durable != r {
+   if readErr != nil || json.Unmarshal(stored, &durable) != nil || false {
        return proof, errIdentity
    }
    fd, e := exactPID(r)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity/changed_manifest$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryIdentity (0.06s)
    --- FAIL: TestNamespaceRecoveryIdentity/changed_manifest (0.02s)
        recovery_test.go:36: uncertain identity accepted: {Record:{ID:a0242603aec81d90ce7907ecfa55bec7 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:fixture-policy-changed HostPID:4137163 StartTicks:855761858} Exit:{Code:-1 Signal:9 ObservedAt:2026-11-03 09:58:25.847797305 +0000 UTC} Verified:true} <nil>
    recovery_test.go:47: owned unrelated control died: no such process
FAIL
rastrillo-budget/v1 ran 59ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.061s
FAIL
```

#### 8. host-process-as-init

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -80,7 +80,8 @@
            init = len(fields) > 2 && fields[len(fields)-1] == "1"
        }
    }
-   if hostErr != nil || statusErr != nil || ns == hostNS || !init {
+   _ = hostNS; _ = init
+ if hostErr != nil || statusErr != nil || false {
        unix.Close(fd)
        return -1, errIdentity
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryRejectsNonInit$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryRejectsNonInit (0.07s)
    recovery_test.go:138: host process accepted as namespace init
FAIL
rastrillo-budget/v1 ran 70ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.072s
FAIL
```

#### 9. new-boot

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -159,7 +159,7 @@
    if e != nil {
        return proof, e
    }
-   if boot != r.BootID {
+   if false && boot != r.BootID {
        proof.Verified = true
        proof.Exit.ObservedAt = time.Now().UTC()
        return proof, nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryIdentity (0.04s)
    recovery_test.go:40: changed boot fabricated outcome: {Record:{ID:f392789dff42e4f75124bd42a5cf93a7 AttemptKey:attempt-fixture BootID:different-boot NamespaceID:pid:[4026532756] ManifestHash:fixture-policy HostPID:4117397 StartTicks:855749121} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 41ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.042s
FAIL
```

#### 10. early-stop-proof

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -363,7 +363,7 @@
    if p == nil {
        return Proof{}, errIdentity
    }
-   if e := p.kill(); e != nil {
+   if true { return Proof{Record:p.record,Verified:true},nil }; if e := p.kill(); e != nil {
        return Proof{Record: p.record}, e
    }
    select {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStopWaitsForExit$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceStopWaitsForExit (0.04s)
    linux_test.go:463: stop acknowledged before exact init exit
FAIL
rastrillo-budget/v1 ran 40ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.041s
FAIL
```

#### 11. missing-intent

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -128,7 +128,7 @@
        return nil, e
    }
    r := Record{ID: id, AttemptKey: l.AttemptKey, BootID: boot, ManifestHash: l.Policy.Hash}
-   if e = m.persist(r); e != nil {
+   if e = error(nil); e != nil {
        mounts.close()
        return nil, e
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceIntentBeforeFork$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceIntentBeforeFork (0.02s)
    linux_test.go:448: no durable intent before fork: "" open /home/paulca/t/e2b/TestNamespaceIntentBeforeFork420064207/001/workspace/intent-observed: no such file or directory
FAIL
rastrillo-budget/v1 ran 20ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.022s
FAIL
```

#### 12. missing-identity-journal

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -292,7 +292,7 @@
    }
    p := &process{record: s.record, stdin: inputW, stdout: outputR, stderr: errorR, done: make(chan struct{}), fd: s.fd}
    // Identity is durable before the helper can fork the harness or read input.
-   if e = m.persist(s.record); e == nil {
+   if e = error(nil); e == nil {
        _, e = releaseW.Write([]byte{1})
    }
    releaseW.Close()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceKillsDetachedChildren (0.04s)
    linux_test.go:187: incomplete durable identity: {ID:97ebba5bb41c66e6369b494b310d3e8f AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID: ManifestHash:fixture-policy HostPID:0 StartTicks:0}
FAIL
rastrillo-budget/v1 ran 45ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.046s
FAIL
```

#### 13. helper-barrier

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -394,7 +394,8 @@
        return 125
    }
    var token [1]byte
-   if _, e = io.ReadFull(release, token[:]); e != nil || token[0] != 1 {
+   if false {
+ _ = token
        return 125
    }
    release.Close()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHelperBarrier$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHelperBarrier (0.04s)
    linux_test.go:576: harness started before release
FAIL
rastrillo-budget/v1 ran 36ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.038s
FAIL
```

#### 14. helper-protocol-private

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -400,7 +400,7 @@
    release.Close()
    // The harness shares our UID. Disallow /proc/1/fd reopening and ptrace so
    // it cannot forge outcome frames or reach future helper-owned relay FDs.
-   if e = unix.Prctl(unix.PR_SET_DUMPABLE, 0, 0, 0, 0); e != nil {
+   if e = error(nil); e != nil {
        return 125
    }
    // No mount descriptors, journal handles or startup pipes reach the harness.
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHelperProtocolPrivate$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHelperProtocolPrivate (0.06s)
    linux_test.go:527: helper pipe exposed: {Code:1 Signal:0 ObservedAt:2026-11-03 09:56:19.995892399 +0000 UTC} <nil>
FAIL
rastrillo-budget/v1 ran 61ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.063s
FAIL
```

#### 15. pinned-mount-swap

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -78,7 +78,8 @@
        flag = "--ro-bind-fd"
    }
    // FDs 3, 4 and 5 are status, release and readiness, respectively.
-   p.args = append(p.args, flag, strconv.Itoa(6+len(p.files)), target)
+   _ = flag; _ = strconv.Itoa
+ p.args = append(p.args,"--bind",source,target)
    p.files = append(p.files, f)
    return nil
 }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespacePinnedMountSwap$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespacePinnedMountSwap (0.04s)
    mounts_test.go:63: mutable path replaced pinned source: "protected" {Code:0 Signal:0 ObservedAt:2026-11-03 09:56:20.310200347 +0000 UTC} <nil>
FAIL
rastrillo-budget/v1 ran 42ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.044s
FAIL
```

#### 16. path-traversal

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -27,7 +27,7 @@
    }
 }
 func cleanAbsolute(path string) bool {
-   return filepath.IsAbs(path) && filepath.Clean(path) == path && path != "/"
+   return filepath.IsAbs(path) && true && path != "/"
 }
 func within(path, root string) bool { return path == root || strings.HasPrefix(path, root+"/") }
 func overlaps(a, b string) bool     { return within(a, b) || within(b, a) }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/traversal$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.13s)
    --- FAIL: TestNamespaceMountEscape/traversal (0.05s)
        recovery_test.go:88: unsafe mount/environment accepted
    --- FAIL: TestNamespaceMountEscape/home_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
    --- FAIL: TestNamespaceMountEscape/tmp_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 126ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.128s
FAIL
```

#### 17. outside-home

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -115,8 +115,8 @@
    runtimeHome := filepath.Join(dir, "home")
    if l.Binding.Home != "" {
        runtimeHome = l.Binding.Home
-       homes := filepath.Join(m.cfg.ScratchRoot, "homes")
-       if !cleanAbsolute(runtimeHome) || filepath.Dir(runtimeHome) != homes || overlaps(runtimeHome, l.Workspace) {
+       homes := filepath.Join(m.cfg.ScratchRoot, "homes"); _ = homes
+       if !cleanAbsolute(runtimeHome) || false || overlaps(runtimeHome, l.Workspace) {
            return nil, errMount
        }
        info, e := os.Stat(runtimeHome)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/outside_private_home$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.06s)
    --- FAIL: TestNamespaceMountEscape/outside_private_home (0.06s)
        recovery_test.go:95: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 65ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.067s
FAIL
```

#### 18. protected-state-overlap

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -89,7 +89,7 @@
            p.close()
        }
    }()
-   if !cleanAbsolute(l.Workspace) || overlaps(l.Workspace, m.cfg.ScratchRoot) {
+   if !cleanAbsolute(l.Workspace) || false {
        return nil, errMount
    }
    for _, root := range []string{"/proc", "/sys", "/run", "/dev", "/etc", "/usr"} {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/protected_state$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.08s)
    --- FAIL: TestNamespaceMountEscape/protected_state (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
    --- FAIL: TestNamespaceMountEscape/parent_of_protected_state (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 77ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.079s
FAIL
```

#### 19. writable-runtime-request

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -136,7 +136,7 @@
    targets := map[string]bool{}
    for _, mount := range l.Policy.Mounts {
        target := mount.Target
-       if !mount.ReadOnly || !cleanAbsolute(target) || targets[target] {
+       if !cleanAbsolute(target) || targets[target] {
            return nil, errMount
        }
        if !(strings.HasPrefix(target, "/opt/") || strings.HasPrefix(target, "/config/") || strings.HasPrefix(target, "/etc/claude-code/") || strings.HasPrefix(target, "/etc/codex/")) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/writable_runtime$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.04s)
    --- FAIL: TestNamespaceMountEscape/writable_runtime (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 41ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.043s
FAIL
```

#### 20. reserved-mount-target

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -139,7 +139,7 @@
        if !mount.ReadOnly || !cleanAbsolute(target) || targets[target] {
            return nil, errMount
        }
-       if !(strings.HasPrefix(target, "/opt/") || strings.HasPrefix(target, "/config/") || strings.HasPrefix(target, "/etc/claude-code/") || strings.HasPrefix(target, "/etc/codex/")) {
+       if false {
            return nil, errMount
        }
        for _, existing := range l.Policy.Mounts {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/reserved_target$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.04s)
    --- FAIL: TestNamespaceMountEscape/reserved_target (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 43ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.045s
FAIL
```

#### 21. environment-allowlist

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -160,14 +160,15 @@
    }
    p.args = append(p.args, "--clearenv", "--setenv", "PATH", "/usr/bin:/bin:/opt", "--setenv", "HOME", "/home/runner", "--setenv", "TMPDIR", "/tmp", "--setenv", "LANG", "C.UTF-8")
    allowed := map[string]bool{"LANG": true, "LC_ALL": true, "TERM": true, "CODEX_HOME": true, "CLAUDE_CONFIG_DIR": true, "CLAUDE_SECURESTORAGE_CONFIG_DIR": true, "CLAUDE_TMPDIR": true, "CLAUDE_CODE_DISABLE_AUTO_UPDATE": true}
-   keys := make([]string, 0, len(l.Policy.Env))
+   _ = allowed
+ keys := make([]string, 0, len(l.Policy.Env))
    for k := range l.Policy.Env {
        keys = append(keys, k)
    }
    sort.Strings(keys)
    for _, k := range keys {
        v := l.Policy.Env[k]
-       if !allowed[k] || strings.ContainsRune(v, 0) {
+       if strings.ContainsRune(v, 0) {
            return nil, errMount
        }
        if (k == "CODEX_HOME" || k == "CLAUDE_CONFIG_DIR" || k == "CLAUDE_SECURESTORAGE_CONFIG_DIR") && (!cleanAbsolute(v) || !within(v, "/home/runner")) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/environment$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.04s)
    --- FAIL: TestNamespaceMountEscape/environment (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 42ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.044s
FAIL
```

#### 22. environment-home-traversal

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -170,7 +170,7 @@
        if !allowed[k] || strings.ContainsRune(v, 0) {
            return nil, errMount
        }
-       if (k == "CODEX_HOME" || k == "CLAUDE_CONFIG_DIR" || k == "CLAUDE_SECURESTORAGE_CONFIG_DIR") && (!cleanAbsolute(v) || !within(v, "/home/runner")) {
+       if (k == "CODEX_HOME" || k == "CLAUDE_CONFIG_DIR" || k == "CLAUDE_SECURESTORAGE_CONFIG_DIR") && (!within(v,"/home/runner")) {
            return nil, errMount
        }
        if k == "CLAUDE_TMPDIR" && (!cleanAbsolute(v) || !within(v, "/tmp")) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/home_environment_traversal$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.04s)
    --- FAIL: TestNamespaceMountEscape/home_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 43ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.045s
FAIL
```

#### 23. environment-tmp-traversal

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -173,7 +173,7 @@
        if (k == "CODEX_HOME" || k == "CLAUDE_CONFIG_DIR" || k == "CLAUDE_SECURESTORAGE_CONFIG_DIR") && (!cleanAbsolute(v) || !within(v, "/home/runner")) {
            return nil, errMount
        }
-       if k == "CLAUDE_TMPDIR" && (!cleanAbsolute(v) || !within(v, "/tmp")) {
+       if k == "CLAUDE_TMPDIR" && (!within(v,"/tmp")) {
            return nil, errMount
        }
        p.args = append(p.args, "--setenv", k, v)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/tmp_environment_traversal$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceMountEscape (0.04s)
    --- FAIL: TestNamespaceMountEscape/tmp_environment_traversal (0.04s)
        recovery_test.go:88: unsafe mount/environment accepted
FAIL
rastrillo-budget/v1 ran 44ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.046s
FAIL
```

#### 24. socket-import

```diff
--- internal/runner/containment/mounts.go
+++ internal/runner/containment/mounts.go
@@ -63,7 +63,7 @@
            if e != nil {
                return e
            }
-           if d.Type()&(os.ModeSocket|os.ModeNamedPipe|os.ModeDevice) != 0 {
+           if false {
                return errMount
            }
            return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceSocketImport$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceSocketImport (0.04s)
    linux_test.go:501: host socket imported
FAIL
rastrillo-budget/v1 ran 42ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.044s
FAIL
```

#### 25. nested-userns

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--disable-userns", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceNestedUserNamespace$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceNestedUserNamespace (0.07s)
    linux_test.go:510: nested sandbox unavailable: {Code:1 Signal:0 ObservedAt:2026-11-03 09:56:23.512872421 +0000 UTC} <nil> bwrap: Creating new namespace failed: nesting depth or /proc/sys/user/max_*_namespaces exceeded (ENOSPC)
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
            import subprocess; subprocess.run(['/usr/bin/bwrap','--unshare-user','--ro-bind','/','/','--','/usr/bin/true'],check=True)
                               ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/usr/lib/python3.13/subprocess.py", line 577, in run
            raise CalledProcessError(retcode, process.args,
                                     output=stdout, stderr=stderr)
        subprocess.CalledProcessError: Command '['/usr/bin/bwrap', '--unshare-user', '--ro-bind', '/', '/', '--', '/usr/bin/true']' returned non-zero exit status 1.
FAIL
rastrillo-budget/v1 ran 75ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.077s
FAIL
```

#### 26. caller-thread-lifetime

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -215,7 +215,7 @@
    cmd.Stdout = outputW
    cmd.Stderr = errorW
    cmd.SysProcAttr = &syscall.SysProcAttr{Pdeathsig: syscall.SIGKILL}
-   if e = cmd.Start(); e != nil {
+   startedOnThread:=make(chan error,1); go func(){runtime.LockOSThread(); startedOnThread<-cmd.Start()}(); if e = <-startedOnThread; e != nil {
        result <- startResult{err: e}
        return
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStartingThreadExit$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceStartingThreadExit (0.02s)
    linux_test.go:405: start failed
FAIL
rastrillo-budget/v1 ran 16ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.018s
FAIL
```

#### 27. context-cancellation

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -314,7 +314,7 @@
    go func() {
        select {
        case <-ctx.Done():
-           p.kill()
+ // mutation
        case <-lifecycleDone:
        }
    }()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceCancellation$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceCancellation (2.04s)
    linux_test.go:633: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 2.042s
FAIL    amadan.net/oficina/equipo/internal/runner/containment   2.044s
FAIL
```

#### 28. ci-required-target

```diff
--- Makefile
+++ Makefile
@@ -156,7 +156,7 @@
 # fails the build the moment models.go and migrations/ disagree,
 # instead of at boot on whatever machine notices next. If the app
 # declares manifest resources, also add: rastrillo generate --check
-ci: build vet fmt-check staticcheck govulncheck gitleaks budget test runner-adapter-test runner-namespace-test migration-check perf
+ci: build vet fmt-check staticcheck govulncheck gitleaks budget test runner-adapter-test migration-check perf

 .PHONY: copy-release-check release-runner runner-prerequisites
 copy-release-check:
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run ^TestCIGateSteps$ -count=1 -timeout=20s
```

```text
--- FAIL: TestCIGateSteps (0.01s)
    foundation_test.go:185: make ci targets = [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test staticcheck test vet], want [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test runner-namespace-test staticcheck test vet]
FAIL
rastrillo-budget/v1 ran 12ms
FAIL    amadan.net/oficina/equipo/internal/equipotest   0.061s
FAIL
```

#### 29. ci-delegation

```diff
--- .amadan/ci.d/36-runner-namespaces
+++ .amadan/ci.d/36-runner-namespaces
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec make runner-namespace-test
+exec make runner-adapter-test
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run ^TestCIGateSteps$ -count=1 -timeout=20s
```

```text
--- FAIL: TestCIGateSteps (0.01s)
    foundation_test.go:221: CI step targets = [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test runner-adapter-test staticcheck test vet], want [budget build fmt-check gitleaks govulncheck migration-check perf runner-adapter-test runner-namespace-test staticcheck test vet]
FAIL
rastrillo-budget/v1 ran 13ms
FAIL    amadan.net/oficina/equipo/internal/equipotest   0.061s
FAIL
```

#### 30. parent-death

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
@@ -214,7 +214,7 @@
    cmd.Stdin = inputR
    cmd.Stdout = outputW
    cmd.Stderr = errorW
-   cmd.SysProcAttr = &syscall.SysProcAttr{Pdeathsig: syscall.SIGKILL}
+   cmd.SysProcAttr = &syscall.SysProcAttr{Pdeathsig: 0}
    if e = cmd.Start(); e != nil {
        result <- startResult{err: e}
        return
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceParentDeath$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceParentDeath (5.06s)
    linux_test.go:388: exact process has not exited: poll=0,<nil>
FAIL
rastrillo-budget/v1 ran 5.064s
FAIL    amadan.net/oficina/equipo/internal/runner/containment   5.066s
FAIL
```

#### 31. capabilities

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -204,7 +204,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-add", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    args = append(args, argv...)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHidesHostControl (0.06s)
    linux_test.go:320: isolation:  {Code:1 Signal:0 ObservedAt:2026-11-03 09:57:28.680147135 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 7, in <module>
            assert int([l for l in open('/proc/self/status') if l.startswith('CapEff:')][0].split()[1],16)==0
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        AssertionError
FAIL
rastrillo-budget/v1 ran 59ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.061s
FAIL
```

#### 32. helper-exec

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -408,7 +408,8 @@
    if e = unix.CloseRange(3, ^uint(0), unix.CLOSE_RANGE_CLOEXEC); e != nil {
        return 125
    }
-   cmd := exec.Command(argv[0], argv[1:]...)
+   _ = syscall.Exec(argv[0],argv,os.Environ())
+ cmd := exec.Command(argv[0], argv[1:]...)
    cmd.Env = os.Environ()
    cmd.Stdin = os.Stdin
    cmd.Stdout = os.Stdout
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceHidesHostControl (0.06s)
    linux_test.go:320: isolation:  {Code:-1 Signal:0 ObservedAt:2026-11-03 09:57:28.997468124 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 6, in <module>
            assert os.getppid()==1
                   ^^^^^^^^^^^^^^^
        AssertionError
FAIL
rastrillo-budget/v1 ran 58ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.060s
FAIL
```

#### 33. orphan-reaper

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -418,7 +418,7 @@
    }
    for {
        var status unix.WaitStatus
-       pid, e := unix.Wait4(-1, &status, 0, nil)
+       pid, e := unix.Wait4(cmd.Process.Pid, &status, 0, nil)
        if e == unix.EINTR {
            continue
        }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceReapsOrphans$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceReapsOrphans (1.12s)
    linux_test.go:611: orphan not reaped: {Code:1 Signal:0 ObservedAt:2026-11-03 09:57:30.379589918 +0000 UTC} <nil>
FAIL
rastrillo-budget/v1 ran 1.123s
FAIL    amadan.net/oficina/equipo/internal/runner/containment   1.124s
FAIL
```

#### 34. missing-exit-proof

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -176,9 +176,7 @@
        return proof, errIdentity
    }
    fd, e := exactPID(r)
-   if e != nil {
-       return proof, errIdentity
-   }
+ if e != nil {proof.Verified=true;return proof,nil}
    defer unix.Close(fd)
    if e = unix.PidfdSendSignal(fd, unix.SIGKILL, nil, 0); e != nil && e != unix.ESRCH {
        return proof, e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/missing$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryUnavailableProof (0.07s)
    --- FAIL: TestNamespaceRecoveryUnavailableProof/missing (0.07s)
        recovery_test.go:207: unavailable proof accepted: {Record:{ID:369fcb474959338628b2a032a0239739 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:fixture-policy HostPID:28648 StartTicks:855796599} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 68ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.070s
FAIL
```

#### 35. saved-proof-record

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -162,7 +162,7 @@
    saved, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".exit.json"))
    if readErr == nil {
        var prior Proof
-       if json.Unmarshal(saved, &prior) != nil || !prior.Verified || prior.Record != r || prior.Exit.ObservedAt.IsZero() {
+       if json.Unmarshal(saved, &prior) != nil || !prior.Verified || false || prior.Exit.ObservedAt.IsZero() {
            return proof, errIdentity
        }
        return prior, nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/record$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryUnavailableProof (0.09s)
    --- FAIL: TestNamespaceRecoveryUnavailableProof/record (0.09s)
        recovery_test.go:207: unavailable proof accepted: {Record:{ID:544287cb133e57ee8eeba3cf9dde3609 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:fixture-policy-changed HostPID:28794 StartTicks:855796630} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 10:04:13.581739442 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 91ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.093s
FAIL
```

#### 36. saved-proof-verified

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -162,7 +162,7 @@
    saved, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".exit.json"))
    if readErr == nil {
        var prior Proof
-       if json.Unmarshal(saved, &prior) != nil || !prior.Verified || prior.Record != r || prior.Exit.ObservedAt.IsZero() {
+       if json.Unmarshal(saved, &prior) != nil || prior.Record != r || prior.Exit.ObservedAt.IsZero() {
            return proof, errIdentity
        }
        return prior, nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/unverified$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryUnavailableProof (0.08s)
    --- FAIL: TestNamespaceRecoveryUnavailableProof/unverified (0.08s)
        recovery_test.go:207: unavailable proof accepted: {Record:{ID:d066fc984cd29c3614bdab6900298251 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:fixture-policy HostPID:28943 StartTicks:855796663} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 10:04:13.908239355 +0000 UTC} Verified:false} <nil>
FAIL
rastrillo-budget/v1 ran 81ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.082s
FAIL
```

#### 37. saved-proof-timestamp

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -162,7 +162,7 @@
    saved, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".exit.json"))
    if readErr == nil {
        var prior Proof
-       if json.Unmarshal(saved, &prior) != nil || !prior.Verified || prior.Record != r || prior.Exit.ObservedAt.IsZero() {
+       if json.Unmarshal(saved, &prior) != nil || !prior.Verified || prior.Record != r || false {
            return proof, errIdentity
        }
        return prior, nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/timestamp$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryUnavailableProof (0.09s)
    --- FAIL: TestNamespaceRecoveryUnavailableProof/timestamp (0.09s)
        recovery_test.go:207: unavailable proof accepted: {Record:{ID:ca585ad93eb5985eb3b497ff7ad1a2c3 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:fixture-policy HostPID:29083 StartTicks:855796695} Exit:{Code:0 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 86ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.087s
FAIL
```

#### 38. scratch-identity

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -103,7 +103,7 @@
        return nil, e
    }
    id := hex.EncodeToString(random[:])
-   dir := filepath.Join(m.cfg.ScratchRoot, "attempt-"+id)
+   dir := filepath.Join(m.cfg.ScratchRoot, "attempt-unbound-"+id)
    e := os.Mkdir(dir, 0700)
    if e != nil {
        return nil, e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceScratchIdentity$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceScratchIdentity (0.06s)
    recovery_test.go:253: scratch not bound to durable ID: stat /home/paulca/t/e2b/TestNamespaceScratchIdentity886275472/001/state/attempt-763177bb8fd50b41613e8f03dcd4a072/tmp: no such file or directory
FAIL
rastrillo-budget/v1 ran 64ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.065s
FAIL
```

#### 39. recover-scratch

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -198,7 +198,7 @@
 // Scratch has the durable launch ID, so recovery can remove only this attempt
 // after proving its namespace gone. Unknown same-boot identities keep it.
 func (m *Manager) finishRecovery(proof Proof) (Proof, error) {
-   if err := os.RemoveAll(filepath.Join(m.cfg.ScratchRoot, "attempt-"+proof.Record.ID)); err != nil {
+   if err := error(nil); err != nil {
        proof.Verified = false
        return proof, err
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryCleansScratch$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryCleansScratch (0.14s)
    --- FAIL: TestNamespaceRecoveryCleansScratch/saved-exit (0.07s)
        recovery_test.go:231: open /home/paulca/t/e2b/TestNamespaceRecoveryCleansScratchsaved-exit2381641995/001/state/attempt-845fcb06c50f2c04ee16205f0b4c04bd/leftover: no such file or directory
    --- FAIL: TestNamespaceRecoveryCleansScratch/new-boot (0.07s)
        recovery_test.go:231: open /home/paulca/t/e2b/TestNamespaceRecoveryCleansScratchnew-boot1938237438/001/state/attempt-4f8085b1db96f9efac2208629c939bf0/leftover: no such file or directory
FAIL
rastrillo-budget/v1 ran 142ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.143s
FAIL
```

#### 40. unproven-scratch

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -143,7 +143,8 @@
 // Recover never enumerates host processes. An absent same-boot PID without a
 // durable exit proof remains uncertain; a new boot proves absence, not outcome.
 func (m *Manager) Recover(ctx context.Context, r Record) (Proof, error) {
-   proof := Proof{Record: r, Exit: provider.Exit{Code: -1}}
+   defer os.RemoveAll(filepath.Join(m.cfg.ScratchRoot,"attempt-"+r.ID))
+ proof := Proof{Record: r, Exit: provider.Exit{Code: -1}}
    if len(r.ID) != 32 || strings.ContainsAny(r.ID, "/.\\") || r.AttemptKey == "" || r.BootID == "" || r.ManifestHash == "" {
        return proof, errIdentity
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity/reused_pid$ -count=1 -timeout=20s
```

```text
--- FAIL: TestNamespaceRecoveryIdentity (0.06s)
    --- FAIL: TestNamespaceRecoveryIdentity/reused_pid (0.00s)
        recovery_test.go:42: unproven recovery removed scratch: stat /home/paulca/t/e2b/TestNamespaceRecoveryIdentity926612942/001/state/attempt-7f9d15402e810a584d666df62a4b37ff: no such file or directory
FAIL
rastrillo-budget/v1 ran 56ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.057s
FAIL
```

Four exploratory mutation attempts were not counted: removing the ticks check first failed compilation because `ticks` became unused; the corrected mutation added `_ = ticks`. Removing the durable-record comparison twice survived a namespace-mismatch case because the independent kernel namespace check still rejected it; the final test changes a nonempty manifest hash to isolate the durable-record guard. The outside-home mutation first survived because the fixture also violated the home mode requirement; setting that fixture to 0700 isolated the location guard. All four originals were restored, and the corrected mutations above compiled and failed their named tests.

### User-facing strings

No UI strings, README prose or copy.go entries were added. Internal error codes are `namespace_mount_rejected`, `namespace_identity_unproven`, `namespace_startup_failed` and `namespace_bubblewrap_version`. The internal startup error may include a bounded bubblewrap diagnostic (4096 bytes). If later exposed in the app, map these codes to individually pending copy.go entries for review. Test-only diagnostics include `namespace capability missing`, `namespace capability/start failed (userns, pidfd required)`, and `capability missing` messages for delegated cgroups, pidfd_open, pidfd_send_signal and waitid. No copy-review skill or server was used, as instructed.

### Concerns and remaining work

The remote worker proof is pending the controller's push. Local capability is proven; a remote worker without userns, pidfd, overlay mounts or writable delegated test cgroups will fail the required namespace job. Worker labels alone are not evidence.

Recovery intentionally blocks same-boot reuse if launch identity or durable exit evidence is unavailable. It does not infer a successful provider outcome from containment. Account-content hashing, provider preflight, the in-namespace relay, check execution, capture integration and provider certification remain later tasks. This task does not make a provider run or claim the release is certified.

No push, merge, deployment, sign-in, enrolment, credential import, model prompt or subagent was performed. All test processes and cgroups were cleaned up. After saving these reports, the task-owned evidence directory under TMPDIR is removed. Go caches are unchanged. No server or background process is left running by this task. The requested report remains under `.superpowers` (already ignored); the full controller section is committed.


## Task 2 fix round 1: Exit proof and scratch cleanup

Date: 2026-11-03. Base: `5c1de26` on `plan-2b`. Author: `codex <codex~paul@keymail.dev>`.
Commit subject: `fix: keep namespace exit proof independent of scratch cleanup`.
Status: DONE_WITH_CONCERNS. Both requested fixes pass the covering gates. One existing test helper returned EINTR on a verification run; the unchanged rerun passed. Remote CI remains for the controller.

### Changes and files

`internal/runner/containment/linux.go` now uses the same cleanup operation as recovery. It joins any cleanup error with the process error without changing the saved namespace-exit proof.

`internal/runner/containment/recovery.go` restores owner directory access before removing scratch. The walk skips symlinks, including a symlink at the attempt root. Only directories receive mode 0700; file permissions and external symlink targets stay untouched. Cleanup errors carry the `namespace_scratch_cleanup` prefix and retain their underlying error. A failed cleanup can be retried without losing Verified or changing the outcome.

Same-boot recovery distinguishes an absent recorded init from an unproven identity. ESRCH, a vanished proc entry, differing start ticks or namespace, and an observed pidfd exit establish that the recorded init is gone. Recovery checks the saved launch record before making this inference, saves a verified exit with `Code=-1`, `Signal=0` and an observation time, and signals no replacement process. Other lookup errors, malformed records, non-init identities and mismatched saved records still fail closed. IDs and namespace names are checked for their expected format before the absent-identity path.

`internal/runner/containment/recovery_test.go` adds real namespace tests for 0555, 0500 and 0000 scratch directories under both tmp and the private home, with natural exit and Stop. Recovery tests cover a read-only tree, an external symlink, repeated cleanup failures and successful retry. The crash test kills a separate test runner, observes its init exit, requires pidfd_open to return ESRCH, and verifies that no exit file exists before recovery. Reuse tests use an unrelated test-owned sleep process and check that it survives both ticks and namespace mismatches. The tests also require inferred exit proofs to survive a second Recover unchanged.

`internal/runner/containment/{linux,recovery}_test.go` now obtains the host home through `os.UserHomeDir()`. No test in this package hard-codes the operator's home.

This section is appended to the task report and `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`. The task report remains in the already ignored `.superpowers` directory; the identical controller section is committed with the four Go files.

### Interpretations

The round-1 dispatch supersedes the original brief's commit subject, full CI and push instructions. Only containment tests and `make runner-namespace-test` ran. The original report's statement that missing same-boot exit evidence always blocks recovery is superseded by this fix.

The old missing-exit rejection is replaced by the actual runner-crash test. The old stale durable ticks test now requires a verified unknown outcome while the test-owned process at that PID stays alive. Submitted records that differ from the saved record still fail. The unrelated-process reuse fixture synthesizes the durable PID collision, avoiding host PID exhaustion or any scan of unrelated processes.

Unknown outcome remains the existing `provider.Exit` convention: Code -1 and Signal 0. A cleanup failure does not change proof. Journal persistence errors retain the existing failure behavior. Cleanup runs after namespace teardown; the threat model still trusts other processes running as the host account.

The malformed-record preservation test passed against the original implementation before production changes. Explicit format checks are necessary once absent identities can be verified; mutations below prove that omitting those checks would accept malformed records.

### RED evidence

All commands ran in `/home/paulca/amadan.net/oficina/equipo-plan-2b`, on `plan-2b`, with CGO disabled, default Go caches and the existing on-disk TMPDIR. Tests for both review issues were written before production changes.

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
```

Exit 1, compiled successfully. Output excerpts:

```text
--- FAIL: TestNamespaceRecoveryStaleDurableTicks (0.07s)
    recovery_test.go:176: absent recorded identity not recovered: ... Verified:false} namespace_identity_unproven
--- FAIL: TestNamespaceReadOnlyScratch (0.36s)
    --- FAIL: TestNamespaceReadOnlyScratch/0555/stop=false (0.06s)
        recovery_test.go:304: read-only scratch invalidated exit: ... Verified:false} unlinkat .../tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0500/stop=true (0.06s)
        recovery_test.go:304: read-only scratch invalidated exit: ... Verified:false} unlinkat .../tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0000/stop=false (0.06s)
        recovery_test.go:304: read-only scratch invalidated exit: ... Verified:false} openfdat .../tmp: permission denied
--- FAIL: TestNamespaceRecoveryReadOnlyScratch (0.06s)
    recovery_test.go:353: read-only recovery invalidated exit: ... Verified:false} openfdat .../cache/nested/link: permission denied
--- FAIL: TestNamespaceCleanupFailureKeepsProof (0.06s)
    recovery_test.go:389: cleanup failure changed proof: ... Verified:false} unlinkat ...: permission denied
--- FAIL: TestNamespaceRecoveryCrashBeforeExit (0.05s)
    recovery_test.go:446: absent init not recovered with unknown outcome: ... Verified:false} namespace_identity_unproven
--- FAIL: TestNamespaceRecoveryReusedPID (0.17s)
    --- FAIL: TestNamespaceRecoveryReusedPID/ticks (0.08s)
        recovery_test.go:476: absent init not recovered with unknown outcome: ... Verified:false} namespace_identity_unproven
    --- FAIL: TestNamespaceRecoveryReusedPID/namespace (0.09s)
        recovery_test.go:476: absent init not recovered with unknown outcome: ... Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 2.447s
FAIL    amadan.net/oficina/equipo/internal/runner/containment    2.449s
```

All six read-only combinations failed. Red test cleanup restored the fixture directory permissions and removed its scratch.

Preservation check before implementation:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord$' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/containment    0.143s
```

### GREEN evidence

After implementation, before mutations:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/containment    2.607s
```

After restoring all mutations, one run of that same command exited 1:

```text
--- FAIL: TestNamespaceStartingThreadExit (0.09s)
    linux_test.go:415: owned unrelated control exited: -1 interrupted system call
FAIL
rastrillo-budget/v1 ran 2.032s
FAIL    amadan.net/oficina/equipo/internal/runner/containment    2.034s
```

The existing `alive` test helper treats an interrupted zero-time poll as a failure. No process exit was reported by poll in this failure. The helper was left unchanged in this focused fix. Both requested gates then passed without changing production or test code:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
make runner-namespace-test
```

```text
ok      amadan.net/oficina/equipo/internal/runner/containment    2.078s
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok      amadan.net/oficina/equipo/internal/runner/containment    2.047s
```

These are real Linux namespace tests, including the delegated cgroup capability test; no skips were introduced. `git diff --check` passed and all changed Go files were formatted with gofmt.

### Guard mutations

Each mutation was applied alone and restored in a finally block. All 12 compiled and exited 1 with the named test failing. No mutation survived and no mutation is retained. Commands and complete output follow (the first mutation output repeats the same permission failure for six modes/exit paths).

#### 1. owner-permissions

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -234,7 +234,7 @@
            return err
        }
        if d.IsDir() {
-           return os.Chmod(path, 0700)
+           return nil
        }
        return nil
    })
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceReadOnlyScratch$' -count=1
```

```text
--- FAIL: TestNamespaceReadOnlyScratch (0.32s)
    --- FAIL: TestNamespaceReadOnlyScratch/0555/stop=false (0.06s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:1cda917d4180a745b940c7ba53c748af AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:fixture-policy HostPID:616268 StartTicks:856354757} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:14.847461332 +0000 UTC} Verified:true} namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0555stop=false2958658476/001/state/attempt-1cda917d4180a745b940c7ba53c748af/tmp/cache/nested/file: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0555stop=false2958658476/001/state/attempt-1cda917d4180a745b940c7ba53c748af/tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0555/stop=true (0.05s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:2a0a5c723b7938b622f27977b41db5a5 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533132] ManifestHash:fixture-policy HostPID:616277 StartTicks:856354762} Exit:{Code:-1 Signal:9 ObservedAt:2026-11-03 11:37:14.899798178 +0000 UTC} Verified:true} namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0555stop=true1276642074/001/state/attempt-2a0a5c723b7938b622f27977b41db5a5/tmp/cache/nested/file: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0555stop=true1276642074/001/state/attempt-2a0a5c723b7938b622f27977b41db5a5/tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0500/stop=false (0.05s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:e201f34bc599079ab24e2f942b957914 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533071] ManifestHash:fixture-policy HostPID:616286 StartTicks:856354767} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:14.950980826 +0000 UTC} Verified:true} namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0500stop=false3032694844/001/state/attempt-e201f34bc599079ab24e2f942b957914/tmp/cache/nested/file: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0500stop=false3032694844/001/state/attempt-e201f34bc599079ab24e2f942b957914/tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0500/stop=true (0.05s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:e00521312aba890077d12f7afc5b6041 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533132] ManifestHash:fixture-policy HostPID:616295 StartTicks:856354772} Exit:{Code:-1 Signal:9 ObservedAt:2026-11-03 11:37:15.00379682 +0000 UTC} Verified:true} namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0500stop=true1117198659/001/state/attempt-e00521312aba890077d12f7afc5b6041/tmp/cache/nested/file: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0500stop=true1117198659/001/state/attempt-e00521312aba890077d12f7afc5b6041/tmp/cache/nested/file: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0000/stop=false (0.05s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:992239942fcd9036abb27926e6a555b1 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533135] ManifestHash:fixture-policy HostPID:616305 StartTicks:856354778} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:15.058119002 +0000 UTC} Verified:true} namespace_scratch_cleanup: open /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0000stop=false1418144697/001/state/attempt-992239942fcd9036abb27926e6a555b1/home: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: open /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0000stop=false1418144697/001/state/attempt-992239942fcd9036abb27926e6a555b1/home: permission denied
    --- FAIL: TestNamespaceReadOnlyScratch/0000/stop=true (0.05s)
        recovery_test.go:304: read-only scratch invalidated exit: {Record:{ID:80ad49f0dcd9af2bcba593188f4f74f4 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533132] ManifestHash:fixture-policy HostPID:616314 StartTicks:856354783} Exit:{Code:-1 Signal:9 ObservedAt:2026-11-03 11:37:15.110908426 +0000 UTC} Verified:true} namespace_scratch_cleanup: open /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0000stop=true2609492772/001/state/attempt-80ad49f0dcd9af2bcba593188f4f74f4/home: permission denied
        linux_test.go:58: cleanup: namespace_scratch_cleanup: open /home/paulca/t/e2b/TestNamespaceReadOnlyScratch0000stop=true2609492772/001/state/attempt-80ad49f0dcd9af2bcba593188f4f74f4/home: permission denied
FAIL
rastrillo-budget/v1 ran 319ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.321s
FAIL
```

#### 2. proof-independent

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -220,7 +220,8 @@

 // Scratch has the durable launch ID. Cleanup cannot undo an observed exit.
 func (m *Manager) finishRecovery(proof Proof) (Proof, error) {
-   return proof, removeScratch(filepath.Join(m.cfg.ScratchRoot, "attempt-"+proof.Record.ID))
+   err := removeScratch(filepath.Join(m.cfg.ScratchRoot, "attempt-"+proof.Record.ID))
+ if err != nil { proof.Verified = false }; return proof, err
 }

 func removeScratch(dir string) error {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceCleanupFailureKeepsProof$' -count=1
```

```text
--- FAIL: TestNamespaceCleanupFailureKeepsProof (0.06s)
    recovery_test.go:389: cleanup failure changed proof: {Record:{ID:f93c9f0a656cce7ca2f7213268c3bd80 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:fixture-policy HostPID:616433 StartTicks:856354816} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:15.441338634 +0000 UTC} Verified:false} namespace_scratch_cleanup: unlinkat /home/paulca/t/e2b/TestNamespaceCleanupFailureKeepsProof4160287334/001/state/attempt-f93c9f0a656cce7ca2f7213268c3bd80: permission denied
FAIL
rastrillo-budget/v1 ran 55ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.057s
FAIL
```

#### 3. cleanup-error

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -220,7 +220,7 @@

 // Scratch has the durable launch ID. Cleanup cannot undo an observed exit.
 func (m *Manager) finishRecovery(proof Proof) (Proof, error) {
-   return proof, removeScratch(filepath.Join(m.cfg.ScratchRoot, "attempt-"+proof.Record.ID))
+   _ = removeScratch(filepath.Join(m.cfg.ScratchRoot, "attempt-"+proof.Record.ID)); return proof, nil
 }

 func removeScratch(dir string) error {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceCleanupFailureKeepsProof$' -count=1
```

```text
--- FAIL: TestNamespaceCleanupFailureKeepsProof (0.05s)
    recovery_test.go:389: cleanup failure changed proof: {Record:{ID:de2d4fb06b0fc7b3bb413d95ff3eae08 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532943] ManifestHash:fixture-policy HostPID:616640 StartTicks:856354851} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:15.78345124 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 46ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.048s
FAIL
```

#### 4. symlink-target

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -233,7 +233,8 @@
        if err != nil {
            return err
        }
-       if d.IsDir() {
+       info, statErr := os.Stat(path)
+ if statErr == nil && info.IsDir() {
            return os.Chmod(path, 0700)
        }
        return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryReadOnlyScratch$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryReadOnlyScratch (0.05s)
    recovery_test.go:360: symlink target permissions changed: &{002 4096 2147484096 {99995670 63929302636 0x80d840} {66306 30540801 2 16832 1001 1001 0 0 4096 4096 8 {1793705836 99995670} {1793705836 99995670} {1793705836 99995670} [0 0 0]}} <nil>
FAIL
rastrillo-budget/v1 ran 47ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.049s
FAIL
```

#### 5. gone-init

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -57,7 +57,7 @@
 func exactPID(r Record) (int, error) {
    fd, e := unix.PidfdOpen(r.HostPID, 0)
    if e == unix.ESRCH {
-       return -1, errNamespaceExited
+       return -1, errIdentity
    }
    if e != nil {
        return -1, e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryCrashBeforeExit (0.05s)
    recovery_test.go:446: absent init not recovered with unknown outcome: {Record:{ID:6fed6488dc6566b2219008dc106f8316 AttemptKey:parent-death BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532942] ManifestHash:parent-policy HostPID:616894 StartTicks:856354913} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 48ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.050s
FAIL
```

#### 6. ticks-mismatch

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -62,8 +62,8 @@
    if e != nil {
        return -1, e
    }
-   ticks, ns, e := identity(r.HostPID)
-   if errors.Is(e, os.ErrNotExist) || (e == nil && (ticks != r.StartTicks || ns != r.NamespaceID)) {
+   ticks, ns, e := identity(r.HostPID); _ = ticks
+   if errors.Is(e, os.ErrNotExist) || (e == nil && (false || ns != r.NamespaceID)) {
        unix.Close(fd)
        return -1, errNamespaceExited
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryStaleDurableTicks$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryStaleDurableTicks (0.07s)
    recovery_test.go:176: absent recorded identity not recovered: {Record:{ID:5ce4122cf3d1ac00af8e0e5e248ccc4e AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532944] ManifestHash:fixture-policy HostPID:617022 StartTicks:856354944} Exit:{Code:-1 Signal:9 ObservedAt:2026-11-03 11:37:16.708993771 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 69ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.070s
FAIL
```

#### 7. namespace-mismatch

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -63,7 +63,7 @@
        return -1, e
    }
    ticks, ns, e := identity(r.HostPID)
-   if errors.Is(e, os.ErrNotExist) || (e == nil && (ticks != r.StartTicks || ns != r.NamespaceID)) {
+   if errors.Is(e, os.ErrNotExist) || (e == nil && (ticks != r.StartTicks || false)) {
        unix.Close(fd)
        return -1, errNamespaceExited
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryReusedPID/namespace$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryReusedPID (0.06s)
    --- FAIL: TestNamespaceRecoveryReusedPID/namespace (0.06s)
        recovery_test.go:476: absent init not recovered with unknown outcome: {Record:{ID:0c773f6c11bb26406ac753ad3fea1827 AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[1] ManifestHash:fixture-policy HostPID:617176 StartTicks:856354978} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 57ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.059s
FAIL
```

#### 8. unknown-outcome

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -191,6 +191,7 @@
    }
    fd, e := exactPID(r)
    if errors.Is(e, errNamespaceExited) {
+ proof.Exit.Code = 0
        proof.Verified = true
        proof.Exit.ObservedAt = time.Now().UTC()
        if e = durableJSON(m.cfg.ScratchRoot, r.ID+".exit.json", proof); e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryCrashBeforeExit (0.06s)
    recovery_test.go:446: absent init not recovered with unknown outcome: {Record:{ID:abffcd565878741acef85b591bd5db30 AttemptKey:parent-death BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532944] ManifestHash:parent-policy HostPID:617307 StartTicks:856355006} Exit:{Code:0 Signal:0 ObservedAt:2026-11-03 11:37:17.340388664 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 57ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.059s
FAIL
```

#### 9. durable-exit

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -193,7 +193,7 @@
    if errors.Is(e, errNamespaceExited) {
        proof.Verified = true
        proof.Exit.ObservedAt = time.Now().UTC()
-       if e = durableJSON(m.cfg.ScratchRoot, r.ID+".exit.json", proof); e != nil {
+       if e = error(nil); e != nil {
            proof.Verified = false
            return proof, e
        }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryCrashBeforeExit (0.05s)
    recovery_test.go:446: recovery proof not durable: {Record:{ID:253199739898d5f68e5434a4145f0116 AttemptKey:parent-death BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:parent-policy HostPID:617460 StartTicks:856355038} Exit:{Code:-1 Signal:0 ObservedAt:2026-11-03 11:37:17.660847264 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 52ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.053s
FAIL
```

#### 10. saved-record-match

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -186,7 +186,7 @@
    }
    stored, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".json"))
    var durable Record
-   if readErr != nil || json.Unmarshal(stored, &durable) != nil || durable != r {
+   if readErr != nil || json.Unmarshal(stored, &durable) != nil || false {
        return proof, errIdentity
    }
    fd, e := exactPID(r)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryIdentity/reused_pid$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryIdentity (0.07s)
    --- FAIL: TestNamespaceRecoveryIdentity/reused_pid (0.01s)
        recovery_test.go:42: uncertain identity accepted: {Record:{ID:2506f4816eb36e89dc8e53f3f870a80f AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:fixture-policy HostPID:617587 StartTicks:856355070} Exit:{Code:-1 Signal:0 ObservedAt:2026-11-03 11:37:17.965976171 +0000 UTC} Verified:true} <nil>
    recovery_test.go:64: recover exact identity: {Record:{ID:2506f4816eb36e89dc8e53f3f870a80f AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:fixture-policy HostPID:617587 StartTicks:856355069} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 69ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.071s
FAIL
```

#### 11. malformed-id

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -156,8 +156,8 @@
 // absent, the kernel has finished killing its namespace. Its outcome is unknown.
 func (m *Manager) Recover(ctx context.Context, r Record) (Proof, error) {
    proof := Proof{Record: r, Exit: provider.Exit{Code: -1}}
-   _, idErr := hex.DecodeString(r.ID)
-   if len(r.ID) != 32 || idErr != nil || strings.ContainsAny(r.ID, "/.\\") || r.AttemptKey == "" || r.BootID == "" || r.ManifestHash == "" {
+   _, idErr := hex.DecodeString(r.ID); _ = idErr
+   if len(r.ID) != 32 || false || strings.ContainsAny(r.ID, "/.\\") || r.AttemptKey == "" || r.BootID == "" || r.ManifestHash == "" {
        return proof, errIdentity
    }
    boot, e := bootID()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord/id$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryMalformedRecord (0.08s)
    --- FAIL: TestNamespaceRecoveryMalformedRecord/id (0.08s)
        recovery_test.go:518: malformed record accepted: {Record:{ID:zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026533069] ManifestHash:fixture-policy HostPID:617712 StartTicks:856355102} Exit:{Code:-1 Signal:0 ObservedAt:2026-11-03 11:37:18.320341693 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 83ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.084s
FAIL
```

#### 12. malformed-namespace

```diff
--- internal/runner/containment/recovery.go
+++ internal/runner/containment/recovery.go
@@ -170,7 +170,8 @@
        return m.finishRecovery(proof)
    }
    nsID, nsErr := strconv.ParseUint(strings.TrimSuffix(strings.TrimPrefix(r.NamespaceID, "pid:["), "]"), 10, 64)
-   if r.HostPID <= 0 || r.StartTicks == 0 || nsErr != nil || nsID == 0 || r.NamespaceID != fmt.Sprintf("pid:[%d]", nsID) {
+   _ = nsID; _ = nsErr
+ if r.HostPID <= 0 || r.StartTicks == 0 || r.NamespaceID == "" {
        return proof, errIdentity
    }
    saved, readErr := os.ReadFile(filepath.Join(m.cfg.ScratchRoot, r.ID+".exit.json"))
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord/namespace$' -count=1
```

```text
--- FAIL: TestNamespaceRecoveryMalformedRecord (0.09s)
    --- FAIL: TestNamespaceRecoveryMalformedRecord/namespace (0.09s)
        recovery_test.go:518: malformed record accepted: {Record:{ID:4c7eb1621774dd6be136f34847a2976d AttemptKey:attempt-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:invalid ManifestHash:fixture-policy HostPID:617855 StartTicks:856355138} Exit:{Code:-1 Signal:0 ObservedAt:2026-11-03 11:37:18.688079894 +0000 UTC} Verified:true} <nil>
FAIL
rastrillo-budget/v1 ran 89ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.090s
FAIL
```

### User-facing strings

No UI text, README prose or copy.go entries were added. New internal strings are `namespace_exited` (the private identity result) and `namespace_scratch_cleanup` (the cleanup error prefix, followed by the underlying filesystem error). If mapped into the app later, they need individually pending copy.go entries and review before release. New test diagnostics concern invalidated proof, retained scratch, changed symlink targets, cleanup retry, unreaped init, missing or non-durable inferred proof, and malformed records. No copy-review skill or server was invoked.

### Concerns and handback

The existing test-helper EINTR failure occurred once and is recorded above; the final covering gates pass. The controller still owns remote CI verification and independent review. No push, merge, deployment, provider prompt, sign-in, enrolment, credential home, agent or subagent was used. No full suite or make ci ran.

All test-owned processes and scratch were cleaned up. The mutation evidence directory is removed after transferring its contents into both reports. No server or watcher was started. The branch is ready for controller review.


## Task 3: Provider egress without host services

Status: DONE.
Commit subject: `feat: restrict provider egress outside the host network`.
Branch: `plan-2b`. No push, merge or deployment.

### What changed

Each provider attempt now owns a private Unix CONNECT endpoint and a Go relay inside its private network namespace. The relay binds `127.0.0.1:18080`, dials only `/egress/proxy.sock`, and runs as goroutines in the existing nondumpable PID 1 helper. The helper starts it before the harness and still reaps orphaned children. Production needs no Python or socat.

The host endpoint accepts only exact allowed DNS names on port 443. It rejects numeric addresses, aliases, wildcard matches, other methods, framing headers, duplicate headers, conflicting Host values, queued requests and malformed HTTP. Each connection resolves once, rejects the entire answer if any address is nonpublic, and dials the validated numeric address. Loopback, private, LAN, link-local, metadata, Tailscale `100.64.0.0/10`, multicast, documentation and reserved address ranges are denied. IPv6 is restricted to public global unicast and excludes transition and special ranges. TLS bytes pass through unchanged; the local fixture verifies the certificate and completes an HTTPS request through the tunnel.

Limits are 8 KiB of request headers, 16 concurrent connections including unfinished headers, a 15-second connect deadline covering resolution and dialing, and 60 seconds of tunnel inactivity. Header intake also has a 15-second deadline. Traffic in either direction renews the idle deadline. The namespace relay has its own 16-connection bound. The host has no TCP proxy listener.

The endpoint closes accepted and upstream sockets on cancellation, listener failure and explicit close. The Manager closes it on normal exit, stop and failed startup, and kills the exact init through its existing pidfd when the proxy fails. PID 1 exits if its relay fails. Socket cleanup and proof publication finish before Wait acknowledges exit. The private directory is mode 0700, the socket is mode 0600, and only the pinned socket is mounted read-only. Existing arbitrary socket imports and caller-supplied proxy environment entries remain forbidden.

### Interfaces and files

- `internal/runner/egress/policy.go`: `Policy{Provider string; Hosts []string}`, exact policy hashing, provider defaults and public-address validation.
- `internal/runner/egress/proxy.go`: `Open(context.Context, string, Policy) (*Proxy, error)`, `Proxy.Close() error`, `Proxy.SocketPath() string`, failure notification through `Done()`, strict parsing and bounded tunnels.
- `internal/runner/egress/{proxy,budget}_test.go`: owned TLS fixtures, injected resolver and dialer, parser, address, timeout, concurrency, lifecycle and policy tests; repository budget TestMain.
- `internal/runner/provider/types.go`: typed `NetworkContract{Provider, AuthHost string}` and `Binding.DedicatedHome`, false by default.
- `internal/runner/containment/egress.go`: trusted contract selection, endpoint creation, pinned socket mount, fixed proxy environment and namespace relay.
- `internal/runner/containment/egress_test.go`: real namespace host-service controls, endpoint lifetime, mount protection, installed contract, staged-home and failed-startup tests.
- `internal/runner/containment/linux.go`: immutable installed contracts, proxy lifecycle and failure handling, relay startup and concurrent child reaping.
- `internal/runner/containment/mounts.go`: retained per-attempt proxy ownership alongside the mount plan.
- `internal/runner/containment/recovery.go`: additive `Record.EgressHash`, included in the existing durable record and exact-record comparison.
- `cmd/equipo-runner/namespace.go`: documents the command wrapper's relay ownership through `containment.NamespaceMain`.
- This section in `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`; the requested local report under `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-3-report.md`.

### Interpretations

1. The string argument to `egress.Open` is an existing private directory. It creates `proxy.sock` there and refuses to replace an existing socket. Containment creates a separate directory inside each durable attempt directory. Callers must keep paths within Linux's Unix socket path limit; these tests use the short on-disk TMPDIR requested by the controller.
2. Task 2's reusable helper lives in `containment.NamespaceMain`, with the command wrapper in `cmd/equipo-runner/namespace.go`. The implementation extends that shared helper, keeping tests on the production implementation. The extra containment file keeps the socket import and relay separate from general mount handling.
3. Provider names follow Task 1: `claude` starts with `api.anthropic.com`; `codex` starts with `chatgpt.com`. `Config.ProviderNetworks` accepts typed installed contracts, copies them at construction and rejects duplicates. No auth host is supplied by default. Only a dedicated, staged home may use an explicit contract auth host. Shared homes exclude it. Task 4 must establish `DedicatedHome` from verified home provenance; Task 11b must certify each actual auth hostname before installing it. Tests use only `refresh.example` and do not create credential homes.
4. The exact sorted host set and provider are hashed with SHA-256 and saved as `Record.EgressHash`. The caller's existing `ManifestHash` is preserved. Later manifest/preflight work can bind this network hash into its effective-policy evidence; this task does not invent a provider attestation.
5. Launches with no selected provider retain their disconnected network namespace and receive no proxy. Unknown selected providers fail closed. There is no permission-answer input to the installed network contract, relay address or socket path.
6. Resolver, dialer and shortened deadline injection are unexported package implementation parameters, used only by local tests. Production `Open` always uses the real public-address validator and fixed limits. The TLS test presents a public DNS answer to that validator, then its private test dialer connects to its owned loopback TLS server. Neither configuration nor model input can select these dependencies.
7. The shared-network positive controls connect to test-owned loopback TCP and abstract Unix listeners from the test process's host network namespace. The final launch fails both connections. Removing only `--unshare-net` makes both controls reachable from the same launch. No test or mutation contacts a provider or the real Internet.
8. The task's explicit instructions override generic writing/delegation workflows: no copy-review skill or server, no subagents and no model calls. The report is written directly. `.superpowers/` is already ignored by the repository; the local task report stays there, and the full evidence is committed in the controller report.

### RED and GREEN evidence

All commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b`, with `CGO_ENABLED=0`, the existing on-disk TMPDIR and default Go caches. No full suite, `make ci`, live gate, credential operation or provider prompt ran.

Tests were written before implementation. Initial RED:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
```

```text
amadan.net/oficina/equipo/internal/runner/egress: no non-test Go files in /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress
# amadan.net/oficina/equipo/internal/runner/egress [amadan.net/oficina/equipo/internal/runner/egress.test]
internal/runner/egress/proxy_test.go:31:116: undefined: Proxy
internal/runner/egress/proxy_test.go:33:7: undefined: defaults
internal/runner/egress/proxy_test.go:36:12: undefined: open
internal/runner/egress/proxy_test.go:36:49: undefined: Policy
internal/runner/egress/proxy_test.go:41:30: undefined: Proxy
internal/runner/egress/proxy_test.go:70:5: undefined: defaults
internal/runner/egress/proxy_test.go:71:7: undefined: open
internal/runner/egress/proxy_test.go:71:44: undefined: Policy
internal/runner/egress/proxy_test.go:79:5: undefined: defaults
internal/runner/egress/proxy_test.go:89:7: undefined: open
internal/runner/egress/proxy_test.go:89:7: too many errors
FAIL    amadan.net/oficina/equipo/internal/runner/egress [build failed]
FAIL    amadan.net/oficina/equipo/internal/runner/containment [build failed]
FAIL
```

The first implementation run exposed a fixture setup error: the TLS client had trusted roots but no ServerName. The fixture now supplies `127.0.0.1`, verifies the owned certificate, and retains end-to-end TLS. No production check was weakened.

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
```

```text
2026/11/03 11:49:52 http: TLS handshake error from 127.0.0.1:52548: EOF
--- FAIL: TestEgressAllowsOnlyProviderTLS (0.00s)
    proxy_test.go:144: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
FAIL
rastrillo-budget/v1 ran 3.198s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.214s
ok      amadan.net/oficina/equipo/internal/runner/containment   1.315s
FAIL
```

The corrected fixture and initial implementation passed the exact brief command:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    3.201s
ok      amadan.net/oficina/equipo/internal/runner/containment   0.864s
```

A later failing test showed that setting the dedicated-home flag without a staged home could qualify for refresh. The guard was added after this RED:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgressActiveTunnelClose|TestEgressPolicyFrozen|TestEgressHeaderTimeout|TestEgressInstalledContract|TestEgressRefreshRequiresStagedHome' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    0.087s
--- FAIL: TestEgressRefreshRequiresStagedHome (0.06s)
    egress_test.go:220: unstaged home qualified for refresh
FAIL
rastrillo-budget/v1 ran 68ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.071s
FAIL
```

GREEN after requiring a staged home and strengthening read-only socket checks:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    3.263s
ok      amadan.net/oficina/equipo/internal/runner/containment   0.550s
```

Additional lifecycle and parser checks passed before their mutations:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgressDiesWithAttempt|TestEgressActiveTunnelClose|TestEgressStartupFailureClosesProxy' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    0.004s
ok      amadan.net/oficina/equipo/internal/runner/containment   0.516s
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run 'TestEgressRejectsSmuggling|TestEgressRejectsHostServices/resolver_error' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    3.005s
```

Final GREEN after restoring all mutations, including the helper regression checks:

```sh
CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl|TestNamespaceReapsOrphans|TestNamespaceHelperProtocolPrivate|TestNamespaceHelperBarrier|TestNamespaceExitStatus|TestNamespaceCancellation|TestNamespaceStartupFailure|TestNamespaceSocketImport|TestNamespacePinnedMountSwap|TestNamespaceKillsDetachedChildren|TestNamespaceNestedUserNamespace' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/egress    3.268s
ok      amadan.net/oficina/equipo/internal/runner/containment   1.236s
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./cmd/equipo-runner -run 'TestDirect|TestToolVerbClosed|TestRunnerServiceVerbs|TestRunnerDiagnosticIsCredentialFree' -count=1
```

```text
ok      amadan.net/oficina/equipo/internal/runner/provider  0.007s
ok      amadan.net/oficina/equipo/cmd/equipo-runner 0.060s
```

```sh
CGO_ENABLED=0 go vet ./internal/runner/egress ./internal/runner/containment ./internal/runner/provider ./cmd/equipo-runner
```

```text
Exit 0, no output.
```

```sh
CGO_ENABLED=0 go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./internal/runner/egress ./internal/runner/containment ./internal/runner/provider ./cmd/equipo-runner
```

```text
Exit 0, no output.
```

```sh
CGO_ENABLED=0 go build -o /home/paulca/t/e2b/t3-evidence/equipo-runner ./cmd/equipo-runner
```

```text
Exit 0, no output.
```

`git diff --check` and `gofmt -l` on every changed Go file both produced no output. The build artifact was confined to owned on-disk scratch.

### Independent guard mutations

Each mutation below was applied alone to green production source, compiled, produced the named failing test and was restored in a `finally` block before the next mutation. All 37 exited 1 with a named test failure; none failed to compile. The patch and command identify each mutation. Diff indentation is rendered with spaces for the report. Output excerpts retain failure diagnostics; the network-isolation failure also printed `HOST REACHABLE` for both owned controls.

#### 1. network-unsharing

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -241,7 +241,7 @@
        result <- startResult{err: e}
        return
    }
-   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   args := []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
    args = append(args, mounts.args...)
    args = append(args, "--", "/equipo-namespace", "__namespace")
    if mounts.proxy != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.17s)
FAIL
rastrillo-budget/v1 ran 173ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.192s
FAIL
```

#### 2. exact-host

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -213,7 +213,7 @@
    c.SetDeadline(time.Now().Add(p.deps.connect))
    r := bufio.NewReaderSize(c, MaxHeaders+1)
    host, e := authority(r)
-   if e != nil || !p.hosts[host] {
+   if e != nil || false {
        io.WriteString(c, "HTTP/1.1 403 Forbidden\r\n\r\n")
        return
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.01s)
    proxy_test.go:80: denied request reached dialer
FAIL
rastrillo-budget/v1 ran 13ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.028s
FAIL
```

#### 3. public-address

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -226,7 +226,7 @@
    }
    // Reject the whole answer if any address is unsafe. Never resolve again in Dial.
    for _, a := range addresses {
-       if !publicAddress(a) {
+       if false && !publicAddress(a) {
            io.WriteString(c, "HTTP/1.1 403 Forbidden\r\n\r\n")
            return
        }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.01s)
    --- FAIL: TestEgressRejectsHostServices/127.0.0.1 (0.00s)
        proxy_test.go:88: nonpublic DNS answer reached dialer
    --- FAIL: TestEgressRejectsHostServices/10.0.0.1 (0.00s)
        proxy_test.go:88: nonpublic DNS answer reached dialer
    --- FAIL: TestEgressRejectsHostServices/172.16.0.1 (0.00s)
        proxy_test.go:88: nonpublic DNS answer reached dialer
    --- FAIL: TestEgressRejectsHostServices/192.168.0.1 (0.00s)
        proxy_test.go:88: nonpublic DNS answer reached dialer
...
FAIL
rastrillo-budget/v1 ran 10ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.019s
FAIL
```

#### 4. validated-dial

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -231,7 +231,7 @@
            return
        }
    }
-   upstream, e := p.deps.dial(ctx, "tcp", net.JoinHostPort(addresses[0].Unmap().String(), "443"))
+   upstream, e := p.deps.dial(ctx, "tcp", net.JoinHostPort(host, "443"))
    if e != nil {
        io.WriteString(c, "HTTP/1.1 502 Bad Gateway\r\n\r\n")
        return
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressAllowsOnlyProviderTLS$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressAllowsOnlyProviderTLS (0.00s)
    proxy_test.go:126: unvalidated dial: tcp fixture.example:443
FAIL
rastrillo-budget/v1 ran 5ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.010s
FAIL
```

#### 5. port-443

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -181,7 +181,7 @@
        return "", errPolicy
    }
    host, port, e := net.SplitHostPort(first[1])
-   if e != nil || port != "443" || !hostname(host) {
+   if e != nil || port == "" || !hostname(host) {
        return "", errPolicy
    }
    seen := map[string]bool{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.00s)
    proxy_test.go:80: denied request reached dialer
FAIL
rastrillo-budget/v1 ran 2ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.009s
FAIL
```

#### 6. connect-method

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -177,7 +177,7 @@
    }
    lines := strings.Split(string(data), "\r\n")
    first := strings.Split(lines[0], " ")
-   if len(first) != 3 || first[0] != "CONNECT" || (first[2] != "HTTP/1.1" && first[2] != "HTTP/1.0") {
+   if len(first) != 3 || false || (first[2] != "HTTP/1.1" && first[2] != "HTTP/1.0") {
        return "", errPolicy
    }
    host, port, e := net.SplitHostPort(first[1])
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.00s)
    --- FAIL: TestEgressRejectsSmuggling/case037 (0.00s)
        proxy_test.go:179: smuggling reached dial: "POST fixture.example:443 HTTP/1.1\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.003s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.009s
FAIL
```

#### 7. http-version

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -177,7 +177,7 @@
    }
    lines := strings.Split(string(data), "\r\n")
    first := strings.Split(lines[0], " ")
-   if len(first) != 3 || first[0] != "CONNECT" || (first[2] != "HTTP/1.1" && first[2] != "HTTP/1.0") {
+   if len(first) != 3 || first[0] != "CONNECT" || false {
        return "", errPolicy
    }
    host, port, e := net.SplitHostPort(first[1])
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.00s)
    --- FAIL: TestEgressRejectsSmuggling/case040 (0.00s)
        proxy_test.go:179: smuggling reached dial: "CONNECT fixture.example:443 HTTP/2.0\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.002s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.005s
FAIL
```

#### 8. queued-request

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -172,7 +172,7 @@
            break
        }
    }
-   if !bytes.HasSuffix(data, []byte("\r\n\r\n")) || r.Buffered() != 0 {
+   if !bytes.HasSuffix(data, []byte("\r\n\r\n")) || false {
        return "", errPolicy
    }
    lines := strings.Split(string(data), "\r\n")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.01s)
    --- FAIL: TestEgressRejectsSmuggling/case085 (0.00s)
        proxy_test.go:179: smuggling reached dial: "CONNECT fixture.example:443 HTTP/1.1\r\nHost: fixture.example:443\r\n\r\nGET / HTTP/1.1\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.006s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.009s
FAIL
```

#### 9. framing-headers

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -199,7 +199,7 @@
            }
        case "user-agent", "proxy-connection", "connection":
        default:
-           return "", errPolicy
+            continue
        }
    }
    req, e := http.ReadRequest(bufio.NewReader(bytes.NewReader(data)))
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.00s)
    --- FAIL: TestEgressRejectsSmuggling/case059 (0.00s)
        proxy_test.go:179: smuggling reached dial: "CONNECT fixture.example:443 HTTP/1.1\r\nContent-Length: 0\r\n\r\n"
    --- FAIL: TestEgressRejectsSmuggling/case168 (0.00s)
        proxy_test.go:179: smuggling reached dial: "CONNECT fixture.example:443 HTTP/1.1\r\nTransfer-Encoding: chunked\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.004s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.007s
FAIL
```

#### 10. host-header

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -194,7 +194,7 @@
        seen[key] = true
        switch key {
        case "host":
-           if strings.TrimSpace(value) != first[1] {
+           if false && strings.TrimSpace(value) != first[1] {
                return "", errPolicy
            }
        case "user-agent", "proxy-connection", "connection":
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.00s)
    --- FAIL: TestEgressRejectsSmuggling/case065 (0.00s)
        proxy_test.go:179: smuggling reached dial: "CONNECT fixture.example:443 HTTP/1.1\r\nHost: other.example:443\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.004s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.008s
FAIL
```

#### 11. header-cap

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -162,7 +162,7 @@
 // destination. Framing headers and queued requests are rejected before dialing.
 func authority(r *bufio.Reader) (string, error) {
    data := make([]byte, 0, MaxHeaders)
-   for len(data) < MaxHeaders {
+   for len(data) < MaxHeaders*2 {
        b, e := r.ReadByte()
        if e != nil {
            return "", e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/headers$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressLimits (0.00s)
    --- FAIL: TestEgressLimits/headers (0.00s)
        proxy_test.go:231: oversized headers dialled
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.005s
FAIL
```

#### 12. socket-cap

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -142,7 +142,7 @@
            return
        }
        p.mu.Lock()
-       if p.closed || len(p.clients) >= MaxTunnels {
+       if p.closed || false {
            p.mu.Unlock()
            c.Close()
            continue
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/concurrent$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressLimits (1.01s)
    --- FAIL: TestEgressLimits/concurrent (1.00s)
        proxy_test.go:267: extra socket remained open
FAIL
rastrillo-budget/v1 ran 1.005s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.010s
FAIL
```

#### 13. connect-timeout

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -217,7 +217,7 @@
        io.WriteString(c, "HTTP/1.1 403 Forbidden\r\n\r\n")
        return
    }
-   ctx, cancel := context.WithTimeout(p.ctx, p.deps.connect)
+   ctx, cancel := context.WithCancel(p.ctx)
    defer cancel()
    addresses, e := p.deps.lookup(ctx, host)
    if e != nil || len(addresses) == 0 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/connect$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressLimits (3.00s)
    --- FAIL: TestEgressLimits/connect (3.00s)
        proxy_test.go:315: connect timeout missing
FAIL
rastrillo-budget/v1 ran 3.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.011s
FAIL
```

#### 14. header-timeout

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -210,7 +210,7 @@
    return host, nil
 }
 func (p *Proxy) handle(c net.Conn) {
-   c.SetDeadline(time.Now().Add(p.deps.connect))
+   c.SetDeadline(time.Time{})
    r := bufio.NewReaderSize(c, MaxHeaders+1)
    host, e := authority(r)
    if e != nil || !p.hosts[host] {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressHeaderTimeout$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressHeaderTimeout (1.00s)
    proxy_test.go:469: incomplete header kept socket open
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.006s
FAIL
```

#### 15. idle-timeout

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -254,7 +254,7 @@
 // Tunnel copies opaque TLS bytes. Traffic in either direction renews the idle
 // deadline for both sockets; closing either side releases both copying goroutines.
 func Tunnel(a, b net.Conn, idle time.Duration) {
-   touch := func() { deadline := time.Now().Add(idle); a.SetDeadline(deadline); b.SetDeadline(deadline) }
+   touch := func() { deadline := time.Now().Add(time.Hour); a.SetDeadline(deadline); b.SetDeadline(deadline) }
    touch()
    copyTo := func(dst, src net.Conn) {
        buffer := make([]byte, 32*1024)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/idle$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressLimits (1.00s)
    --- FAIL: TestEgressLimits/idle (1.00s)
        proxy_test.go:297: idle tunnel not closed
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.008s
FAIL
```

#### 16. private-directory

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -83,7 +83,7 @@
    if e = unix.Fstat(fd, &st); e != nil {
        return nil, e
    }
-   if st.Mode&0777 != 0700 || st.Uid != uint32(os.Geteuid()) {
+   if false || st.Uid != uint32(os.Geteuid()) {
        return nil, errPolicy
    }
    path := filepath.Join(dir, "proxy.sock")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPrivateSocket (0.00s)
    proxy_test.go:371: nonprivate directory accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 17. symlink-directory

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -74,7 +74,7 @@
    if !filepath.IsAbs(dir) || filepath.Clean(dir) != dir {
        return nil, errPolicy
    }
-   fd, e := unix.Openat2(unix.AT_FDCWD, dir, &unix.OpenHow{Flags: unix.O_PATH | unix.O_DIRECTORY | unix.O_CLOEXEC, Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_NO_MAGICLINKS})
+   fd, e := unix.Openat2(unix.AT_FDCWD, dir, &unix.OpenHow{Flags: unix.O_PATH | unix.O_DIRECTORY | unix.O_CLOEXEC, Resolve: 0})
    if e != nil {
        return nil, e
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPrivateSocket (0.00s)
    proxy_test.go:377: symlink directory accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 18. private-socket

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -91,7 +91,7 @@
    if e != nil {
        return nil, e
    }
-   if e = os.Chmod(path, 0600); e != nil {
+   if e = os.Chmod(path, 0666); e != nil {
        ln.Close()
        return nil, e
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPrivateSocket (0.00s)
    proxy_test.go:362: socket mode: &{proxy.sock 0 16777654 {200480172 63929303677 0xb493a0} {66306 45383338 1 49590 1001 1001 0 0 0 4096 0 {1793706877 200480172} {1793706877 200480172} {1793706877 200480172} [0 0 0]}} <nil>
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 19. dedicated-refresh

```diff
--- internal/runner/egress/policy.go
+++ internal/runner/egress/policy.go
@@ -36,7 +36,7 @@
        if !hostname(c.AuthHost) {
            return Policy{}, errPolicy
        }
-       if dedicated && c.AuthHost != p.Hosts[0] {
+       if c.AuthHost != p.Hosts[0] {
            p.Hosts = append(p.Hosts, c.AuthHost)
        }
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPolicy (0.00s)
    proxy_test.go:332: shared home got refresh
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 20. policy-provider-hash

```diff
--- internal/runner/egress/policy.go
+++ internal/runner/egress/policy.go
@@ -75,7 +75,7 @@
            return "", errPolicy
        }
    }
-   b, _ := json.Marshal(Policy{Provider: p.Provider, Hosts: hosts})
+   b, _ := json.Marshal(Policy{Hosts: hosts})
    hash := sha256.Sum256(b)
    return hex.EncodeToString(hash[:]), nil
 }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPolicy (0.00s)
    proxy_test.go:349: policy hash does not bind exact host set and provider
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 21. policy-host-hash

```diff
--- internal/runner/egress/policy.go
+++ internal/runner/egress/policy.go
@@ -75,7 +75,7 @@
            return "", errPolicy
        }
    }
-   b, _ := json.Marshal(Policy{Provider: p.Provider, Hosts: hosts})
+   b, _ := json.Marshal(Policy{Provider: p.Provider})
    hash := sha256.Sum256(b)
    return hex.EncodeToString(hash[:]), nil
 }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPolicy (0.00s)
    proxy_test.go:349: policy hash does not bind exact host set and provider
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 22. policy-duplicates

```diff
--- internal/runner/egress/policy.go
+++ internal/runner/egress/policy.go
@@ -71,7 +71,7 @@
    hosts := append([]string(nil), p.Hosts...)
    sort.Strings(hosts)
    for i, h := range hosts {
-       if !hostname(h) || (i > 0 && h == hosts[i-1]) {
+       if !hostname(h) || (false && i > 0 && h == hosts[i-1]) {
            return "", errPolicy
        }
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressPolicy (0.00s)
    proxy_test.go:341: invalid policy accepted: {Provider:claude Hosts:[fixture.example fixture.example]}
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.002s
FAIL
```

#### 23. contract-duplicates

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -96,7 +96,7 @@
    }
    seen := map[string]bool{}
    for _, c := range cfg.ProviderNetworks {
-       if seen[c.Provider] {
+       if false && seen[c.Provider] {
            return nil, errStartup
        }
        if _, e := egress.ProviderPolicy(c, true); e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressInstalledContract$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressInstalledContract (0.01s)
    egress_test.go:204: invalid installed contracts accepted: [{Provider:claude AuthHost:} {Provider:claude AuthHost:refresh.example}]
FAIL
rastrillo-budget/v1 ran 6ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.010s
FAIL
```

#### 24. contract-freeze

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -104,7 +104,7 @@
        }
        seen[c.Provider] = true
    }
-   cfg.ProviderNetworks = append([]provider.NetworkContract(nil), cfg.ProviderNetworks...)
+   cfg.ProviderNetworks = cfg.ProviderNetworks
    return &Manager{cfg: cfg, processes: make(map[string]*process)}, nil
 }
 func (m *Manager) Start(ctx context.Context, l provider.Launch, argv []string) (provider.Process, error) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressInstalledContract$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressInstalledContract (0.01s)
    egress_test.go:216: installed contract changed after New
FAIL
rastrillo-budget/v1 ran 8ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.011s
FAIL
```

#### 25. staged-home

```diff
--- internal/runner/containment/egress.go
+++ internal/runner/containment/egress.go
@@ -17,7 +17,7 @@
    if l.Selection.Provider == "" {
        return "", nil
    }
-   if l.Binding.DedicatedHome && l.Binding.Home == "" {
+   if false && l.Binding.DedicatedHome && l.Binding.Home == "" {
        return "", errMount
    }
    contract := provider.NetworkContract{Provider: l.Selection.Provider}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRefreshRequiresStagedHome$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRefreshRequiresStagedHome (0.10s)
    egress_test.go:225: unstaged home qualified for refresh
FAIL
rastrillo-budget/v1 ran 102ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.106s
FAIL
```

#### 26. socket-readonly

```diff
--- internal/runner/containment/egress.go
+++ internal/runner/containment/egress.go
@@ -59,7 +59,7 @@
    }
    // This is the sole socket import. The parent directory and other host sockets
    // remain absent; the retained O_PATH descriptor pins this exact endpoint.
-   p.args = append(p.args, "--ro-bind-fd", strconv.Itoa(6+len(p.files)), egress.NamespaceSocket)
+   p.args = append(p.args, "--bind-fd", strconv.Itoa(6+len(p.files)), egress.NamespaceSocket)
    p.files = append(p.files, f)
    for _, key := range []string{"HTTPS_PROXY", "HTTP_PROXY", "https_proxy", "http_proxy"} {
        p.args = append(p.args, "--setenv", key, egress.ProxyURL)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.14s)
FAIL
rastrillo-budget/v1 ran 138ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.142s
FAIL
```

#### 27. durable-host-hash

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -140,6 +140,7 @@
        return nil, e
    }
    egressHash, e := m.openEgress(ctx, l, dir, mounts)
+ _ = egressHash
    if e != nil {
        mounts.close()
        return nil, e
@@ -155,7 +156,7 @@
        mounts.close()
        return nil, e
    }
-   r := Record{ID: id, AttemptKey: l.AttemptKey, BootID: boot, ManifestHash: l.Policy.Hash, EgressHash: egressHash}
+   r := Record{ID: id, AttemptKey: l.AttemptKey, BootID: boot, ManifestHash: l.Policy.Hash, EgressHash: ""}
    if e = m.persist(r); e != nil {
        mounts.close()
        return nil, e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressMountPolicy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressMountPolicy (0.11s)
    egress_test.go:190: missing exact host-policy hash: "" want "394fd26429f90b51179904566a234b2ab48d63341e623f85f1a80c6d0d9220c5"
FAIL
rastrillo-budget/v1 ran 110ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.114s
FAIL
```

#### 28. proxy-failure-stops

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -360,7 +360,7 @@
        case <-ctx.Done():
            p.kill()
        case <-proxyDone:
-           p.kill()
+            // mutation: no stop
        case <-lifecycleDone:
        }
    }()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressDiesWithAttempt/proxy_failure$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressDiesWithAttempt (3.14s)
    --- FAIL: TestEgressDiesWithAttempt/proxy_failure (3.14s)
        egress_test.go:142: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 3.137s
FAIL    amadan.net/oficina/equipo/internal/runner/containment   3.146s
FAIL
```

#### 29. close-on-stop

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -196,7 +196,7 @@
    }()
    defer mounts.close()
    if mounts.proxy != nil {
-       defer mounts.proxy.Close()
+       // mutation: no deferred proxy close
    }
    var files []*os.File
    pipe := func() (*os.File, *os.File, error) {
@@ -397,7 +397,7 @@
        }
    }
    if p.egress != nil {
-       p.egress.Close()
+       // mutation: no proxy close on stop
    }
    var cleanupErr error
    p.proof, cleanupErr = m.finishRecovery(p.proof)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressDiesWithAttempt/stop$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressDiesWithAttempt (0.16s)
    --- FAIL: TestEgressDiesWithAttempt/stop (0.16s)
        egress_test.go:151: proxy outlived attempt
FAIL
rastrillo-budget/v1 ran 164ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.170s
FAIL
```

#### 30. duplicate-header

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -188,7 +188,7 @@
    for _, line := range lines[1 : len(lines)-2] {
        key, value, ok := strings.Cut(line, ":")
        key = strings.ToLower(key)
-       if !ok || seen[key] {
+       if !ok || false {
            return "", errPolicy
        }
        seen[key] = true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsSmuggling (3.00s)
    --- FAIL: TestEgressRejectsSmuggling/case070 (0.00s)
        proxy_test.go:182: smuggling reached dial: "CONNECT fixture.example:443 HTTP/1.1\r\nUser-Agent: a\r\nUser-Agent: b\r\n\r\n"
FAIL
rastrillo-budget/v1 ran 3.002s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    3.004s
FAIL
```

#### 31. resolver-error

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -220,7 +220,7 @@
    ctx, cancel := context.WithTimeout(p.ctx, p.deps.connect)
    defer cancel()
    addresses, e := p.deps.lookup(ctx, host)
-   if e != nil || len(addresses) == 0 {
+   if false || len(addresses) == 0 {
        io.WriteString(c, "HTTP/1.1 502 Bad Gateway\r\n\r\n")
        return
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices/resolver_error$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.00s)
    --- FAIL: TestEgressRejectsHostServices/resolver_error (0.00s)
        proxy_test.go:106: DNS error dialled
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/egress    0.003s
FAIL
```

#### 32. context-closes

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -105,7 +105,7 @@
    go func() {
        select {
        case <-ctx.Done():
-           p.shutdown()
+            // mutation: ignore cancellation
        case <-p.done:
        }
    }()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressDiesWithAttempt$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressDiesWithAttempt (1.00s)
    proxy_test.go:220: proxy outlived context
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.003s
FAIL
```

#### 33. listener-failure

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -135,7 +135,7 @@
 func (p *Proxy) active() int  { p.mu.Lock(); defer p.mu.Unlock(); return len(p.clients) }
 func (p *Proxy) serve() {
    defer p.wg.Done()
-   defer p.shutdown()
+   // mutation: no shutdown on listener failure
    for {
        c, e := p.listener.Accept()
        if e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressActiveTunnelClose/listener_failure$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressActiveTunnelClose (1.00s)
    --- FAIL: TestEgressActiveTunnelClose/listener_failure (1.00s)
        proxy_test.go:432: proxy failure not reported
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.003s
FAIL
```

#### 34. active-socket-close

```diff
--- internal/runner/egress/proxy.go
+++ internal/runner/egress/proxy.go
@@ -121,12 +121,7 @@
        p.closed = true
        p.cancel()
        p.listener.Close()
-       for c := range p.clients {
-           c.Close()
-       }
-       for c := range p.upstreams {
-           c.Close()
-       }
+       // mutation: retain active sockets
        p.mu.Unlock()
        close(p.done)
    })
```

```sh
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressActiveTunnelClose/close$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressActiveTunnelClose (1.00s)
    --- FAIL: TestEgressActiveTunnelClose/close (1.00s)
        proxy_test.go:423: proxy close did not interrupt sockets
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL    amadan.net/oficina/equipo/internal/runner/egress    1.003s
FAIL
```

#### 35. startup-proxy-close

```diff
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -196,7 +196,7 @@
    }()
    defer mounts.close()
    if mounts.proxy != nil {
-       defer mounts.proxy.Close()
+       // mutation: no close on failed startup
    }
    var files []*os.File
    pipe := func() (*os.File, *os.File, error) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressStartupFailureClosesProxy$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressStartupFailureClosesProxy (0.03s)
    egress_test.go:252: startup failure leaked sockets: before=0 after=1
FAIL
rastrillo-budget/v1 ran 28ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.030s
FAIL
```

#### 36. fixed-unix-endpoint

```diff
--- internal/runner/containment/egress.go
+++ internal/runner/containment/egress.go
@@ -128,7 +128,7 @@
        go func() {
            defer r.wg.Done()
            defer func() { <-slots; r.remove(c) }()
-           upstream, e := net.DialTimeout("unix", egress.NamespaceSocket, egress.ConnectTimeout)
+           upstream, e := net.DialTimeout("unix", "/egress/other.sock", egress.ConnectTimeout)
            if e != nil {
                r.shutdown()
                return
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.10s)
    egress_test.go:91: isolation/relay: "blocked\nblocked\n" exit={Code:-1 Signal:0 ObservedAt:2026-11-03 11:59:00.793600523 +0000 UTC} err=<nil> stderr=
FAIL
rastrillo-budget/v1 ran 98ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.100s
FAIL
```

#### 37. fixed-loopback

```diff
--- internal/runner/containment/egress.go
+++ internal/runner/containment/egress.go
@@ -82,7 +82,7 @@
 }

 func startRelay() (*namespaceRelay, error) {
-   ln, e := net.Listen("tcp4", egress.RelayAddress)
+   ln, e := net.Listen("tcp4", "127.0.0.2:18080")
    if e != nil {
        return nil, e
    }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
```

```text
--- FAIL: TestEgressRejectsHostServices (0.10s)
    egress_test.go:91: isolation/relay: "blocked\nblocked\n" exit={Code:1 Signal:0 ObservedAt:2026-11-03 11:59:01.262723234 +0000 UTC} err=<nil> stderr=Traceback (most recent call last):
          File "<string>", line 10, in <module>
            s=socket.create_connection(('127.0.0.1',18080),1)
          File "/usr/lib/python3.13/socket.py", line 864, in create_connection
            raise exceptions[0]
          File "/usr/lib/python3.13/socket.py", line 849, in create_connection
            sock.connect(sa)
            ~~~~~~~~~~~~^^^^
...
FAIL
rastrillo-budget/v1 ran 97ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.099s
FAIL
```

### User-facing strings

No UI text, README prose or `copy.go` entries were added. The new internal diagnostic is `egress_policy_rejected`. If the application later displays this condition, it needs an individually pending `copy.go` entry and a copy pass before release. The proxy emits standard protocol status lines: `HTTP/1.1 200 Connection Established`, `HTTP/1.1 403 Forbidden` and `HTTP/1.1 502 Bad Gateway`. Test assertion messages and code comments are developer-facing. No copy-review skill or server was invoked.

### Concerns and handback

No known failing implementation gate remains. Real provider compatibility, refresh hostnames and complete deployed-policy certification remain Task 11b release work; this run claims local fixture and namespace evidence only. The actual auth-host fields remain empty by default. The strict CONNECT parser permits only Host, User-Agent, Proxy-Connection and Connection headers; Task 11b should verify the pinned provider transports against that grammar without relaxing framing or destination checks. Full CI and controller review remain outside this task's requested gate list.

All fixture listeners and processes finished or were stopped. Scratch created for test evidence and the runner build is removed after copying it into both reports. No server, watcher, provider session, credential home or background command is left running. No other worktree was touched. The controller owns review and push.


## Task 3 fix round 1: Bind the socket through its verified directory

Status: DONE. Base: `e06320a` on `plan-2b`.
Commit subject: `fix: bind the egress socket through its verified directory`.

### What changed

`egress.Open` now binds `/proc/self/fd/<fd>/proxy.sock` using the directory descriptor already checked by `openat2` and `fstat`. Socket address length no longer depends on ScratchRoot. The real Linux launch test confirms that this machine resolves the descriptor path during bind.

The proxy uses the same descriptor path for chmod and retains the directory until the listener closes and unlinks the socket. Failed construction closes the descriptor too. This also fixes cleanup after a directory rename: the proxy removes its original socket and leaves a replacement directory untouched.

`SocketPath()` still returns the real filesystem path. Containment continues to open that path with its existing symlink-rejecting `pin()` function and passes the retained socket descriptor to bubblewrap with `--ro-bind-fd`. No containment production code or mount rules changed.

Files changed:

- `internal/runner/egress/proxy.go`: descriptor-relative bind, chmod and cleanup lifetime.
- `internal/runner/egress/proxy_test.go`: `TestEgressSocketDirectoryPinned` renames the socket directory, installs a replacement file, and verifies cleanup affects only the original directory.
- `internal/runner/containment/egress_test.go`: `TestEgressLongScratchRoot` creates a deep subdirectory under the existing on-disk TMPDIR, asserts a root of at least 70 bytes, starts a full namespace launch, exchanges a CONNECT request and policy-denial response through the relay, checks the real socket path and mode, and verifies cleanup after exit.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended section.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-3-report.md`: the same appended evidence, retained locally under the repository's existing ignore rule.

### Interpretations

This fix supersedes original-report interpretation 1, which required callers to keep Unix socket paths short. Descriptor-relative bind works on this machine, so no constructor length rejection or new error string is needed.

The full launch uses an owned Python fixture inside the production namespace helper. Its request to `localhost:443` receives the exact `403 Forbidden` response from the host proxy through the namespace relay. It does not resolve, connect to or prompt a provider. The existing TLS fixture and destination-policy tests also pass in the covering command.

The task's explicit rules override generic writing and handoff workflows: no copy-review skill/server, delegation, model call or `.claude/HANDOFF.md`. All commands ran in the specified worktree, with default Go caches and `CGO_ENABLED=0` for Go checks. Absolute package paths below select the same packages as the requested covering commands.

### RED before implementation

Both regression tests were written before changing production code. This command exited 1 with compiled test failures:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run 'TestEgressLongScratchRoot|TestEgressSocketDirectoryPinned' -count=1
```

```text
--- FAIL: TestEgressSocketDirectoryPinned (0.00s)
    proxy_test.go:425: socket survived close in verified directory: <nil>
    proxy_test.go:428: close touched replacement directory: "" open /home/paulca/t/e2b/e3-1942956935/private/proxy.sock: no such file or directory
FAIL amadan.net/oficina/equipo/internal/runner/egress 0.003s
--- FAIL: TestEgressLongScratchRoot (0.00s)
    egress_test.go:109: namespace capability/start failed (userns, pidfd required): listen unix /home/paulca/t/e2b/e3-1724877323/s/deepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeep/state/attempt-e4c7c01b4fa5d537e515509ec81955cc/egress/proxy.sock: bind: invalid argument
FAIL amadan.net/oficina/equipo/internal/runner/containment 0.004s
```

### GREEN before mutations

The same focused command then exited 0:

```text
ok amadan.net/oficina/equipo/internal/runner/egress 0.002s
ok amadan.net/oficina/equipo/internal/runner/containment 0.060s
```

The covering command and namespace gate also passed before mutations:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
make -C /home/paulca/amadan.net/oficina/equipo-plan-2b runner-namespace-test
```

```text
ok amadan.net/oficina/equipo/internal/runner/egress 3.269s
ok amadan.net/oficina/equipo/internal/runner/containment 0.456s
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok amadan.net/oficina/equipo/internal/runner/containment 3.205s
```

### Independent mutations

Each mutation ran alone against the green source and was restored in a Python `finally` block before the next one. All three compiled and exited 1 with the named test failure.

1. Replace `net.Listen("unix", bindPath)` with `net.Listen("unix", path)`.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run '^TestEgressLongScratchRoot$' -count=1
```

```text
--- FAIL: TestEgressLongScratchRoot (0.00s)
    egress_test.go:109: namespace capability/start failed (userns, pidfd required): listen unix /home/paulca/t/e2b/e3-522231684/s/deepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeepdeep/state/attempt-92cfe44ad327dd4bee20cdab87708242/egress/proxy.sock: bind: invalid argument
FAIL amadan.net/oficina/equipo/internal/runner/containment 0.004s
```

2. Insert `directory.Close()` immediately before `directory = nil` in `open`, ending the retained descriptor's lifetime before listener cleanup.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress -run '^TestEgressSocketDirectoryPinned$' -count=1
```

```text
--- FAIL: TestEgressSocketDirectoryPinned (0.00s)
    proxy_test.go:425: socket survived close in verified directory: <nil>
FAIL amadan.net/oficina/equipo/internal/runner/egress 0.003s
```

3. Change `SocketPath()` to return `p.listener.Addr().String()`, exposing the proc alias to containment instead of the real path. The existing mount pin rejects that magic link.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run '^TestEgressLongScratchRoot$' -count=1
```

```text
--- FAIL: TestEgressLongScratchRoot (0.00s)
    egress_test.go:109: namespace capability/start failed (userns, pidfd required): namespace_mount_rejected: too many levels of symbolic links
FAIL amadan.net/oficina/equipo/internal/runner/containment 0.005s
```

### Final GREEN after restoration

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
make -C /home/paulca/amadan.net/oficina/equipo-plan-2b runner-namespace-test
CGO_ENABLED=0 go vet /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment
git -C /home/paulca/amadan.net/oficina/equipo-plan-2b diff --check
gofmt -l /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress/proxy.go /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress/proxy_test.go /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment/egress_test.go
```

```text
ok amadan.net/oficina/equipo/internal/runner/egress 3.260s
ok amadan.net/oficina/equipo/internal/runner/containment 0.440s
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok amadan.net/oficina/equipo/internal/runner/containment 2.220s
```

Every command exited 0. Vet, diff checking and formatting produced no output. No full suite or `make ci` ran.

### User-facing strings and concerns

No new user-facing strings, protocol responses, diagnostics or `copy.go` entries. Only test assertion messages and one implementation comment were added.

No new concerns or failing gates. Provider certification remains the existing Task 11b release gate. Tests closed their listeners, stopped their namespace processes and removed their owned TMPDIR trees. No separate scratch, background server or credential home was created. No push, merge, deployment or other worktree access occurred. The controller owns review and push.

The final fixture reads the response through EOF so a split TCP read cannot cause a false failure. After that test-only adjustment, `CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run '^TestEgressLongScratchRoot$' -count=1` passed (`ok amadan.net/oficina/equipo/internal/runner/containment 0.061s`), and `git diff --check` remained clean.


## Task 4: Bind direct accounts and hash effective launch policy

Status: DONE_WITH_CONCERNS.
Commit subject: `feat: bind direct accounts and hash effective launch policy`.
Branch: `plan-2b`. No push, merge, deployment, provider prompt, sign-in or enrolment.

### What changed

`provider.OpenAccount` opens only the configured dedicated source home. The lease pins the directory with openat2, holds a directory flock across attempts and refresh, requires private modes and complete expected identity metadata, and stages only the selected provider's login plus identity metadata into a private runtime home. Files are 0600 and directories are 0700. No credential material is put into a workspace, public manifest or journal.

`HomeRules` makes refusals explicit. The production default covers the user's `.claude` and `.codex`; the path rule covers every `.paseo/zerosub/homes` tree. Path checks precede login access. Symlink components are refused, directory inode comparisons catch explicit interactive-home aliases and their descendants, and mountinfo root checks catch bind aliases of forbidden trees. Tests inject only owned fake directories. The real defaults receive a path-only test. No real login file was read, copied or statted, and no real interactive credential home was accessed by these tests.

Only a live lease can return a binding with dedicated-home authority. The exported boolean is omitted from JSON and is insufficient on its own: `VerifiedDedicatedHome` checks an unexported lease reference, the exact binding and the pinned source. Both containment and its egress boundary reject forged provenance. Configured bindings, connection data and JSON input cannot grant auth-host access. Auth hosts still require Task 3's installed network contract; this task installs none.

`Preflight` compares CLI-observed identity with the enrolled binding. `Validate`, `BeginTurn` and `EndTurn` detect source replacement, identity changes and credential generation changes. The private generation includes file identity and timestamps, so atomic replacement with identical bytes still requires preflight. A same-identity generation between turns returns `ErrPreflightRequired`; successful preflight restages and validates that login before another bind/turn. Failed refresh remains unavailable for dispatch without choosing another account. A different identity returns `ErrIdentity`; an unexplained active-turn change returns `ErrContainment`. `CommitRefresh` checks the staged login's observed identity, then atomically writes and fsyncs only the dedicated login under the same lease. It leaves preflight required. Private token digests stay in memory and never enter the public tuple.

Claude identity is trust-on-first-use: Paul confirms the CLI-observed account metadata at enrolment, and future observations must match that binding. This is not independent remote attestation.

`BuildPolicy` constructs its environment rather than inheriting it. Only the selected provider paths and permitted locale/terminal entries reach Policy.Env. The manifest additionally records containment's fixed PATH, HOME, TMPDIR and proxy variables. Injected API/routing/proxy/socket/parent-agent variables are rejected. Generated JSON settings and MCP artifacts use fixed namespace paths `/config/equipo-settings.json` and `/config/equipo-mcp.json`.

The canonical manifest covers exact argv, nonsecret environment, runtime-file contents and mount targets, selected source home and expected identity, denied paths, exact egress hosts, exact tool lists, settings, MCP, start/resume thread policy, turn policy, outer mounts, shared namespace arguments, disabled hooks/plugins, managed-directory masking and explicit omission of per-turn authority overrides. Duplicate JSON keys and secret-bearing settings keys are rejected. Turn policy admits only non-authority effort/summary parameters; supplied authority or unknown fields are rejected. Instruction files have a separate hash and affect the concrete manifest, not the isolation policy. Only validated workspace, scratch and generated runtime-home roles are normalized for certification; the dedicated source home and other runtime/protected inputs stay exact.

Runtime-file imports also refuse credential filenames, forbidden interactive sources and inode aliases. An auth.json or hardlink to it cannot become a public file digest. Executables with multiple hardlinks are conservatively refused by this file-import check.

`ValidateReadback` requires the exact effective settings/MCP/thread/turn policy, disabled hooks/plugins, no remote control, and only Equipo's generated layer plus any explicitly mounted managed layers. Unsupported/ignored provider settings still need provider-specific normalization and sentinel certification in Tasks 5, 6 and 11b.

`AttestLaunch` checks the lease, concrete policy, argv, selection, current runtime-file digests, generated config, environment and mounts. Containment then hashes its actual constructed namespace arguments, pinned regular-file digests and concrete scratch/socket paths. The durable containment record now stores separate `PolicyHash`, concrete `ManifestHash` and `EgressHash`. A runtime source changed between BuildPolicy and mount pinning fails its digest check. The actual host launcher and bubblewrap binaries must appear in the direct policy's RuntimeFiles. The attempt lifetime context contract is documented on `provider.ProcessHost`.

`AccountBinding` adds ProviderHome, ExpectedIdentity and PersonID. `DiscoverDirect` reads only these configured bindings, opens a lease and runs a no-prompt identity probe. Duplicate LocalID/model matches and inconsistent person/account associations fail closed. Input model order, LocalID and person association are preserved. Legacy discovery remains available for the later cutover. Release metadata gains typed direct-policy certificates without manufacturing a certification entry.

### Files

- `internal/runner/provider/accounts.go`, `accounts_test.go`: account leases, explicit refusals, private staging, identity/generation checks and refresh.
- `internal/runner/provider/policy.go`, `policy_test.go`: canonical policy/attempt manifests, generated config, readback, launch and pinned-file validation.
- `internal/runner/provider/types.go`: expected identity, runtime/source binding fields, unexported provenance, separate hashes and attempt-context documentation.
- `internal/runner/config.go`, `config_test.go`: configured direct binding and private runtime-root checks.
- `internal/runner/connections.go`, `connections_test.go`: direct configured discovery and association/order checks.
- `internal/runner/containment/egress.go`, `egress_test.go`: verified dedicated-home authority and exact network binding.
- `internal/runner/containment/linux.go`, `linux_test.go`, `recovery.go`: final constructed namespace hash, pinned-file checks, separate persisted policy hash and regression tests.
- `internal/release/manifest.go`: direct policy certificate type and manifest field.
- This appended controller report and the requested ignored local task report.

### Adapter integration and interpretations

1. Input Binding.Home is the dedicated credential source. Input Binding.Expected must contain AccountID, HomeID and ProviderVersion, and RuntimeRoot must be the runner's private `<scratch>/homes`. The source must already exist with `equipo-identity.json` and the provider's login file: `.credentials.json` for Claude or `auth.json` for Codex. OpenAccount never creates a dedicated source or signs in. Use `lease.Binding()` afterward: Home is then the private runtime home and CredentialHome retains the exact dedicated source.
2. BuildPolicy preserves every requested PolicyInputs field and adds Argv, Env, Workspace, Scratch and InstructionFiles. Concrete argv and attempt paths are necessary to attest the constructed launch and cannot be inferred from the original field list. Supply all executable/helper/MCP/managed runtime files, including the actual runner and bubblewrap binaries, as read-only RuntimeFiles. The primary argv executable must be one of those targets. Env permits only LANG, LC_ALL and TERM overrides. BuildPolicy may run during the no-prompt preflight callback; prompt admission remains blocked until that callback succeeds.
3. The raw ThreadPolicy object must contain the exact canonical start and resume policy parameters. Both are hashed verbatim after JSON canonicalization. TurnPolicy is policy-only, not prompts, thread IDs or general RPC data. It pins the omission of authority overrides. Adapters must use the returned settings and hashes, inspect account/read and config/read(includeLayers:true) for Codex, and normalize actual provider readback into ConfigReadback. Provider-specific native configuration rendering belongs to Tasks 5 and 6; the generic builder stages the attested JSON artifacts at fixed namespace paths.
4. Keep the lease throughout the session's attempts and refresh. Before each turn/resume, validate identity/generation, inspect effective provider policy and re-attest the launch; use BeginTurn/EndTurn around the active interval. After ErrPreflightRequired, re-run Preflight and bind the validated configuration before the next prompt. To accept a harness login refresh, call CommitRefresh with a no-prompt identity probe, then fresh Preflight. Callback probes run without the lease mutex so they can build policy and launch status checks, while another check or turn cannot start.
5. Runtime homes are lease-owned and Close removes them. Provider adapters and Task 7 must retain their durable session/capture records and keep the lease for any resume that needs the current private session files. Cross-lease session restoration is not implemented by this account/policy layer.
6. Masked managed directories remain Task 2's private /etc overlays. An explicitly required managed file must be listed in RuntimeFiles and its readback layer must be `managed:<exact namespace target>`. Unlisted user/project/managed layers are rejected rather than silently overriding operator requirements.
7. The final containment hash required small edits beyond the brief's principal file list. Without them, Task 3's boolean still granted authority and Task 2's ManifestHash still held only the reusable policy hash. These edits keep existing disconnected/check-launch fixtures working while enforcing the new manifest on dedicated direct launches. Legacy discovery and old launch contracts are not a direct-provider rollout; Task 11a still owns cutover/removal.
8. The task's explicit rules override generic copy-review, writing delegation and handoff workflows. No copy-review skill/server, subagent, live model call or .claude/HANDOFF.md was used. The local report is ignored under .superpowers; the complete evidence is committed here.

### RED evidence

All commands below ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b` on branch `plan-2b`, with `CGO_ENABLED=0`, on-disk TMPDIR `/home/paulca/t/e2b` and default Go caches.

Initial tests were written before implementation. The first meaningful RED was:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountHome|TestAccountUnavailable|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome' -count=1
```

```text
undefined: HomeRules
unknown field Expected in struct literal of type Binding
unknown field RuntimeRoot in struct literal of type Binding
undefined: IdentityFile
undefined: AccountLease
undefined: PolicyInputs
FAIL amadan.net/oficina/equipo/internal/runner/provider [build failed]
ok   amadan.net/oficina/equipo/internal/runner [no tests to run]
```

An earlier test-file brace typo was corrected before this run; that parser error is not claimed as behavioral evidence. Supplemental tests for refresh, launch attestation and configured discovery similarly failed to compile before their APIs existed. An intermediate configured-discovery failure (`runner.invalid`) exposed missing JSON tags on Identity; the tags were added and both legacy and direct binding tests now pass.

The behavioral RED commands were:

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run 'TestEgressRejectsForgedDedicatedHome|TestNamespaceConcreteManifestHash' -count=1
```

```text
--- FAIL: TestEgressRejectsForgedDedicatedHome
    caller boolean granted dedicated-home authority
--- FAIL: TestNamespaceConcreteManifestHash
    policy hash substituted for concrete manifest hash
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestUnexpectedConfigInputs|TestEffectivePolicyPreflightLaunch|TestAccountHomeConfiguredRuntime' -count=1
```

```text
--- FAIL: TestUnexpectedConfigInputs/missing_binary
    unsafe policy input accepted
--- FAIL: TestUnexpectedConfigInputs/network_number
    unsafe policy input accepted
--- FAIL: TestEffectivePolicyPreflightLaunch
    preflight could not launch status check provider_identity_mismatch
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestEffectivePolicyHostBinary|TestNamespaceManifestInputs' -count=1
```

```text
p.ValidateRuntimeBinaries undefined
m.namespaceManifest undefined
FAIL [build failed]
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyManifestBoundary$' -count=1
```

```text
--- FAIL: TestEffectivePolicyManifestBoundary
    outer mount policy missing from manifest
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestAccountHomeRuntimeAliasNoSideEffects|TestAccountHomeFileGuards' -count=1
```

```text
--- FAIL: TestAccountHomeRuntimeAliasNoSideEffects
    interactive directory changed <nil>
--- FAIL: TestAccountHomeFileGuards/metadata_duplicate
    unsafe account input accepted
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestPrivateHomeRejectsCredentialMount$' -count=1
```

```text
--- FAIL: TestPrivateHomeRejectsCredentialMount
    credential source entered public manifest
```

After guarding the credential path, the same command exposed the inode alias:

```text
--- FAIL: TestPrivateHomeRejectsCredentialMount
    credential inode alias entered public manifest
```

### GREEN evidence

Final exact brief command, after all fixes and restoration of every mutation:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountHome|TestAccountUnavailable|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome' -count=1
```

```text
ok amadan.net/oficina/equipo/internal/runner/provider 3.560s
ok amadan.net/oficina/equipo/internal/runner 0.005s
```

Related regression command after the account, policy and containment fixes:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner ./internal/runner/containment ./internal/release -run 'TestAccountHome|TestAccountUnavailable|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome|TestDirect|TestConnectionsBindings|TestRunnerConfig|TestEgress|TestNamespaceConcreteManifestHash|TestNamespaceManifestInputs' -count=1
```

```text
ok amadan.net/oficina/equipo/internal/runner/provider 3.674s
ok amadan.net/oficina/equipo/internal/runner 0.012s
ok amadan.net/oficina/equipo/internal/runner/containment 0.737s
?  amadan.net/oficina/equipo/internal/release [no test files]
```

A final schema test was added before supplying the direct certificate's snake_case JSON tags:

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestEffectivePolicyReleaseManifest$' -count=1
```

RED (exit 1):

```text
--- FAIL: TestEffectivePolicyReleaseManifest
    missing manifest field provider
FAIL amadan.net/oficina/equipo/internal/runner 0.003s
```

GREEN after adding the tags (exit 0):

```text
ok amadan.net/oficina/equipo/internal/runner 0.003s
```

`git diff --check` passed. gofmt reported no pending formatting for the new files; all changed Go files were formatted. No full suite, make ci, race suite, network provider test or live gate ran.

### Mutation evidence

60 distinct guards/manifest inputs have a compiled, named failing test. Every mutation was applied alone and restored from the exact saved source before the next mutation. The scratch driver was run as `python3 /home/paulca/t/e2b/task4-mutations/run.py`, with corrected/supplemental cases in `rerun.py`; the two credential-import cases used the same save/mutate/run/restore sequence. Scratch drivers and logs are removed after copying their evidence here.

Five initial mutations were not evidence: active classification changed the wrong duplicate branch, readiness was masked by the earlier generation check, the mount fixture also changed argv, and the malformed manifest hit another identity check. Those four initially passed; tests/targets were tightened. The fifth, ignored-settings comparison, left unused locals and did not compile; the corrected mutation explicitly uses `_ = a` and `_ = b`. All five were rerun and produced the named compiled failures below. No compile failure is counted as a successful mutation.

#### Mutation 1: home replacement

File: `internal/runner/provider/accounts.go`.

Replace the body of `func (l *AccountLease) sourceUnchanged() bool` with:

```go
return true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/replacement$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.05s)
    --- FAIL: TestAccountHomeMutation/replacement (0.04s)
        accounts_test.go:182: replacement accepted: <nil>
FAIL
rastrillo-budget/v1 ran 45ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.047s
FAIL
```

#### Mutation 2: directory lock

File: `internal/runner/provider/accounts.go`.

Replace:

```go
e = unix.Flock(int(dir.Fd()), unix.LOCK_EX|unix.LOCK_NB)
```

with:

```go
e = error(nil)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/lock$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.04s)
    --- FAIL: TestAccountHomeMutation/lock (0.04s)
        accounts_test.go:192: concurrent lease accepted: <nil>
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.045s
FAIL
```

#### Mutation 3: dedicated provenance

File: `internal/runner/provider/accounts.go`.

Replace the body of `func (b Binding) VerifiedDedicatedHome() bool` with:

```go
return b.DedicatedHome
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeBinding/dedicated_provenance$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeBinding (0.00s)
    --- FAIL: TestAccountHomeBinding/dedicated_provenance (0.00s)
        accounts_test.go:57: input boolean granted authority
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### Mutation 4: shared inode

File: `internal/runner/provider/accounts.go`.

Replace the body of `func (r HomeRules) refusedInode(info os.FileInfo) bool` with:

```go
return false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeBinding/shared_and_aliases$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeBinding (0.00s)
    --- FAIL: TestAccountHomeBinding/shared_and_aliases (0.00s)
        accounts_test.go:126: shared inode accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### Mutation 5: default path refusals

File: `internal/runner/provider/accounts.go`.

Replace the body of `func (r HomeRules) RefusesPath(path string) bool` with:

```go
return false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeBinding/real_defaults_path_only$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeBinding (0.00s)
    --- FAIL: TestAccountHomeBinding/real_defaults_path_only (0.00s)
        accounts_test.go:133: default shared home accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### Mutation 6: credential file mode

File: `internal/runner/provider/accounts.go`.

Replace:

```go
 || info.Mode().Perm() != 0600
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeBinding/private_modes$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeBinding (0.02s)
    --- FAIL: TestAccountHomeBinding/private_modes (0.02s)
        accounts_test.go:145: public credentials accepted
FAIL
rastrillo-budget/v1 ran 22ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.023s
FAIL
```

#### Mutation 7: identity recheck

File: `internal/runner/provider/accounts.go`.

Replace:

```go
 || id != l.source.Expected
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/identity_change$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.04s)
    --- FAIL: TestAccountHomeMutation/identity_change (0.04s)
        accounts_test.go:222: got provider_preflight_required want provider_identity_mismatch
FAIL
rastrillo-budget/v1 ran 42ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.044s
FAIL
```

#### Mutation 8: generation recheck

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if generation != l.generation {
```

with:

```go
if false && generation != l.generation {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/successful_refresh$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.05s)
    --- FAIL: TestAccountHomeMutation/successful_refresh (0.05s)
        accounts_test.go:222: got <nil> want provider_preflight_required
FAIL
rastrillo-budget/v1 ran 47ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.049s
FAIL
```

#### Mutation 9: active mutation classification

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if generation != l.generation {
		l.ready = false
		if l.active {
```

with:

```go
if generation != l.generation {
		l.ready = false
		if false && l.active {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/active_change$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.04s)
    --- FAIL: TestAccountHomeMutation/active_change (0.04s)
        accounts_test.go:223: got provider_preflight_required want provider_account_containment
FAIL
rastrillo-budget/v1 ran 44ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.045s
FAIL
```

#### Mutation 10: runtime credential recheck

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if runtimeErr != nil || sha256.Sum256(runtimeRaw) != l.runtimeGeneration {
```

with:

```go
if false && (runtimeErr != nil || sha256.Sum256(runtimeRaw) != l.runtimeGeneration) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/runtime_active_mutation$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeRuntimeGuards (0.04s)
    --- FAIL: TestAccountHomeRuntimeGuards/runtime_active_mutation (0.04s)
        accounts_test.go:311: active runtime mutation accepted
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.044s
FAIL
```

#### Mutation 11: preflight readiness

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if !l.ready {
```

with:

```go
if false && !l.ready {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountUnavailableDoesNotFailover$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountUnavailableDoesNotFailover (0.18s)
    --- FAIL: TestAccountUnavailableDoesNotFailover/provider_account_maintenance (0.06s)
        accounts_test.go:170: calls=1 prompts=1
    --- FAIL: TestAccountUnavailableDoesNotFailover/provider_identity_mismatch (0.06s)
        accounts_test.go:170: calls=1 prompts=1
    --- FAIL: TestAccountUnavailableDoesNotFailover/quota (0.06s)
        accounts_test.go:170: calls=1 prompts=1
FAIL
rastrillo-budget/v1 ran 185ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.186s
FAIL
```

#### Mutation 12: preflight failure

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if probeErr != nil {
```

with:

```go
if false && probeErr != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/failed_refresh$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeMutation (0.06s)
    --- FAIL: TestAccountHomeMutation/failed_refresh (0.06s)
        accounts_test.go:236: provider_identity_mismatch
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.064s
FAIL
```

#### Mutation 13: runtime symlink

File: `internal/runner/provider/accounts.go`.

Replace:

```go
e == nil && stat.Mode&unix.S_IFMT != unix.S_IFREG
```

with:

```go
false && e == nil && stat.Mode&unix.S_IFMT != unix.S_IFREG
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/runtime_symlink$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeRuntimeGuards (0.06s)
    --- FAIL: TestAccountHomeRuntimeGuards/runtime_symlink (0.06s)
        accounts_test.go:291: runtime symlink accepted
FAIL
rastrillo-budget/v1 ran 64ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 14: safe environment

File: `internal/runner/provider/policy.go`.

Replace:

```go
(k != "LANG" && k != "LC_ALL" && k != "TERM")
```

with:

```go
false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/ANTHROPIC_API_KEY$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.10s)
    --- FAIL: TestUnexpectedConfigLayer/ANTHROPIC_API_KEY (0.04s)
        policy_test.go:159: injected environment accepted
FAIL
rastrillo-budget/v1 ran 104ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.105s
FAIL
```

#### Mutation 15: readback layers

File: `internal/runner/provider/policy.go`.

Replace:

```go
 || !reflect.DeepEqual(actual, layers)
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/user$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.06s)
    --- FAIL: TestUnexpectedConfigLayer/user (0.00s)
        policy_test.go:145: unexpected config accepted
FAIL
rastrillo-budget/v1 ran 64ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.066s
FAIL
```

#### Mutation 16: remote control

File: `internal/runner/provider/policy.go`.

Replace:

```go
r.RemoteControl ||
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/remote$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.06s)
    --- FAIL: TestUnexpectedConfigLayer/remote (0.00s)
        policy_test.go:145: unexpected config accepted
FAIL
rastrillo-budget/v1 ran 64ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 17: disabled hooks

File: `internal/runner/provider/policy.go`.

Replace:

```go
!r.HooksDisabled ||
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/hooks$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.06s)
    --- FAIL: TestUnexpectedConfigLayer/hooks (0.00s)
        policy_test.go:145: unexpected config accepted
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 18: disabled plugins

File: `internal/runner/provider/policy.go`.

Replace:

```go
!r.PluginsDisabled ||
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/plugins$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.06s)
    --- FAIL: TestUnexpectedConfigLayer/plugins (0.00s)
        policy_test.go:145: unexpected config accepted
FAIL
rastrillo-budget/v1 ran 64ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 19: ignored settings

File: `internal/runner/provider/policy.go`.

Replace:

```go
if e != nil || !bytes.Equal(a, b) {
```

with:

```go
_ = a
 _ = b
 if e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/ignored$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.06s)
    --- FAIL: TestUnexpectedConfigLayer/ignored (0.00s)
        policy_test.go:146: unexpected config accepted
FAIL
rastrillo-budget/v1 ran 64ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.066s
FAIL
```

#### Mutation 20: per-turn overrides

File: `internal/runner/provider/policy.go`.

Replace the body of `func validTurnPolicy(raw json.RawMessage) bool` with:

```go
return true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.22s)
    policy_test.go:167: turn override sandboxPolicy accepted
FAIL
rastrillo-budget/v1 ran 224ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.225s
FAIL
```

#### Mutation 21: unverified policy binding

File: `internal/runner/provider/policy.go`.

Replace:

```go
if !b.VerifiedDedicatedHome() {
```

with:

```go
if b.provenance == nil { return Policy{}, nil }; if !b.VerifiedDedicatedHome() {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestUnexpectedConfigLayer (0.20s)
    policy_test.go:173: unverified binding accepted
FAIL
rastrillo-budget/v1 ran 202ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.204s
FAIL
```

#### Mutation 22: hash binary

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Files=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/binary$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/binary (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 23: hash settings

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Settings=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/settings$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/settings (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 82ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.083s
FAIL
```

#### Mutation 24: hash routing

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.EgressHosts=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/routing$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/routing (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 25: hash tools

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Tools=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/tools$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/tools (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 82ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.084s
FAIL
```

#### Mutation 26: hash mcp

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.MCP=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/mcp$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.09s)
    --- FAIL: TestEffectivePolicyHash/mcp (0.09s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 87ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.089s
FAIL
```

#### Mutation 27: hash managed

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Files=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/managed$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/managed (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 28: hash env

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Env=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/env$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/env (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 85ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.086s
FAIL
```

#### Mutation 29: hash mount

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Files=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/mount$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/mount (0.08s)
        policy_test.go:77: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 85ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.087s
FAIL
```

#### Mutation 30: hash thread-start

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.ThreadPolicy=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/thread-start$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/thread-start (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.084s
FAIL
```

#### Mutation 31: hash thread-resume

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.ThreadPolicy=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/thread-resume$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/thread-resume (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 82ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.083s
FAIL
```

#### Mutation 32: hash turn

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.TurnPolicy=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/turn$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/turn (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.084s
FAIL
```

#### Mutation 33: hash provider-version

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.ProviderVersion=""
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/provider-version$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/provider-version (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 34: hash launcher-version

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.LauncherVersion=""
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/launcher-version$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/launcher-version (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 35: hash bwrap-version

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.BwrapVersion=""
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/bwrap-version$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.08s)
    --- FAIL: TestEffectivePolicyHash/bwrap-version (0.08s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 83ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.085s
FAIL
```

#### Mutation 36: hash argv

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.Argv=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/argv$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.09s)
    --- FAIL: TestEffectivePolicyHash/argv (0.09s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 86ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.088s
FAIL
```

#### Mutation 37: hash denied

File: `internal/runner/provider/policy.go`.

Replace:

```go
raw, manifestHash, e := hashJSON(m)
```

with:

```go
m.DeniedPaths=nil
 raw, manifestHash, e := hashJSON(m)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/denied$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.09s)
    --- FAIL: TestEffectivePolicyHash/denied (0.09s)
        policy_test.go:76: manifest change not hashed
FAIL
rastrillo-budget/v1 ran 88ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.090s
FAIL
```

#### Mutation 38: workspace role

File: `internal/runner/provider/policy.go`.

Replace:

```go
m.Workspace = "$WORKSPACE"
```

with:

```go
m.Workspace = m.Workspace
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/canonical_and_concrete$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.11s)
    --- FAIL: TestEffectivePolicyHash/canonical_and_concrete (0.11s)
        policy_test.go:92: workspace role or concrete hash wrong
FAIL
rastrillo-budget/v1 ran 110ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.112s
FAIL
```

#### Mutation 39: instruction digest

File: `internal/runner/provider/policy.go`.

Replace:

```go
_, instructionHash, _ := hashJSON(instructions)
```

with:

```go
instructionHash := "constant"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/instructions_separate$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHash (0.09s)
    --- FAIL: TestEffectivePolicyHash/instructions_separate (0.09s)
        policy_test.go:116: instructions not separately hashed
FAIL
rastrillo-budget/v1 ran 89ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.090s
FAIL
```

#### Mutation 40: launch arguments

File: `internal/runner/provider/policy.go`.

Replace:

```go
 || !reflect.DeepEqual(m.Argv, argv)
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/argv$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.07s)
    --- FAIL: TestEffectivePolicyLaunchAttestation/argv (0.00s)
        policy_test.go:209: changed launch accepted
FAIL
rastrillo-budget/v1 ran 68ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.070s
FAIL
```

#### Mutation 41: launch env

File: `internal/runner/provider/policy.go`.

Replace:

```go
if !reflect.DeepEqual(expectedEnv, p.Env) {
```

with:

```go
if false && !reflect.DeepEqual(expectedEnv, p.Env) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/env$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.07s)
    --- FAIL: TestEffectivePolicyLaunchAttestation/env (0.00s)
        policy_test.go:209: changed launch accepted
FAIL
rastrillo-budget/v1 ran 66ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.068s
FAIL
```

#### Mutation 42: launch mounts

File: `internal/runner/provider/policy.go`.

Replace:

```go
if !reflect.DeepEqual(expectedMounts, p.Mounts) {
```

with:

```go
if false && !reflect.DeepEqual(expectedMounts, p.Mounts) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/mount$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.07s)
    --- FAIL: TestEffectivePolicyLaunchAttestation/mount (0.00s)
        policy_test.go:209: changed launch accepted
FAIL
rastrillo-budget/v1 ran 67ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.069s
FAIL
```

#### Mutation 43: manifest integrity

File: `internal/runner/provider/policy.go`.

Replace:

```go
if digest(p.Manifest) != p.ManifestHash {
```

with:

```go
if false && digest(p.Manifest) != p.ManifestHash {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/manifesthash$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.06s)
    --- FAIL: TestEffectivePolicyLaunchAttestation/manifesthash (0.00s)
        policy_test.go:212: changed launch accepted
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.064s
FAIL
```

#### Mutation 44: policy hash integrity

File: `internal/runner/provider/policy.go`.

Replace:

```go
if policyHash != p.Hash {
```

with:

```go
if false && policyHash != p.Hash {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/policyhash$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.06s)
    --- FAIL: TestEffectivePolicyLaunchAttestation/policyhash (0.00s)
        policy_test.go:209: changed launch accepted
FAIL
rastrillo-budget/v1 ran 62ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.064s
FAIL
```

#### Mutation 45: network binding

File: `internal/runner/provider/policy.go`.

Replace the body of `func (p Policy) ValidateNetwork(name string, hosts []string) error` with:

```go
return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyLaunchAttestation (0.06s)
    policy_test.go:214: egress drift accepted
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 46: host binary inclusion

File: `internal/runner/provider/policy.go`.

Replace the body of `func (p Policy) ValidateRuntimeBinaries(paths ...string) error` with:

```go
return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHostBinary$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyHostBinary (0.06s)
    policy_test.go:272: unhashed host binary accepted
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 47: pinned digest

File: `internal/runner/provider/policy.go`.

Replace the body of `func (p Policy) ValidateFileDigest(path, hash string) error` with:

```go
return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyManifestBoundary$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyManifestBoundary (0.06s)
    policy_test.go:285: changed pinned file digest accepted
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.065s
FAIL
```

#### Mutation 48: duplicate binding

File: `internal/runner/connections.go`.

Replace:

```go
 || seen[key]
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestAccountHomeConfiguredDiscovery$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeConfiguredDiscovery (0.00s)
    connections_test.go:133: second matching binding accepted
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.004s
FAIL
```

#### Mutation 49: runtime config path

File: `internal/runner/config.go`.

Replace the body of `func (c Config) DirectBinding(b AccountBinding) (provider.Binding, error)` with:

```go
return provider.Binding{Home:b.ProviderHome,Expected:b.ExpectedIdentity},nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestAccountHomeConfiguredRuntime$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeConfiguredRuntime (0.00s)
    config_test.go:146: unsafe runtime root accepted: /
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.002s
FAIL
```

#### Mutation 50: egress provenance

File: `internal/runner/containment/egress.go`.

Replace:

```go
if l.Binding.DedicatedHome && !l.Binding.VerifiedDedicatedHome() {
```

with:

```go
if false && l.Binding.DedicatedHome && !l.Binding.VerifiedDedicatedHome() {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestEgressRejectsForgedDedicatedHome$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEgressRejectsForgedDedicatedHome (0.00s)
    egress_test.go:329: egress accepted forged provenance
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.003s
FAIL
```

#### Mutation 51: persist concrete hash

File: `internal/runner/containment/linux.go`.

Replace:

```go
ManifestHash: manifestHash,
```

with:

```go
ManifestHash: l.Policy.Hash,
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceConcreteManifestHash$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceConcreteManifestHash (0.05s)
    linux_test.go:647: policy hash substituted for concrete manifest hash
FAIL
rastrillo-budget/v1 ran 47ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.048s
FAIL
```

#### Mutation 52: directory mode

File: `internal/runner/provider/accounts.go`.

Replace the body of `func privateDirectory(f *os.File) bool` with:

```go
return true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/directory_mode$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeFileGuards (0.02s)
    --- FAIL: TestAccountHomeFileGuards/directory_mode (0.02s)
        accounts_test.go:380: unsafe account input accepted
FAIL
rastrillo-budget/v1 ran 23ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.024s
FAIL
```

#### Mutation 53: credential hardlink

File: `internal/runner/provider/accounts.go`.

Replace:

```go
 || st.Nlink != 1
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/credential_hardlink$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeFileGuards (0.02s)
    --- FAIL: TestAccountHomeFileGuards/credential_hardlink (0.02s)
        accounts_test.go:380: unsafe account input accepted
FAIL
rastrillo-budget/v1 ran 23ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.025s
FAIL
```

#### Mutation 54: duplicate metadata

File: `internal/runner/provider/accounts.go`.

Replace:

```go
metadata, e = canonical(metadata)
```

with:

```go
metadata, e = metadata,nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/metadata_duplicate$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeFileGuards (0.02s)
    --- FAIL: TestAccountHomeFileGuards/metadata_duplicate (0.02s)
        accounts_test.go:380: unsafe account input accepted
FAIL
rastrillo-budget/v1 ran 22ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.024s
FAIL
```

#### Mutation 55: controlled generation

File: `internal/runner/provider/accounts.go`.

Replace:

```go
digest := sha256.Sum256(bytes.Join([][]byte{metadata, raw, state}, nil))
```

with:

```go
_ = state
 digest := sha256.Sum256(bytes.Join([][]byte{metadata, raw}, nil))
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/same_bytes_new_generation$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeRuntimeGuards (0.04s)
    --- FAIL: TestAccountHomeRuntimeGuards/same_bytes_new_generation (0.04s)
        accounts_test.go:302: atomic generation not detected
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.044s
FAIL
```

#### Mutation 56: observed identity

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if id != l.source.Expected {
```

with:

```go
if false && id != l.source.Expected {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomePreflightGuards/observed_identity$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomePreflightGuards (0.04s)
    --- FAIL: TestAccountHomePreflightGuards/observed_identity (0.04s)
        accounts_test.go:393: wrong CLI identity accepted <nil>
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.044s
FAIL
```

#### Mutation 57: probe stable generation

File: `internal/runner/provider/accounts.go`.

Replace:

```go
if before != after {
```

with:

```go
if false && before != after {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomePreflightGuards/generation_during_probe$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomePreflightGuards (0.04s)
    --- FAIL: TestAccountHomePreflightGuards/generation_during_probe (0.04s)
        accounts_test.go:403: unstable probe accepted <nil>
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.044s
FAIL
```

#### Mutation 58: runtime no side effects

File: `internal/runner/provider/accounts.go`.

Replace:

```go
root, e := makePrivateRoot(b.RuntimeRoot)
```

with:

```go
_ = os.MkdirAll(b.RuntimeRoot,0700)
 root, e := makePrivateRoot(b.RuntimeRoot)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeAliasNoSideEffects$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeRuntimeAliasNoSideEffects (0.00s)
    accounts_test.go:356: interactive directory changed <nil>
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### Mutation 59: credential source import

File: `internal/runner/provider/policy.go`.

Replace:

```go
if credentialSource(m.Source, b) {
```

with:

```go
if false && credentialSource(m.Source, b) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestPrivateHomeRejectsCredentialMount$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestPrivateHomeRejectsCredentialMount (0.07s)
    policy_test.go:302: credential source entered public manifest
FAIL
rastrillo-budget/v1 ran 67ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.069s
FAIL
```

#### Mutation 60: credential inode import

File: `internal/runner/provider/policy.go`.

Replace:

```go
 || stat.Nlink != 1
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestPrivateHomeRejectsCredentialMount$ -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestPrivateHomeRejectsCredentialMount (0.07s)
    policy_test.go:310: credential inode alias entered public manifest
FAIL
rastrillo-budget/v1 ran 69ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.071s
FAIL
```

### User-facing strings

No UI or prose runtime strings were added, and copy.go is unchanged. New internal error codes are `provider_account_busy`, `provider_account_maintenance`, `provider_preflight_required`, `provider_account_containment` and `provider_policy_rejected`. Existing `provider_identity_mismatch` is reused. If later adapters expose these states to people, their copy.go entries need individual pending markers and the release copy pass. Tests and this controller report contain explanatory text only.

### Concerns and remaining integration

- No real dedicated homes exist yet. Enrolment must create them and record Paul-confirmed expected identity. No production credential provenance or live refresh was certified here.
- Tasks 5 and 6 must use the lease admission/readback checks for every turn and resume, include their exact binary/helper/tool/MCP/RPC inputs and render native provider configuration. Task 7 owns durable capture and any cross-lease session restoration. Task 11a owns removal of legacy discovery and launch paths.
- Full sandbox/sentinel certification and an installed, certified provider auth hostname remain Task 11b release gates. DirectPolicies remains empty in the embedded release manifest.
- Refusal tests cover injected fake paths, symlink aliases and inode identity. No privileged host bind mount was created. The production mountinfo alias rule is exercised without touching real shared credential homes.

All source changes are restored after mutations. Tests use owned temporary files only. No server, watcher, background provider, model process or review agent remains. No README, other worktree, default branch or production configuration was changed.


## Task 4 fix round 1: refreshed logins and direct launch attestation

Status: DONE. All seven findings and the neutral-path cleanup are addressed.
Commit subject: `fix: preserve refreshed logins and attest every direct launch` (61 characters).
Branch: `plan-2b`. Work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

A harness login update now returns `ErrRefreshPending`. Preflight refuses to restage while that update is pending, including when the caller has not called Validate first. The runtime login stays intact until CommitRefresh verifies the observed identity and atomically commits it to the dedicated source. A successful commit accepts that runtime generation but still requires a fresh preflight before another turn. Tests cover refresh both between turns and during an active turn, failed maintenance, and a changed observed identity.

Containment is sticky for the lease. Active source-generation changes, replaced directories, unsafe source/runtime login files, and changed identity stop admission. Restoring the original files does not clear containment. This also applies when Preflight detects source or identity tampering directly. Contained leases lose dedicated-home provenance and cannot begin another turn. Runtime identity metadata is checked as well as source metadata; actual provider identity still comes from the adapter's no-prompt probe during CommitRefresh and Preflight.

Manager.Start requires a manifest for every nonempty Selection.Provider before it creates attempt state or forks. AttestLaunch independently rejects legacy attestation for a selected provider. Provider-less check jobs retain their existing legacy manifest path.

Generated settings and MCP files now live in a separate, pinned, lease-owned config directory. Only their read-only file mounts reach the namespace at the fixed config paths. The writable runtime home no longer contains them. The manifest includes the concrete config directory and normalizes its lease-owned role in the reusable policy hash. Close removes this directory. Runtime/managed/instruction sources inside the writable workspace or supplied scratch are rejected to prevent another writable alias.

BuildPolicy retains a private copy of the manifest on the lease. BeginTurn checks its generated and managed/runtime source contents again. Adapters can call AccountLease.ValidatePolicy before a resume; Policy.ValidateSources also exposes the file check and is used by AttestLaunch. Config directory replacement or loss of private permissions is rejected. The existing pinned-file digest check remains the final check after mount descriptors are retained.

DefaultHomeRules resolves the effective UID through os/user.LookupId, which works with CGO_ENABLED=0. It fails closed if the lookup fails or has no absolute home. HOME no longer selects the default refusal paths. Inherited CODEX_HOME and CLAUDE_CONFIG_DIR paths and their resolved aliases are also refused. loadDirectBindings uses these same rules and rejects conflicting LocalID/PersonID ownership indexed by ProviderHome, Expected.HomeID and provider/account identity. Existing model ordering is preserved.

The egress fixtures now create fake leases and complete BuildPolicy manifests with the actual bwrap and runner binaries. TestNamespaceDirectPolicy reaches a running namespace and verifies config cannot be written there. TestNamespaceDirectPolicySwapBeforePin swaps the settings file through an unexported test hook immediately after attestation; Start rejects the pinned digest. Admission tests separately exercise changed binaries, argv, environment and mounts through Manager.Start. The hard-coded developer home in the ZeroSub path-only test is now `/home/example`.

### Files

- `internal/runner/provider/accounts.go`, `accounts_test.go`: refresh state, containment latch, trusted home rules, config directory ownership and turn/resume checks.
- `internal/runner/provider/policy.go`, `policy_test.go`: config staging, source validation, writable-alias refusal, direct attestation and regression tests.
- `internal/runner/connections.go`, `connections_test.go`: unique account/home ownership across configured people and LocalIDs.
- `internal/runner/containment/linux.go`, `linux_test.go`, `egress_test.go`: mandatory direct manifests, deterministic attestation-to-pin test hook, running direct namespace and converted egress fixtures.
- This appended controller section and the appended local task report. `mounts.go` was mutated for verification and restored byte-for-byte; it has no final change.

### Interpretations

The binding controller ruling takes precedence over the original active-turn runtime mutation expectation: a regular runtime login update with matching enrolled metadata is provisionally refresh-pending even during a turn. CommitRefresh must then observe the same provider identity, and Preflight must succeed before another turn or resume. A changed observed identity latches containment. No token is parsed as an independent identity attestation.

The original brief explicitly permits a new source credential generation with the same identity between turns after fresh preflight. That behavior remains. A source generation change during an active turn, a source directory/file replacement that violates the pinned/private file rules, or an identity change is contained. Source login files that cannot be safely read are also contained.

Account identity uniqueness is scoped by provider and AccountID, since provider IDs are separate namespaces. ProviderHome and Equipo HomeID uniqueness apply across all configured bindings. Multiple models for the same LocalID/person/account remain valid.

The task's explicit instructions override generic writing-pipeline delegation, copy-review and handoff workflows. No copy-review skill/server, model call, helper agent or `.claude/HANDOFF.md` was used. All login files used in tests were owned fake fixtures under on-disk test scratch. No real credential home was created or opened, no provider was contacted, and no machine was enrolled.

### RED evidence

Commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b` with on-disk TMPDIR `/home/paulca/t/e2b` and default Go caches. Tests were added before each finding's implementation. The direct-namespace coverage finding added a test-only interleaving hook; its initial RED was the missing hook field. The other findings produced behavioral failures before implementation.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountRefreshPending|TestAccountContainmentLatched|TestAccountHomeDefaultsIgnoreEnvironment|TestAccountHomeConfiguredDiscoveryAliases' -count=1
```

Exit 1:

```text
--- FAIL: TestAccountRefreshPending (0.28s)
    --- FAIL: TestAccountRefreshPending/false (0.14s)
        accounts_test.go:451: refresh must be pending: provider_preflight_required
    --- FAIL: TestAccountRefreshPending/true (0.14s)
        accounts_test.go:451: refresh must be pending: provider_account_containment
--- FAIL: TestAccountContainmentLatched (1.06s)
    --- FAIL: TestAccountContainmentLatched/source (0.21s)
        accounts_test.go:487: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/identity (0.20s)
        accounts_test.go:487: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.21s)
        accounts_test.go:482: active tampering not contained: <nil>
        accounts_test.go:487: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/symlink (0.22s)
        accounts_test.go:487: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/nonregular (0.22s)
        accounts_test.go:487: containment not latched: <nil>
--- FAIL: TestAccountHomeDefaultsIgnoreEnvironment (0.00s)
    accounts_test.go:497: passwd home accepted with changed HOME
FAIL
rastrillo-budget/v1 ran 1.344s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	1.350s
--- FAIL: TestAccountHomeConfiguredDiscoveryAliases (0.00s)
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/home (0.00s)
        connections_test.go:154: shared binding authority accepted
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/home-id (0.00s)
        connections_test.go:154: shared binding authority accepted
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/account (0.00s)
        connections_test.go:154: shared binding authority accepted
FAIL
rastrillo-budget/v1 ran 8ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.012s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestEffectivePolicyTurnSources|TestPrivateHomeConfigOutsideWritableMounts|TestEffectivePolicyRejectsWritableSource|TestNamespaceProviderRequiresManifest' -count=1
```

Exit 1:

```text
--- FAIL: TestEffectivePolicyTurnSources (0.65s)
    --- FAIL: TestEffectivePolicyTurnSources/settings (0.21s)
        policy_test.go:327: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/mcp (0.22s)
        policy_test.go:327: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/managed (0.22s)
        policy_test.go:327: changed policy admitted next turn
--- FAIL: TestPrivateHomeConfigOutsideWritableMounts (0.21s)
    policy_test.go:334: config source has writable namespace alias
--- FAIL: TestEffectivePolicyRejectsWritableSource (0.42s)
    --- FAIL: TestEffectivePolicyRejectsWritableSource/workspace (0.21s)
        policy_test.go:342: writable managed alias accepted
    --- FAIL: TestEffectivePolicyRejectsWritableSource/scratch (0.21s)
        policy_test.go:342: writable managed alias accepted
FAIL
rastrillo-budget/v1 ran 1.28s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	1.282s
--- FAIL: TestNamespaceProviderRequiresManifest (0.11s)
    linux_test.go:688: provider launch without manifest forked
FAIL
rastrillo-budget/v1 ran 111ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.113s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicy' -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner/containment [amadan.net/oficina/equipo/internal/runner/containment.test]
internal/runner/containment/linux_test.go:715:4: m.beforePin undefined (type *Manager has no field or method beforePin)
FAIL	amadan.net/oficina/equipo/internal/runner/containment [build failed]
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentPreflightLatched$' -count=1
```

Exit 1:

```text
--- FAIL: TestAccountContainmentPreflightLatched (0.20s)
    --- FAIL: TestAccountContainmentPreflightLatched/source (0.06s)
        accounts_test.go:537: preflight containment not latched: <nil>
    --- FAIL: TestAccountContainmentPreflightLatched/identity (0.10s)
        accounts_test.go:537: preflight containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 204ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.206s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentSourceFile$' -count=1
```

Exit 1:

```text
--- FAIL: TestAccountContainmentSourceFile (0.12s)
    --- FAIL: TestAccountContainmentSourceFile/symlink (0.06s)
        accounts_test.go:652: unsafe source not contained: provider_account_maintenance
        accounts_test.go:655: unsafe source containment not latched: <nil>
    --- FAIL: TestAccountContainmentSourceFile/directory (0.06s)
        accounts_test.go:652: unsafe source not contained: provider_policy_rejected
        accounts_test.go:655: unsafe source containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 123ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.125s
FAIL
```

An earlier test-file import replacement caused a parser error; it was corrected before the recorded direct-test RED. It is not behavioral evidence.

### GREEN evidence

All implementation and supplemental tests passed before mutation checks. The intermediate commands were:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccount' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestEffectivePolicy|TestPrivateHome|TestNamespaceProviderRequiresManifest' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestAccountContainmentPreflightLatched|TestNamespaceDirectPolicy|TestNamespaceProviderRequiresManifest|TestAccountHomeLookupFailClosed|TestAccountRefreshPreflightPreservesLogin|TestEffectivePolicyProviderRequiresManifest' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestAccountContainmentSourceFile|TestEffectivePolicyConfigDirectory' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestAccountContainmentLatched|TestAccountRefreshFailure' -count=1
```

Each exited 0. During conversion, the long-scratch egress fixture initially retained its old runtime-home root and failed with namespace_mount_rejected. It now constructs the lease under the final long scratch root; the final covering command includes that test.

After restoring all mutations, the required covering command passed:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner ./internal/runner/containment ./internal/runner/egress -run 'TestAccount|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome|TestNamespace|TestEgress' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	8.656s
ok  	amadan.net/oficina/equipo/internal/runner	19.597s
ok  	amadan.net/oficina/equipo/internal/runner/containment	7.646s
ok  	amadan.net/oficina/equipo/internal/runner/egress	3.280s
```

```sh
make runner-namespace-test
```

Exit 0:

```text
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok  	amadan.net/oficina/equipo/internal/runner/containment	5.055s
```

`gofmt` was applied to the changed Go files and `git diff --check` passed. No full suite, make ci, live gate, sign-in or provider prompt was run.

### Mutation evidence

Each mutation below changed one guard, ran the exact named command, produced a compiled test failure, and was restored before the next mutation. All 39 recorded mutations exited 1 with a named test failure. One preliminary version of mutation 20 left `info` unused; it was replaced with a compiling false condition and rerun. The compile failure is not counted as evidence.

#### R1 mutation 1: refresh-state

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
return ErrRefreshPending
```

with:

```go
return ErrPreflightRequired
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountRefreshPending$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountRefreshPending (0.17s)
    --- FAIL: TestAccountRefreshPending/false (0.08s)
        accounts_test.go:460: refresh must be pending: provider_preflight_required
    --- FAIL: TestAccountRefreshPending/true (0.08s)
        accounts_test.go:460: refresh must be pending: provider_preflight_required
FAIL
rastrillo-budget/v1 ran 165ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.167s
FAIL
```

#### R1 mutation 2: preflight-preserves-refresh

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if !refresh && sha256.Sum256(runtimeCurrent) != l.runtimeGeneration {
```

with:

```go
if false && !refresh && sha256.Sum256(runtimeCurrent) != l.runtimeGeneration {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountRefreshPreflightPreservesLogin$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountRefreshPreflightPreservesLogin (0.08s)
    accounts_test.go:591: pending refresh probed
    accounts_test.go:596: pending refresh overwritten
FAIL
rastrillo-budget/v1 ran 85ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.087s
FAIL
```

#### R1 mutation 3: midturn-refresh-explained

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if sha256.Sum256(runtimeRaw) != l.runtimeGeneration {
```

with:

```go
if sha256.Sum256(runtimeRaw) != l.runtimeGeneration {
 if l.active { return ErrContainment }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountRefreshPending/true$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountRefreshPending (0.05s)
    --- FAIL: TestAccountRefreshPending/true (0.05s)
        accounts_test.go:460: refresh must be pending: provider_account_containment
FAIL
rastrillo-budget/v1 ran 49ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.052s
FAIL
```

#### R1 mutation 4: containment-latch

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
defer func() { l.latch(err) }()
```

with:

```go
defer func() { _ = err }()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.25s)
    --- FAIL: TestAccountContainmentLatched/identity (0.12s)
        accounts_test.go:541: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.13s)
        accounts_test.go:541: containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 247ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.252s
FAIL
```

#### R1 mutation 5: preflight-latch-admission

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if l.contained {
		l.mu.Unlock()
```

with:

```go
if false && l.contained {
		l.mu.Unlock()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.24s)
    --- FAIL: TestAccountContainmentLatched/identity (0.12s)
        accounts_test.go:541: containment not latched: <nil>
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.12s)
        accounts_test.go:541: containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 239ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.241s
FAIL
```

#### R1 mutation 6: contained-provenance

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
!l.closed && !l.contained && b == l.binding()
```

with:

```go
!l.closed && b == l.binding()
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.13s)
    --- FAIL: TestAccountContainmentLatched/identity (0.08s)
        accounts_test.go:544: contained lease retained provenance
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.05s)
        accounts_test.go:544: contained lease retained provenance
FAIL
rastrillo-budget/v1 ran 130ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.132s
FAIL
```

#### R1 mutation 7: runtime-identity

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
json.Unmarshal(metadata, &id) != nil || id != l.source.Expected
```

with:

```go
json.Unmarshal(metadata, &id) != nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/runtime-identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.11s)
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.11s)
        accounts_test.go:529: active tampering not contained: <nil>
        accounts_test.go:541: containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 109ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.111s
FAIL
```

#### R1 mutation 8: runtime-unsafe-file

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
raw, e := readPrivate(dir, credentialName(l.source.Provider))
	if e != nil {
		return nil, ErrContainment
```

with:

```go
raw, e := readPrivate(dir, credentialName(l.source.Provider))
	if e != nil {
		return nil, nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/symlink$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.08s)
    --- FAIL: TestAccountContainmentLatched/symlink (0.08s)
        accounts_test.go:529: active tampering not contained: provider_refresh_pending
        accounts_test.go:541: containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 77ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.078s
FAIL
```

#### R1 mutation 9: commit-refresh-generation

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
l.runtimeGeneration = sha256.Sum256(runtimeAfter)
		return nil
```

with:

```go
_ = runtimeAfter
		return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountRefreshPending$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountRefreshPending (0.19s)
    --- FAIL: TestAccountRefreshPending/false (0.10s)
        accounts_test.go:475: refresh skipped preflight: provider_refresh_pending
    --- FAIL: TestAccountRefreshPending/true (0.09s)
        accounts_test.go:475: refresh skipped preflight: provider_refresh_pending
FAIL
rastrillo-budget/v1 ran 192ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.194s
FAIL
```

#### R1 mutation 10: source-file-containment

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
raw, e := readPrivate(l.dir, credentialName(l.source.Provider))
	if e != nil {
		return nil, zero, ErrContainment
```

with:

```go
raw, e := readPrivate(l.dir, credentialName(l.source.Provider))
	if e != nil {
		return nil, zero, e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentSourceFile$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentSourceFile (0.24s)
    --- FAIL: TestAccountContainmentSourceFile/symlink (0.12s)
        accounts_test.go:666: unsafe source not contained: provider_account_maintenance
        accounts_test.go:673: unsafe source containment not latched: <nil>
    --- FAIL: TestAccountContainmentSourceFile/directory (0.12s)
        accounts_test.go:666: unsafe source not contained: provider_policy_rejected
        accounts_test.go:673: unsafe source containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 238ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.240s
FAIL
```

#### R1 mutation 11: preflight-source-latch

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
_, before, e := l.snapshot()
	if e != nil {
		l.latch(e)
```

with:

```go
_, before, e := l.snapshot()
	if e != nil {
		_ = e
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentPreflightLatched/source$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentPreflightLatched (0.11s)
    --- FAIL: TestAccountContainmentPreflightLatched/source (0.11s)
        accounts_test.go:640: preflight containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 115ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.116s
FAIL
```

#### R1 mutation 12: start-manifest

File: `internal/runner/containment/linux.go`. Replace the first matching fragment:

```go
(l.Selection.Provider != "" && l.Policy.ManifestHash == "")
```

with:

```go
(false && l.Selection.Provider != "" && l.Policy.ManifestHash == "")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceProviderRequiresManifest$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceProviderRequiresManifest (0.00s)
    linux_test.go:702: missing manifest passed admission: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.003s
FAIL
```

#### R1 mutation 13: attestation-manifest

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if l.Selection.Provider != "" || l.Binding.DedicatedHome {
```

with:

```go
if l.Binding.DedicatedHome {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyProviderRequiresManifest$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyProviderRequiresManifest (0.00s)
    policy_test.go:373: direct provider accepted legacy attestation
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.001s
FAIL
```

#### R1 mutation 14: config-outside-home

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
filepath.Join(b.provenance.config, "equipo-settings.json")
```

with:

```go
filepath.Join(b.Home, "equipo-settings.json")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestPrivateHomeConfigOutsideWritableMounts$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestPrivateHomeConfigOutsideWritableMounts (0.12s)
    policy_test.go:347: config source has writable namespace alias
FAIL
rastrillo-budget/v1 ran 122ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.123s
FAIL
```

#### R1 mutation 15: turn-policy-check

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if e := l.validatePolicy(); e != nil {
```

with:

```go
if e := l.validatePolicy(); false && e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyTurnSources$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyTurnSources (0.35s)
    --- FAIL: TestEffectivePolicyTurnSources/settings (0.11s)
        policy_test.go:335: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/mcp (0.12s)
        policy_test.go:335: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/managed (0.12s)
        policy_test.go:335: changed policy admitted next turn
FAIL
rastrillo-budget/v1 ran 350ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.351s
FAIL
```

#### R1 mutation 16: register-turn-policy

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
b.provenance.policy = &Policy{Manifest: bytes.Clone(raw), ManifestHash: manifestHash}
```

with:

```go
b.provenance.policy = nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyTurnSources$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyTurnSources (0.25s)
    --- FAIL: TestEffectivePolicyTurnSources/settings (0.08s)
        policy_test.go:335: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/mcp (0.09s)
        policy_test.go:335: changed policy admitted next turn
    --- FAIL: TestEffectivePolicyTurnSources/managed (0.07s)
        policy_test.go:335: changed policy admitted next turn
FAIL
rastrillo-budget/v1 ran 250ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.252s
FAIL
```

#### R1 mutation 17: managed-digest

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if e != nil || !reflect.DeepEqual(current, expected) {
```

with:

```go
if e != nil || (false && !reflect.DeepEqual(current, expected)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyTurnSources/managed$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyTurnSources (0.12s)
    --- FAIL: TestEffectivePolicyTurnSources/managed (0.12s)
        policy_test.go:335: changed policy admitted next turn
FAIL
rastrillo-budget/v1 ran 117ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.122s
FAIL
```

#### R1 mutation 18: generated-digest

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if e != nil || !bytes.Equal(raw, want) {
```

with:

```go
if e != nil || (false && !bytes.Equal(raw, want)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyTurnSources/settings$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyTurnSources (0.12s)
    --- FAIL: TestEffectivePolicyTurnSources/settings (0.12s)
        policy_test.go:335: changed policy admitted next turn
FAIL
rastrillo-budget/v1 ran 125ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.127s
FAIL
```

#### R1 mutation 19: writable-source

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if withinPath(file.Source, in.Workspace) || withinPath(file.Source, in.Scratch) {
```

with:

```go
if false && (withinPath(file.Source, in.Workspace) || withinPath(file.Source, in.Scratch)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyRejectsWritableSource$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyRejectsWritableSource (0.20s)
    --- FAIL: TestEffectivePolicyRejectsWritableSource/workspace (0.11s)
        policy_test.go:365: writable managed alias accepted
    --- FAIL: TestEffectivePolicyRejectsWritableSource/scratch (0.09s)
        policy_test.go:365: writable managed alias accepted
FAIL
rastrillo-budget/v1 ran 204ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.213s
FAIL
```

#### R1 mutation 20: config-directory-identity

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
e != nil || !os.SameFile(info, l.configInfo) || !privateDirectory(f)
```

with:

```go
e != nil || (false && !os.SameFile(info, l.configInfo)) || !privateDirectory(f)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyConfigDirectory/replacement$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyConfigDirectory (0.11s)
    --- FAIL: TestEffectivePolicyConfigDirectory/replacement (0.11s)
        policy_test.go:410: changed config admitted resume
FAIL
rastrillo-budget/v1 ran 112ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.113s
FAIL
```

#### R1 mutation 21: config-directory-mode

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
e != nil || !os.SameFile(info, l.configInfo) || !privateDirectory(f)
```

with:

```go
e != nil || !os.SameFile(info, l.configInfo)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyConfigDirectory/mode$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyConfigDirectory (0.11s)
    --- FAIL: TestEffectivePolicyConfigDirectory/mode (0.11s)
        policy_test.go:410: changed config admitted resume
FAIL
rastrillo-budget/v1 ran 113ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.115s
FAIL
```

#### R1 mutation 22: config-cleanup

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
cleanup = errors.Join(cleanup, os.RemoveAll(l.config))
```

with:

```go
cleanup = errors.Join(cleanup, nil)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyConfigDirectory/cleanup$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyConfigDirectory (0.11s)
    --- FAIL: TestEffectivePolicyConfigDirectory/cleanup (0.11s)
        policy_test.go:403: config directory survived lease close
FAIL
rastrillo-budget/v1 ran 115ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.116s
FAIL
```

#### R1 mutation 23: resume-policy-check

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
return l.validatePolicy()
```

with:

```go
return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyConfigDirectory/resume$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestEffectivePolicyConfigDirectory (0.11s)
    --- FAIL: TestEffectivePolicyConfigDirectory/resume (0.11s)
        policy_test.go:410: changed config admitted resume
FAIL
rastrillo-budget/v1 ran 105ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.108s
FAIL
```

#### R1 mutation 24: passwd-home

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
u, e := lookup(strconv.Itoa(os.Geteuid()))
```

with:

```go
u, e := lookup(strconv.Itoa(os.Geteuid()))
 if u != nil { u.HomeDir = getenv("HOME") }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountHomeDefaultsIgnoreEnvironment$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeDefaultsIgnoreEnvironment (0.00s)
    accounts_test.go:559: passwd home accepted with changed HOME
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.001s
FAIL
```

#### R1 mutation 25: lookup-fail-closed

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if r.unavailable || !cleanPath(path) {
```

with:

```go
if !cleanPath(path) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountHomeLookupFailClosed$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeLookupFailClosed (0.00s)
    accounts_test.go:576: missing passwd home accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### R1 mutation 26: inherited-codex-home

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
[]string{"CODEX_HOME", "CLAUDE_CONFIG_DIR"}
```

with:

```go
[]string{"UNUSED_HOME", "CLAUDE_CONFIG_DIR"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountHomeDefaultsIgnoreEnvironment$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeDefaultsIgnoreEnvironment (0.00s)
    accounts_test.go:567: inherited CODEX_HOME accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### R1 mutation 27: inherited-claude-home

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
[]string{"CODEX_HOME", "CLAUDE_CONFIG_DIR"}
```

with:

```go
[]string{"CODEX_HOME", "UNUSED_HOME"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountHomeDefaultsIgnoreEnvironment$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeDefaultsIgnoreEnvironment (0.00s)
    accounts_test.go:567: inherited CLAUDE_CONFIG_DIR accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

#### R1 mutation 28: unique-home

File: `internal/runner/connections.go`. Replace the first matching fragment:

```go
homes[b.ProviderHome] = b
```

with:

```go
_ = b
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestAccountHomeConfiguredDiscoveryAliases/home$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeConfiguredDiscoveryAliases (0.00s)
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/home (0.00s)
        connections_test.go:167: shared binding authority accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### R1 mutation 29: unique-home-id

File: `internal/runner/connections.go`. Replace the first matching fragment:

```go
homeIDs[b.ExpectedIdentity.HomeID] = b
```

with:

```go
_ = b
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestAccountHomeConfiguredDiscoveryAliases/home-id$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeConfiguredDiscoveryAliases (0.00s)
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/home-id (0.00s)
        connections_test.go:167: shared binding authority accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### R1 mutation 30: unique-account

File: `internal/runner/connections.go`. Replace the first matching fragment:

```go
accountIDs[b.Provider+"/"+b.AccountID] = b
```

with:

```go
_ = b
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestAccountHomeConfiguredDiscoveryAliases/account$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountHomeConfiguredDiscoveryAliases (0.00s)
    --- FAIL: TestAccountHomeConfiguredDiscoveryAliases/account (0.00s)
        connections_test.go:167: shared binding authority accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.005s
FAIL
```

#### R1 mutation 31: pinned-settings-digest

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
func (p Policy) ValidateFileDigest(path, hash string) error {
```

with:

```go
func (p Policy) ValidateFileDigest(path, hash string) error {
 return nil

```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicySwapBeforePin$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicySwapBeforePin (0.22s)
    linux_test.go:763: swapped settings reached namespace
FAIL
rastrillo-budget/v1 ran 221ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.224s
FAIL
```

#### R1 mutation 32: host-runtime-binaries

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
func (p Policy) ValidateRuntimeBinaries(paths ...string) error {
```

with:

```go
func (p Policy) ValidateRuntimeBinaries(paths ...string) error {
 return nil

```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicyAdmission/(runner|bwrap)$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicyAdmission (0.30s)
    --- FAIL: TestNamespaceDirectPolicyAdmission/runner (0.13s)
        linux_test.go:802: changed direct launch passed attestation
    --- FAIL: TestNamespaceDirectPolicyAdmission/bwrap (0.16s)
        linux_test.go:802: changed direct launch passed attestation
FAIL
rastrillo-budget/v1 ran 296ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.298s
FAIL
```

#### R1 mutation 33: launch-argv

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
 || !reflect.DeepEqual(m.Argv, argv)
```

with:

```go
// removed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicyAdmission/argv$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicyAdmission (0.21s)
    --- FAIL: TestNamespaceDirectPolicyAdmission/argv (0.21s)
        linux_test.go:799: changed direct launch accepted
FAIL
rastrillo-budget/v1 ran 208ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.210s
FAIL
```

#### R1 mutation 34: launch-env

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if !reflect.DeepEqual(expectedEnv, p.Env) {
```

with:

```go
if false && !reflect.DeepEqual(expectedEnv, p.Env) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicyAdmission/env$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicyAdmission (0.22s)
    --- FAIL: TestNamespaceDirectPolicyAdmission/env (0.22s)
        linux_test.go:799: changed direct launch accepted
FAIL
rastrillo-budget/v1 ran 217ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.220s
FAIL
```

#### R1 mutation 35: launch-mounts

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if !reflect.DeepEqual(expectedMounts, p.Mounts) {
```

with:

```go
if false && !reflect.DeepEqual(expectedMounts, p.Mounts) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicyAdmission/mount$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicyAdmission (0.22s)
    --- FAIL: TestNamespaceDirectPolicyAdmission/mount (0.22s)
        linux_test.go:799: changed direct launch accepted
FAIL
rastrillo-budget/v1 ran 219ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.221s
FAIL
```

#### R1 mutation 36: active-source-change

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if generation != l.generation && l.active {
```

with:

```go
if false && generation != l.generation && l.active {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/source$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.07s)
    --- FAIL: TestAccountContainmentLatched/source (0.07s)
        accounts_test.go:529: active tampering not contained: provider_preflight_required
        accounts_test.go:541: containment not latched: <nil>
FAIL
rastrillo-budget/v1 ran 73ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.082s
FAIL
```

#### R1 mutation 37: contained-turn-admission

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if l.contained {
		return ErrContainment
```

with:

```go
if false && l.contained {
		return ErrContainment
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentLatched/identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountContainmentLatched (0.17s)
    --- FAIL: TestAccountContainmentLatched/identity (0.08s)
        accounts_test.go:547: contained lease admitted turn: provider_preflight_required
    --- FAIL: TestAccountContainmentLatched/runtime-identity (0.09s)
        accounts_test.go:547: contained lease admitted turn: provider_preflight_required
FAIL
rastrillo-budget/v1 ran 173ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.179s
FAIL
```

#### R1 mutation 38: refresh-identity-latch

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if id != l.source.Expected {
		l.contained = true
```

with:

```go
if id != l.source.Expected {
		l.contained = false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountRefreshFailure/identity$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestAccountRefreshFailure (0.10s)
    --- FAIL: TestAccountRefreshFailure/identity (0.10s)
        accounts_test.go:713: wrong refresh identity not latched: <nil>
FAIL
rastrillo-budget/v1 ran 103ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.113s
FAIL
```

#### R1 mutation 39: config-readonly-bind

File: `internal/runner/containment/mounts.go`. Replace the first matching fragment:

```go
p.bind(mount.Source, target, true, false)
```

with:

```go
p.bind(mount.Source, target, false, false)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicy$' -count=1
```

Exit 1, compiled failure:

```text
--- FAIL: TestNamespaceDirectPolicy (0.29s)
    linux_test.go:731: direct namespace failed:  {1 0 2026-11-03 13:01:56.30799706 +0000 UTC} <nil> Traceback (most recent call last):
          File "<string>", line 5, in <module>
            raise AssertionError('config writable')
        AssertionError: config writable
FAIL
rastrillo-budget/v1 ran 285ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.296s
FAIL
```

### User-facing strings and concerns

No UI strings or copy.go entries changed. The new internal error code is `provider_refresh_pending`; any later UI presentation needs its own individually pending copy.go entry and release copy pass. Existing identity, maintenance, policy and containment errors are reused. This report and test failure messages are the only explanatory text added.

No unresolved fix-round findings remain. Real refresh behavior, native provider tool restrictions and deployed-policy certification remain later live gates. The fake-login namespace tests do not certify a provider account or add release certificates. Adapters must use CommitRefresh, Preflight and the turn/resume checks in the stated order.

All mutation sources were restored. All test processes and namespace children exited through their cleanup paths. Owned scratch logs/scripts are removed after copying their evidence into these reports. No push, merge, deployment, README edit, other worktree change or production configuration change was made.

## Task 5: Claude Code headless sessions

Status: DONE_WITH_CONCERNS.
Commit subject: `feat: launch Claude headless with pinned sandbox policy`.
Branch: `plan-2b`. Work stayed in the authorized worktree. No push, merge, deployment, sign-in, enrolment, helper agent, copy-review server or .claude/HANDOFF.md.

### What changed

`claude.New(ProcessHost, CaptureFactory)` implements `provider.Launcher`. `claude.PolicyInputs(binding, inputs, specialist, model)` renders the exact specialist policy before the caller uses `provider.BuildPolicy`. The binding must come from an existing `AccountLease`. Open validates the pinned executable and policy, checks the account through captured no-prompt status, runs an empty-input dependency control, generates a UUID, starts the contained process and opens durable capture. The concrete launch manifest passed to CaptureFactory contains the UUID and exact argv before any user envelope is written. Open's context remains the attempt lifetime.

StartTurn requires an attached Events consumer, a nonempty unused turn ID and admission ID, an available account lease, unchanged generated/managed/runtime files and an attested launch. BeginTurn/EndTurn bracket the active interval. Runtime refresh requires CommitRefresh and fresh Preflight before another prompt. Source-generation changes also require fresh Preflight. Containment failures stop the attempt. A cancelled or partial stdin write leaves the turn uncertain and cancels the process. StartTurn releases the launcher mutex during I/O so interruption and event capture can continue.

Fresh sessions use `--session-id`; resume uses the saved ID. Resume requires the latest attempt for that session to have a captured successful result, clean capture completion and a zero process exit, with the same binding, selection and base policy. A newer attempt invalidates the older completion as resume authority. Used admissions carry forward. Unknown sessions, interrupted attempts and uncertain turns cannot resume. A graceful Close drains capture and checks process exit; Interrupt cancels the owned lifetime and does not manufacture containment proof.

Decode accepts bounded complete JSON frames, rejects duplicate keys, preserves raw payloads and session/request/message/tool IDs, and maps result failures using both `is_error` and subtype. Result usage remains the recorded per-turn object; cumulative modelUsage is retained separately in the raw payload. The reader accepts repeated init records, including init after the first admitted input. It checks version, model, permission mode, tools, MCP servers, skills and plugin provenance. Capture sequences must increase; gaps are allowed because Task 1 does not promise contiguous journal sequence numbers. Non-JSON stderr belongs to capture and is not parsed as a provider stdout event. Partial, oversized, missing and mismatched stdout fail closed. Nonzero process exit prevents resume even after a success result.

Engineering uses exactly `Bash,Read,Write,Edit,Glob,Grep`. Review and Product use exactly `Read,Glob,Grep,Bash`. Explicit Equipo MCP names are included in the policy inventory; permission is always registered. The CLI argv has no prompt and uses the exact pinned settings, strict MCP, manual permission and prompt-tool flags. Both required environment variables are constructed by BuildPolicy and admitted by containment. Sandbox dependency failure is fatal; unsandboxed retries, excluded commands, automatic shell approval, arbitrary hooks and user plugins are disabled. Native Read/Write/Edit/Glob/Grep and inner-shell read/write denies cover the selected login, runner home, supplied protected paths and aliases, /egress, /tool, /tool/equipo.sock, /config, /proc and /dev/fd.

The fixed MCP shape is:

```json
{"mcpServers":{"equipo":{"type":"stdio","command":"/opt/equipo-tool-proxy","args":["--socket","/tool/equipo.sock"]}}}
```

The helper must be supplied as an attested read-only runtime file. Task 8 owns that executable, registered tool implementation and permission relay. Respond currently refuses direct answers; it cannot grant permissions or create a hidden turn.

Task 4 needed three narrow integration changes. A verified binding can expose its own lease to the adapter. Claude observations compare the CLI-reported account and pinned version without inventing an observed HomeID. The lease stages only native nonsecret account identifiers from the dedicated home's `.claude.json`, so `auth status --json` can report the account; it never imports settings, hooks, plugins or trust entries. Source metadata participates in generation checks and changed runtime identifiers latch containment. Missing metadata cannot become an expected-account fallback.

The reusable policy hash normalizes a valid trailing Claude session UUID and start/resume selector. The concrete manifest and launch attestation retain them exactly. This keeps certificates reusable without allowing a different account, model, tools or settings to reuse a session.

### Files

- `internal/runner/provider/claude/launcher.go`, `events.go`: adapter, rendering, preflight, lifecycle and decoder.
- `internal/runner/provider/claude/launcher_test.go`, `events_test.go`, `budget_test.go`: real local fake CLI processes, fake capture, recorded-frame assertions and the standard package budget entry point.
- `internal/runner/provider/claude/testdata/`: sanitized stdin/stdout, empty stderr and timing/version/digest metadata for the two authorized invocations.
- `internal/runner/provider/accounts.go`: lease access and Claude native metadata/identity checks.
- `internal/runner/provider/policy.go`: required Claude environment and session UUID normalization in reusable policy hashes.
- `internal/runner/containment/mounts.go`, `mounts_test.go`: the same required environment at the actual namespace boundary; the unsupported updater spelling is refused.
- `.rastrillo/budgets.txt`: 45-second exception for the new package, whose offline run measured 32.430 seconds on the shared machine. It includes fsynced account/policy checks and many local fake processes.
- This controller section and the ignored local task report. The two-line invocation tally remains at the requested ignored local path.

### Authorized recording

Exactly two Claude invocations were made. Before each, the recorder took a file lock, counted the tally lines, refused a third invocation, appended and fsynced its line, then executed Claude. No separate version, help or auth invocation was made. Version came from init; the executable digest came from the resolved binary file. No credential file was read, printed, copied or hashed by the recorder, and no provider settings, CLAUDE.md, plugins or skills were manually edited.

The only home used was the existing signed-in home explicitly authorized in the dispatch. Its path is absent from code, tests and committed fixtures. Production still refuses ZeroSub homes. Task 2/3 launch was infeasible for this exception because Manager requires a manifest backed by Task 4's verified dedicated-home provenance, which refuses that home. The recording therefore used the authorized direct fallback. It did not weaken the production refusal.

Resolved executable: `/home/paulca/.local/share/claude/versions/2.1.312`.
CLI version: `2.1.312`, observed in both runs' init records.
SHA-256: `4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d`.

The following is the exact argument/environment shape with private paths and UUID replaced by their fixture placeholders. `$RECORDING` was an owned directory under the on-disk TMPDIR, and cwd was `$RECORDING/workspace`:

```sh
CLAUDE_CONFIG_DIR="$AUTHORIZED_HOME"
CLAUDE_SECURESTORAGE_CONFIG_DIR="$AUTHORIZED_HOME"
HOME="$RECORDING/home"
TMPDIR="$RECORDING/tmp"
CLAUDE_TMPDIR="$RECORDING/tmp"
PATH=/usr/bin:/bin
LANG=C.UTF-8
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
DISABLE_AUTOUPDATER=1
# No inherited environment; settings.json contains disableAllHooks:true and enabledPlugins:{}.
# mcp.json contains {"mcpServers":{}}.
<resolved-claude> -p --verbose --input-format stream-json --output-format stream-json --session-id <fresh-uuid> --model claude-haiku-5-5 --setting-sources '' --strict-mcp-config --mcp-config "$RECORDING/mcp.json" --disable-slash-commands --tools '' --settings "$RECORDING/settings.json"
# Invocation 2 replaces --session-id with --resume and uses the saved UUID.
```

Each run waited three seconds without input to observe startup, then wrote the recorded JSON user envelope. Invocation 1 wrote the second envelope only after the first result. Stdin closed after the second result. Invocation 2 sent one envelope and closed stdin after its result. Prompts were exactly `Reply with the single word one.`, `Reply with the single word two.` and `Reply with the single word three.` No prompt appeared in argv. Both invocations had a 120-second kill bound and completed normally.

Neither run emitted init before the first input. The first input was at 3.004893 seconds and first stdout at 3.026742 seconds. Init was repeated for the second turn. All session-bearing records in both runs used the supplied/saved session ID. Sanitization consistently replaced it with `00000000-0000-4000-8000-000000000001`.

| Invocation/turn | Result | input_tokens | cache_creation_input_tokens | cache_read_input_tokens | output_tokens | result_index |
| --- | --- | ---: | ---: | ---: | ---: | ---: |
| fresh / one | success, is_error:false | 2 | 3906 | 0 | 3 | 0 |
| same process / two | success, is_error:false | 2 | 378 | 3566 | 3 | 1 |
| resume / three | success, is_error:false | 2 | 63 | 3919 | 3 | 0 |

Invocation 1 exited 0 after 6.336797 seconds; invocation 2 exited 0 after 4.746490 seconds. Both stderr streams were empty. modelUsage input/output accumulated as 2/3, 4/6 and 6/9; the usage object above stayed per-turn across both the long-lived process and resume. The fixtures retain all usage numbers and other nonsecret frame fields. This is the accounting baseline, not a billing assertion.

Fixtures were written and pinned to the observed version/digest before implementation. UUIDs and message/request IDs were consistently replaced, paths were replaced, and email/host/token-shaped data was sanitized. Capabilities, frame field names, types, turn boundaries and usage numbers were preserved. A final scan found none of the authorized home path, host names, account email or token prefixes in testdata. Raw capture and recorder scratch were deleted after extracting this evidence.

### Interpretations and integration limits

1. HomeID is Equipo-assigned. The public Preflight result deliberately has empty HomeID. The account lease compares only actual Claude account metadata and the pinned binary version, while retaining its separate local HomeID binding. Claude AccountID is the email returned by auth status; this remains local CLI metadata and trust-on-first-use, not remote identity attestation.
2. The native `.claude.json` import is needed because the nesting report observed null email when only credentials were staged. It selects only emailAddress, accountUuid and organizationUuid, plus the onboarding boolean. Neither Equipo identity metadata nor the expected binding is echoed as a CLI observation. No credential or provider-home content from the real recording entered this implementation.
3. The task's required updater spelling supersedes the older generic builder and namespace allowlist. Both now use DISABLE_AUTOUPDATER and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC.
4. Imported managed runtime settings are refused because Claude has no proven effective-config readback here. Instruction mounts may include the specifically hashed `/etc/claude-code/CLAUDE.md`, but cannot smuggle managed settings JSON into the masked directory. This favors refusal over an uncertified override.
5. The recorded pinned executable lists two built-in plugins even with empty enabledPlugins: cc-plugin-agents-md and cc-plugin-plugin-authoring. Init accepts only those exact names with path builtin and matching @builtin source. Arbitrary plugins and skills are refused. Built-in agent names in init do not expose Task/subagent tools; the exact tools inventory remains enforced.
6. Task 1 has no durable-session lookup/rehydration method. This adapter resumes only sessions whose durable frames and clean exit it observed in the current launcher lifetime. Unknown sessions after restart are refused. Task 7 must recover the journal and quarantine uncertainty before adding any rehydration authority; this task does not invent proof.
7. CaptureFactory is the durable boundary. The adapter never reads stdout/stderr directly. The fake capture drains both streams and supplies frames for tests. The production journal and the Equipo MCP helper remain Tasks 7 and 8. Their absence does not authorize alternate capture or permission paths.
8. The recording establishes stream input, session identity and usage, with tools disabled as authorized. Production strict-MCP helper behavior, empty-input dependency control, real refresh and full native/alias read-denial certification still belong to Task 11b. No additional provider run was made to test those release gates.
9. The user's explicit task rules override generic copy-review, delegation and handoff workflows. No README prose or copy.go entry changed.

### RED evidence

Commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b`, with CGO_ENABLED=0, the supplied on-disk TMPDIR and default Go caches. Initial tests preceded implementation. The initial API RED was:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaude' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner/provider/claude [amadan.net/oficina/equipo/internal/runner/provider/claude.test]
internal/runner/provider/claude/launcher_test.go:74:68: undefined: MaxFrameBytes
internal/runner/provider/claude/launcher_test.go:80:25: undefined: Launcher
internal/runner/provider/claude/launcher_test.go:83:97: undefined: Version
internal/runner/provider/claude/launcher_test.go:90:7: undefined: PolicyInputs
internal/runner/provider/claude/events_test.go:17:15: undefined: Decode
internal/runner/provider/claude/events_test.go:32:9: undefined: Decode
internal/runner/provider/claude/events_test.go:37:9: undefined: Decode
internal/runner/provider/claude/events_test.go:39:76: undefined: MaxFrameBytes
internal/runner/provider/claude/events_test.go:40:11: undefined: Decode
internal/runner/provider/claude/events_test.go:49:11: undefined: userEnvelope
internal/runner/provider/claude/launcher_test.go:90:7: too many errors
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude [build failed]
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run 'TestClaudeLaunchPolicy|TestClaudePolicyRefusals|TestClaudeRefreshBeforeTurn|TestClaudeObservedIdentity' -count=1
```

```text
--- FAIL: TestClaudeLaunchPolicy (0.69s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.23s)
        launcher_test.go:283: session ID changed reusable policy hash
    --- FAIL: TestClaudeLaunchPolicy/Review (0.23s)
        launcher_test.go:283: session ID changed reusable policy hash
    --- FAIL: TestClaudeLaunchPolicy/Product (0.23s)
        launcher_test.go:283: session ID changed reusable policy hash
--- FAIL: TestClaudePolicyRefusals (0.69s)
    --- FAIL: TestClaudePolicyRefusals/helper (0.23s)
        launcher_test.go:506: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 2.381s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	2.383s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run 'TestClaudeTerminalErrors|TestClaudeResumeLatestAttempt' -count=1
```

```text
--- FAIL: TestClaudeTerminalErrors (3.41s)
    --- FAIL: TestClaudeTerminalErrors/missing (0.48s)
        launcher_test.go:464: events ended without terminal
    --- FAIL: TestClaudeTerminalErrors/oversized (0.48s)
        launcher_test.go:464: events ended without terminal
--- FAIL: TestClaudeResumeLatestAttempt (1.11s)
    launcher_test.go:574: resumed admission replayed
    launcher_test.go:580: old completion overrode newer uncertainty
FAIL
rastrillo-budget/v1 ran 4.524s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	4.529s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudeNativeIdentityMetadata$' -count=1
```

```text
--- FAIL: TestClaudeNativeIdentityMetadata (0.51s)
    --- FAIL: TestClaudeNativeIdentityMetadata/staged (0.08s)
        launcher_test.go:636: open /home/paulca/t/e2b/TestClaudeNativeIdentityMetadatastaged3043721488/001/homes/account-2540258232/.claude.json: no such file or directory
    --- FAIL: TestClaudeNativeIdentityMetadata/source (0.22s)
        launcher_test.go:643: provider_identity_mismatch
    --- FAIL: TestClaudeNativeIdentityMetadata/runtime (0.21s)
        launcher_test.go:643: provider_identity_mismatch
FAIL
rastrillo-budget/v1 ran 512ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.514s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run 'TestClaudeConstructor|TestClaudeConcurrentSession' -count=1
```

```text
--- FAIL: TestClaudeConstructor (0.00s)
    launcher_test.go:676: missing dependency accepted
--- FAIL: TestClaudeConcurrentSession (1.31s)
    launcher_test.go:686: two processes admitted on one account lease
FAIL
rastrillo-budget/v1 ran 1.313s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.316s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePolicyRefusals/managed$|^TestClaudeReadiness/malformed_capture$' -count=1
```

```text
--- FAIL: TestClaudePolicyRefusals (0.85s)
    --- FAIL: TestClaudePolicyRefusals/managed (0.85s)
        launcher_test.go:588: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 1.6s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.604s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePolicyRefusals/managed_instruction$' -count=1
```

```text
--- FAIL: TestClaudePolicyRefusals (0.82s)
    --- FAIL: TestClaudePolicyRefusals/managed_instruction (0.82s)
        launcher_test.go:611: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 819ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.822s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceClaudeEnvironment$' -count=1
```

```text
--- FAIL: TestNamespaceClaudeEnvironment (0.00s)
    --- FAIL: TestNamespaceClaudeEnvironment/CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC (0.00s)
        mounts_test.go:94: required Claude environment refused: namespace_mount_rejected
    --- FAIL: TestNamespaceClaudeEnvironment/DISABLE_AUTOUPDATER (0.00s)
        mounts_test.go:94: required Claude environment refused: namespace_mount_rejected
    mounts_test.go:111: unsupported updater environment accepted
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.004s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudeWriteCancellation$' -count=1
```

```text
--- FAIL: TestClaudeWriteCancellation (1.11s)
    launcher_test.go:814: cancelled admission left stdin blocked
FAIL
rastrillo-budget/v1 ran 1.112s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.144s
FAIL
```

An initial fake-process harness used Cmd.StdoutPipe with a concurrent Wait, which could close the read pipe early. The harness was corrected to own its pipes, and the lifecycle RED above was rerun afterward. Two newly added test cases initially lacked their case setup; those were corrected before the managed-settings RED recorded here. Those harness/setup failures are not claimed as behavioral evidence.

### GREEN evidence

Required adapter command after restoration of the first 70 mutations:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaude' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	32.430s
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run '^TestAccount|^TestEffectivePolicy|^TestUnexpectedConfig|^TestPrivateHome|^TestNamespaceClaudeEnvironment$|^TestNamespaceDirectPolicy$|^TestNamespaceProviderRequiresManifest$' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	15.910s
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.521s
```

The related checks include an actual local bubblewrap namespace with a fake provider, the required environment at the mount boundary, mandatory provider manifests and Task 4 account/policy regressions. No model provider is involved. `git diff --check` passed and changed Go files were formatted. No full repository suite, make ci or live certification ran.

### Mutation evidence

71 independent mutations compiled and caused the named test to fail. Each was applied alone and restored in a finally block before the next mutation. The scratch driver invoked Go directly with CGO_ENABLED=0, captured the exit code and required a named test failure without a build failure. The driver was run in bounded batches using `python3 /home/paulca/t/e2b/task5-recording/mutations.py <start> <end>`. The exact mutation and Go command for every case follow.

Two first attempts were not evidence: the oversized-input mutation matched Decode's earlier size expression, and the plugin mutation changed only one part of a compound predicate. Both initially passed. Each target was corrected and rerun; the final failures below replace those invalid attempts. No compile error is counted as mutation evidence.

#### Mutation 1: sandbox-enabled

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"enabled": true
```

with:

```go
"enabled": false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.24s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.24s)
        launcher_test.go:305: sandbox weakened
FAIL
rastrillo-budget/v1 ran 236ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.241s
FAIL
```

#### Mutation 2: sandbox-required

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"failIfUnavailable": true
```

with:

```go
"failIfUnavailable": false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.27s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.27s)
        launcher_test.go:305: sandbox weakened
FAIL
rastrillo-budget/v1 ran 268ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.274s
FAIL
```

#### Mutation 3: unsandboxed-retry

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"allowUnsandboxedCommands": false
```

with:

```go
"allowUnsandboxedCommands": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.16s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.16s)
        launcher_test.go:305: sandbox weakened
FAIL
rastrillo-budget/v1 ran 164ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.176s
FAIL
```

#### Mutation 4: excluded-command

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"excludedCommands": []string{}
```

with:

```go
"excludedCommands": []string{"sh"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.19s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.19s)
        launcher_test.go:311: excluded commands
FAIL
rastrillo-budget/v1 ran 187ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.195s
FAIL
```

#### Mutation 5: automatic-shell-approval

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"autoAllowBashIfSandboxed": false
```

with:

```go
"autoAllowBashIfSandboxed": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.20s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.20s)
        launcher_test.go:308: automatic shell approval enabled
FAIL
rastrillo-budget/v1 ran 198ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.217s
FAIL
```

#### Mutation 6: hooks-disabled

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"disableAllHooks": true
```

with:

```go
"disableAllHooks": false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.18s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.18s)
        launcher_test.go:298: hooks/plugins enabled
FAIL
rastrillo-budget/v1 ran 180ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.186s
FAIL
```

#### Mutation 7: plugins-disabled

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"enabledPlugins": map[string]any{}
```

with:

```go
"enabledPlugins": map[string]any{"arbitrary":true}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.17s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.17s)
        launcher_test.go:298: hooks/plugins enabled
FAIL
rastrillo-budget/v1 ran 175ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.178s
FAIL
```

#### Mutation 8: strict-mcp-argv

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"--strict-mcp-config",
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.81s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.81s)
        launcher_test.go:330: argv [/opt/claude -p --verbose --input-format stream-json --output-format stream-json --model claude-haiku-5-5 --setting-sources  --disable-slash-commands --mcp-config /config/equipo-mcp.json --settings /config/equipo-settings.json --permission-mode manual --permission-prompt-tool mcp__equipo__permission --tools Bash,Read,Write,Edit,Glob,Grep --session-id 15ad339f-a1cb-46d2-b604-9bafc986e758]
FAIL
rastrillo-budget/v1 ran 811ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.818s
FAIL
```

#### Mutation 9: settings-sources

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"--setting-sources", "",
```

with:

```go
"--setting-sources", "user,project",
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.86s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.86s)
        launcher_test.go:330: argv [/opt/claude -p --verbose --input-format stream-json --output-format stream-json --model claude-haiku-5-5 --setting-sources user,project --disable-slash-commands --strict-mcp-config --mcp-config /config/equipo-mcp.json --settings /config/equipo-settings.json --permission-mode manual --permission-prompt-tool mcp__equipo__permission --tools Bash,Read,Write,Edit,Glob,Grep --session-id 468287dc-4708-46b6-854d-2aa6bac62a56]
FAIL
rastrillo-budget/v1 ran 865ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.874s
FAIL
```

#### Mutation 10: disable-slash

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"--disable-slash-commands",
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.82s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.82s)
        launcher_test.go:330: argv [/opt/claude -p --verbose --input-format stream-json --output-format stream-json --model claude-haiku-5-5 --setting-sources  --strict-mcp-config --mcp-config /config/equipo-mcp.json --settings /config/equipo-settings.json --permission-mode manual --permission-prompt-tool mcp__equipo__permission --tools Bash,Read,Write,Edit,Glob,Grep --session-id 79877393-30c4-49f8-9fe6-34b0fd620c70]
FAIL
rastrillo-budget/v1 ran 821ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.831s
FAIL
```

#### Mutation 11: manual-permission

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"--permission-mode", "manual"
```

with:

```go
"--permission-mode", "default"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.85s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.85s)
        launcher_test.go:330: argv [/opt/claude -p --verbose --input-format stream-json --output-format stream-json --model claude-haiku-5-5 --setting-sources  --disable-slash-commands --strict-mcp-config --mcp-config /config/equipo-mcp.json --settings /config/equipo-settings.json --permission-mode default --permission-prompt-tool mcp__equipo__permission --tools Bash,Read,Write,Edit,Glob,Grep --session-id d0e89ca7-b09d-4025-8d88-fc0300f91ec2]
FAIL
rastrillo-budget/v1 ran 854ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.870s
FAIL
```

#### Mutation 12: permission-tool

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"mcp__equipo__permission", "--tools"
```

with:

```go
"mcp__other__permission", "--tools"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.85s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.85s)
        launcher_test.go:330: argv [/opt/claude -p --verbose --input-format stream-json --output-format stream-json --model claude-haiku-5-5 --setting-sources  --disable-slash-commands --strict-mcp-config --mcp-config /config/equipo-mcp.json --settings /config/equipo-settings.json --permission-mode manual --permission-prompt-tool mcp__other__permission --tools Bash,Read,Write,Edit,Glob,Grep --session-id 217cb9a7-f5fc-44f0-a009-bfb8c78aba9d]
FAIL
rastrillo-budget/v1 ran 849ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.861s
FAIL
```

#### Mutation 13: mcp-shape

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"mcpServers":{"equipo":
```

with:

```go
"mcpServers":{"other":
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.21s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.21s)
        launcher_test.go:301: MCP inventory expanded
FAIL
rastrillo-budget/v1 ran 214ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.218s
FAIL
```

#### Mutation 14: engineering-tools

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
[]string{"Bash", "Read", "Write", "Edit", "Glob", "Grep"}
```

with:

```go
[]string{"Bash", "Read", "Write", "Edit", "Glob", "Grep", "WebFetch"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.16s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.16s)
        launcher_test.go:293: tools [Bash Read Write Edit Glob Grep WebFetch mcp__equipo__permission]
FAIL
rastrillo-budget/v1 ran 156ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.175s
FAIL
```

#### Mutation 15: review-tools

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
[]string{"Read", "Glob", "Grep", "Bash"}
```

with:

```go
[]string{"Read", "Glob", "Grep", "Bash", "Write"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Review$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.23s)
    --- FAIL: TestClaudeLaunchPolicy/Review (0.23s)
        launcher_test.go:293: tools [Read Glob Grep Bash Write mcp__equipo__permission]
FAIL
rastrillo-budget/v1 ran 235ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.241s
FAIL
```

#### Mutation 16: tool-hash

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
Tools: tools,
```

with:

```go
Tools: nil,
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeToolHash$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeToolHash (0.27s)
    launcher_test.go:622: tool inventory missing from policy hash
FAIL
rastrillo-budget/v1 ran 275ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.277s
FAIL
```

#### Mutation 17: native-denies

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
[]string{"Read", "Write", "Edit", "Glob", "Grep"}
```

with:

```go
[]string{"Write", "Edit", "Glob", "Grep"}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.42s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.42s)
        launcher_test.go:315: missing protected path /home/runner
FAIL
rastrillo-budget/v1 ran 417ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.426s
FAIL
```

#### Mutation 18: egress-denial

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"/egress",
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.18s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.18s)
        launcher_test.go:315: missing protected path /egress
FAIL
rastrillo-budget/v1 ran 183ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.189s
FAIL
```

#### Mutation 19: socket-denial

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"/tool/equipo.sock",
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.19s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.19s)
        launcher_test.go:315: missing protected path /tool/equipo.sock
FAIL
rastrillo-budget/v1 ran 194ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.197s
FAIL
```

#### Mutation 20: alias-denials

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
denied := append([]string{}, in.DeniedPaths...)
```

with:

```go
denied := []string{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.17s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.17s)
        launcher_test.go:315: missing protected path /private/state
FAIL
rastrillo-budget/v1 ran 171ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.173s
FAIL
```

#### Mutation 21: traffic-environment

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
env["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1"
```

with:

```go
env["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "0"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.17s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.17s)
        launcher_test.go:318: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 166ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.168s
FAIL
```

#### Mutation 22: updater-environment

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
env["DISABLE_AUTOUPDATER"] = "1"
```

with:

```go
env["DISABLE_AUTOUPDATER"] = "0"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.17s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.17s)
        launcher_test.go:318: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 172ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.175s
FAIL
```

#### Mutation 23: session-policy-normalization

File: `internal/runner/provider/policy.go`. Replace the first matching fragment:

```go
if m.Provider == "claude" && len(m.Argv) >= 3 {
```

with:

```go
if false && m.Provider == "claude" && len(m.Argv) >= 3 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.66s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.66s)
        launcher_test.go:326: session ID changed reusable policy hash
FAIL
rastrillo-budget/v1 ran 661ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.664s
FAIL
```

#### Mutation 24: helper-required

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if !helperFound {
```

with:

```go
if false && !helperFound {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePolicyRefusals/helper$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudePolicyRefusals (0.71s)
    --- FAIL: TestClaudePolicyRefusals/helper (0.71s)
        launcher_test.go:563: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 710ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.712s
FAIL
```

#### Mutation 25: digest-pin

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
found = f.SHA256 == l.digest
```

with:

```go
found = true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeReadiness/digest$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeReadiness (0.66s)
    --- FAIL: TestClaudeReadiness/digest (0.66s)
        launcher_test.go:459: unready launch accepted
FAIL
rastrillo-budget/v1 ran 662ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.664s
FAIL
```

#### Mutation 26: admission

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
t.AdmissionID == "" ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNoPromptBeforeAdmission$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNoPromptBeforeAdmission (0.67s)
    launcher_test.go:363: missing admission accepted
FAIL
rastrillo-budget/v1 ran 672ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.674s
FAIL
```

#### Mutation 27: events-attached

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
!v.attached ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeReadiness/no_events$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeReadiness (0.71s)
    --- FAIL: TestClaudeReadiness/no_events (0.71s)
        launcher_test.go:482: unready turn accepted
FAIL
rastrillo-budget/v1 ran 708ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.710s
FAIL
```

#### Mutation 28: account-observation

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
observed.AccountID == b.Expected.AccountID &&
```

with:

```go
true &&
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeReadiness/identity$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeReadiness (0.68s)
    --- FAIL: TestClaudeReadiness/identity (0.68s)
        launcher_test.go:459: unready launch accepted
FAIL
rastrillo-budget/v1 ran 685ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.687s
FAIL
```

#### Mutation 29: homeid-not-observed

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
provider.Identity{AccountID: status.Email, ProviderVersion: Version}
```

with:

```go
provider.Identity{AccountID: status.Email, HomeID:b.Expected.HomeID, ProviderVersion: Version}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeObservedIdentity$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeObservedIdentity (0.61s)
    launcher_test.go:525: identity was not CLI observed: {AccountID:account@example.invalid HomeID:equipo-home ProviderVersion:2.1.312}
FAIL
rastrillo-budget/v1 ran 608ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.619s
FAIL
```

#### Mutation 30: begin-turn

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if e = v.lease.BeginTurn(ctx); e != nil {
```

with:

```go
if e = error(nil); e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeActiveLease$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeActiveLease (0.69s)
    launcher_test.go:643: active interval not checked: provider_preflight_required
FAIL
rastrillo-budget/v1 ran 693ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.698s
FAIL
```

#### Mutation 31: end-turn

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
endErr := s.lease.EndTurn(context.Background())
```

with:

```go
endErr := error(nil)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNoPromptBeforeAdmission$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNoPromptBeforeAdmission (0.72s)
    launcher_test.go:367: provider_account_busy
FAIL
rastrillo-budget/v1 ran 721ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.723s
FAIL
```

#### Mutation 32: refresh-commit

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if e = lease.CommitRefresh(ctx, probe); e != nil {
```

with:

```go
if e = error(nil); e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeRefreshBeforeTurn/runtime$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeRefreshBeforeTurn (0.80s)
    --- FAIL: TestClaudeRefreshBeforeTurn/runtime (0.80s)
        launcher_test.go:579: provider_refresh_pending
FAIL
rastrillo-budget/v1 ran 800ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.803s
FAIL
```

#### Mutation 33: error-flag

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
if !*v.IsError && v.Subtype == "success" {
```

with:

```go
if v.Subtype == "success" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents/error_flag$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.00s)
    --- FAIL: TestClaudeStreamEvents/error_flag (0.00s)
        events_test.go:62: error treated as success [{s   turn.completed [123 34 116 121 112 101 34 58 34 114 101 115 117 108 116 34 44 34 115 117 98 116 121 112 101 34 58 34 115 117 99 99 101 115 115 34 44 34 105 115 95 101 114 114 111 114 34 58 116 114 117 101 44 34 115 101 115 115 105 111 110 95 105 100 34 58 34 115 34 44 34 114 101 115 117 108 116 34 58 34 114 97 116 101 32 108 105 109 105 116 101 100 34 44 34 117 115 97 103 101 34 58 123 125 125]}] <nil>
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.004s
FAIL
```

#### Mutation 34: oversized-frame

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
len(raw) > MaxFrameBytes ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.01s)
    events_test.go:74: invalid frame accepted: {"type":"assistant","session_id":"s","text":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
FAIL
rastrillo-budget/v1 ran 12ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.014s
FAIL
```

#### Mutation 35: duplicate-json

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
!ok || seen[s]
```

with:

```go
!ok
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.00s)
    events_test.go:74: invalid frame accepted: {"type":"assistant","session_id":"a","session_id":"b"}
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.005s
FAIL
```

#### Mutation 36: frame-session

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
|| v.Session == ""
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.00s)
    events_test.go:74: invalid frame accepted: {"type":"assistant"}
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.005s
FAIL
```

#### Mutation 37: request-id

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
RequestID: v.Request
```

with:

```go
RequestID: ""
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents/tool_ids$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.00s)
    --- FAIL: TestClaudeStreamEvents/tool_ids (0.00s)
        events_test.go:69: tool correlation lost
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.005s
FAIL
```

#### Mutation 38: oversized-input

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
if e != nil || len(raw) > MaxFrameBytes {
```

with:

```go
if e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInputEnvelope$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInputEnvelope (0.00s)
    events_test.go:81: oversized input accepted
FAIL
rastrillo-budget/v1 ran 5ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.008s
FAIL
```

#### Mutation 39: recorded-usage

File: `internal/runner/provider/claude/events.go`. Replace the first matching fragment:

```go
Payload: bytes.Clone(raw)
```

with:

```go
Payload: changedUsage(raw)
```

Additional mutation-only helper:

```go
func changedUsage(raw []byte) []byte {var v map[string]any;json.Unmarshal(raw,&v);if usage,ok:=v["usage"].(map[string]any);ok{usage["cache_creation_input_tokens"]=0};out,_:=json.Marshal(v);return out}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeStreamEvents/stdout.jsonl$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeStreamEvents (0.00s)
    --- FAIL: TestClaudeStreamEvents/stdout.jsonl (0.00s)
        events_test.go:55: per-turn usage [0,0]
    --- FAIL: TestClaudeStreamEvents/resume-stdout.jsonl (0.00s)
        events_test.go:55: per-turn usage [0]
FAIL
rastrillo-budget/v1 ran 5ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.009s
FAIL
```

#### Mutation 40: emitted-session

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if ev.SessionID != s.session.ID {
```

with:

```go
if false && ev.SessionID != s.session.ID {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeTerminalErrors/identity$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeTerminalErrors (1.37s)
    --- FAIL: TestClaudeTerminalErrors/identity (1.37s)
        launcher_test.go:525: failure completed
FAIL
rastrillo-budget/v1 ran 1.372s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.377s
FAIL
```

#### Mutation 41: exit-status

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
captureErr != nil || waitErr != nil || exit.Code != 0 || exit.Signal != 0
```

with:

```go
captureErr != nil || waitErr != nil || exit.Signal != 0
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeTerminalErrors/exit$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeTerminalErrors (2.08s)
    --- FAIL: TestClaudeTerminalErrors/exit (2.08s)
        launcher_test.go:533: uncertain/failed session resumed
FAIL
rastrillo-budget/v1 ran 2.078s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	2.080s
FAIL
```

#### Mutation 42: latest-resume

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
previous.clean = false
```

with:

```go
previous.clean = true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeResumeLatestAttempt$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeResumeLatestAttempt (2.81s)
    launcher_test.go:643: old completion overrode newer uncertainty
FAIL
rastrillo-budget/v1 ran 2.806s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	2.811s
FAIL
```

#### Mutation 43: resume-admission-replay

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
s.used[key] = value
```

with:

```go
s.used[key] = !value
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeResumeLatestAttempt$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeResumeLatestAttempt (1.59s)
    launcher_test.go:637: resumed admission replayed
FAIL
rastrillo-budget/v1 ran 1.587s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.600s
FAIL
```

#### Mutation 44: resume-binding

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
prior.launch.Binding != launch.Binding || prior.launch.Selection != launch.Selection
```

with:

```go
false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeResumeUsesSameBinding/connection$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeResumeUsesSameBinding (1.50s)
    --- FAIL: TestClaudeResumeUsesSameBinding/connection (0.63s)
        launcher_test.go:440: invalid resume accepted
    launcher_test.go:446: provider_account_busy
FAIL
rastrillo-budget/v1 ran 1.498s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.506s
FAIL
```

#### Mutation 45: resume-policy

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
prior.base.Hash != launch.Policy.Hash ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeResumeUsesSameBinding/policy$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeResumeUsesSameBinding (1.70s)
    --- FAIL: TestClaudeResumeUsesSameBinding/policy (0.82s)
        launcher_test.go:440: invalid resume accepted
    launcher_test.go:446: provider_account_busy
FAIL
rastrillo-budget/v1 ran 1.7s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.709s
FAIL
```

#### Mutation 46: source-native-metadata

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
metadata, raw, state, native
```

with:

```go
metadata, raw, state, nil
```

The mutation also adds `_ = native` before the digest so it compiles.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNativeIdentityMetadata/source$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNativeIdentityMetadata (1.13s)
    --- FAIL: TestClaudeNativeIdentityMetadata/source (1.13s)
        launcher_test.go:693: changed native identity metadata admitted
FAIL
rastrillo-budget/v1 ran 1.126s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.129s
FAIL
```

#### Mutation 47: runtime-native-metadata

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
e != nil || !bytes.Equal(native, l.claudeIdentity)
```

with:

```go
e != nil
```

The mutation also adds `_ = native` after reading metadata so it compiles.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNativeIdentityMetadata/runtime$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNativeIdentityMetadata (0.89s)
    --- FAIL: TestClaudeNativeIdentityMetadata/runtime (0.89s)
        launcher_test.go:693: changed native identity metadata admitted
FAIL
rastrillo-budget/v1 ran 886ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.892s
FAIL
```

#### Mutation 48: metadata-import

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
if l.source.Provider == "claude" {
		native, e := claudeAccountMetadata(l.dir)
```

with:

```go
if false && l.source.Provider == "claude" {
		native, e := claudeAccountMetadata(l.dir)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNativeIdentityMetadata/staged$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNativeIdentityMetadata (0.15s)
    --- FAIL: TestClaudeNativeIdentityMetadata/staged (0.15s)
        launcher_test.go:679: open /home/paulca/t/e2b/TestClaudeNativeIdentityMetadatastaged2449404140/001/homes/account-312458637/.claude.json: no such file or directory
FAIL
rastrillo-budget/v1 ran 152ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.155s
FAIL
```

#### Mutation 49: constructor

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
missing(host) || missing(captures)
```

with:

```go
host == nil || captures == nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeConstructor$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeConstructor (0.00s)
    launcher_test.go:710: missing dependency accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.002s
FAIL
```

#### Mutation 50: exclusive-session

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
prior.launch.Binding == launch.Binding && !prior.closed
```

with:

```go
false && prior.launch.Binding == launch.Binding && !prior.closed
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeConcurrentSession$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeConcurrentSession (1.37s)
    launcher_test.go:720: two processes admitted on one account lease
FAIL
rastrillo-budget/v1 ran 1.373s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.379s
FAIL
```

#### Mutation 51: managed-runtime

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if strings.HasPrefix(f.Mount.Target, "/etc/") {
```

with:

```go
if false && strings.HasPrefix(f.Mount.Target, "/etc/") {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePolicyRefusals/managed$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudePolicyRefusals (0.73s)
    --- FAIL: TestClaudePolicyRefusals/managed (0.73s)
        launcher_test.go:611: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 734ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.736s
FAIL
```

#### Mutation 52: managed-instruction

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
strings.HasPrefix(file.Target, "/etc/") && file.Target != "/etc/claude-code/CLAUDE.md"
```

with:

```go
false && strings.HasPrefix(file.Target, "/etc/") && file.Target != "/etc/claude-code/CLAUDE.md"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePolicyRefusals/managed_instruction$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudePolicyRefusals (0.73s)
    --- FAIL: TestClaudePolicyRefusals/managed_instruction (0.72s)
        launcher_test.go:611: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 726ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.728s
FAIL
```

#### Mutation 53: capture-readiness

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if capture == nil || capture.Input == nil || capture.Frames == nil || capture.Done == nil {
```

with:

```go
if false {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeReadiness/malformed_capture$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeReadiness (0.66s)
    --- FAIL: TestClaudeReadiness/malformed_capture (0.66s)
        launcher_test.go:498: unready launch accepted
FAIL
rastrillo-budget/v1 ran 662ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.667s
FAIL
```

#### Mutation 54: capture-order

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if frame.Sequence <= sequence {
```

with:

```go
if false && frame.Sequence <= sequence {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeCaptureSequence$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeCaptureSequence (0.72s)
    launcher_test.go:770: unsequenced frame accepted
FAIL
rastrillo-budget/v1 ran 718ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.720s
FAIL
```

#### Mutation 55: init-tools

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
!reflect.DeepEqual(want, v.Tools) ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/tools$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.67s)
    --- FAIL: TestClaudeInitPolicy/tools (0.67s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 670ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.672s
FAIL
```

#### Mutation 56: init-mcp

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
len(v.Servers) != 1 ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/mcp$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.68s)
    --- FAIL: TestClaudeInitPolicy/mcp (0.68s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 680ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.683s
FAIL
```

#### Mutation 57: init-plugins

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
for _, p := range v.Plugins {
```

with:

```go
for _, p := range v.Plugins[:0] {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/plugins$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.82s)
    --- FAIL: TestClaudeInitPolicy/plugins (0.82s)
        launcher_test.go:764: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 817ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.821s
FAIL
```

#### Mutation 58: init-skills

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
|| len(v.Skills) != 0
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/skills$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.70s)
    --- FAIL: TestClaudeInitPolicy/skills (0.70s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 703ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.706s
FAIL
```

#### Mutation 59: init-mode

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
|| v.Permission != "manual"
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/permission$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.71s)
    --- FAIL: TestClaudeInitPolicy/permission (0.71s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 711ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.713s
FAIL
```

#### Mutation 60: init-version

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
|| v.Version != Version
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/version$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.68s)
    --- FAIL: TestClaudeInitPolicy/version (0.68s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 681ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.683s
FAIL
```

#### Mutation 61: init-model

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
|| v.Model != s.session.Model
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeInitPolicy/model$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeInitPolicy (0.76s)
    --- FAIL: TestClaudeInitPolicy/model (0.76s)
        launcher_test.go:757: unexpected init policy accepted
FAIL
rastrillo-budget/v1 ran 755ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.757s
FAIL
```

#### Mutation 62: shell-read-denies

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"denyRead": denied
```

with:

```go
"denyRead": []string{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.19s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.19s)
        launcher_test.go:341: missing shell denyRead denial /home/runner
FAIL
rastrillo-budget/v1 ran 188ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.190s
FAIL
```

#### Mutation 63: shell-write-denies

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
"denyWrite": denied
```

with:

```go
"denyWrite": []string{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeLaunchPolicy/Engineering$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeLaunchPolicy (0.19s)
    --- FAIL: TestClaudeLaunchPolicy/Engineering (0.19s)
        launcher_test.go:341: missing shell denyWrite denial /home/runner
FAIL
rastrillo-budget/v1 ran 191ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.193s
FAIL
```

#### Mutation 64: namespace-traffic-env

File: `internal/runner/containment/mounts.go`. Replace the first matching fragment:

```go
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": true
```

with:

```go
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceClaudeEnvironment/CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestNamespaceClaudeEnvironment (0.01s)
    --- FAIL: TestNamespaceClaudeEnvironment/CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC (0.00s)
        mounts_test.go:94: required Claude environment refused: namespace_mount_rejected
FAIL
rastrillo-budget/v1 ran 7ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.019s
FAIL
```

#### Mutation 65: namespace-updater-env

File: `internal/runner/containment/mounts.go`. Replace the first matching fragment:

```go
"DISABLE_AUTOUPDATER": true
```

with:

```go
"DISABLE_AUTOUPDATER": false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceClaudeEnvironment/DISABLE_AUTOUPDATER$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestNamespaceClaudeEnvironment (0.01s)
    --- FAIL: TestNamespaceClaudeEnvironment/DISABLE_AUTOUPDATER (0.00s)
        mounts_test.go:94: required Claude environment refused: namespace_mount_rejected
FAIL
rastrillo-budget/v1 ran 10ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.019s
FAIL
```

#### Mutation 66: namespace-unsupported-env

File: `internal/runner/containment/mounts.go`. Replace the first matching fragment:

```go
"DISABLE_AUTOUPDATER": true
```

with:

```go
"DISABLE_AUTOUPDATER": true, "CLAUDE_CODE_DISABLE_AUTO_UPDATE":true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceClaudeEnvironment$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestNamespaceClaudeEnvironment (0.01s)
    mounts_test.go:111: unsupported updater environment accepted
FAIL
rastrillo-budget/v1 ran 12ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.020s
FAIL
```

#### Mutation 67: cancel-blocked-write

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
context.AfterFunc(ctx, func() { v.cancel(); v.capture.Input.Close() })
```

with:

```go
context.AfterFunc(ctx, func() {})
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeWriteCancellation$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeWriteCancellation (0.96s)
    launcher_test.go:814: cancelled admission left stdin blocked
FAIL
rastrillo-budget/v1 ran 956ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.959s
FAIL
```

#### Mutation 68: metadata-fields-only

File: `internal/runner/provider/accounts.go`. Replace the first matching fragment:

```go
return json.Marshal(map[string]any{"oauthAccount": selected, "hasCompletedOnboarding": true})
```

with:

```go
return raw,nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeNativeIdentityMetadata/staged$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeNativeIdentityMetadata (0.20s)
    --- FAIL: TestClaudeNativeIdentityMetadata/staged (0.19s)
        launcher_test.go:712: unsafe metadata import: {"hooks":{"evil":true},"oauthAccount":{"accountUuid":"fake-account","emailAddress":"account@example.invalid"},"projects":{"untrusted":"trust"}}
FAIL
rastrillo-budget/v1 ran 195ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.200s
FAIL
```

#### Mutation 69: settings-validation

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
if !sameJSON(pair[0], pair[1]) {
```

with:

```go
if false && !sameJSON(pair[0], pair[1]) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePolicyRefusals/settings$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudePolicyRefusals (0.79s)
    --- FAIL: TestClaudePolicyRefusals/settings (0.79s)
        launcher_test.go:618: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 794ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.796s
FAIL
```

#### Mutation 70: argv-validation

File: `internal/runner/provider/claude/launcher.go`. Replace the first matching fragment:

```go
!reflect.DeepEqual(in.Argv, expected.Argv) ||
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePolicyRefusals/argv$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudePolicyRefusals (0.79s)
    --- FAIL: TestClaudePolicyRefusals/argv (0.79s)
        launcher_test.go:618: unsafe policy accepted
FAIL
rastrillo-budget/v1 ran 787ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.790s
FAIL
```

### User-facing strings and concerns

No app UI strings or copy.go entries were added, so there are no new pending copy.go entries. The new internal error codes are `claude_protocol_rejected`, `claude_not_ready`, `claude_turn_uncertain` and `claude_process_failed`. If later shown in the UI, they need individually pending copy.go entries and the release copy pass. The fixture prompts are the three explicitly authorized recording prompts. Test assertions, source comments, the budget rationale and this controller report are the other new prose.

The remaining concerns are the planned integration boundaries: Task 7 must supply durable capture and any journal-based restart recovery; Task 8 must supply the attested helper and permission relay; Task 11b must certify the deployed tuple and real refresh. Unknown recovered sessions and unsupported managed settings are refused today. The bounded recording is not a production release certificate.

All mutation sources were restored. Test processes exited or were explicitly killed/reaped by owned cleanup. No recording process, fake CLI, namespace, server or watcher remains. Raw capture and owned scratch were removed after preserving these results. The invocation tally remains exactly two lines. No other worktree, default branch, provider home configuration or unrelated file was changed.

### Final refresh/config interaction check

Final diff review found that a simultaneous pending refresh and changed generated config refused input but left the idle attempt running. A new test was written first, then policy/lease errors in that pre-dispatch refresh path were routed through cancellation. BeginTurn errors use the same stop path. This does not manufacture containment proof.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudeRefreshWithConfigTamper$' -count=1
```

RED:

```text
--- FAIL: TestClaudeRefreshWithConfigTamper (0.68s)
    launcher_test.go:834: tampered refresh left the attempt running
FAIL
rastrillo-budget/v1 ran 679ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.687s
FAIL
```

#### Mutation 71: refresh-tamper-stop

File: `internal/runner/provider/claude/launcher.go`. Replace:

```go
return fail(sourceErr)
```

with:

```go
return sourceErr
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudeRefreshWithConfigTamper$ -count=1
```

Exit 1, compiled named failure:

```text
--- FAIL: TestClaudeRefreshWithConfigTamper (0.68s)
    launcher_test.go:834: tampered refresh left the attempt running
FAIL
rastrillo-budget/v1 ran 683ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.685s
FAIL
```

Final GREEN after restoring all 71 mutations and the final fix:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaude' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	32.229s
```

The earlier related account/containment regression results remain applicable; this final change is confined to the adapter's error cleanup. Formatting and git diff checks passed again.

## Task 6: Codex app-server sessions with verified deny profiles

Status: DONE_WITH_CONCERNS.
Commit subject: `feat: drive Codex app-server with verified deny profiles`.
Branch: `plan-2b`. All work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

`codex.New(provider.ProcessHost, provider.CaptureFactory)` implements `provider.Launcher`. `codex.PolicyInputs(binding, inputs, model)` renders the canonical policy before `provider.BuildPolicy` hashes it. Both the executable and its adjacent code-mode host must have the pinned 0.165.0 digests and read-only mounts at `/opt/codex` and `/opt/codex-code-mode-host`. A missing or mismatched helper is rejected before launch. Constructors reject nil and typed-nil dependencies.

Every process starts through ProcessHost with a concrete attempt manifest and durable CaptureFactory. The main process receives the attempt lifetime context. Preflight uses a separate, bounded no-prompt app-server connection. Initialization enables `experimentalApi:true`, sends `initialized`, reads the account and verifies full layered config. Open then repeats those observations on the main process before thread start or resume. Open sends no turn prompt.

The command starts with `/opt/codex app-server --strict-config --listen stdio://`, followed by deterministic `-c` values. BuildPolicy supplies the constructed `CODEX_HOME=/home/runner`; no interactive config is imported. The `equipo` permission profile grants workspace and scratch writes, disables tool network access, and denies the selected credential home, runtime home, `/home/runner`, supplied protected paths and aliases, `/egress`, `/tool`, `/tool/equipo.sock`, `/config`, `/proc` and `/dev/fd`. Apps, multi-agent delegation and remote control are disabled. MCP starts empty, so no inherited MCP server is admitted. No legacy sandbox input or exec-only ignore-user-config flag is allowed.

Thread start and resume explicitly send `approvalPolicy:"on-request"`, `approvalsReviewer:"user"`, `permissions:"equipo"`, the selected model/provider, workspace roots and the constructed config. Readback must report the selected model, workspace, approval routing and `activePermissionProfile.id:"equipo"` without inheritance. Full filesystem/network profile objects are checked in config/read; the lossy legacy sandbox summary is not used as denial evidence. Unknown config origins, nonempty user/system layers, unexpected effective settings or changed configured values fail closed. The canonical thread parameters and empty turn policy are included in the manifest and policy hash. Turn start adds only the thread ID and admitted text input. Both the adapter and its restricted RPC transport refuse policy overrides before transmission.

Before every turn, the adapter validates the lease and policy sources, handles refresh-pending through CommitRefresh followed by fresh Preflight, attests the concrete launch, checks account/config readback, and explicitly resumes the idle thread with the pinned policy. The lease is checked again immediately before every thread/resume and turn/start. BeginTurn/EndTurn bracket the active interval. Source-account changes during a turn, account-change notifications, mismatched IDs and policy drift stop the attempt. A closed session cannot reacquire the lease if Close races with the final BeginTurn boundary. Used turn and admission IDs cannot be reused, including after a successful resume.

One narrow Task 4 change permits a Codex CLI observation to omit Equipo's HomeID, as Claude already can. AccountID and the pinned provider version still must match the binding. The adapter observes the ChatGPT email from account/read and never obtains an observed identity from staged metadata. An absent or non-identifying account is refused.

`RPC.Call(context.Context, string, json.RawMessage)` correlates only client replies. Server requests are classified by their method before their IDs are examined, so even a server request using the exact outstanding client ID cannot consume that call. Only workflow methods are admitted; there is no generic command RPC or model-tool pass-through. Notifications and server requests retain their complete raw payloads. `Event.RequestID` is the JSON-encoded server ID, preserving numeric `1` versus string `"1"`; Task 8 must keep that distinction when answering. Respond currently refuses all answers. No reviewer agent or automatic approval is launched.

`Decode` preserves command output, item IDs, provider thread/turn IDs and cumulative usage frames. The session reader maps event TurnID to the admitted local turn while preserving provider IDs in Payload. Usage remains independent of completion; missing counters stay absent. Duplicate keys, oversized or malformed frames, fractional/out-of-range request IDs, missing turn identity, non-increasing capture sequences, unsolicited replies, EOF and partial stdin writes fail closed. Capture owns stdout/stderr; the adapter never reads process stdout directly.

Interrupt sends a bounded graceful turn/interrupt when a provider turn ID is known, then cancels the attempt context so Task 2 ends the namespace. Close drains capture and checks process exit. Resume is allowed only for a clean, completed session known to this launcher, with the same binding, selection and policy. Interrupted, failed, unknown or nonzero-exit attempts cannot authorize resume.

### Files

- `internal/runner/provider/codex/launcher.go`: policy rendering, pinned binaries, observations, account lease and session lifecycle.
- `internal/runner/provider/codex/rpc.go`: captured transport, method limits, client correlation, write/EOF handling.
- `internal/runner/provider/codex/events.go`: bounded decoding and raw event preservation.
- `internal/runner/provider/codex/{launcher_test,rpc_test,events_test,budget_test}.go`: fake app-server, lease/capture fixtures, policy and lifecycle tests, standard package budget TestMain.
- `internal/runner/provider/codex/testdata/`: twelve generated protocol schema extracts, sanitized partial probe frames and provenance.
- `internal/runner/provider/accounts.go`: allow a Codex observation without an invented HomeID.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended evidence section.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-6-report.md`: full local report, ignored by the repository as in earlier tasks.

### Evidence and fixture provenance

The only installed Codex invocation was schema generation, with no app-server session or model prompt:

```sh
codex app-server generate-json-schema --experimental --out /home/paulca/t/e2b/task6/schema
```

Exit 0. The generated schema was stripped of descriptive prose and copied for the protocol messages used here. Protocol shapes come from that pinned CLI, not newer documentation. The probe fixture reconstructs partial JSON envelopes from the recorded commandExecution output inside code mode and the recorded cumulative usage in `docs/superpowers/specs/2026-11-03-bwrap-nesting.md`. It is not a new live transcript. Original IDs were replaced. Unrecorded counters remain absent; they were not converted to zero. The fixture retains the denied sentinel output even though the compound command's final exit code was zero.

```sh
sha256sum /home/paulca/.codex/packages/standalone/releases/0.165.0-x86_64-unknown-linux-musl/bin/codex /home/paulca/.codex/packages/standalone/releases/0.165.0-x86_64-unknown-linux-musl/bin/codex-code-mode-host
```

```text
c06a67fd8ac76508dc78bd99ce20c9f317b8d568beda59485f3f4134df9962d5  codex
522935d4392ec9674fab60b239b5495992c6a93e4deb65113a216b6f5451ccd4  codex-code-mode-host
```

All session tests use an in-memory fake app-server with real pipes, Capture frames and Task 4 account leases containing fake opaque login data. No provider was signed in, enrolled or prompted. The fake server writes only its constructed runtime home. TestCodexAppServerPolicy compares the fake interactive home's config bytes before and after start, turn, close and resume. Every fake process and pipe has a cleanup path. No listening server was started.

### Interpretations

1. The task forbids live provider sessions. Version/schema generation and hashing the installed binaries provide fixture provenance only; this is offline implementation evidence, not a release certificate.
2. The current account lease required observed HomeID for Codex, but account/read has no such field. Matching AccountID and provider version without an invented HomeID follows the binding's security intent and the existing Claude adapter pattern. API-key/other account variants with no comparable account identity are refused.
3. Canonical ThreadPolicy holds the fields common to thread/start and thread/resume. The resumed thread ID belongs to the concrete Launch and RPC frame. TurnPolicy is `{}`: it inherits the verified thread authority. There is no arbitrary per-turn options surface in provider.Turn.
4. The idle thread is explicitly resumed with the constructed config before each admitted turn. This makes the saved thread's approval routing/profile observable again without creating a hidden turn. Each resume has its own lease check.
5. Task 4 allows same-identity runtime credential rotation to become refresh-pending, including a rotation noticed at turn end. It is not treated as a source-account identity change. The active-change test writes the selected source login, which must latch containment. Runtime refresh is committed and then re-preflighted before another prompt.
6. Readback accepts only the constructed session-flags config plus optional empty private-user/system layers at the exact known paths. Unsupported managed/project/enterprise layers and extra effective settings are unavailable, not silently accepted. Live compatibility remains a release gate.
7. MCP is empty in this task and Respond refuses direct answers. Task 8 must add the reviewed Equipo tool configuration and validated answer relay. Cross-process durable recovery and usage deltas remain Task 7 work; this adapter does not fabricate durable resume authority.
8. The requested no-agent/no-provider/no-copy-review rules override the writing pipeline's provider drafting and browser review steps. The report uses plain-writing and humane-docs guidance. No copy-review skill/server, subagent or handoff file was used.

### RED and intermediate fixes

Tests were written before the adapter. All Go commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b` with CGO_ENABLED=0 and the default Go caches. Scratch stayed under the on-disk TMPDIR.

#### Initial adapter absence

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodex' -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner/provider/codex [amadan.net/oficina/equipo/internal/runner/provider/codex.test]
internal/runner/provider/codex/launcher_test.go:38:60: undefined: MaxFrameBytes
internal/runner/provider/codex/launcher_test.go:47:14: undefined: Version
internal/runner/provider/codex/launcher_test.go:78:102: undefined: MaxFrameBytes
internal/runner/provider/codex/launcher_test.go:83:24: undefined: Launcher
internal/runner/provider/codex/launcher_test.go:86:97: undefined: Version
internal/runner/provider/codex/events_test.go:12:79: undefined: Decode
internal/runner/provider/codex/events_test.go:17:78: undefined: Decode
internal/runner/provider/codex/events_test.go:21:218: undefined: Decode
internal/runner/provider/codex/events_test.go:22:10: undefined: Decode
internal/runner/provider/codex/events_test.go:22:42: undefined: MaxFrameBytes
internal/runner/provider/codex/launcher_test.go:86:97: too many errors
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex [build failed]
FAIL
```

#### Thread config must be pinned

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodex(ThreadConfigPinned|Lifecycle|GeneratedSchema)$' -count=1
```

Exit 1:

```text
--- FAIL: TestCodexThreadConfigPinned (0.42s)
    launcher_test.go:551: saved thread can retain a different profile definition thread/start
FAIL
rastrillo-budget/v1 ran 2.311s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	2.313s
FAIL
```

#### Request IDs follow the generated integer schema

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexFrameIdentity$' -count=1
```

Exit 1:

```text
--- FAIL: TestCodexFrameIdentity (0.00s)
    events_test.go:76: accepted invalid frame identity {"id":1.5,"result":{}}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Closed sessions cannot begin another turn

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexClosedTurnCannotRestart$' -count=1
```

Exit 1:

```text
--- FAIL: TestCodexClosedTurnCannotRestart (0.40s)
    launcher_test.go:844: close raced with begin and reopened the lease
FAIL
rastrillo-budget/v1 ran 403ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.405s
FAIL
```

#### Typed-nil dependencies are refused

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexTypedNilConstructor$' -count=1
```

Exit 1:

```text
--- FAIL: TestCodexTypedNilConstructor (0.00s)
    launcher_test.go:858: typed nil host accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

The first implementation run also exposed two test assumptions: the pre-turn policy recheck makes additional thread/resume calls, and runtime refresh-pending differs from an active source-login change. Those tests were corrected to the explicit interpretations above. The closed-turn test first failed to compile while its helper was absent, then failed semantically after extracting the existing BeginTurn path, before the lock/closed-state guard was added.

### GREEN

After restoring every mutation, the final targeted run passed:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodex' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	3.142s
```

Focused regression checks for the shared identity change:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/provider/claude -run '^(TestAccountHomeBinding|TestAccountRefreshPending|TestAccountContainmentLatched|TestAccountRefreshPreflightPreservesLogin|TestAccountRefreshFailure|TestClaudeObservedIdentity|TestClaudeNativeIdentityMetadata)$' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	1.791s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	2.331s
```

Formatting reported no files, `git diff --check` passed, and fixture scans found no host home paths, original probe IDs or credential-shaped tokens. The independent fake-home table cases run concurrently; the final package run stays within the default budget. No budget exception, whole-suite run, race build, make ci or live gate was used.

### Mutation evidence

55 mutations produced named, compiled test failures. Each mutation ran alone, then its source was restored in a finally block before the next command. The commands below are the exact targeted checks. The temporary mutation driver and logs were stored under `/home/paulca/t/e2b/task6` and are removed after preserving this evidence.

Two exploratory mutation attempts were discarded and corrected: the first unknown-origin edit generated a redundant boolean expression rejected by go vet; the original duplicate-key test also lacked params, so it still failed parsing even without the duplicate-key guard. The origin mutation was made compilable, and the duplicate-key fixture was made otherwise valid. Both corrected checks below produced actual assertion failures. Neither discarded attempt counts toward the 55.

#### Mutation 1: accept-active-profile-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
v.ActivePermissionProfile.ID != "equipo"
```

with:

```go
false && v.ActivePermissionProfile.ID != "equipo"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-active-profile$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.39s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-active-profile (0.39s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 388ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.389s
FAIL
```

#### Mutation 2: accept-approval-policy-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
v.ApprovalPolicy != "on-request"
```

with:

```go
false && v.ApprovalPolicy != "on-request"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-approval$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.44s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-approval (0.44s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 436ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.443s
FAIL
```

#### Mutation 3: accept-approval-routing-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
v.ApprovalsReviewer != "user"
```

with:

```go
false && v.ApprovalsReviewer != "user"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-reviewer$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.38s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-reviewer (0.38s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 383ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.385s
FAIL
```

#### Mutation 4: accept-config-profile-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if !sameJSON(v.Config[k], w) {
```

with:

```go
if false && !sameJSON(v.Config[k], w) {
```

The same guard has a redundant readback check; also replace all occurrences of:

```go
seenFlags || !sameJSON(layer.Config, p.Settings)
```

with:

```go
seenFlags || false && !sameJSON(layer.Config, p.Settings)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-profile$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.44s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-profile (0.44s)
        launcher_test.go:485: changed policy accepted
FAIL
rastrillo-budget/v1 ran 441ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.445s
FAIL
```

#### Mutation 5: accept-duplicate-keys

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
|| !uniqueJSON(raw)
```

with:

```go
|| false && !uniqueJSON(raw)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexMalformedFrames$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexMalformedFrames (0.00s)
    events_test.go:65: accepted {"method":"x","method":"y","params":{}}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.001s
FAIL
```

#### Mutation 6: accept-oversized-frame

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
len(raw) > MaxFrameBytes
```

with:

```go
false && len(raw) > MaxFrameBytes
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexMalformedFrames$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexMalformedFrames (0.01s)
    events_test.go:69: oversized accepted
FAIL
rastrillo-budget/v1 ran 15ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.016s
FAIL
```

#### Mutation 7: accept-unexpected-config

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if _, ok := want[k]; !ok && !bytes.Equal(value, []byte("null")) {
```

with:

```go
if _, ok := want[k]; false && !ok && !bytes.Equal(value, []byte("null")) {
```

The same guard has a redundant readback check; also replace all occurrences of:

```go
!ok || o.Version == ""
```

with:

```go
false && !ok || o.Version == ""
```

The same guard has a redundant readback check; also replace all occurrences of:

```go
seenFlags || !sameJSON(layer.Config, p.Settings)
```

with:

```go
seenFlags || false && !sameJSON(layer.Config, p.Settings)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-config-extra$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.43s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-config-extra (0.43s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 434ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.436s
FAIL
```

#### Mutation 8: accept-unknown-config-origin

File: `internal/runner/provider/codex/launcher.go`. Replace every occurrence:

```go
!sameJSON(o.Name, []byte(`{"type":"sessionFlags"}`))
```

with:

```go
false && !sameJSON(o.Name, []byte(`{"type":"sessionFlags"}`))
```

The same guard has a redundant readback check; also replace all occurrences of:

```go
case sameJSON(layer.Name, []byte(`{"type":"sessionFlags"}`)):
```

with:

```go
case true:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-origin$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.46s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-origin (0.46s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 465ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.471s
FAIL
```

#### Mutation 9: accept-version-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
!strings.HasPrefix(v.UserAgent, "codex_cli_rs/"+Version+" ")
```

with:

```go
false && !strings.HasPrefix(v.UserAgent, "codex_cli_rs/"+Version+" ")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/startup-version$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.44s)
    --- FAIL: TestCodexUnexpectedPolicyChange/startup-version (0.44s)
        launcher_test.go:464: bad readback accepted
FAIL
rastrillo-budget/v1 ran 443ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.445s
FAIL
```

#### Mutation 10: allow-account-event

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if ev.Kind == "account/updated" || strings.HasPrefix(ev.Kind, "config/") {
```

with:

```go
if false && (ev.Kind == "account/updated" || strings.HasPrefix(ev.Kind, "config/")) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-account-event$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.45s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-account-event (0.45s)
        launcher_test.go:482: active change completed
FAIL
rastrillo-budget/v1 ran 451ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.456s
FAIL
```

#### Mutation 11: allow-app-server-argv-override

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if !reflect.DeepEqual(in.Argv, want.Argv) ||
```

with:

```go
if false && !reflect.DeepEqual(in.Argv, want.Argv) ||
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexNoLegacyPolicyOverride/(strict|ignore)$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexNoLegacyPolicyOverride (1.05s)
    --- FAIL: TestCodexNoLegacyPolicyOverride/strict (0.53s)
        launcher_test.go:449: unsafe policy accepted strict
    --- FAIL: TestCodexNoLegacyPolicyOverride/ignore (0.52s)
        launcher_test.go:449: unsafe policy accepted ignore
FAIL
rastrillo-budget/v1 ran 1.053s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.077s
FAIL
```

#### Mutation 12: allow-closed-turn

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if s.closed || s.err != nil || s.ctx.Err() != nil {
```

with:

```go
if false && (s.closed || s.err != nil || s.ctx.Err() != nil) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexClosedTurnCannotRestart$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexClosedTurnCannotRestart (0.44s)
    launcher_test.go:844: close raced with begin and reopened the lease
FAIL
rastrillo-budget/v1 ran 441ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.449s
FAIL
```

#### Mutation 13: allow-duplicate-admission

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
&& !s.used[t.ID] && !s.used[t.AdmissionID]
```

with:

```go
&& true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefreshAndAdmission$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRefreshAndAdmission (0.78s)
    launcher_test.go:520: admission replayed
FAIL
rastrillo-budget/v1 ran 776ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.779s
FAIL
```

#### Mutation 14: allow-fractional-request-id

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
var n int64
```

with:

```go
var n float64
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexFrameIdentity$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexFrameIdentity (0.00s)
    events_test.go:76: accepted invalid frame identity {"id":1.5,"result":{}}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Mutation 15: allow-manifest-version-change

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
in.ProviderVersion != Version
```

with:

```go
false && in.ProviderVersion != Version
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexNoLegacyPolicyOverride/version$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexNoLegacyPolicyOverride (0.51s)
    --- FAIL: TestCodexNoLegacyPolicyOverride/version (0.51s)
        launcher_test.go:454: unsafe policy accepted version
FAIL
rastrillo-budget/v1 ran 509ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.511s
FAIL
```

#### Mutation 16: allow-missing-constructor-dependencies

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if missing(host) || missing(captures) {
```

with:

```go
if false && (missing(host) || missing(captures)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexConstructor$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexConstructor (0.00s)
    launcher_test.go:574: nil host
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Mutation 17: allow-session-mismatch

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if ev.SessionID != "" && s.session.ID != "" && ev.SessionID != s.session.ID {
```

with:

```go
if false && ev.SessionID != "" && s.session.ID != "" && ev.SessionID != s.session.ID {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-session-event$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.44s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-session-event (0.44s)
        launcher_test.go:482: active change completed
FAIL
rastrillo-budget/v1 ran 445ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.453s
FAIL
```

#### Mutation 18: allow-turn-mismatch

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if ev.TurnID != s.providerTurn {
```

with:

```go
if false && ev.TurnID != s.providerTurn {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-turn-event$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.46s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-turn-event (0.46s)
        launcher_test.go:482: active change completed
FAIL
rastrillo-budget/v1 ran 460ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.465s
FAIL
```

#### Mutation 19: allow-turn-overrides

File: `internal/runner/provider/codex/rpc.go`. Replace the first occurrence:

```go
if !validCall(method, params) {
```

with:

```go
if false && !validCall(method, params) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRPCRefusesOverrides$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRPCRefusesOverrides (0.25s)
    rpc_test.go:90: override reached stdin
FAIL
rastrillo-budget/v1 ran 251ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.252s
FAIL
```

#### Mutation 20: allow-typed-nil-dependencies

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
return r.IsNil()
```

with:

```go
return false
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexTypedNilConstructor$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexTypedNilConstructor (0.00s)
    launcher_test.go:858: typed nil host accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.001s
FAIL
```

#### Mutation 21: allow-unattached-turn

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
&& s.attached &&
```

with:

```go
&& true &&
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexLifecycle/attach-and-identity$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexLifecycle (0.44s)
    --- FAIL: TestCodexLifecycle/attach-and-identity (0.44s)
        launcher_test.go:607: turn without event capture
FAIL
rastrillo-budget/v1 ran 443ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.449s
FAIL
```

#### Mutation 22: automatic-reviewer

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"approvals_reviewer": "user"
```

with:

```go
"approvals_reviewer": "guardian_subagent"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:708: approvals_reviewer guardian_subagent
FAIL
rastrillo-budget/v1 ran 140ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.142s
FAIL
```

#### Mutation 23: disable-tool-network-guard

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"enabled": false
```

with:

```go
"enabled": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.15s)
    launcher_test.go:726: workspace/network profile changed
FAIL
rastrillo-budget/v1 ran 146ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.147s
FAIL
```

#### Mutation 24: drop-alias-denies

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
append([]string{}, in.DeniedPaths...)
```

with:

```go
[]string{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:727: missing deny /alias/login
FAIL
rastrillo-budget/v1 ran 142ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.144s
FAIL
```

#### Mutation 25: drop-command-output

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
p.Item.Type == "commandExecution" ||
```

with:

```go
false ||
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexToolVisibility$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexToolVisibility (0.00s)
    events_test.go:28: missing command execution output inside code-mode invocation
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.005s
FAIL
```

#### Mutation 26: drop-credential-home-deny

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
b.CredentialHome, b.Home,
```

with:

```go
b.Home,
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.13s)
    launcher_test.go:727: missing deny /home/paulca/t/e2b/TestCodexPolicyShape1811785820/001/dedicated
FAIL
rastrillo-budget/v1 ran 134ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.136s
FAIL
```

#### Mutation 27: drop-egress-deny

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"/egress", "/tool",
```

with:

```go
"/tool",
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:722: missing deny /egress
FAIL
rastrillo-budget/v1 ran 141ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.143s
FAIL
```

#### Mutation 28: drop-observed-identity-check

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
id.AccountID != s.launch.Binding.Expected.AccountID
```

with:

```go
false && id.AccountID != s.launch.Binding.Expected.AccountID
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-identity$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.45s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-identity (0.45s)
        launcher_test.go:490: changed policy accepted
FAIL
rastrillo-budget/v1 ran 450ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.453s
FAIL
```

#### Mutation 29: drop-proc-alias-deny

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"/proc", "/dev/fd"
```

with:

```go
"/dev/fd"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:727: missing deny /proc
FAIL
rastrillo-budget/v1 ran 145ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.147s
FAIL
```

#### Mutation 30: drop-socket-deny

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"/tool/equipo.sock",
```

with:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:722: missing deny /tool/equipo.sock
FAIL
rastrillo-budget/v1 ran 140ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.141s
FAIL
```

#### Mutation 31: drop-strict-config

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"app-server", "--strict-config", "--listen"
```

with:

```go
"app-server", "--listen"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexAppServerPolicy$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexAppServerPolicy (0.79s)
    launcher_test.go:361: strict app-server launch missing [/opt/codex app-server --listen stdio:// -c approval_policy="on-request" -c approvals_reviewer="user" -c default_permissions="equipo" -c features={"apps"=false,"multi_agent"=false,"remote_control"=false} -c mcp_servers={} -c model="gpt-6-luna" -c model_provider="openai" -c permissions={"equipo"={"filesystem"={"/alias/login"="deny","/config"="deny","/dev/fd"="deny","/egress"="deny","/home/paulca/t/e2b/TestCodexAppServerPolicy3511445039/001/dedicated"="deny","/home/paulca/t/e2b/TestCodexAppServerPolicy3511445039/001/homes/account-1272685024"="deny","/home/runner"="deny","/private/state"="deny","/proc"="deny","/tmp"="write","/tool"="deny","/tool/equipo.sock"="deny","/workspace"="write",":root"="read"},"network"={"enabled"=false}}}]
FAIL
rastrillo-budget/v1 ran 790ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.798s
FAIL
```

#### Mutation 32: drop-usage

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
kind = "usage"
```

with:

```go
kind = "unknown"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUsageBeforeCompletion$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUsageBeforeCompletion (0.00s)
    events_test.go:53: completion lost prior usage
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Mutation 33: echo-home-required

File: `internal/runner/provider/accounts.go`. Replace the first occurrence:

```go
(b.Provider == "claude" || b.Provider == "codex")
```

with:

```go
(b.Provider == "claude")
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexIdentityWithoutHomeEcho$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexIdentityWithoutHomeEcho (0.36s)
    launcher_test.go:550: provider_identity_mismatch
FAIL
rastrillo-budget/v1 ran 362ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.364s
FAIL
```

#### Mutation 34: enable-apps

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"apps": false
```

with:

```go
"apps": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:731: feature enabled apps
FAIL
rastrillo-budget/v1 ran 136ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.138s
FAIL
```

#### Mutation 35: enable-delegation

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"multi_agent": false
```

with:

```go
"multi_agent": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.14s)
    launcher_test.go:731: feature enabled multi_agent
FAIL
rastrillo-budget/v1 ran 142ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.145s
FAIL
```

#### Mutation 36: enable-remote-control

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"remote_control": false
```

with:

```go
"remote_control": true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyShape$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyShape (0.15s)
    launcher_test.go:731: feature enabled remote_control
FAIL
rastrillo-budget/v1 ran 149ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.157s
FAIL
```

#### Mutation 37: ignore-partial-write

File: `internal/runner/provider/codex/rpc.go`. Replace the first occurrence:

```go
if e != nil || n != len(raw) {
```

with:

```go
if e != nil || false && n != len(raw) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRPCPartialWrite$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRPCPartialWrite (1.00s)
    rpc_test.go:130: partial write accepted context deadline exceeded
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.003s
FAIL
```

#### Mutation 38: ignore-process-exit

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
exit.Code != 0 || exit.Signal != 0
```

with:

```go
false && (exit.Code != 0 || exit.Signal != 0)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexProcessExit$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexProcessExit (0.43s)
    launcher_test.go:800: nonzero exit accepted
FAIL
rastrillo-budget/v1 ran 433ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.435s
FAIL
```

#### Mutation 39: ignore-sequence

File: `internal/runner/provider/codex/rpc.go`. Replace the first occurrence:

```go
if frame.Sequence <= seq {
```

with:

```go
if false && frame.Sequence <= seq {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRPCBadSequence$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRPCBadSequence (1.00s)
    rpc_test.go:108: invalid stream did not fail immediately context deadline exceeded
FAIL
rastrillo-budget/v1 ran 1.001s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.002s
FAIL
```

#### Mutation 40: ignore-unknown-reply

File: `internal/runner/provider/codex/rpc.go`. Replace the first occurrence:

```go
if !ok {
				r.fail(errProtocol)
				return
			}
```

with:

```go
if !ok {continue}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRPCBadSequence$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRPCBadSequence (1.00s)
    rpc_test.go:108: invalid stream did not fail immediately context deadline exceeded
FAIL
rastrillo-budget/v1 ran 1s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.004s
FAIL
```

#### Mutation 41: legacy-and-weakened-policy

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if !sameJSON(pair[0], pair[1]) {
```

with:

```go
if false && !sameJSON(pair[0], pair[1]) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexNoLegacyPolicyOverride/(sandbox|sandboxPolicy|deny-egress|approval|reviewer)$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexNoLegacyPolicyOverride (2.48s)
    --- FAIL: TestCodexNoLegacyPolicyOverride/sandbox (0.61s)
        launcher_test.go:449: unsafe policy accepted sandbox
    --- FAIL: TestCodexNoLegacyPolicyOverride/sandboxPolicy (0.46s)
        launcher_test.go:449: unsafe policy accepted sandboxPolicy
    --- FAIL: TestCodexNoLegacyPolicyOverride/deny-egress (0.46s)
        launcher_test.go:449: unsafe policy accepted deny-egress
    --- FAIL: TestCodexNoLegacyPolicyOverride/approval (0.48s)
        launcher_test.go:449: unsafe policy accepted approval
    --- FAIL: TestCodexNoLegacyPolicyOverride/reviewer (0.47s)
        launcher_test.go:449: unsafe policy accepted reviewer
FAIL
rastrillo-budget/v1 ran 2.482s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	2.484s
FAIL
```

#### Mutation 42: missing-code-mode-host

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if !binary || !helper {
```

with:

```go
if !binary || false && !helper {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexNoLegacyPolicyOverride/code-host$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexNoLegacyPolicyOverride (0.53s)
    --- FAIL: TestCodexNoLegacyPolicyOverride/code-host (0.53s)
        launcher_test.go:449: unsafe policy accepted code-host
FAIL
rastrillo-budget/v1 ran 528ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.534s
FAIL
```

#### Mutation 43: missing-thread-config

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
"config": settings
```

with:

```go
"config": map[string]any{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexThreadConfigPinned$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexThreadConfigPinned (0.38s)
    launcher_test.go:591: saved thread can retain a different profile definition thread/start
FAIL
rastrillo-budget/v1 ran 383ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.384s
FAIL
```

#### Mutation 44: mix-server-requests-with-replies

File: `internal/runner/provider/codex/rpc.go`. Replace the first occurrence:

```go
if v.Method != "" {
```

with:

```go
if v.Method != "" && len(v.ID)==0 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRPCInterleaving$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRPCInterleaving (0.00s)
    rpc_test.go:56: codex_protocol_rejected
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Mutation 45: omit-end-turn-check

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
e = s.lease.EndTurn(context.Background())
```

with:

```go
e = nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-source-active$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.00s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-source-active (0.43s)
        launcher_test.go:489: active change completed
FAIL
rastrillo-budget/v1 ran 433ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.435s
FAIL
```

#### Mutation 46: omit-event-identity

File: `internal/runner/provider/codex/events.go`. Replace the first occurrence:

```go
if p.ThreadID == "" || p.TurnID == "" {
```

with:

```go
if false && (p.ThreadID == "" || p.TurnID == "") {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexFrameIdentity$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexFrameIdentity (0.00s)
    events_test.go:76: accepted invalid frame identity {"method":"turn/started","params":{"turn":{"id":"u"}}}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.002s
FAIL
```

#### Mutation 47: omit-fresh-preflight

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if e = lease.Preflight(ctx, probe); e != nil {
```

with:

```go
if e = nil; e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexIdentityWithoutHomeEcho$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexIdentityWithoutHomeEcho (0.27s)
    launcher_test.go:553: invented identity {  }
FAIL
rastrillo-budget/v1 ran 270ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.276s
FAIL
```

#### Mutation 48: omit-manifest-before-turn

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if _, e = provider.AttestLaunch(s.launch, in.Argv); e != nil {
```

with:

```go
_ = in
 if e = nil; e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexLifecycle/per-turn-tamper$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexLifecycle (0.43s)
    --- FAIL: TestCodexLifecycle/per-turn-tamper (0.43s)
        launcher_test.go:668: override reached stdin
FAIL
rastrillo-budget/v1 ran 426ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.437s
FAIL
```

#### Mutation 49: omit-refresh-commit

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if e = lease.CommitRefresh(ctx, probe); e != nil {
```

with:

```go
if e = nil; e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefreshAndAdmission$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexRefreshAndAdmission (0.51s)
    launcher_test.go:509: provider_refresh_pending
FAIL
rastrillo-budget/v1 ran 506ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.515s
FAIL
```

#### Mutation 50: omit-resume-lease-check

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if e := s.lease.ValidatePolicy(ctx); e != nil {
		return "", e
	}
```

with:

```go
if false { return "", provider.ErrPolicy }
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexResumeRechecksLease$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexResumeRechecksLease (0.42s)
    launcher_test.go:748: thread/resume sent after source changed
FAIL
rastrillo-budget/v1 ran 416ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.420s
FAIL
```

#### Mutation 51: omit-rpc-policy-hash

File: `internal/runner/provider/policy.go`. Replace the first occurrence:

```go
func policyTemplate(m effectiveManifest) effectiveManifest {
```

with:

```go
func policyTemplate(m effectiveManifest) effectiveManifest {
 m.ThreadPolicy=nil
 m.TurnPolicy=nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexPolicyHashIncludesRPC$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexPolicyHashIncludesRPC (0.22s)
    launcher_test.go:541: RPC policy omitted from hash
FAIL
rastrillo-budget/v1 ran 218ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.221s
FAIL
```

#### Mutation 52: omit-turn-lease-check

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
if e := s.lease.BeginTurn(ctx); e != nil {
```

with:

```go
if e := error(nil); e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexTurnRechecksLease$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexTurnRechecksLease (0.43s)
    launcher_test.go:762: turn accepted stale lease
FAIL
rastrillo-budget/v1 ran 426ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.428s
FAIL
```

#### Mutation 53: skip-graceful-interrupt

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
_, e = s.rpc.Call(ctx, "turn/interrupt", marshal(map[string]any{"threadId": session.ID, "turnId": id}))
```

with:

```go
e = nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexLifecycle/interrupt$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexLifecycle (0.43s)
    --- FAIL: TestCodexLifecycle/interrupt (0.43s)
        launcher_test.go:633: missing graceful interrupt
FAIL
rastrillo-budget/v1 ran 430ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.432s
FAIL
```

#### Mutation 54: skip-per-turn-account-check

File: `internal/runner/provider/codex/launcher.go`. Replace every occurrence:

```go
if e = s.checkReadback(ctx); e != nil {
```

with:

```go
if e = nil; e != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexUnexpectedPolicyChange/between-identity$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexUnexpectedPolicyChange (0.45s)
    --- FAIL: TestCodexUnexpectedPolicyChange/between-identity (0.45s)
        launcher_test.go:485: changed policy accepted
FAIL
rastrillo-budget/v1 ran 458ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.463s
FAIL
```

#### Mutation 55: wrong-code-mode-digest

File: `internal/runner/provider/codex/launcher.go`. Replace the first occurrence:

```go
helper = f.SHA256 == l.hostDigest
```

with:

```go
helper = true
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexNoLegacyPolicyOverride/digest$ -count=1 -timeout=20s
```

Exit 1, compiled test failure:

```text
--- FAIL: TestCodexNoLegacyPolicyOverride (0.61s)
    --- FAIL: TestCodexNoLegacyPolicyOverride/digest (0.61s)
        launcher_test.go:449: unsafe policy accepted digest
FAIL
rastrillo-budget/v1 ran 607ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.615s
FAIL
```

### User-facing strings and concerns

No UI strings or copy.go entries changed. New internal diagnostic codes are `codex_not_ready`, `codex_turn_uncertain`, `codex_process_failed` and `codex_protocol_rejected`. They are not product copy. Any later UI presentation needs its own individually pending copy.go entry and release copy pass. New prose consists of this report, fixture provenance and test diagnostics; README prose is unchanged.

The remaining concerns are release/integration limits, not permission to weaken policy: real config/read defaults and layer shape, strict-config behavior, full deny-profile coverage including native/image/MCP readers and aliases, and on-request approval behavior still require Task 11b's bounded certification. Unexpected live readback is refused. These offline tests do not certify the installed provider sandbox. Task 7 owns durable accounting/recovery, and Task 8 owns tool configuration and validated answers.

No provider session, sign-in, enrolment, real credential-home creation, provider prompt, copy-review server, helper agent, push, merge, deployment, README edit or .claude/HANDOFF.md was performed. All test server goroutines and pipes were stopped by test cleanup. Owned scratch is removed after the evidence is saved; default Go caches are retained.


## Task 7: Journal provider stdout and recover without replaying work

Status: DONE_WITH_CONCERNS.
Commit subject: `feat: journal provider streams and preserve uncertain turns`.
Branch: `plan-2b`. Work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

The private SQLite journal now migrates from version 1 to version 2 in an ordered transaction. Existing events, acknowledgements, intents and legacy accounting remain available. Reopen retains FULL synchronous commits and DELETE journaling. Unknown newer versions are refused. The upgrade test removes the v2 tables to reconstruct a v1 journal, upgrades it, and checks the existing outbox event and synchronous setting.

`NewCaptureFactory(*Journal)` implements `provider.CaptureFactory`. It exclusively reads stdout and stderr and supplies the adapter's writable stdin wrapper. Each process has a durable stream ID, independent of upload identity, and locally increasing frame sequence numbers. Frames are validated and redacted without changing JSON structure or rounding integer counters. Duplicate keys, malformed JSON, a partial trailing record, oversized records and storage failures stop capture and contain the process. SQLite commit completes before a frame reaches an adapter. The internal frame limit is exactly 1 MiB. Stderr is separate, drains independently, and retains at most 64 KiB. A blocked read is interrupted by context cancellation; a blocked frame consumer has a five-second containment bound.

The existing 128 MiB pending outbox limit now includes pending captured frames and normalized direct events as well as legacy events and tool results. It is checked before launch, before prompt writes and inside append transactions. Captured bytes leave that pending budget only after containment, normalization and acknowledgement; archived bytes remain in the private journal. SQLite FULL was injected with max_page_count to exercise the storage-exhaustion path without filling the shared filesystem.

`Journal.BeginTurn` durably binds the session, turn ID, admission ID and prompt hash. The capture writer consumes that single-use intent in a committed transaction before writing the prompt. A partial or failed write stays uncertain. There is no resend path. Codex startup/configuration RPCs remain prompt-free; turn/start must match the admitted session and prompt. Both adapters now call the durable session-binding and turn-barrier hooks and retain capture sequence numbers in normalized events. Fake captures can still implement the Task 1 interface without the production hooks.

`NewDirectHost(journal, manager)` records the concrete launch and namespace manifest before the manager can fork or release a namespace. The containment process exposes its immutable Record and a Contain method for capture failures. Namespace records now also retain the runner parent's PID and start ticks. Direct recovery compares namespace identity, boot, parent identity, namespace-manifest hash, egress hash and policy hash against the journaled launch; it also verifies the saved policy manifest's digest. A mismatch refuses recovery and leaves scratch alone.

`Journal.RecoverDirect` returns durable Recovery records, preserves completed accounting, quarantines unfinished turns as waiting_for_person, and invalidates pending answers. `Journal.ReconcileDirect` checks containment and cleans only owned attempt scratch. HostPID=0 records never sent a prompt because the helper release follows durable init identity. New records wait for the recorded parent's death before cleanup. The crash window before the namespace record itself is written is also recoverable. Intent-only records become never_started and do not permanently block restart. Completed turns without containment remain completed_needs_containment and cannot authorize dependent admission. Live capture cancellation now durably quarantines the turn and invalidates answers immediately, including before any restart. A late completion cannot replace that uncertainty with known usage.

`UsageAccumulator.Observe(provider.Event)` handles the direct adapters. The old reader remains as ObservePaseo for historical evidence and the not-yet-cut-over runtime. Provider/version/session baselines, per-turn settled receipts, known/unknown flags and cost baselines are saved with normalized events in one transaction. Claude counts result.usage input plus cache read plus cache creation once, and output once; it ignores modelUsage for settlement. Display cost uses cumulative differences. Codex settles the last durable total at the turn boundary: 14,054/96 followed by 28,254/142 produces 28,254/142 once, neither their sum nor last=14,200/46. Resume keeps the baseline. Regression, reset, compaction, missing required fields and overflow preserve uncertainty. Calls remain one per admitted user turn.

`EventPump.AppendDirect` records normalized events, usage checkpoints and upload projection atomically. Large envelopes are preserved in ordered base64 chunks with a final bounded lifecycle/usage reference; every instance payload remains at most 16 KiB. Secrets are removed before chunk encoding. Duplicate delivery keeps stable IDs. The instance recognizes direct turn.completed and turn.failed events in its existing atomic receipt path, including replay after a server commit with a lost ACK. Synthetic adapter failure events without raw stdout payloads become an empty failure payload, never a fabricated completion or usage receipt.

The runner reset also requires direct containment and pending projections to be reconciled. The runner source-size exception is now 7,800 lines for the required adjacent journal/capture/recovery APIs; the measured source count is 7,576 lines. The existing time budgets are unchanged.

### Files

- `.rastrillo/budgets.txt`
- `internal/equipo/runner_events.go`
- `internal/equipotest/runner_events_test.go`
- `internal/runner/capture.go`
- `internal/runner/capture_test.go`
- `internal/runner/containment/linux.go`
- `internal/runner/containment/recovery.go`
- `internal/runner/containment/recovery_test.go`
- `internal/runner/direct_events.go`
- `internal/runner/direct_recovery.go`
- `internal/runner/direct_recovery_test.go`
- `internal/runner/direct_usage.go`
- `internal/runner/journal.go`
- `internal/runner/journal_reset.go`
- `internal/runner/journal_test.go`
- `internal/runner/provider/claude/launcher.go`
- `internal/runner/provider/claude/launcher_test.go`
- `internal/runner/provider/codex/launcher.go`
- `internal/runner/provider/codex/launcher_test.go`
- `internal/runner/provider/codex/rpc.go`
- `internal/runner/provider/types.go`
- `internal/runner/tool_journal.go`
- `internal/runner/usage.go`
- `internal/runner/usage_test.go`
- `internal/runner/workflow_turn.go`

- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended controller evidence.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-7-report.md`: full local report; ignored by Git, like the earlier task reports.


### Interpretations and integration limits

1. Raw stdout is durable before the adapter validates its meaning. A raw-only completion at a crash boundary remains available as evidence but does not gain completion authority without the durable normalized event/accounting transaction. Recovery preserves explicit uncertainty rather than trusting provider rollout/history files.
2. A new production direct launcher must receive NewDirectHost and NewCaptureFactory. Task 9/11a must compose these with startup ReconcileDirect and feed every normalized event through EventPump.AppendDirect. This task does not switch the existing Paseo runtime or invent new scheduler authority. The small ObservePaseo compatibility changes preserve the existing runtime until cutover.
3. The existing adapters still refuse unknown sessions after a launcher-process restart. This task establishes durable recovery, accounting and replay but does not add an adapter rehydration authority API. A known completed session can continue only with a new admission, the same binding and policy, preserved baseline and required containment. Cross-restart continuation, if added later, must retain those checks; it is not automatic recovery.
4. Legacy intent-only namespace records lack parent identity. They are handled in startup recovery using the existing parent-death/release-pipe lifecycle. Newly written records provide explicit parent PID/start-tick proof. No harness is released from an intent-only record, and no numeric host-PID guess or host process scan is used.
5. The pinned Codex probe omits cache-detail counters. Known aggregate input/output totals still settle; optional cache counter absence is retained as nil in the durable checkpoint. Missing required aggregate counters remains unknown. team.Usage has no independent cache-known flag, so omitted cache detail must not be presented as a newly verified zero.
6. Invalidating the existing unscoped pending-answer table on direct interruption/recovery is deliberately conservative. Task 8 owns the direct permission relay and any finer per-attempt answer association. Capture currently permits only the adapters' existing startup/turn transport, not a new permission-answer protocol.
7. There was no live provider gate in this run. No real provider session, sign-in, enrolment, credential-home creation or model prompt occurred. Provider adapter tests use existing fake fixtures only. Live certification remains Task 11b. No make ci or whole-suite test was run, as instructed.

### RED evidence

The initial required RED command failed to compile because the new APIs did not exist. It is recorded as an API red, not as behavioral guard evidence. The later red runs and compiling mutations supply behavioral evidence.


```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest -run 'TestDirectCrash|TestDirectCompletion|TestDirectInterrupted|TestDirectJournal|TestDirectUsage' -count=1
```

Exit 1. Output excerpt:

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/capture_test.go:36:18: j.recordDirectLaunch undefined (type *Journal has no field or method recordDirectLaunch)
internal/runner/capture_test.go:46:11: undefined: NewCaptureFactory
internal/runner/capture_test.go:48:18: j.BeginTurn undefined (type *Journal has no field or method BeginTurn)
internal/runner/capture_test.go:50:100: j.AppendFrame undefined (type *Journal has no field or method AppendFrame)
internal/runner/capture_test.go:53:21: reopened.RecoverDirect undefined (type *Journal has no field or method RecoverDirect)
internal/runner/capture_test.go:55:14: reopened.BeginTurn undefined (type *Journal has no field or method BeginTurn)
internal/runner/capture_test.go:64:11: undefined: NewCaptureFactory
internal/runner/capture_test.go:74:11: undefined: NewCaptureFactory
internal/runner/direct_recovery_test.go:14:78: j.BeginTurn undefined (type *Journal has no field or method BeginTurn)
internal/runner/direct_recovery_test.go:15:102: j.ObserveDirect undefined (type *Journal has no field or method ObserveDirect)
internal/runner/direct_recovery_test.go:15:102: too many errors
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
ok  	amadan.net/oficina/equipo/internal/equipotest	0.075s [no tests to run]
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run TestDirectInterruptedIntentOnly -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectInterruptedIntentOnly (0.03s)
    recovery_test.go:531: intent-only restart blocked: {Record:{ID:abcdefabcdefabcdefabcdefabcdefab AttemptKey:intent BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID: ManifestHash:manifest EgressHash: PolicyHash:policy HostPID:0 StartTicks:0} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 34ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.037s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectCompletionServerCommitBeforeACK -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.07s)
    runner_events_test.go:491: direct receipt lost or duplicated: [{ID:1 Account:LHLQ5B5KMS7WZVRWY3I5YQDVKE Job:1 Step:1 Attempt:1 Action:1 Reserved:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} Settled:{CachedInputTokens:0 CostUnavailable:true Calls:0 InputTokens:0 OutputTokens:0 CostMicros:0} State:open ReceiptID: SettledBy: CreatedAt:2026-11-03 14:33:39.217110843 +0000 UTC SettledAt:0001-01-01 00:00:00 +0000 UTC}]
FAIL
rastrillo-budget/v1 ran 1.075s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.125s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectJournalChunks|TestDirectInterruptedBinding|TestDirectJournalProjectionAtomic|TestDirectUsageResumeBinding' -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectJournalChunks (0.12s)
    direct_recovery_test.go:83: lifecycle truncated
FAIL
rastrillo-budget/v1 ran 618ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.621s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectUsageResumeRejectsChangedBinding -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectUsageResumeRejectsChangedBinding (1.06s)
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/policy (0.20s)
        direct_recovery_test.go:103: resume trusted changed durable binding policy
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/account (0.24s)
        direct_recovery_test.go:103: resume trusted changed durable binding account
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/binding (0.20s)
        direct_recovery_test.go:103: resume trusted changed durable binding binding
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/version (0.22s)
        direct_recovery_test.go:103: resume trusted changed durable binding version
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/unknown-resume (0.21s)
        direct_recovery_test.go:103: resume trusted changed durable binding unknown-resume
FAIL
rastrillo-budget/v1 ran 1.063s
FAIL	amadan.net/oficina/equipo/internal/runner	1.067s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectJournalProjectionSecrets -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectJournalProjectionSecrets (0.35s)
    direct_recovery_test.go:442: projection leaked credentials or rounded counters
FAIL
rastrillo-budget/v1 ran 347ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.380s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectInterruptedManifestIntegrity -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectInterruptedManifestIntegrity (0.37s)
    direct_recovery_test.go:455: changed saved launch manifest accepted
FAIL
rastrillo-budget/v1 ran 372ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.378s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectJournalFrameRetirement -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectJournalFrameRetirement (0.53s)
    direct_recovery_test.go:461: raw bytes retired before normalization
FAIL
rastrillo-budget/v1 ran 531ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.534s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectInterruptedBinding/(boot|parent)' -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectInterruptedBinding (0.31s)
    --- FAIL: TestDirectInterruptedBinding/boot (0.00s)
        direct_recovery_test.go:197: recovered identity mismatch accepted boot
    --- FAIL: TestDirectInterruptedBinding/parent (0.00s)
        direct_recovery_test.go:197: recovered identity mismatch accepted parent
FAIL
rastrillo-budget/v1 ran 315ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.318s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectInterruptedLiveCapture -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectInterruptedLiveCapture (0.48s)
    capture_test.go:438: live cancellation left turn dispatchable dispatched
FAIL
rastrillo-budget/v1 ran 476ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.478s
FAIL
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectInterruptedSyntheticFailure -count=1
```

Exit 1. Output excerpt:

```text
--- FAIL: TestDirectInterruptedSyntheticFailure (0.24s)
    direct_recovery_test.go:523: runner.invalid
FAIL
rastrillo-budget/v1 ran 242ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.244s
FAIL
```


### GREEN evidence

The hard-crash tests run a child test executable and terminate it with os.Exit at committed intent, before/after stdin, before/after frame commit, before upload, and server-commit-before-ACK boundaries. The parent reopens the same journal, checks exact stdin-write counts, committed/rolled-back frames, preserved usage and stable replay identity. The instance test separately exercises actual atomic server ingestion and replay after a lost acknowledgement.

The final required command ran after all code changes and all mutations were restored. The additional integration and legacy regression commands passed before the last live-interruption refinement; that refinement was then covered by its own green run and the final required command. No affected adapter or legacy source changed after those regression runs.


```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest -run 'TestDirectCrash|TestDirectCompletion|TestDirectInterrupted|TestDirectJournal|TestDirectUsage' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	29.651s
ok  	amadan.net/oficina/equipo/internal/equipotest	1.590s
```


```sh
CGO_ENABLED=0 go test ./internal/runner/containment ./internal/runner/provider/claude ./internal/runner/provider/codex -run 'TestDirect|TestNamespaceRecovery|TestClaudeNoPromptBeforeAdmission|TestClaudeResume|TestClaudeWriteCancellation|TestClaudeCaptureSequence|TestCodexLifecycle|TestCodexAppServerPolicy|TestCodexCaptureRequired' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	2.622s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	5.635s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	2.470s
```


```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest -run 'TestRunnerJournal|TestBufferFull|TestRunnerEventReplay|TestTimelineEpoch|TestUsage|TestNormalize|TestQuestion' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	7.438s
ok  	amadan.net/oficina/equipo/internal/equipotest	29.490s
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectInterruptedLiveCapture|TestDirectJournalFailureContains|TestDirectCrashBoundaries|TestDirectJournalShortInput' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	13.056s
```


```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectInterruptedLiveCapture|TestDirectInterruptedSyntheticFailure' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.034s
```


### Guard mutations

Each mutation was applied alone, the named test command was run, and the file was restored in a finally block before the next mutation. All 51 retained mutations compiled and failed in the named test. These include moving durable commit after consumption, disabling FULL sync, permitting a repeated uncertain write, resetting the saved baseline, summing cumulative counters, and using last instead of total.

One initial late-completion mutation passed because the test checked state only after another recovery sweep. That was not counted as guard evidence. The test was strengthened to check the immediate returned usage before another sweep; the same mutation then failed. The initial weak test result is recorded below for completeness. No mutation is left in the implementation.


#### sync-after-consumption

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalCommitBeforeDelivery$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalCommitBeforeDelivery (0.30s)
    capture_test.go:200: sql: no rows in result set
FAIL
rastrillo-budget/v1 ran 299ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.304s
FAIL
```


#### sync-off

File: `internal/runner/journal.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalUpgrade$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalUpgrade (0.22s)
    direct_recovery_test.go:172: capture commits are not FULL synchronous
FAIL
rastrillo-budget/v1 ran 222ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.227s
FAIL
```


#### resend-uncertain-input

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectCrashSingleUseInput$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCrashSingleUseInput (0.45s)
    capture_test.go:335: same prompt sent twice
FAIL
rastrillo-budget/v1 ran 447ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.455s
FAIL
```


#### baseline-reset

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (0.55s)
    direct_recovery_test.go:34: cumulative totals settled incorrectly: <nil>
FAIL
rastrillo-budget/v1 ran 555ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.559s
FAIL
```


#### sum-cumulative

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (0.56s)
    direct_recovery_test.go:34: cumulative totals settled incorrectly: &{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:42308 OutputTokens:238 CostMicros:0}
FAIL
rastrillo-budget/v1 ran 556ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.561s
FAIL
```


#### use-last-request

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (0.57s)
    direct_recovery_test.go:34: cumulative totals settled incorrectly: &{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:14200 OutputTokens:46 CostMicros:0}
FAIL
rastrillo-budget/v1 ran 568ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.573s
FAIL
```


#### claude-cache-write

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (1.03s)
    direct_recovery_test.go:83: Claude per-turn usage: &{CachedInputTokens:3566 CostUnavailable:true Calls:1 InputTokens:3568 OutputTokens:3 CostMicros:0}
FAIL
rastrillo-budget/v1 ran 1.035s
FAIL	amadan.net/oficina/equipo/internal/runner	1.041s
FAIL
```


#### sum-cumulative-cost

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (0.92s)
    direct_recovery_test.go:88: summed cumulative cost 0.25
FAIL
rastrillo-budget/v1 ran 919ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.924s
FAIL
```


#### allow-regression

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageDeltas$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageDeltas (0.75s)
    --- FAIL: TestDirectUsageDeltas/reset (0.00s)
        direct_recovery_test.go:70: uncertain counters became known
    --- FAIL: TestDirectUsageDeltas/compaction (0.00s)
        direct_recovery_test.go:70: uncertain counters became known
FAIL
rastrillo-budget/v1 ran 751ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.756s
FAIL
```


#### ignore-compaction

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageCompaction$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageCompaction (0.00s)
    direct_recovery_test.go:413: compaction invented verified baseline
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```


#### frame-overflow

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/outbox-crossing$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.43s)
    --- FAIL: TestDirectJournalFailureContains/outbox-crossing (0.43s)
        capture_test.go:182: uncommitted or invalid frame escaped
FAIL
rastrillo-budget/v1 ran 429ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.457s
FAIL
```


#### frame-limit

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/oversized$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.64s)
    --- FAIL: TestDirectJournalFailureContains/oversized (0.64s)
        capture_test.go:182: uncommitted or invalid frame escaped
FAIL
rastrillo-budget/v1 ran 640ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.657s
FAIL
```


#### duplicate-json-key

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/duplicate-key$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.42s)
    --- FAIL: TestDirectJournalFailureContains/duplicate-key (0.42s)
        capture_test.go:182: uncommitted or invalid frame escaped
FAIL
rastrillo-budget/v1 ran 421ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.442s
FAIL
```


#### stderr-limit

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/stderr$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.62s)
    --- FAIL: TestDirectJournalFailureContains/stderr (0.62s)
        capture_test.go:175: unbounded stderr
FAIL
rastrillo-budget/v1 ran 622ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.625s
FAIL
```


#### atomic-completion

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalProjectionAtomic$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalProjectionAtomic (0.62s)
    direct_recovery_test.go:227: completion escaped projection rollback
FAIL
rastrillo-budget/v1 ran 622ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.627s
FAIL
```


#### late-completion-charge

File: `internal/runner/direct_events.go`. Initial weak test: PASS, not accepted as mutation evidence; strengthened and rerun below.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedWaitsForPerson$ -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.671s
```


#### unknown-charge-reset

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedWaitsForPerson$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedWaitsForPerson (0.42s)
    direct_recovery_test.go:133: unknown charge erased: [{AttemptKey:attempt SessionID:session TurnID:turn State:completed_needs_containment Usage:<nil>}]
FAIL
rastrillo-budget/v1 ran 420ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.423s
FAIL
```


#### pending-answer

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedWaitsForPerson$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedWaitsForPerson (0.52s)
    direct_recovery_test.go:138: pending answer remained valid
FAIL
rastrillo-budget/v1 ran 522ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.525s
FAIL
```


#### late-completion-charge-strengthened

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedWaitsForPerson$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedWaitsForPerson (0.66s)
    direct_recovery_test.go:141: late completion returned known usage after interruption
FAIL
rastrillo-budget/v1 ran 662ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.664s
FAIL
```


#### namespace-manifest

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedBinding/manifest$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedBinding (0.40s)
    --- FAIL: TestDirectInterruptedBinding/manifest (0.00s)
        direct_recovery_test.go:195: recovered identity mismatch accepted manifest
FAIL
rastrillo-budget/v1 ran 396ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.399s
FAIL
```


#### namespace-policy

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedBinding/policy$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedBinding (0.44s)
    --- FAIL: TestDirectInterruptedBinding/policy (0.01s)
        direct_recovery_test.go:195: recovered identity mismatch accepted policy
FAIL
rastrillo-budget/v1 ran 439ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.442s
FAIL
```


#### journal-policy

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedBinding$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedBinding (0.36s)
    direct_recovery_test.go:209: namespace record detached from journaled launch policy
FAIL
rastrillo-budget/v1 ran 361ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.363s
FAIL
```


#### saved-manifest-integrity

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedManifestIntegrity$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedManifestIntegrity (0.35s)
    direct_recovery_test.go:455: changed saved launch manifest accepted
FAIL
rastrillo-budget/v1 ran 346ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.348s
FAIL
```


#### intent-only-recovery

File: `internal/runner/containment/recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestDirectInterruptedIntentOnly$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedIntentOnly (0.04s)
    recovery_test.go:541: intent-only restart blocked: {Record:{ID:abcdefabcdefabcdefabcdefabcdefab AttemptKey:intent BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID: ManifestHash:manifest EgressHash: PolicyHash:policy ParentPID:0 ParentTicks:0 HostPID:0 StartTicks:0} Exit:{Code:-1 Signal:0 ObservedAt:0001-01-01 00:00:00 +0000 UTC} Verified:false} namespace_identity_unproven
FAIL
rastrillo-budget/v1 ran 36ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.038s
FAIL
```


#### parent-death-before-cleanup

File: `internal/runner/containment/recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestDirectInterruptedParentLifecycle$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedParentLifecycle (60.00s)
    recovery_test.go:576: cleanup preceded parent death
FAIL
rastrillo-budget/v1 ran 1m0.002s
FAIL	amadan.net/oficina/equipo/internal/runner/containment	60.004s
FAIL
```


#### server-direct-settlement

File: `internal/equipo/runner_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCompletionServerCommitBeforeACK$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.75s)
    runner_events_test.go:512: direct receipt lost or duplicated: [{ID:1 Account:HX6QHA3IKT2S3JTZQVCD3HNXCM Job:1 Step:1 Attempt:1 Action:1 Reserved:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} Settled:{CachedInputTokens:0 CostUnavailable:true Calls:0 InputTokens:0 OutputTokens:0 CostMicros:0} State:open ReceiptID: SettledBy: CreatedAt:2026-11-03 14:52:33.655263654 +0000 UTC SettledAt:0001-01-01 00:00:00 +0000 UTC}]
FAIL
rastrillo-budget/v1 ran 1.754s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.834s
FAIL
```


#### resume-policy-binding

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageResumeRejectsChangedBinding/policy$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageResumeRejectsChangedBinding (0.80s)
    --- FAIL: TestDirectUsageResumeRejectsChangedBinding/policy (0.80s)
        direct_recovery_test.go:346: resume trusted changed durable binding policy
FAIL
rastrillo-budget/v1 ran 798ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.832s
FAIL
```


#### active-turn-replacement

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectCrashSingleUseInput$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCrashSingleUseInput (0.82s)
    capture_test.go:341: active turn replaced
FAIL
rastrillo-budget/v1 ran 816ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.829s
FAIL
```


#### uncontained-admission

File: `internal/runner/journal.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedReconcileIntent/intent$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedReconcileIntent (0.39s)
    --- FAIL: TestDirectInterruptedReconcileIntent/intent (0.39s)
        direct_recovery_test.go:385: missing containment admitted dependent work
FAIL
rastrillo-budget/v1 ran 393ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.406s
FAIL
```


#### resume-needs-containment

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectCompletionNeedsContainment$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionNeedsContainment (0.72s)
    direct_recovery_test.go:433: completion without containment admitted dependent work
FAIL
rastrillo-budget/v1 ran 723ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.734s
FAIL
```


#### frame-sequence

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFrameSequence$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFrameSequence (0.39s)
    capture_test.go:351: frame order regressed
FAIL
rastrillo-budget/v1 ran 386ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.391s
FAIL
```


#### unterminated-frame

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/unterminated$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.42s)
    --- FAIL: TestDirectJournalFailureContains/unterminated (0.42s)
        capture_test.go:182: uncommitted or invalid frame escaped
FAIL
rastrillo-budget/v1 ran 415ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.452s
FAIL
```


#### chunk-size

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalChunks$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalChunks (0.38s)
    direct_recovery_test.go:244: runner.invalid
FAIL
rastrillo-budget/v1 ran 380ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.391s
FAIL
```


#### chunk-secrets

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalProjectionSecrets$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalProjectionSecrets (0.38s)
    direct_recovery_test.go:443: projection leaked credentials or rounded counters
FAIL
rastrillo-budget/v1 ran 377ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.380s
FAIL
```


#### claude-turn-barrier

File: `internal/runner/provider/claude/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestDirectJournalAdapterBarrier$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (1.30s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.66s)
        launcher_test.go:899: journal turn barrier not called
    --- FAIL: TestDirectJournalAdapterBarrier/true (0.64s)
        launcher_test.go:881: failed journal barrier ignored
FAIL
rastrillo-budget/v1 ran 1.299s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.301s
FAIL
```


#### codex-turn-barrier

File: `internal/runner/provider/codex/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestDirectJournalAdapterBarrier$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (0.81s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.42s)
        launcher_test.go:923: journal turn barrier not called
    --- FAIL: TestDirectJournalAdapterBarrier/true (0.40s)
        launcher_test.go:908: failed journal barrier ignored
FAIL
rastrillo-budget/v1 ran 814ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.816s
FAIL
```


#### claude-session-binding

File: `internal/runner/provider/claude/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestDirectJournalAdapterBarrier$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (1.31s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.64s)
        launcher_test.go:876: session not durably bound
    --- FAIL: TestDirectJournalAdapterBarrier/true (0.68s)
        launcher_test.go:876: session not durably bound
FAIL
rastrillo-budget/v1 ran 1.313s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	1.315s
FAIL
```


#### codex-session-binding

File: `internal/runner/provider/codex/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestDirectJournalAdapterBarrier$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (0.84s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.42s)
        launcher_test.go:903: session not durably bound
    --- FAIL: TestDirectJournalAdapterBarrier/true (0.42s)
        launcher_test.go:903: session not durably bound
FAIL
rastrillo-budget/v1 ran 841ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.843s
FAIL
```


#### short-stdin-write

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalShortInput$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalShortInput (0.47s)
    capture_test.go:374: short stdin write reported success
FAIL
rastrillo-budget/v1 ran 470ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.472s
FAIL
```


#### capture-containment

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFailureContains/disk-full$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFailureContains (0.41s)
    --- FAIL: TestDirectJournalFailureContains/disk-full (0.41s)
        capture_test.go:188: not contained: paseo_uncertain
            runner.journal
FAIL
rastrillo-budget/v1 ran 406ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.408s
FAIL
```


#### full-outbox-before-stdin

File: `internal/runner/journal.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectCrashFullOutbox$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCrashFullOutbox (0.53s)
    capture_test.go:427: full outbox admitted stdin
FAIL
rastrillo-budget/v1 ran 527ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.529s
FAIL
```


#### retire-before-normalization

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFrameRetirement$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFrameRetirement (0.54s)
    direct_recovery_test.go:501: raw bytes retired before normalization
FAIL
rastrillo-budget/v1 ran 537ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.539s
FAIL
```


#### retire-before-ack

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalFrameRetirement$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalFrameRetirement (0.66s)
    direct_recovery_test.go:511: raw bytes retired before upload acknowledgement
FAIL
rastrillo-budget/v1 ran 664ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.667s
FAIL
```


#### namespace-boot-binding

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedBinding/boot$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedBinding (0.34s)
    --- FAIL: TestDirectInterruptedBinding/boot (0.00s)
        direct_recovery_test.go:201: recovered identity mismatch accepted boot
FAIL
rastrillo-budget/v1 ran 344ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.346s
FAIL
```


#### namespace-parent-binding

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedBinding/parent$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedBinding (0.31s)
    --- FAIL: TestDirectInterruptedBinding/parent (0.00s)
        direct_recovery_test.go:201: recovered identity mismatch accepted parent
FAIL
rastrillo-budget/v1 ran 311ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.314s
FAIL
```


#### exact-json-counters

File: `internal/runner/capture.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectJournalCommitBeforeDelivery$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalCommitBeforeDelivery (0.53s)
    capture_test.go:202: frame not durably redacted with exact counters: {"authorization":"***","input_tokens":9007199254740992}
FAIL
rastrillo-budget/v1 ran 533ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.536s
FAIL
```


#### claude-event-sequence

File: `internal/runner/provider/claude/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestDirectJournalAdapterBarrier/false$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (0.68s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.68s)
        launcher_test.go:895: capture sequence lost before projection
FAIL
rastrillo-budget/v1 ran 679ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.681s
FAIL
```


#### codex-event-sequence

File: `internal/runner/provider/codex/launcher.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestDirectJournalAdapterBarrier/false$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalAdapterBarrier (0.43s)
    --- FAIL: TestDirectJournalAdapterBarrier/false (0.43s)
        launcher_test.go:919: capture sequence lost before projection
FAIL
rastrillo-budget/v1 ran 430ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.432s
FAIL
```


#### claude-token-overflow

File: `internal/runner/direct_usage.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectUsageClaudeUnknown$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageClaudeUnknown (0.00s)
    direct_recovery_test.go:474: unknown Claude usage settled: {"input_tokens":9223372036854775807,"cache_read_input_tokens":1,"cache_creation_input_tokens":0,"output_tokens":2}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```


#### live-interruption-state

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedLiveCapture$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedLiveCapture (0.58s)
    capture_test.go:452: live cancellation left turn dispatchable dispatched
FAIL
rastrillo-budget/v1 ran 583ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.586s
FAIL
```


#### live-interruption-answers

File: `internal/runner/direct_recovery.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedLiveCapture$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedLiveCapture (0.55s)
    capture_test.go:456: live cancellation retained pending answers
FAIL
rastrillo-budget/v1 ran 553ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.555s
FAIL
```


#### synthetic-failure

File: `internal/runner/direct_events.go`. Compiled behavioral failure; restored.

```sh
CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectInterruptedSyntheticFailure$ -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedSyntheticFailure (0.31s)
    direct_recovery_test.go:527: runner.invalid
FAIL
rastrillo-budget/v1 ran 308ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.311s
FAIL
```


### User-facing strings

No UI strings, README prose or copy.go entries changed, so there are no new copy.go entries to mark pending. No copy-review skill or server was invoked.

New internal diagnostic code: runner.direct_uncertain. New recovery-state values: waiting_for_person, never_started, never_started_needs_containment, completed_needs_containment and completed. The direct_chunk kind, direct-v2 epoch, capture_sequence field, test diagnostics and source-budget explanation are technical metadata, not approved product copy. If these are later presented as user-facing language, add individually pending copy.go entries and complete the release copy pass.

### Concerns and handback

The offline durability/accounting implementation and targeted checks are complete. Runtime composition and any safe post-restart adapter rehydration remain explicit follow-on integration work as described above. Full CI and live certification were not run because the task forbids them here. The source-budget exception was adjusted for the required adjacent APIs; no time budget was raised.

No helper agent, provider reviewer, copy-review server, push, merge, deployment, README edit or .claude/HANDOFF.md was created. Default Go caches were retained. Test-owned subprocesses and pipes were stopped by their cleanup paths; hard-crash children exited and were waited. No listening server was started by this session. Only this task's scratch files are removed after this evidence is saved. The final commit uses the requested codex author and exact subject.


## Task 7 fix round 1: contain direct faults and settle at the instance

Status: DONE. All five findings against 5092058 are addressed.
Branch: `plan-2b`.
Commit subject: `fix: contain direct faults per attempt and settle at the instance` (65 characters).
Author: `codex <codex~paul@keymail.dev>`.
Work directory for every command below: `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### Changes

1. Capture contains and quarantines malformed, torn, oversized, stalled or failed-input attempts without permanently blocking the journal. Identity errors and missing caller-supplied attempt identities also leave unrelated work admissible. Real journal failures and failed quarantine still fence the journal. Tests admit a second attempt after the first fails. Projection failures now persist quarantine after containment too. Corrupt turn-table reads and SQLite FULL during intent writes retain their storage-error classification instead of being reported as identity or uncertain-turn errors.
2. The private journal upgrades from version 2 to version 3 in the existing ordered migration transaction. It removes old pending=0 raw frames and adds pending-frame, pending-projection and retirement lookup indexes. Retirement deletes eligible pending frames instead of rewriting archives. The query starts with pending frames and uses indexed attempt lookups. Normalized events, receipts and accounting checkpoints remain available for recovery and replay. Tests cover 200 archived frames, migration cleanup, actual row deletion, leading-column indexes and changes()=0 on a repeated ACK with synthetic archived rows. Startup frames stay available while consumption may still be in progress; recovery can retire them once containment is established.
3. Production instanceValidators().Receipt accepts turn.completed and turn.failed. It reads only the settled usage field carried by the authenticated event, including the final envelope for chunked output. Missing/null usage remains unknown, and turn.failed produces OutcomeFailure. The integration fixture now supports AttachSupervisedExecution, so the lost-ACK test uses production validators with no receipt/event stubs. It verifies exact 28,254/142 accounting, unknown charge preservation, failed turns, chunked envelopes, one event/audit effect, malformed usage rejection, and existing scope/runner/attempt/fence/action checks.
4. A mutex protects capture failure updates and publication through Done. The deterministic test lets stdout finish while a failed stdin write is still waiting for containment, and verifies that Done waits for the complete error result. The requested single CGO_ENABLED=1 race run passed.
5. Terminal observations cannot settle an intent or replace a completed turn. Only dispatched turns update terminal state and settled usage. Exact event replay remains idempotent. Later observations of quarantined turns preserve uncertainty. Pre-dispatch usage cannot become settled accounting. Existing completion, usage, resume and retirement fixtures now consume their turn before reporting terminal events.

### Files

- `internal/runner/capture.go`: attempt-local failures, synchronized result publication and storage classification.
- `internal/runner/direct_events.go`: projection quarantine, dispatched-only accounting and terminal transitions.
- `internal/runner/direct_recovery.go`: unknown-attempt classification, storage errors during intent writes and indexed raw-frame retirement.
- `internal/runner/journal.go`: private schema v3 and admission storage-error fencing.
- `internal/runner/journal_reset.go`: identity and uncertain-turn errors are not storage failures.
- `internal/runner/direct_fixes_test.go`: regression tests for all five findings and their adjacent storage/retention guards.
- `internal/runner/direct_recovery_test.go`: dispatched-turn fixtures, v3 upgrade expectation and deletion assertion.
- `internal/runner/journal_test.go`: future-version refusal now uses version 4.
- `internal/equipo/runner_report_validation.go`: production direct receipts and durable usage.
- `internal/equipotest/runner_api_test.go`: optional production supervised fixture setup.
- `internal/equipotest/runner_events_test.go`: production settlement and lost-ACK replay tests.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended evidence.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-7-report.md`: this appended local report, preserving the original report. The dispatch-report directory remains Git-ignored under the existing repository layout.

### Interpretations

- The original task established private schema version 2. An explicit version 3 migration is needed to upgrade already-existing v2 journals; changing only the v2 CREATE statements would not upgrade them. No instance/app schema or migration changed.
- An unknown attempt lookup is an identity error. A missing/corrupt journal table or failed write is a storage error. A duplicate intent constraint remains an uncertain, non-repeatable admission; SQLite FULL during that write must fence.
- A late terminal observation after quarantine may remain historical evidence, but it cannot change the saved terminal state or accounting. A new terminal observation for an already completed turn is rejected; exact durable-event replay still returns its original receipt.
- Raw frames are dispensable only after the existing containment, normalization and ACK checks. Normalized event bodies and usage baselines remain for replay and accounting. SQLite reuses freed pages; this change does not VACUUM or promise to shrink an existing file below its prior high-water size.
- The deterministic concurrency test supplies behavioral RED and mutation evidence. The single authorized race run checks the restored implementation, so no extra race run was used for RED or mutations.

### Test-first evidence and intermediate checks

The initial runner test addition had a duplicate helper declaration. That compile failure is recorded below but is not guard evidence. It was corrected before the behavioral RED run. The first production fixture attempt tried to reattach execution to an already-attached store; it failed before receipt validation and is likewise not guard evidence. The revised fixture installs production validators at initial attachment and then fails at the actual unsupported direct receipt.

An intermediate GREEN attempt found that the chunk fixture used Go field names rather than the JSON field tags; the fixture was corrected to the actual envelope. The first covering run found a resumed-turn fixture that had not consumed its intent; it was corrected. All final checks below pass. No compile failure is counted as a successful mutation.

#### 1. red-runner

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectFaultIsolation|TestDirectTerminalTransition|TestDirectCaptureFailurePublication|TestDirectJournalPrunesFrames' -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_fixes_test.go:95:6: shortDirectInput redeclared in this block
	internal/runner/capture_test.go:358:6: other declaration of shortDirectInput
internal/runner/direct_fixes_test.go:96:25: method shortDirectInput.Write already declared at internal/runner/capture_test.go:360:25
internal/runner/direct_fixes_test.go:97:25: method shortDirectInput.Close already declared at internal/runner/capture_test.go:361:25
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
```

#### 2. red-runner

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectFaultIsolation|TestDirectTerminalTransition|TestDirectCaptureFailurePublication|TestDirectJournalPrunesFrames' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectFaultIsolation (9.52s)
    --- FAIL: TestDirectFaultIsolation/torn (0.38s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/oversized (0.41s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/malformed (0.40s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/stall (5.44s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/short-input (0.56s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/identity (0.35s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/unknown-frame (0.30s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/unknown-turn (0.32s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/unknown-event (0.28s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/pump-identity (0.30s)
        direct_fixes_test.go:82: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/storage (0.27s)
        direct_fixes_test.go:79: storage fault did not fence journal
--- FAIL: TestDirectTerminalTransition (1.46s)
    --- FAIL: TestDirectTerminalTransition/intent (0.34s)
        direct_fixes_test.go:116: terminal event changed intent to completed or replaced usage
    --- FAIL: TestDirectTerminalTransition/completed (0.58s)
        direct_fixes_test.go:116: terminal event changed completed to waiting_for_person or replaced usage
    --- FAIL: TestDirectTerminalTransition/waiting_for_person (0.54s)
        direct_fixes_test.go:116: terminal event changed waiting_for_person to waiting_for_person or replaced usage
--- FAIL: TestDirectCaptureFailurePublication (0.52s)
    direct_fixes_test.go:150: Done published while failure cleanup still writes its result
--- FAIL: TestDirectJournalPrunesFrames (0.82s)
    direct_fixes_test.go:167: upgrade kept retired frames 200
    direct_fixes_test.go:170: missing pending index direct_frames
    direct_fixes_test.go:170: missing pending index direct_events
    direct_fixes_test.go:178: retired frames not pruned 201
    direct_fixes_test.go:181: ACK touched archived frames 201
FAIL
rastrillo-budget/v1 ran 12.328s
FAIL	amadan.net/oficina/equipo/internal/runner	12.331s
FAIL
```

#### 3. red-instance

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.03s)
    runner_events_test.go:491: This record changed. Reload the page and try again.
FAIL
rastrillo-budget/v1 ran 1.03s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.093s
FAIL
```

#### 4. red-instance

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.51s)
    runner_events_test.go:510: One or more values are invalid. Check the form and try again.
FAIL
rastrillo-budget/v1 ran 1.515s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.562s
FAIL
```

#### 5. green-runner

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectFaultIsolation|TestDirectTerminalTransition|TestDirectCaptureFailurePublication|TestDirectJournalPrunesFrames' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	13.219s
```

#### 6. red-instance-modes

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (4.24s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-known (1.50s)
        runner_events_test.go:526: One or more values are invalid. Check the form and try again.
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-unknown (0.87s)
        runner_events_test.go:526: One or more values are invalid. Check the form and try again.
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/failed-unknown (0.89s)
        runner_events_test.go:526: One or more values are invalid. Check the form and try again.
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/chunked-known (0.98s)
        runner_events_test.go:526: One or more values are invalid. Check the form and try again.
FAIL
rastrillo-budget/v1 ran 4.24s
FAIL	amadan.net/oficina/equipo/internal/equipotest	4.365s
FAIL
```

#### 7. red-projection

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectProjectionFaultQuarantines$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectProjectionFaultQuarantines (1.30s)
    --- FAIL: TestDirectProjectionFaultQuarantines/protocol (0.53s)
        direct_fixes_test.go:210: projection fault left attempt active 0 dispatched
    --- FAIL: TestDirectProjectionFaultQuarantines/containment (0.36s)
        direct_fixes_test.go:210: projection fault left attempt active 0 dispatched
    --- FAIL: TestDirectProjectionFaultQuarantines/interrupt-storage (0.40s)
        direct_fixes_test.go:203: failed quarantine did not fence
FAIL
rastrillo-budget/v1 ran 1.3s
FAIL	amadan.net/oficina/equipo/internal/runner	1.303s
FAIL
```

#### 8. green-instance

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (4.44s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/chunked-known (0.97s)
        runner_events_test.go:533: direct receipt lost or duplicated: [{ID:1 Account:QXTSMELJ4ZIH7VHOBXTZ5WKJ6C Job:1 Step:1 Attempt:1 Action:1 Reserved:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} Settled:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:0 OutputTokens:0 CostMicros:0} State:settled ReceiptID:turn SettledBy:adapter:claude CreatedAt:2026-11-03 15:30:55.751144023 +0000 UTC SettledAt:2026-11-03 15:30:55.751144023 +0000 UTC}]
FAIL
rastrillo-budget/v1 ran 4.439s
FAIL	amadan.net/oficina/equipo/internal/equipotest	4.491s
FAIL
```

#### 9. green-projection

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectProjectionFaultQuarantines$' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.311s
```

#### 10. green-covering

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/equipo -run 'TestDirect|TestJournal|TestRunnerEvents|TestMigration' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectUsageResumeBinding (0.79s)
    direct_recovery_test.go:318: runner.direct_uncertain
FAIL
rastrillo-budget/v1 ran 49.861s
FAIL	amadan.net/oficina/equipo/internal/runner	49.869s
ok  	amadan.net/oficina/equipo/internal/equipotest	4.851s
ok  	amadan.net/oficina/equipo/internal/equipo	0.149s
FAIL
```

#### 11. red-storage-accounting

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectFaultIsolation/(event-storage|intent-storage)$|TestDirectUsageBeforeDispatch' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectFaultIsolation (0.61s)
    --- FAIL: TestDirectFaultIsolation/event-storage (0.33s)
        direct_fixes_test.go:92: storage fault did not fence journal
    --- FAIL: TestDirectFaultIsolation/intent-storage (0.27s)
        direct_fixes_test.go:92: storage fault did not fence journal
--- FAIL: TestDirectUsageBeforeDispatch (0.50s)
    direct_fixes_test.go:241: undispatched usage became settled accounting &{0 true 1 28254 142 0}
FAIL
rastrillo-budget/v1 ran 1.103s
FAIL	amadan.net/oficina/equipo/internal/runner	1.106s
FAIL
```

#### 12. green-storage-accounting

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectFaultIsolation/(event-storage|intent-storage)$|TestDirectUsageBeforeDispatch|TestDirectCaptureFailurePublication' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.861s
```

#### 13. green-covering

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/equipo -run 'TestDirect|TestJournal|TestRunnerEvents|TestMigration' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	51.757s
ok  	amadan.net/oficina/equipo/internal/equipotest	4.429s
ok  	amadan.net/oficina/equipo/internal/equipo	0.095s
```

#### 14. red-startup

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalRetainsUndecodedStartup$' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectJournalRetainsUndecodedStartup (0.42s)
    direct_fixes_test.go:347: startup frame retired before consumption or recovery
FAIL
rastrillo-budget/v1 ran 421ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.423s
FAIL
```

#### 15. green-startup

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalRetainsUndecodedStartup$' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.466s
```

#### 16. final-race

```sh
CGO_ENABLED=1 go test -race ./internal/runner -run '^TestDirectCaptureFailurePublication$' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.589s
```

#### 17. final-covering

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/equipo -run 'TestDirect|TestJournal|TestRunnerEvents|TestMigration' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	51.837s
ok  	amadan.net/oficina/equipo/internal/equipotest	4.457s
ok  	amadan.net/oficina/equipo/internal/equipo	0.095s
```

### Independent compiling mutations

Each mutation was applied alone, the named test compiled and failed behaviorally, and the source was restored in a finally block before the next mutation. The final covering run follows all restorations. The startup-retention case also has its own RED/GREEN cycle above.

#### protocol-fences-runner

File: `internal/runner/capture.go`. Replaced:

```text
if errors.Is(e, ErrJournal) || journalErr != nil {
```

with:

```text
if ctx.Err() == nil || journalErr != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/torn$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.44s)
    --- FAIL: TestDirectFaultIsolation/torn (0.44s)
        direct_fixes_test.go:126: attempt fault fenced unrelated work
FAIL
rastrillo-budget/v1 ran 438ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.440s
FAIL
```

#### capture-quarantine-failure

File: `internal/runner/capture.go`. Replaced:

```text
if errors.Is(e, ErrJournal) || journalErr != nil {
```

with:

```text
if errors.Is(e, ErrJournal) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/interrupt-storage$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.42s)
    --- FAIL: TestDirectFaultIsolation/interrupt-storage (0.42s)
        direct_fixes_test.go:122: storage fault did not fence journal
FAIL
rastrillo-budget/v1 ran 423ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.426s
FAIL
```

#### identity-fences-runner

File: `internal/runner/journal_reset.go`. Replaced:

```text
errors.Is(err, provider.ErrIdentity) ||
```

with:

```text
false && errors.Is(err, provider.ErrIdentity) ||
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/identity$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.65s)
    --- FAIL: TestDirectFaultIsolation/identity (0.34s)
        direct_fixes_test.go:126: attempt fault fenced unrelated work
    --- FAIL: TestDirectFaultIsolation/pump-identity (0.30s)
        direct_fixes_test.go:126: attempt fault fenced unrelated work
FAIL
rastrillo-budget/v1 ran 645ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.648s
FAIL
```

#### uncertain-fences-runner

File: `internal/runner/journal_reset.go`. Replaced:

```text
errors.Is(err, errDirectUncertain) ||
```

with:

```text
false && errors.Is(err, errDirectUncertain) ||
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectTerminalTransition/intent$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectTerminalTransition (0.40s)
    --- FAIL: TestDirectTerminalTransition/intent (0.40s)
        direct_fixes_test.go:173: attempt fault fenced unrelated work
FAIL
rastrillo-budget/v1 ran 401ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.404s
FAIL
```

#### unknown-frame-fences-runner

File: `internal/runner/capture.go`. Replaced:

```text
if errors.Is(e, sql.ErrNoRows) {
```

with:

```text
if false && errors.Is(e, sql.ErrNoRows) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/unknown-frame$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.31s)
    --- FAIL: TestDirectFaultIsolation/unknown-frame (0.31s)
        direct_fixes_test.go:126: attempt fault fenced unrelated work
FAIL
rastrillo-budget/v1 ran 306ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.308s
FAIL
```

#### unknown-session-fences-runner

File: `internal/runner/direct_recovery.go`. Replaced:

```text
if errors.Is(err, sql.ErrNoRows) {
```

with:

```text
if false && errors.Is(err, sql.ErrNoRows) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/unknown-turn$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.29s)
    --- FAIL: TestDirectFaultIsolation/unknown-turn (0.29s)
        direct_fixes_test.go:126: attempt fault fenced unrelated work
FAIL
rastrillo-budget/v1 ran 292ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.294s
FAIL
```

#### storage-admission-unfenced

File: `internal/runner/journal.go`. Replaced:

```text
Scan(&saved, &size); err != nil {
		return j.storageFailure(ctx, err)
```

with:

```text
Scan(&saved, &size); err != nil {
		return err
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/storage$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (1.61s)
    --- FAIL: TestDirectFaultIsolation/storage (0.32s)
        direct_fixes_test.go:122: storage fault did not fence journal
FAIL
rastrillo-budget/v1 ran 1.605s
FAIL	amadan.net/oficina/equipo/internal/runner	1.608s
FAIL
```

#### event-storage-as-identity

File: `internal/runner/direct_events.go`. Replaced:

```text
if !errors.Is(err, sql.ErrNoRows) {
						return err
```

with:

```text
if !errors.Is(err, sql.ErrNoRows) {
						return provider.ErrIdentity
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/event-storage$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.36s)
    --- FAIL: TestDirectFaultIsolation/event-storage (0.36s)
        direct_fixes_test.go:122: storage fault did not fence journal
FAIL
rastrillo-budget/v1 ran 364ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.366s
FAIL
```

#### intent-storage-as-uncertain

File: `internal/runner/direct_recovery.go`. Replaced:

```text
sqliteErr.Code()&0xff != sqlite3.SQLITE_CONSTRAINT {
				return e
```

with:

```text
sqliteErr.Code()&0xff != sqlite3.SQLITE_CONSTRAINT {
				return errDirectUncertain
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectFaultIsolation/intent-storage$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectFaultIsolation (0.33s)
    --- FAIL: TestDirectFaultIsolation/intent-storage (0.33s)
        direct_fixes_test.go:122: storage fault did not fence journal
FAIL
rastrillo-budget/v1 ran 332ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.334s
FAIL
```

#### projection-skips-quarantine

File: `internal/runner/direct_events.go`. Replaced:

```text
journalErr := p.Journal.interruptDirect(cleanup, attempt, containmentErr == nil)
```

with:

```text
journalErr := error(nil)
 _ = attempt
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectProjectionFaultQuarantines/protocol$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectProjectionFaultQuarantines (0.34s)
    --- FAIL: TestDirectProjectionFaultQuarantines/protocol (0.34s)
        direct_fixes_test.go:311: projection fault left attempt active 0 dispatched
FAIL
rastrillo-budget/v1 ran 341ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.343s
FAIL
```

#### projection-false-containment

File: `internal/runner/direct_events.go`. Replaced:

```text
p.Journal.interruptDirect(cleanup, attempt, containmentErr == nil)
```

with:

```text
p.Journal.interruptDirect(cleanup, attempt, true)
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectProjectionFaultQuarantines/containment$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectProjectionFaultQuarantines (0.43s)
    --- FAIL: TestDirectProjectionFaultQuarantines/containment (0.43s)
        direct_fixes_test.go:315: uncontained attempt admitted work
FAIL
rastrillo-budget/v1 ran 428ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.430s
FAIL
```

#### projection-quarantine-unfenced

File: `internal/runner/direct_events.go`. Replaced:

```text
if journalErr != nil {
		_ = p.Journal.fail()
```

with:

```text
if false && journalErr != nil {
		_ = p.Journal.fail()
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectProjectionFaultQuarantines/interrupt-storage$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectProjectionFaultQuarantines (0.44s)
    --- FAIL: TestDirectProjectionFaultQuarantines/interrupt-storage (0.43s)
        direct_fixes_test.go:302: failed quarantine did not fence
FAIL
rastrillo-budget/v1 ran 435ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.438s
FAIL
```

#### retirement-without-pruning

File: `internal/runner/direct_recovery.go`. Replaced:

```text
DELETE FROM direct_frames WHERE pending=1
```

with:

```text
UPDATE direct_frames SET pending=0 WHERE pending=1
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalPrunesFrames$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalPrunesFrames (1.09s)
    direct_fixes_test.go:262: retired frames not pruned 1
FAIL
rastrillo-budget/v1 ran 1.086s
FAIL	amadan.net/oficina/equipo/internal/runner	1.088s
FAIL
```

#### retirement-touches-archives

File: `internal/runner/direct_recovery.go`. Replaced:

```text
DELETE FROM direct_frames WHERE pending=1 AND EXISTS
```

with:

```text
DELETE FROM direct_frames WHERE EXISTS
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalPrunesFrames$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalPrunesFrames (1.21s)
    direct_fixes_test.go:269: ACK touched archived frames 200
FAIL
rastrillo-budget/v1 ran 1.209s
FAIL	amadan.net/oficina/equipo/internal/runner	1.211s
FAIL
```

#### migration-keeps-archives

File: `internal/runner/journal.go`. Replaced:

```text
DELETE FROM direct_frames WHERE pending=0;
```

with:

```text
SELECT 1;
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalPrunesFrames$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalPrunesFrames (0.93s)
    direct_fixes_test.go:247: upgrade kept retired frames 200
    direct_fixes_test.go:262: retired frames not pruned 200
    direct_fixes_test.go:265: constraint failed: UNIQUE constraint failed: direct_frames.stream, direct_frames.sequence (1555)
FAIL
rastrillo-budget/v1 ran 932ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.935s
FAIL
```

#### missing-pending-frame-index

File: `internal/runner/journal.go`. Replaced:

```text
CREATE INDEX IF NOT EXISTS direct_frames_pending ON direct_frames(pending);
```

with:

```text
SELECT 1;
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalPrunesFrames$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalPrunesFrames (1.08s)
    direct_fixes_test.go:252: missing pending index direct_frames
FAIL
rastrillo-budget/v1 ran 1.078s
FAIL	amadan.net/oficina/equipo/internal/runner	1.080s
FAIL
```

#### missing-pending-event-index

File: `internal/runner/journal.go`. Replaced:

```text
CREATE INDEX IF NOT EXISTS direct_events_projected ON direct_events(projected);
```

with:

```text
SELECT 1;
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalPrunesFrames$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalPrunesFrames (1.12s)
    direct_fixes_test.go:252: missing pending index direct_events
FAIL
rastrillo-budget/v1 ran 1.116s
FAIL	amadan.net/oficina/equipo/internal/runner	1.118s
FAIL
```

#### production-rejects-completion

File: `internal/equipo/runner_report_validation.go`. Replaced:

```text
 && event.Kind != "turn.completed"
```

with:

```text
(removed)
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK/completed-known$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.44s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-known (1.43s)
        runner_events_test.go:543: One or more values are invalid. Check the form and try again.
FAIL
rastrillo-budget/v1 ran 1.435s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.481s
FAIL
```

#### production-failure-as-success

File: `internal/equipo/runner_report_validation.go`. Replaced:

```text
if event.Kind == "turn_failed" || event.Kind == "turn.failed" {
```

with:

```text
if event.Kind == "turn_failed" {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK/failed-unknown$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.51s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/failed-unknown (1.51s)
        runner_events_test.go:566: receipt changed outcome or usage certainty: &{ID:turn Outcome:success Usage:<nil> Provider:claude Model:sonnet Effort: Detail: Fields:map[]}
FAIL
rastrillo-budget/v1 ran 1.514s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.563s
FAIL
```

#### production-loses-accounting

File: `internal/equipo/runner_report_validation.go`. Replaced:

```text
usage = settled.Usage
```

with:

```text
usage = nil
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK/completed-known$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.51s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-known (1.51s)
        runner_events_test.go:554: direct receipt lost or duplicated: [{ID:1 Account:YUQJIHDMAWHCXCNG7U2CAEKG73 Job:1 Step:1 Attempt:1 Action:1 Reserved:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} Settled:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} State:settled ReceiptID: SettledBy:unknown CreatedAt:2026-11-03 15:36:41.192374217 +0000 UTC SettledAt:2026-11-03 15:36:41.192374217 +0000 UTC}]
FAIL
rastrillo-budget/v1 ran 1.507s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.555s
FAIL
```

#### production-invents-usage

File: `internal/equipo/runner_report_validation.go`. Replaced:

```text
usage = settled.Usage
```

with:

```text
usage = settled.Usage
 if usage==nil { usage=&team.Usage{} }
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK/completed-unknown$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (1.41s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-unknown (1.41s)
        runner_events_test.go:554: direct receipt lost or duplicated: [{ID:1 Account:RZUBZSAPYRLJUIVINUIXEKBTVG Job:1 Step:1 Attempt:1 Action:1 Reserved:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:32000 OutputTokens:4000 CostMicros:0} Settled:{CachedInputTokens:0 CostUnavailable:true Calls:1 InputTokens:0 OutputTokens:0 CostMicros:0} State:settled ReceiptID:turn SettledBy:adapter:claude CreatedAt:2026-11-03 15:36:44.316850558 +0000 UTC SettledAt:2026-11-03 15:36:44.316850558 +0000 UTC}]
FAIL
rastrillo-budget/v1 ran 1.409s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.459s
FAIL
```

#### production-ignores-bad-usage

File: `internal/equipo/runner_report_validation.go`. Replaced:

```text
if json.Unmarshal(event.Payload, &settled) != nil {
```

with:

```text
if json.Unmarshal(event.Payload, &settled) != nil && false {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCompletionServerCommitBeforeACK/completed-known$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCompletionServerCommitBeforeACK (0.94s)
    --- FAIL: TestDirectCompletionServerCommitBeforeACK/completed-known (0.94s)
        runner_events_test.go:519: foreign completion accepted usage
FAIL
rastrillo-budget/v1 ran 940ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.990s
FAIL
```

#### unsynchronized-failure-publication

File: `internal/runner/capture.go`. Replaced:

```text
failureMu.Lock()
		done <- failure
		failureMu.Unlock()
```

with:

```text
done <- failure
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectCaptureFailurePublication$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectCaptureFailurePublication (0.38s)
    direct_fixes_test.go:224: Done published while failure cleanup still writes its result
FAIL
rastrillo-budget/v1 ran 383ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.386s
FAIL
```

#### terminal-without-dispatch

File: `internal/runner/direct_events.go`. Replaced:

```text
&& (state == "intent" || state == "completed")
```

with:

```text
&& (state == "completed")
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectTerminalTransition/intent$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectTerminalTransition (0.36s)
    --- FAIL: TestDirectTerminalTransition/intent (0.36s)
        direct_fixes_test.go:164: accepted terminal observation for intent
FAIL
rastrillo-budget/v1 ran 363ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.366s
FAIL
```

#### second-terminal-accepted

File: `internal/runner/direct_events.go`. Replaced:

```text
&& (state == "intent" || state == "completed")
```

with:

```text
&& (state == "intent")
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectTerminalTransition/completed$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectTerminalTransition (0.48s)
    --- FAIL: TestDirectTerminalTransition/completed (0.48s)
        direct_fixes_test.go:164: accepted terminal observation for completed
FAIL
rastrillo-budget/v1 ran 478ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.480s
FAIL
```

#### late-terminal-overwrites-quarantine

File: `internal/runner/direct_events.go`. Replaced:

```text
&& state == "dispatched" {
```

with:

```text
{
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectTerminalTransition/waiting_for_person$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectTerminalTransition (0.48s)
    --- FAIL: TestDirectTerminalTransition/waiting_for_person (0.48s)
        direct_fixes_test.go:170: terminal event changed waiting_for_person to completed or replaced usage
FAIL
rastrillo-budget/v1 ran 477ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.480s
FAIL
```

#### usage-before-dispatch

File: `internal/runner/direct_events.go`. Replaced:

```text
if state == "dispatched" {
```

with:

```text
if state != "waiting_for_person" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectUsageBeforeDispatch$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectUsageBeforeDispatch (0.47s)
    direct_fixes_test.go:334: undispatched usage became settled accounting &{0 true 1 28254 142 0}
FAIL
rastrillo-budget/v1 ran 472ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.475s
FAIL
```

#### startup-retirement

File: `internal/runner/direct_recovery.go`. Replaced:

```text
 AND (recovered=1 OR EXISTS(SELECT 1 FROM direct_turns t WHERE t.attempt=a.attempt))
```

with:

```text
(removed)
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectJournalRetainsUndecodedStartup$' -count=1
```

Exit 1, compiled behavioral failure, restored:

```text
--- FAIL: TestDirectJournalRetainsUndecodedStartup (0.51s)
    direct_fixes_test.go:347: startup frame retired before consumption or recovery
FAIL
rastrillo-budget/v1 ran 508ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.510s
FAIL
```

### User-facing strings

No new user-facing strings, error codes or copy.go entries. No pending copy entries are needed. Test assertion messages and SQL index/schema names are technical test/storage metadata. No README prose changed. No copy-review skill or server was invoked.

### Concerns and handback

No unresolved findings from this round. The original Task 7 runtime-composition and live-certification boundaries still apply; this fix does not cut over runtime composition or prompt a provider. Full CI and live gates were not run, as instructed. The targeted covering command and the single race command passed, and all 28 mutations compiled and failed as expected. Formatting and git diff --check passed.

Work stayed on plan-2b in the authorized checkout. No agents, provider sessions, credentials, sign-ins, enrolments, model prompts, servers, deployments, pushes, merges, sudo commands or .claude/HANDOFF.md were created. Default Go caches were retained. All test invocations were awaited. Session-owned evidence scratch is removed after the report and commit are saved; no session-started process needs to remain running.

## Task 8: Direct provider tools, permissions and questions

Status: DONE_WITH_CONCERNS.
Commit subject: `feat: relay direct provider tools and fenced answers`.
Branch: `plan-2b`. Work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What was built

`OpenToolProxy(context.Context, ToolBinding)` returns a per-attempt MCP endpoint, the fixed `MCP()` configuration and idempotent `Close()`. The runner keeps the authenticating broker and its random capability in memory outside the namespace. Neither credential files nor a runner bearer are given to the helper. The runner binary supports the fixed helper invocation `/opt/equipo-tool-proxy --socket /tool/equipo.sock`.

The endpoint treats every frame as hostile. It exposes only bound typed reproduce, candidate, review and ask verbs, plus Claude's permission callback when configured. Scope and provider session come from the endpoint binding. Calls repeat current authority, lease, full session identity, durable active-turn, fence, argument and journal admission checks. Approval checks also use the existing submission idempotency key; executing an approved tool repeats the broker checks. Host reads, publishing, check attestations and submitted scope fields have no endpoint operation. Existing legacy ServeTools and broker behavior remain covered by regression tests.

The socket is created through a verified private directory fd, including when the host path exceeds the Unix address limit. Containment imports only the socket inode at `/tool/equipo.sock` through a read-only fd mount. It checks owner, private modes and socket type and refuses symlinks and regular files. The parent directory and capability remain absent from the namespace. Both adapters retain `/tool/equipo.sock`, `/tool` and `/egress` in their inner deny lists. The helper binary must be a hashed read-only runtime mount.

Proxy cancellation, expired or lost leases and direct restart recovery close connections, invalidate the broker and remove the endpoint. Trusted renewal extends the live lease but cannot revive a closed proxy. A pending proxy can be created before provider Open. BindTurn selects the observed session and intended local turn before StartTurn; tool execution remains blocked until durable dispatch. Rebinding cannot replace an active turn.

Claude Permission publishes the original hook request and waits for Launcher.Respond to resolve that same MCP call. It never sends an ordinary prompt. Question answers must cover exactly the original question keys; they are merged into the original input without replacing its questions or options. Native approvals retain the original action and reject unsupported input fields, protected paths and submitted replacements. The specialist native tool lists still exclude AskUserQuestion. Only the four known, explicitly registered Equipo verbs get generated MCP allow rules; their actual calls still pass through the broker.

Codex records server requests separately from client calls, preserving numeric versus string IDs. It answers asynchronous agentMessage.questions with turn/steer and the exact provider expectedTurnId. Schema item/tool/requestUserInput gets the structured answers response. Responses cannot start a new turn. Resolved requests, completed turns, completed MCP items, ambiguous MCP calls and changed requests cannot be answered. The legacy MCP-approval question prefix is refused so a question answer cannot carry a permanent grant.

The actual pinned Codex MCP approval is mcpServer/elicitation/request. The adapter requires form mode, the privileged mcp_tool_call discriminator, an empty approval schema and metadata arguments matching a unique active item/started MCP call. The server and tool name come from that captured item. Only Equipo calls can reach the runner's automatic response, and only after broker validation. Accept replies contain an empty content object and null metadata; advertised persistent options are never returned. Other approvals go through the durable person-question path. Command/file approvals remain deny-only under the conservative policy interpretation below. No automatic reviewer is configured or launched.

DirectQuestionRelay joins provider events and scoped ask calls to the existing instance question and answer contracts. Its Current callback must revalidate the instance question revision, answerer, lease and fence. QuestionRelay journals the answer intent before delivery and now associates it with the direct attempt and turn. Replays with changed content or a different turn fail. The instance still derives actors from verified sessions and rechecks the roster in the write transaction and answer poll.

Capture has a separate AnswerWriter path for correlated replies and steering. It validates the envelope, records intent before stdin, checks the active durable turn and refuses replay, policy amendments and hidden turn/start calls. The additive local journal migration is version 4, with a direct_answer_scopes table; existing receipts and legacy outboxes are retained. interruptDirect invalidates only pending answers associated with the cancelled attempt. The regression test creates active attempts A and B, leaves both answers pending, cancels A and verifies that B remains dispatched and its answer remains pending. Restart recovery still invalidates every pending answer, as required.

The browser now offers Allow once for a current native Claude request that Question.ValidateAnswer permits. It accepts an approval without inventing answer fields, rejects unsupported grants and retains the session-derived actor and transactional authority checks. This uses one new pending copy entry.

### Interpretations and integration contract

1. Codex's brief names the approval behavior, not an MCP RPC spelling. The pinned public source and schema use mcpServer/elicitation/request, not item/mcpToolCall/requestApproval. An early synthetic test used the latter; it was replaced after checking the pinned source. The final implementation has no invented MCP approval method. Four pinned schema fixtures and their source hashes are committed. Since approval metadata does not reliably supply a tool name, the adapter correlates it with a captured live MCP item. Missing, changed or ambiguous evidence refuses automatic approval.
2. Native Codex command/file approval can grant execution outside the inner sandbox or a wider file root. No certified safe subset is established in this task's pinned evidence. Such requests are shown to a person but cannot receive accept, even from an allow answer. Deny is supported. This serves the brief's requirement that a person cannot broaden the certified outer/inner policy. Additional native approval forms require explicit certification and tests.
3. Runtime composition remains Task 9. The caller opens the proxy with the attempt authority, supplies Launch.ToolSocket, mounts the runner binary at the fixed helper path and uses the returned MCP shape when building policy. After Open establishes identity, it calls BindTurn before StartTurn, attaches the event consumer, routes requests through DirectQuestionRelay and wires the authenticated instance question callback and Current revalidation. It renews the proxy with the lease and closes it with the attempt. Permission is bound to claude.Launcher.Permission; an Ask callback can return the scoped person's answer through that MCP call. Existing ToolSubmissions/AckTool processing remains the durable delivery path; wiring must not independently ask the same question a second time.
4. The small containment extension and AnswerWriter contract are necessary to make the relay usable with the existing namespace and capture implementations. The original containment mount allowlist rejected sockets, and ordinary capture stdin intentionally rejects answer frames. These are separate narrow paths, not general mount or RPC escape hatches. The browser extension is also necessary: the prior form rejected every allow answer without text fields.
5. Pending capabilities can be bound before prompt dispatch, but no operation can run until the captured admission is dispatched. This avoids a race where a provider makes its first tool call before StartTurn returns.
6. The dispatch rules override generic delegation, copy-review and handoff workflows. No agents or model-based writing tools were used, no review server was started and no .claude/HANDOFF.md was created.

Pinned primary sources used to settle wire details:

- [https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/app-server-protocol/schema/typescript/ServerRequest.ts](https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/app-server-protocol/schema/typescript/ServerRequest.ts)
- [https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/core/src/mcp_tool_call.rs](https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/core/src/mcp_tool_call.rs)
- [https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/protocol/src/mcp_approval_meta.rs](https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/protocol/src/mcp_approval_meta.rs)
- [https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/features/src/lib.rs](https://raw.githubusercontent.com/openai/codex/rust-v0.165.0/codex-rs/features/src/lib.rs)

### Files

- `cmd/equipo-runner/main.go`
- `internal/equipo/copy.go`
- `internal/equipo/question_handlers.go`
- `internal/equipo/task_views.go`
- `internal/equipo/templates/question.html`
- `internal/equipotest/questions_test.go`
- `internal/runner/containment/mounts.go`
- `internal/runner/direct_recovery.go`
- `internal/runner/direct_recovery_test.go`
- `internal/runner/journal.go`
- `internal/runner/journal_test.go`
- `internal/runner/provider/claude/launcher.go`
- `internal/runner/provider/codex/events.go`
- `internal/runner/provider/codex/launcher.go`
- `internal/runner/provider/codex/launcher_test.go`
- `internal/runner/provider/codex/rpc.go`
- `internal/runner/provider/types.go`
- `internal/runner/questions.go`
- `internal/runner/tool_journal.go`
- `internal/runner/tool_socket.go`
- `internal/runner/tools.go`
- `internal/runnerproto/questions.go`
- `internal/runner/containment/tool.go`
- `internal/runner/containment/tool_test.go`
- `internal/runner/direct_answer_capture.go`
- `internal/runner/direct_questions.go`
- `internal/runner/direct_tools_test.go`
- `internal/runner/provider/answers.go`
- `internal/runner/provider/claude/answers.go`
- `internal/runner/provider/claude/answers_test.go`
- `internal/runner/provider/codex/answers.go`
- `internal/runner/provider/codex/answers_test.go`
- `internal/runner/provider/codex/testdata/answers-provenance.json`
- `internal/runner/provider/codex/testdata/schema-McpServerElicitationRequestParams.json`
- `internal/runner/provider/codex/testdata/schema-McpServerElicitationRequestResponse.json`
- `internal/runner/provider/codex/testdata/schema-ToolRequestUserInputParams.json`
- `internal/runner/provider/codex/testdata/schema-ToolRequestUserInputResponse.json`
- `internal/runner/tool_proxy.go`

The controller section and this ignored task report contain the evidence. No README, application database migration or vendored asset changed.

### RED evidence

Commands ran from the authorized checkout with the supplied on-disk TMPDIR, CGO_ENABLED=0 and default Go caches. Exit status was 1 for these red commands. Initial API reds are recorded separately from behavioral guard evidence. The first combined run exposed missing APIs; its unbounded synthetic Codex waiter was terminated, then corrected to use a bounded wait. The following isolated Codex red compiled and failed because Respond returned codex_not_ready. No terminated or noncompiling run is counted as mutation proof.

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/runner/provider/... -run 'TestDirectTool|TestClaudePermission|TestCodexApproval|TestCodexAsyncQuestion|TestDirectStaleAnswer|TestToolProxy' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner/provider/claude [amadan.net/oficina/equipo/internal/runner/provider/claude.test]
internal/runner/provider/claude/answers_test.go:17:21: f.l.Permission undefined (type *Launcher has no field or method Permission)
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:26:32: unknown field Session in struct literal of type ToolBinding
internal/runner/direct_tools_test.go:26:43: unknown field TurnID in struct literal of type ToolBinding
internal/runner/direct_tools_test.go:30:7: undefined: OpenToolProxy
internal/runner/direct_tools_test.go:43: b.Session undefined (type ToolBinding has no field or method Session)
internal/runner/direct_tools_test.go:48:31: undefined: OpenToolProxy
internal/runner/direct_tools_test.go:60:7: undefined: openToolProxy
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run 'TestCodexApproval|TestCodexAsyncQuestion' -count=1
```

```text
--- FAIL: TestCodexApprovalResponse (0.42s)
    --- FAIL: TestCodexApprovalResponse/item/commandExecution/requestApproval (0.14s)
        answers_test.go:29: codex_not_ready
    --- FAIL: TestCodexApprovalResponse/item/fileChange/requestApproval (0.14s)
        answers_test.go:29: codex_not_ready
    --- FAIL: TestCodexApprovalResponse/item/mcpToolCall/requestApproval (0.13s)
        answers_test.go:29: codex_not_ready
--- FAIL: TestCodexAsyncQuestionAnswer (0.26s)
    --- FAIL: TestCodexAsyncQuestionAnswer/async (0.13s)
```

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/provider/codex ./internal/runner/containment -run 'TestDirectToolAnswerCapture|TestCodexApprovalResponseRouting|TestCodexApprovalResponseFixedMCPPolicy|TestDirectToolMount' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner/containment [amadan.net/oficina/equipo/internal/runner/containment.test]
internal/runner/containment/tool_test.go:6:38: p.bindTool undefined (type *mounts has no field or method bindTool)
internal/runner/containment/tool_test.go:8: q.bindTool undefined (type *mounts has no field or method bindTool)
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:238:16: input.WriteAnswer undefined (type *captureInput has no field or method WriteAnswer)
internal/runner/direct_tools_test.go:239:38: input.WriteAnswer undefined (type *captureInput has no field or method WriteAnswer)
internal/runner/direct_tools_test.go:240:178: input.WriteAnswer undefined (type *captureInput has no field or method WriteAnswer)
internal/runner/direct_tools_test.go:241:73: input.WriteAnswer undefined (type *captureInput has no field or method WriteAnswer)
internal/runner/direct_tools_test.go:249:9: undefined: DirectQuestionRelay
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestToolProxyLifecycle|TestCodexApprovalResponseChangedOriginal' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:265:152: p.BindTurn undefined (type *ToolProxy has no field or method BindTurn)
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/provider/claude -run 'TestClaudePermissionResponseNativePolicy|TestDirectStaleAnswerTurnAssociation' -count=1
```

```text
--- FAIL: TestDirectStaleAnswerTurnAssociation (0.32s)
    direct_tools_test.go:298: previous turn answer reused in replacement turn
FAIL
rastrillo-budget/v1 ran 322ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.325s
--- FAIL: TestClaudePermissionResponseNativePolicy (0.10s)
    answers_test.go:77: native policy widened {"file_path":"/workspace/a","content":"hi","policyAmendment":true}
FAIL
rastrillo-budget/v1 ran 102ms
```

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/provider/codex -run 'TestCodexApprovalResponse' -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:305:5: ev.ToolCall undefined (type provider.Event has no field or method ToolCall)
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
--- FAIL: TestCodexApprovalResponse (0.42s)
    --- FAIL: TestCodexApprovalResponse/mcpServer/elicitation/request (0.14s)
        answers_test.go:58: provider_policy_rejected
--- FAIL: TestCodexApprovalResponseValidatedMCP (0.14s)
    answers_test.go:141: provider_policy_rejected
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectToolScopedAskAnswer -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:312:4: b.Ask undefined (type ToolBinding has no field or method Ask)
internal/runner/direct_tools_test.go:314:15: relay.Ask undefined (type DirectQuestionRelay has no field or method Ask)
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestToolProxyBindBeforeDispatch -count=1
```

```text
--- FAIL: TestToolProxyBindBeforeDispatch (0.09s)
    direct_tools_test.go:439: runner.invalid
FAIL
rastrillo-budget/v1 ran 86ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.088s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestCodexApprovalResponseIdempotency|TestToolProxyBindingIdentity' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseIdempotency (0.09s)
    direct_tools_test.go:456: changed replay arguments approved
--- FAIL: TestToolProxyBindingIdentity (0.34s)
    --- FAIL: TestToolProxyBindingIdentity/account (0.09s)
        direct_tools_test.go:462: mismatched bound identity account
    --- FAIL: TestToolProxyBindingIdentity/model (0.09s)
        direct_tools_test.go:462: mismatched bound identity model
    --- FAIL: TestToolProxyBindingIdentity/provider (0.09s)
        direct_tools_test.go:462: mismatched bound identity provider
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run TestCodexApprovalResponseNoQuestionFallback -count=1
```

```text
--- FAIL: TestCodexApprovalResponseNoQuestionFallback (0.24s)
    answers_test.go:247: permission amendment through question fallback
FAIL
rastrillo-budget/v1 ran 240ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.242s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestToolProxyRenewedLease -count=1
```

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_tools_test.go:501:18: p.RenewLease undefined (type *ToolProxy has no field or method RenewLease)
internal/runner/direct_tools_test.go:504:32: p.RenewLease undefined (type *ToolProxy has no field or method RenewLease)
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run TestClaudePermissionResponseScopedMCPPolicy -count=1
```

```text
--- FAIL: TestClaudePermissionResponseScopedMCPPolicy (0.17s)
    answers_test.go:99: scoped MCP would fall through native permission hook {"disableAllHooks":true,"enabledPlugins":{},"permissions":{"deny":["Read(//alias/login)","Read(//alias/login/**)","Write(//alias/login)","Write(//alias/login/**)","Edit(//alias/login)","Edit(//alias/login/**)","Glob(//alias/login)","Glob(//alias/login/**)","Grep(//alias/lo ... [line shortened]
FAIL
rastrillo-budget/v1 ran 166ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.168s
FAIL
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestClaudePermissionResponseBrowser -count=1
```

```text
2026/11/03 16:23:00 INFO Apply migrations. applied=[] skipped=22 adopted=false
--- FAIL: TestClaudePermissionResponseBrowser (4.10s)
    questions_test.go:280: native permission has no approval control 200
FAIL
rastrillo-budget/v1 ran 4.103s
FAIL	amadan.net/oficina/equipo/internal/equipotest	4.223s
FAIL
```

### GREEN and verification

All commands below exited 0. The final required command includes the proxy, both answer protocols, browser approval and stale-answer tests. Focused follow-ups cover the legacy broker, policy rendering, journal upgrade and socket mount. No whole-suite test or make ci was run.

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/runner/provider/... -run 'TestDirectTool|TestClaudePermission|TestCodexApproval|TestCodexAsyncQuestion|TestDirectStaleAnswer|TestToolProxy' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	8.912s
ok  	amadan.net/oficina/equipo/internal/equipotest	6.168s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.898s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	5.201s
```

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/containment ./cmd/equipo-runner -run 'TestQuestion|TestToolVerb|TestAgentToolScope|TestToolSocket|TestDirectToolMount|TestDirectJournalUpgrade|TestRunnerJournalDurabilityConfiguration|TestCodexAppServerPolicy|TestCodexNoLegacyPolicyOverride|TestCodexUnexpectedPolicyChange|TestCodexThreadConfigPinned|TestCodexPolicyShape|TestClaudeLaunchPolicy|TestClaudeInitPolicy|TestCodexRPCInterleaving' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	4.956s
ok  	amadan.net/oficina/equipo/internal/equipotest	21.322s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	3.999s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	1.704s
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.006s
ok  	amadan.net/oficina/equipo/cmd/equipo-runner	0.050s
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run 'TestClaudePermission|TestClaudeLaunchPolicy|TestClaudeInitPolicy|TestClaudeToolHash|TestClaudePolicyRefusals' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	9.409s
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run 'TestClaudePermissionResponseBrowser|TestQuestionBrowserAuthority|TestQuestionStaleAnswer|TestDirectStaleAnswer' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	13.357s
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run 'TestClaudePermissionResponse' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	5.823s
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectStaleAnswerCancelIsAttemptScoped -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.385s
```

```sh
CGO_ENABLED=0 go vet ./internal/equipo ./internal/runner ./internal/runner/provider/... ./internal/runner/containment ./internal/runnerproto ./cmd/equipo-runner
```

```text
PASS (no diagnostic output)
```

Formatting and `git diff --check` passed. The real helper binary is built with CGO_ENABLED=0 inside TestDirectToolScope and driven by a fake provider. No live provider was invoked.

### Compiling guard mutations

46 mutations compiled and caused the named test to fail. Each mutation was applied alone and restored in a finally block before the next test. The final green and vet commands ran after restoration. The changes below are the exact source substitutions; multi-substitution entries remove one logical guard enforced at more than one storage step.

#### 1. claude-ordinary-prompt

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: p.reply <- result
AFTER: raw,_:=userEnvelope(session.ID,"permission");_,_=s.capture.Input.Write(raw)
 p.reply <- result
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponse$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponse (0.22s)
    answers_test.go:61: permission reply sent an ordinary prompt
FAIL
rastrillo-budget/v1 ran 221ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.223s
FAIL
```

#### 2. claude-original-input

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: return json.Marshal(map[string]any{"behavior": "allow", "updatedInput": input})
AFTER: delete(input,"questions");return json.Marshal(map[string]any{"behavior": "allow", "updatedInput": input})
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponse$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponse (0.22s)
    answers_test.go:55: {"behavior":"allow","updatedInput":{"answers":{"Which?":"blue"}}}
FAIL
rastrillo-budget/v1 ran 222ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.224s
FAIL
```

#### 3. question-answer-allowlist

File: `internal/runner/provider/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: d.DisallowUnknownFields()
AFTER: // mutation: allow unknown answer fields
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponse$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponse (0.23s)
    answers_test.go:37: widened answer accepted {"answers":{"Which?":"blue"},"command":"evil"}
FAIL
rastrillo-budget/v1 ran 233ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.235s
FAIL
```

#### 4. claude-native-fields

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if !slices.Contains(fields[q.Tool], key) {
AFTER: if false && !slices.Contains(fields[q.Tool], key) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponseNativePolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNativePolicy (0.05s)
    answers_test.go:84: native policy widened {"file_path":"/workspace/a","content":"hi","policyAmendment":true}
FAIL
rastrillo-budget/v1 ran 54ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.055s
FAIL
```

#### 5. claude-protected-path

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if path == deny || strings.HasPrefix(path, deny+"/") {
AFTER: if false && (path == deny || strings.HasPrefix(path, deny+"/")) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponseNativePolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNativePolicy (0.06s)
    answers_test.go:84: native policy widened {"file_path":"/tool/equipo.sock","content":"hi"}
FAIL
rastrillo-budget/v1 ran 57ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.059s
FAIL
```

#### 6. claude-input-replacement

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if len(a.Input) != 0 || !slices.Contains
AFTER: if !slices.Contains
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponseNativePolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNativePolicy (0.05s)
    answers_test.go:88: native tool input replaced
FAIL
rastrillo-budget/v1 ran 54ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.056s
FAIL
```

#### 7. codex-expected-turn

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: "expectedTurnId": providerTurn
AFTER: "expectedTurnId": a.TurnID
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexAsyncQuestionAnswer/async$' -count=1
```

```text
--- FAIL: TestCodexAsyncQuestionAnswer (0.14s)
    --- FAIL: TestCodexAsyncQuestionAnswer/async (0.14s)
        answers_test.go:115: wrong steer: {ID:[34 101 113 117 105 112 111 58 49 34] Method:turn/steer Params:{ThreadID:thread-1 ExpectedTurnID:local-turn} Result:{Answers:map[]}}
FAIL
rastrillo-budget/v1 ran 136ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.138s
FAIL
```

#### 8. codex-policy-amendment

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if len(a.Input) != 0 {
AFTER: if len(a.Input)>0{return s.rpc.answer(ctx,session,a.TurnID,map[string]any{"id":json.RawMessage(a.RequestID),"result":a.Input})}
 if len(a.Input) != 0 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponse$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponse (0.44s)
    --- FAIL: TestCodexApprovalResponse/item/commandExecution/requestApproval (0.14s)
        answers_test.go:52: policy amendment accepted {"decision":"acceptForSession"}
    --- FAIL: TestCodexApprovalResponse/item/fileChange/requestApproval (0.15s)
        answers_test.go:52: policy amendment accepted {"decision":"acceptForSession"}
    --- FAIL: TestCodexApprovalResponse/mcpServer/elicitation/request (0.15s)
        answers_test.go:52: policy amendment accepted {"decision":"acceptForSession"}
```

#### 9. broker-fence

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || q.Fence != b.Fence
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseBroker/fence$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseBroker (0.09s)
    --- FAIL: TestCodexApprovalResponseBroker/fence (0.09s)
        direct_tools_test.go:164: invalid approval fence
FAIL
rastrillo-budget/v1 ran 92ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.097s
FAIL
```

#### 10. broker-attempt

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || q.Attempt != b.Attempt
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseBroker/attempt$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseBroker (0.07s)
    --- FAIL: TestCodexApprovalResponseBroker/attempt (0.07s)
        direct_tools_test.go:164: invalid approval attempt
FAIL
rastrillo-budget/v1 ran 73ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.076s
FAIL
```

#### 11. broker-arguments

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if err := validateToolArguments(q.Name, q.Arguments); err != nil {
AFTER: if err := validateToolArguments(q.Name, q.Arguments); false && err != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseBroker/arguments$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseBroker (0.08s)
    --- FAIL: TestCodexApprovalResponseBroker/arguments (0.08s)
        direct_tools_test.go:164: invalid approval arguments
FAIL
rastrillo-budget/v1 ran 76ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.078s
FAIL
```

#### 12. broker-execution-revalidation

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if err := b.Current(ctx); err != nil {
		return err
AFTER: if err := b.Current(ctx); false && err != nil {
		return err
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseBroker/execute-revalidate$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseBroker (0.09s)
    --- FAIL: TestCodexApprovalResponseBroker/execute-revalidate (0.09s)
        direct_tools_test.go:169: execution did not revalidate
FAIL
rastrillo-budget/v1 ran 92ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.095s
FAIL
```

#### 13. codex-correlated-arguments

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || !sameJSON(c.Item.Arguments, p.Meta.Arguments)
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseMCPCorrelation/arguments$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseMCPCorrelation (0.14s)
    --- FAIL: TestCodexApprovalResponseMCPCorrelation/arguments (0.14s)
        answers_test.go:237: uncorrelated MCP approved arguments
FAIL
rastrillo-budget/v1 ran 144ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.146s
FAIL
```

#### 14. codex-elicitation-schema

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || !sameJSON(p.RequestedSchema, []byte(`{"type":"object","properties":{}}`))
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseMCPCorrelation/schema$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseMCPCorrelation (0.15s)
    --- FAIL: TestCodexApprovalResponseMCPCorrelation/schema (0.15s)
        answers_test.go:237: uncorrelated MCP approved schema
FAIL
rastrillo-budget/v1 ran 152ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.154s
FAIL
```

#### 15. codex-ambiguous-call

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if len(ev.ToolCall) > 0 {
AFTER: if false && len(ev.ToolCall) > 0 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseMCPCorrelation/ambiguous$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseMCPCorrelation (0.14s)
    --- FAIL: TestCodexApprovalResponseMCPCorrelation/ambiguous (0.14s)
        answers_test.go:237: uncorrelated MCP approved ambiguous
FAIL
rastrillo-budget/v1 ran 144ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.146s
FAIL
```

#### 16. codex-completed-call

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if len(current.ToolCall) == 0 || !bytes.Equal(current.ToolCall, ev.ToolCall) {
AFTER: if false && (len(current.ToolCall) == 0 || !bytes.Equal(current.ToolCall, ev.ToolCall)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseMCPCorrelation/completed-item$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseMCPCorrelation (0.16s)
    --- FAIL: TestCodexApprovalResponseMCPCorrelation/completed-item (0.16s)
        answers_test.go:237: uncorrelated MCP approved completed-item
FAIL
rastrillo-budget/v1 ran 164ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.168s
FAIL
```

#### 17. codex-resolved-request

File: `internal/runner/provider/codex/launcher.go`. Exit 1; compiled; named test failed.

```text
BEFORE: delete(s.requests, string(envelope.Params.RequestID))
AFTER: // mutation: keep resolved requests
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseResolvedRequest$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseResolvedRequest (0.15s)
    answers_test.go:207: resolved request answered
FAIL
rastrillo-budget/v1 ran 147ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.150s
FAIL
```

#### 18. codex-exact-id

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: ev, ok := s.requests[a.RequestID]
AFTER: ev, ok := s.requests[strings.Trim(a.RequestID, "\"")]
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponse$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponse (0.48s)
    --- FAIL: TestCodexApprovalResponse/item/commandExecution/requestApproval (0.16s)
        answers_test.go:48: string ID answered numeric request
    --- FAIL: TestCodexApprovalResponse/item/fileChange/requestApproval (0.16s)
        answers_test.go:48: string ID answered numeric request
    --- FAIL: TestCodexApprovalResponse/mcpServer/elicitation/request (0.16s)
        answers_test.go:48: string ID answered numeric request
```

#### 19. durable-active-turn

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: func (j *Journal) currentDirectTurn(ctx context.Context, s provider.Session, turn string) error {
AFTER: func (j *Journal) currentDirectTurn(ctx context.Context, s provider.Session, turn string) error {
 return nil

```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectStaleAnswer/(cancel|restart|replaced-turn)$' -count=1
```

```text
--- FAIL: TestDirectStaleAnswer (0.31s)
    --- FAIL: TestDirectStaleAnswer/replaced-turn (0.12s)
        direct_tools_test.go:205: stale answer delivered replaced-turn
FAIL
rastrillo-budget/v1 ran 625ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.628s
FAIL
```

#### 20. cancel-is-attempt-scoped

File: `internal/runner/direct_recovery.go`. Exit 1; compiled; named test failed.

```text
BEFORE: UPDATE journal_answers SET state='invalid' WHERE state='pending' AND answer_key IN (SELECT answer_key FROM direct_answer_scopes WHERE attempt=?)", attempt
AFTER: UPDATE journal_answers SET state='invalid' WHERE state='pending'"
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectStaleAnswerCancelIsAttemptScoped$' -count=1
```

```text
--- FAIL: TestDirectStaleAnswerCancelIsAttemptScoped (0.15s)
    direct_tools_test.go:223: attempt B answer invalidated by A invalid
FAIL
rastrillo-budget/v1 ran 148ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.151s
FAIL
```

#### 21. stored-answer-turn

File: `internal/runner/questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || turn != r.TurnID
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectStaleAnswerTurnAssociation$' -count=1
```

```text
--- FAIL: TestDirectStaleAnswerTurnAssociation (0.15s)
    direct_tools_test.go:393: previous turn answer reused in replacement turn
FAIL
rastrillo-budget/v1 ran 149ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.151s
FAIL
```

#### 22. changed-answer-replay

File: `internal/runner/questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if old != hash {
AFTER: if false && old != hash {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectStaleAnswer/replayed-changed-payload$' -count=1
```

```text
--- FAIL: TestDirectStaleAnswer (0.11s)
    --- FAIL: TestDirectStaleAnswer/replayed-changed-payload (0.11s)
        direct_tools_test.go:205: stale answer delivered replayed-changed-payload
FAIL
rastrillo-budget/v1 ran 443ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.449s
FAIL
```

#### 23. capture-no-hidden-turn

File: `internal/runner/direct_answer_capture.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if v.Method == "turn/steer" {
AFTER: if v.Method=="turn/start"{return c.input.Write(raw)}
 if v.Method == "turn/steer" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectToolAnswerCapture$' -count=1
```

```text
--- FAIL: TestDirectToolAnswerCapture (0.12s)
    direct_tools_test.go:252: hidden turn or policy amendment {"id":8,"method":"turn/start","params":{}}

FAIL
rastrillo-budget/v1 ran 118ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.121s
FAIL
```

#### 24. capture-no-policy-amendment

File: `internal/runner/direct_answer_capture.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if runnerproto.DecodeLimit(bytes.NewReader(v.Result), &r, MaxFrameBytes) != nil {
			return 0, runnerproto.ErrInvalid
AFTER: if runnerproto.DecodeLimit(bytes.NewReader(v.Result), &r, MaxFrameBytes) != nil {
			return c.input.Write(raw)
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectToolAnswerCapture$' -count=1
```

```text
--- FAIL: TestDirectToolAnswerCapture (0.10s)
    direct_tools_test.go:252: hidden turn or policy amendment {"id":8,"result":{"decision":{"acceptWithExecpolicyAmendment":{}}}}

FAIL
rastrillo-budget/v1 ran 104ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.107s
FAIL
```

#### 25. capture-no-replay

File: `internal/runner/direct_answer_capture.go`. Exit 1; compiled; named test failed.

```text
BEFORE: INSERT INTO journal_answers VALUES(?,?,'pending')
AFTER: INSERT OR IGNORE INTO journal_answers VALUES(?,?,'pending')
```

```text
BEFORE: INSERT INTO direct_answer_scopes VALUES(?,?,?)
AFTER: INSERT OR IGNORE INTO direct_answer_scopes VALUES(?,?,?)
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectToolAnswerCapture$' -count=1
```

```text
--- FAIL: TestDirectToolAnswerCapture (0.11s)
    direct_tools_test.go:248: answer replay transmitted
FAIL
rastrillo-budget/v1 ran 108ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.110s
FAIL
```

#### 26. proxy-unbound-endpoint

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: pending: b.Session.AttemptKey == ""
AFTER: pending: false
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyLifecycle/pending$' -count=1
```

```text
--- FAIL: TestToolProxyLifecycle (0.09s)
    --- FAIL: TestToolProxyLifecycle/pending (0.09s)
        direct_tools_test.go:322: unbound attempt accepted
FAIL
rastrillo-budget/v1 ran 89ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.092s
FAIL
```

#### 27. proxy-restart

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if recovered != 0 {
AFTER: if false && recovered != 0 {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyLifecycle/restart$' -count=1
```

```text
--- FAIL: TestToolProxyLifecycle (2.09s)
    --- FAIL: TestToolProxyLifecycle/restart (2.09s)
        direct_tools_test.go:344: invalid endpoint remained live restart
FAIL
rastrillo-budget/v1 ran 2.092s
FAIL	amadan.net/oficina/equipo/internal/runner	2.097s
FAIL
```

#### 28. proxy-secret-config

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: return json.RawMessage(directMCP)
AFTER: raw,_:=json.Marshal(p.broker.capability);return raw
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyCannotExposeSecrets$' -count=1
```

```text
--- FAIL: TestToolProxyCannotExposeSecrets (0.08s)
    direct_tools_test.go:101: {"copy":{"accepted":"accepted","rejected":"rejected","ask":"","candidate":"","review":"","reproduction":""},"secret":"<redacted>","instance_id":"instance","task_id":"task","attempt":1,"fence":7,"tools":["ask_person","submit_candidate","submit_review","submit_reproduction"],"exp ... [line shortened]
FAIL
rastrillo-budget/v1 ran 81ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.087s
FAIL
```

#### 29. proxy-long-socket

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: Name: fmt.Sprintf("/proc/self/fd/%d/equipo.sock", fd.Fd())
AFTER: Name: path
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyLongPath$' -count=1
```

```text
--- FAIL: TestToolProxyLongPath (0.09s)
    direct_tools_test.go:124: listen unix /home/paulca/t/e2b/TestToolProxyLongPath2611924194/002/longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong/tool-1654921756/equipo.sock: bind: invalid argument
FAIL
rastrillo-budget/v1 ran 95ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.097s
FAIL
```

#### 30. mount-private-mode

File: `internal/runner/containment/tool.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || stat.Mode&0777 != 0600
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestDirectToolMount/public$' -count=1
```

```text
--- FAIL: TestDirectToolMount (0.00s)
    --- FAIL: TestDirectToolMount/public (0.00s)
        tool_test.go:56: unsafe socket mount public
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.004s
FAIL
```

#### 31. mount-socket-type

File: `internal/runner/containment/tool.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || stat.Mode&unix.S_IFMT != unix.S_IFSOCK
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestDirectToolMount/regular$' -count=1
```

```text
--- FAIL: TestDirectToolMount (0.00s)
    --- FAIL: TestDirectToolMount/regular (0.00s)
        tool_test.go:59: unsafe socket mount regular
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.016s
FAIL
```

#### 32. mount-symlink

File: `internal/runner/containment/tool.go`. Exit 1; compiled; named test failed.

```text
BEFORE: unix.O_PATH|unix.O_NOFOLLOW|unix.O_CLOEXEC
AFTER: unix.O_PATH|unix.O_CLOEXEC
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestDirectToolMount/symlink$' -count=1
```

```text
--- FAIL: TestDirectToolMount (0.00s)
    --- FAIL: TestDirectToolMount/symlink (0.00s)
        tool_test.go:59: unsafe socket mount symlink
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.009s
FAIL
```

#### 33. proxy-lease-loss-fixed

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
				err := b.Current(ctx)
AFTER:
				var err error
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyLifecycle/lease$' -count=1
```

```text
--- FAIL: TestToolProxyLifecycle (2.12s)
    --- FAIL: TestToolProxyLifecycle/lease (2.12s)
        direct_tools_test.go:344: invalid endpoint remained live lease
FAIL
rastrillo-budget/v1 ran 2.119s
FAIL	amadan.net/oficina/equipo/internal/runner	2.128s
FAIL
```

#### 34. broker-replayed-arguments

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if err := b.Journal.validateToolReplay(ctx, q); err != nil {
AFTER: if err := b.Journal.validateToolReplay(ctx, q); false && err != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseIdempotency$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseIdempotency (0.13s)
    direct_tools_test.go:464: changed replay arguments approved
FAIL
rastrillo-budget/v1 ran 129ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.134s
FAIL
```

#### 35. bound-launch-identity

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || s.Validate(launch) != nil
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyBindingIdentity/(account|model|provider)$' -count=1
```

```text
--- FAIL: TestToolProxyBindingIdentity (0.31s)
    --- FAIL: TestToolProxyBindingIdentity/account (0.10s)
        direct_tools_test.go:486: mismatched bound identity account
    --- FAIL: TestToolProxyBindingIdentity/model (0.09s)
        direct_tools_test.go:486: mismatched bound identity model
    --- FAIL: TestToolProxyBindingIdentity/provider (0.11s)
        direct_tools_test.go:486: mismatched bound identity provider
```

#### 36. bound-agent-session

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if b.Agent.AgentID != b.Session.AttemptKey || b.Agent.ProviderSessionID != b.Session.ID || b.Agent.Provider != b.Session.Provider {
AFTER: if false && (b.Agent.AgentID != b.Session.AttemptKey || b.Agent.ProviderSessionID != b.Session.ID || b.Agent.Provider != b.Session.Provider) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyBindingIdentity/session$' -count=1
```

```text
--- FAIL: TestToolProxyBindingIdentity (0.11s)
    --- FAIL: TestToolProxyBindingIdentity/session (0.11s)
        direct_tools_test.go:486: mismatched bound identity session
FAIL
rastrillo-budget/v1 ran 106ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.114s
FAIL
```

#### 37. question-permission-fallback

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || strings.HasPrefix(k, "mcp_tool_call_approval_")
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/codex -run '^TestCodexApprovalResponseNoQuestionFallback$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseNoQuestionFallback (0.16s)
    answers_test.go:250: permission amendment through question fallback
FAIL
rastrillo-budget/v1 ran 158ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.168s
FAIL
```

#### 38. broker-tool-allowlist

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:  || !slices.Contains(b.Tools, q.Name)
AFTER:
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseToolAllowlist$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseToolAllowlist (0.16s)
    direct_tools_test.go:495: valid but unscoped tool approved
FAIL
rastrillo-budget/v1 ran 157ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.165s
FAIL
```

#### 39. original-approval-event

File: `internal/runner/direct_questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if original.SessionID != ev.SessionID || original.TurnID != ev.TurnID || original.RequestID != ev.RequestID || (!bytes.Equal(original.Payload, ev.Payload) || !bytes.Equal(original.ToolCall, ev.ToolCall)) {
AFTER: if false && (original.SessionID != ev.SessionID || original.TurnID != ev.TurnID || original.RequestID != ev.RequestID || (!bytes.Equal(original.Payload, ev.Payload) || !bytes.Equal(original.ToolCall, ev.ToolCall))) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestCodexApprovalResponseChangedOriginal$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseChangedOriginal (0.11s)
    direct_tools_test.go:362: changed arguments approved
FAIL
rastrillo-budget/v1 ran 112ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.120s
FAIL
```

#### 40. renewed-proxy-lifetime

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE: ctx, cancel := context.WithCancel(ctx)
AFTER: ctx, cancel := context.WithDeadline(ctx, b.LeaseDeadline)
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestToolProxyRenewedLease$' -count=1
```

```text
--- FAIL: TestToolProxyRenewedLease (0.29s)
    direct_tools_test.go:512: runner.invalid
FAIL
rastrillo-budget/v1 ran 286ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.299s
FAIL
```

#### 41. claude-scoped-mcp-allow

File: `internal/runner/provider/claude/launcher.go`. Exit 1; compiled; named test failed.

```text
BEFORE: "allow": append([]string{}, in.Tools...)
AFTER: "allow": []string{}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponseScopedMCPPolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseScopedMCPPolicy (0.12s)
    answers_test.go:106: scoped MCP would fall through native permission hook {"disableAllHooks":true,"enabledPlugins":{},"permissions":{"allow":[],"deny":["Read(//alias/login)","Read(//alias/login/**)","Write(//alias/login)","Write(//alias/login/**)","Edit(//alias/login)","Edit(//alias/login/**)","Glob(//alias/login)","Glob(//alias/login/**)","Gre ... [line shortened]
FAIL
rastrillo-budget/v1 ran 116ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.118s
FAIL
```

#### 42. claude-fixed-mcp-verbs

File: `internal/runner/provider/claude/launcher.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if !slices.Contains([]string{"mcp__equipo__ask_person", "mcp__equipo__submit_candidate", "mcp__equipo__submit_review", "mcp__equipo__submit_reproduction"}, tool) {
AFTER: if false && !slices.Contains([]string{"mcp__equipo__ask_person", "mcp__equipo__submit_candidate", "mcp__equipo__submit_review", "mcp__equipo__submit_reproduction"}, tool) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaudePermissionResponseScopedMCPPolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseScopedMCPPolicy (0.16s)
    answers_test.go:110: unscoped MCP permission
FAIL
rastrillo-budget/v1 ran 164ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.166s
FAIL
```

#### 43. browser-native-no-input

File: `internal/equipo/question_handlers.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if len(fields) == 0 && !canAllow {
AFTER: _ = canAllow; if len(fields) == 0 {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestClaudePermissionResponseBrowser$' -count=1
```

```text
2026/11/03 16:24:24 INFO Apply migrations. applied=[] skipped=22 adopted=false
--- FAIL: TestClaudePermissionResponseBrowser (4.19s)
    questions_test.go:302: unchanged native permission not accepted 422
FAIL
rastrillo-budget/v1 ran 4.189s
FAIL	amadan.net/oficina/equipo/internal/equipotest	4.238s
FAIL
```

#### 44. native-direct-shape

File: `internal/runnerproto/questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if raw.Direct && raw.Provider == "claude" && slices.Contains
AFTER: if raw.Provider == "claude" && slices.Contains
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestClaudePermissionResponseNoEscalation$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNoEscalation (1.87s)
    questions_test.go:327: unsafe permission control {"id":"native","kind":"tool","direct":false,"provider":"claude","name":"Write","input":{}}
FAIL
rastrillo-budget/v1 ran 1.872s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.925s
FAIL
```

#### 45. native-fixed-verbs

File: `internal/runnerproto/questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE: if raw.Direct && raw.Provider == "claude" && slices.Contains([]string{"Read", "Write", "Edit", "Glob", "Grep", "Bash"}, raw.Name) {
AFTER: if raw.Direct && raw.Provider == "claude" {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestClaudePermissionResponseNoEscalation$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNoEscalation (0.93s)
    questions_test.go:327: unsafe permission control {"id":"native","kind":"tool","direct":true,"provider":"claude","name":"publish","input":{}}
FAIL
rastrillo-budget/v1 ran 929ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.977s
FAIL
```

#### 46. browser-only-valid-native-fixed

File: `internal/equipo/task_views.go`. Exit 1; compiled; named test failed.

```text
BEFORE: canAllow = can && value.ValidateAnswer(runnerproto.QuestionAnswer{Behavior: "allow"}) == nil
AFTER: _ = value;_ = runnerproto.QuestionAnswer{};canAllow = can
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestClaudePermissionResponseNoEscalation$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNoEscalation (0.59s)
    questions_test.go:327: unsafe permission control {"id":"native","kind":"tool","direct":true,"provider":"claude","name":"publish","input":{}}
FAIL
rastrillo-budget/v1 ran 594ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.641s
FAIL
```

### Discarded mutation attempts

These four attempts are not counted as proof. The two mount tests originally used nonprivate parent directories, so the unchanged parent guard masked the socket-type and symlink mutations. The fixtures were corrected to reach those guards, and the compiling mutations then failed. The two compile errors were corrected while keeping the relevant imports or declarations used, and rerun successfully.

- `proxy-lease-loss`: compile/setup failure. Command: `CGO_ENABLED=0 go test ./internal/runner -run ^TestToolProxyLifecycle/lease$ -count=1`.

```text
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/tool_proxy.go:52:9: syntax error: var declaration not allowed in if initializer
```

- `mount-socket-type`: test unexpectedly passed. Command: `CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestDirectToolMount/regular$ -count=1`.

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.002s
```

- `mount-symlink`: test unexpectedly passed. Command: `CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestDirectToolMount/symlink$ -count=1`.

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.002s
```

- `browser-only-valid-native`: compile/setup failure. Command: `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestClaudePermissionResponseNoEscalation$ -count=1`.

```text
FAIL	amadan.net/oficina/equipo/internal/equipotest [build failed]
FAIL
# amadan.net/oficina/equipo/internal/equipo
internal/equipo/task_views.go:13:2: "amadan.net/oficina/equipo/internal/runnerproto" imported and not used
```

### User-facing strings

One new app-owned string: `question.allow_once` = `Allow once`, in `internal/equipo/copy.go`, marked individually `COPY REVIEW REQUIRED: question.allow_once`. It has not had a copy pass and needs review before release. No copy-review skill or server was invoked, as instructed. Existing accepted/rejected tool text is reused. Protocol method names, schemas, test fixtures and error sentinels are technical data, not new product prose.

### Concerns and handback

- Native Codex command/file approvals are deliberately deny-only until a certified non-escalating action shape exists. Unsupported or uncorrelated shapes never approve.
- The new Allow once label is pending copy review before release.
- Task 9 still owns runtime composition; Task 11b owns live provider and deployed-policy certification. This task ran only fake providers. Full CI, live gates, sign-in, enrolment and real credential-home creation were not performed. Synthetic test homes contain fixture values only.
- All requested targeted checks pass. No unresolved test failure remains. The four discarded mutation attempts are documented above and replaced by valid compiling evidence.

No push, merge, deployment, sudo, provider prompt, helper agent or .claude/HANDOFF.md. All session-started tests and processes are awaited. Scratch evidence is removed after these reports and the task commit are saved. No session-started server is intended to remain running.


## Task 8 fix round 1: Keep the tool relay alive and decline invalid approvals

Status: DONE.
Commit subject: `fix: keep the tool relay alive and decline invalid approvals`.
Baseline: `64da7c8`, branch `plan-2b`. All repository work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

1. Removed the proxy reader's idle deadline. A persistent MCP connection survives time between requests; cancellation, local lease expiry and invalidation still close it. `TestToolProxyIdleConnection` injects a connection that compresses any installed read deadline to 20 ms, initializes MCP, waits 80 ms and submits a candidate through the broker and journal. The existing real stdio helper test remains in the covering run.
2. Removed remote `Current` calls from the 100 ms lifecycle ticker. It checks local invalidation, the lease deadline and journal recovery state. Remote checks remain at admission and per request. Every broker call to `Current` now releases the mutex during the callback and reacquires it before continuing. It checks cancellation, invalidation, expiry and the session, turn and agent again. A blocked callback no longer prevents a concurrent tool call from acquiring the lock. Tests cover zero idle authority calls, lock acquisition, each post-callback check and local invalidation. The lifecycle lease test now expires the local deadline instead of expecting idle remote polling.
3. A correctly shaped Equipo MCP request rejected by the broker now gets a denial after the relay rechecks current authority and the durable turn. Tests independently change fence, attempt, tool and arguments and verify a correlated deny answer. Codex also sends a wire `action: decline` if its final broker callback rejects the request, including when the captured MCP item disappears during that callback. It still refuses to write to a completed turn. Adapter wire tests and relay tests cover the two boundaries separately; the wire tests inject the broker error, while relay tests use the real broker. Native approvals and policy amendments retain their previous restrictions.
4. Pinned Claude's permission-prompt contract from the installed 2.1.312 executable without executing it. The adapter, runner question decoder and advertised MCP schema accept the optional string `tool_use_id`; it never supplies authority or replaces the runner's request ID. The original request remains in the event and durable question. Unknown fields remain rejected. Denials now include a nonempty message. A sanitized fixture records the schema, invocation, CLI version, executable digest and byte offsets.

### Claude provenance

Read-only static inspection of `/home/paulca/.local/share/claude/versions/2.1.312`, resolved from the installed `claude` command. SHA-256: `4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d`.

The embedded JavaScript input/result schema begins at byte 266823843 (`_o`, `Pe`, `Ae`, `m9e`). It accepts `tool_name`, `input`, optional `tool_use_id`; the deny branch requires `behavior: "deny"` and a string `message`. The call at byte 268264693 passes exactly `{tool_name:s.name,input:x,tool_use_id:R}`. The fixture contains synthetic tool IDs, workspace paths and contents, with no account data or recorded provider traffic.

### Files

- `internal/runner/tool_proxy.go`: idle lifetime, local lifecycle checks and unlocked remote authority checks.
- `internal/runner/direct_questions.go`: invalid approval denial and Claude request decoding.
- `internal/runner/tools.go`: advertised Claude permission schema.
- `internal/runner/direct_tools_test.go`: local lifecycle regression coverage.
- `internal/runner/tool_proxy_r1_test.go`: round 1 runner regressions.
- `internal/runner/provider/claude/answers.go` and `answers_test.go`: pinned input and complete denial output.
- `internal/runner/provider/claude/testdata/permission-prompt-2.1.312.json`: sanitized static schema evidence.
- `internal/runner/provider/codex/answers.go` and `answers_test.go`: final authorization failure produces decline on the wire.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended fix report and evidence.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-8-report.md`: the same appended fix report, kept at its existing ignored destination.

### Interpretations

- The findings' instruction to keep the ticker local supersedes the original lifecycle test's expectation of remote authority polling. The trusted supervisor must close the proxy when it learns of lease loss; each request still revalidates authority, and the local deadline closes idle connections.
- Releasing the broker mutex requires checking the bound session, turn and agent again. These checks were added and independently mutated to avoid granting authority to a binding changed during a remote call.
- A rejected final Codex authorization is also declined, because returning the callback error alone leaves the same request pending. A completed turn remains ineligible for a reply.
- The nonempty Claude deny message reuses the existing machine error `provider_policy_rejected`. No new product prose or copy.go entry was introduced.
- The explicit dispatch rules override model-based writing, copy-review and generic handoff workflows. No provider was prompted, no subagent or review server was started, and no `.claude/HANDOFF.md` was created.

### RED evidence

All commands below ran with the supplied on-disk TMPDIR and default Go caches. Each red run compiled and exited 1. Tests were written before the corresponding implementation.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run 'TestToolProxyIdle|TestToolProxyAuthorityLock|TestCodexApprovalResponseInvalidRelay|TestClaudePermissionResponse(ToolUseIDRelay|AdvertisedSchema)' -count=1
```

```text
--- FAIL: TestToolProxyIdleConnection (0.46s)
    tool_proxy_r1_test.go:48: io: read/write on closed pipe
--- FAIL: TestToolProxyIdleAuthority (0.72s)
    tool_proxy_r1_test.go:62: idle ticker made 3 authority calls
--- FAIL: TestToolProxyAuthorityLock (3.09s)
    --- FAIL: TestToolProxyAuthorityLock/unchanged (0.79s)
        tool_proxy_r1_test.go:84: remote authority holds broker lock
    --- FAIL: TestToolProxyAuthorityLock/invalidated (0.79s)
        tool_proxy_r1_test.go:84: remote authority holds broker lock
        tool_proxy_r1_test.go:79: changed binding accepted after authority check
    --- FAIL: TestToolProxyAuthorityLock/turn (0.79s)
        tool_proxy_r1_test.go:84: remote authority holds broker lock
        tool_proxy_r1_test.go:79: changed binding accepted after authority check
    --- FAIL: TestToolProxyAuthorityLock/expired (0.72s)
        tool_proxy_r1_test.go:84: remote authority holds broker lock
        tool_proxy_r1_test.go:79: changed binding accepted after authority check
--- FAIL: TestCodexApprovalResponseInvalidRelay (1.84s)
    --- FAIL: TestCodexApprovalResponseInvalidRelay/fence (0.38s)
        tool_proxy_r1_test.go:117: invalid fence approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/attempt (0.38s)
        tool_proxy_r1_test.go:117: invalid attempt approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/tool (0.34s)
        tool_proxy_r1_test.go:117: invalid tool approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/arguments (0.31s)
        tool_proxy_r1_test.go:117: invalid arguments approval was not declined: runner.invalid []
--- FAIL: TestClaudePermissionResponseToolUseIDRelay (0.35s)
    tool_proxy_r1_test.go:126: runner.invalid
--- FAIL: TestClaudePermissionResponseAdvertisedSchema (0.00s)
    tool_proxy_r1_test.go:138: permission schema differs from pinned input {permission {map[input:[123 34 116 121 112 101 34 58 34 111 98 106 101 99 116 34 125] tool_name:[123 34 116 121 112 101 34 58 34 115 116 114 105 110 103 34 125]] false}}
FAIL
rastrillo-budget/v1 ran 6.477s
FAIL	amadan.net/oficina/equipo/internal/runner	6.485s
FAIL
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/claude /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run 'TestClaudePermissionResponse(NativePolicy|PinnedWire)|TestCodexApprovalResponseInvalidAuthorizationWire' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNativePolicy (0.14s)
    answers_test.go:94: {"behavior":"deny"} <nil>
--- FAIL: TestClaudePermissionResponsePinnedWire (0.82s)
    answers_test.go:136: pinned permission input rejected: claude_protocol_rejected
FAIL
rastrillo-budget/v1 ran 961ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.976s
--- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire (1.82s)
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/fence (0.49s)
        answers_test.go:262: invalid fence authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/attempt (0.49s)
        answers_test.go:262: invalid attempt authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/tool (0.42s)
        answers_test.go:262: invalid tool authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/arguments (0.42s)
        answers_test.go:262: invalid arguments authorization left request pending: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 1.819s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.826s
FAIL
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run '^TestCodexApprovalResponseInvalidAuthorizationWire/changed-call$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire (0.30s)
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/changed-call (0.30s)
        answers_test.go:286: invalid changed-call authorization left request pending: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 301ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.307s
FAIL
```

### GREEN evidence

All green commands exited 0. The final covering run follows restoration of every mutation. No full suite or `make ci` ran.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/... -run 'TestDirectTool|TestClaudePermission|TestCodexApproval|TestCodexAsyncQuestion|TestDirectStaleAnswer|TestToolProxy' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	23.137s
ok  	amadan.net/oficina/equipo/internal/equipotest	8.289s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.026s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	2.009s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	8.885s
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/claude /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run 'TestToolProxyIdle|TestToolProxyAuthorityLock|TestCodexApprovalResponseInvalid|TestClaudePermissionResponse' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	5.828s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	1.962s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	2.832s
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxy(AuthorityLock|Lifecycle)$' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	3.864s
```

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest ./internal/runner/provider/... -run 'TestDirectTool|TestClaudePermission|TestCodexApproval|TestCodexAsyncQuestion|TestDirectStaleAnswer|TestToolProxy' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	19.702s
ok  	amadan.net/oficina/equipo/internal/equipotest	6.397s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	1.806s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	8.471s
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run 'TestToolSocket|TestAgentTool|TestToolVerb' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	13.108s
```

### Compiling mutation evidence

Each mutation was applied alone, compiled, made the named test fail with exit 1, and was restored before the next mutation. All 19 produced valid evidence; none failed to compile and none survived. The helper mutex test continues to exercise an actual submission for its unchanged-binding case, and tests the post-callback guards directly to avoid a later database check masking a broken guard.

#### 1. idle-deadline

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
return r.conn.Read(b)
AFTER:
_ = r.conn.SetReadDeadline(time.Now().Add(30*time.Second))
 return r.conn.Read(b)
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyIdleConnection$' -count=1
```

```text
--- FAIL: TestToolProxyIdleConnection (0.39s)
    tool_proxy_r1_test.go:55: io: read/write on closed pipe
FAIL
rastrillo-budget/v1 ran 386ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.388s
FAIL
```

#### 2. idle-authority-poll

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
var err error
				if broker.invalid
AFTER:
err := b.Current(ctx)
				if broker.invalid
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyIdleAuthority$' -count=1
```

```text
--- FAIL: TestToolProxyIdleAuthority (0.67s)
    tool_proxy_r1_test.go:72: idle ticker made 3 authority calls
FAIL
rastrillo-budget/v1 ran 668ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.671s
FAIL
```

#### 3. authority-lock

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
s.mu.Unlock()
	err := b.Current(ctx)
	s.mu.Lock()
AFTER:
err := b.Current(ctx)
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/unchanged$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.58s)
    --- FAIL: TestToolProxyAuthorityLock/unchanged (0.58s)
        tool_proxy_r1_test.go:128: remote authority holds broker lock
FAIL
rastrillo-budget/v1 ran 579ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.586s
FAIL
```

#### 4. recheck-context

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/cancelled$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.27s)
    --- FAIL: TestToolProxyAuthorityLock/cancelled (0.27s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 270ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.274s
FAIL
```

#### 5. recheck-invalid

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if ctx.Err() != nil || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/invalidated$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.32s)
    --- FAIL: TestToolProxyAuthorityLock/invalidated (0.32s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 318ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.321s
FAIL
```

#### 6. recheck-lease

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if ctx.Err() != nil || s.invalid || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/expired$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.28s)
    --- FAIL: TestToolProxyAuthorityLock/expired (0.28s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 277ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.280s
FAIL
```

#### 7. recheck-session

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/session$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.15s)
    --- FAIL: TestToolProxyAuthorityLock/session (0.15s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 153ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.156s
FAIL
```

#### 8. recheck-turn

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.Agent != b.Agent {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/turn$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.30s)
    --- FAIL: TestToolProxyAuthorityLock/turn (0.30s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 304ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.307s
FAIL
```

#### 9. recheck-agent

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID || s.binding.Agent != b.Agent {
AFTER:
if ctx.Err() != nil || s.invalid || !time.Now().Before(s.binding.LeaseDeadline) || s.binding.Session != b.Session || s.binding.TurnID != b.TurnID {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLock/agent$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLock (0.24s)
    --- FAIL: TestToolProxyAuthorityLock/agent (0.24s)
        tool_proxy_r1_test.go:111: changed binding accepted after authority check
FAIL
rastrillo-budget/v1 ran 238ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.241s
FAIL
```

#### 10. local-invalidation

File: `internal/runner/tool_proxy.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if broker.invalid || !time.Now().Before(b.LeaseDeadline) {
AFTER:
if !time.Now().Before(b.LeaseDeadline) {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyLifecycle/invalid$' -count=1
```

```text
--- FAIL: TestToolProxyLifecycle (2.30s)
    --- FAIL: TestToolProxyLifecycle/invalid (2.30s)
        direct_tools_test.go:364: invalid endpoint remained live invalid
FAIL
rastrillo-budget/v1 ran 2.302s
FAIL	amadan.net/oficina/equipo/internal/runner	2.305s
FAIL
```

#### 11. decline-invalid

File: `internal/runner/direct_questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
return r.Launcher.Respond(ctx, b.Session, provider.Answer{RequestID: ev.RequestID, TurnID: b.TurnID, Behavior: "deny"})
AFTER:
return e
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestCodexApprovalResponseInvalidRelay/(fence|attempt|tool|arguments)$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidRelay (0.73s)
    --- FAIL: TestCodexApprovalResponseInvalidRelay/fence (0.17s)
        tool_proxy_r1_test.go:195: invalid fence approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/attempt (0.18s)
        tool_proxy_r1_test.go:195: invalid attempt approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/tool (0.21s)
        tool_proxy_r1_test.go:195: invalid tool approval was not declined: runner.invalid []
    --- FAIL: TestCodexApprovalResponseInvalidRelay/arguments (0.16s)
        tool_proxy_r1_test.go:195: invalid arguments approval was not declined: runner.invalid []
FAIL
rastrillo-budget/v1 ran 728ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.731s
FAIL
```

#### 12. decline-current

File: `internal/runner/direct_questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if err := b.Current(ctx); err != nil {
					return err
AFTER:
if err := b.Current(ctx); false && err != nil {
					return err
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestCodexApprovalResponseInvalidRelay/revoked-after-check$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidRelay (0.19s)
    --- FAIL: TestCodexApprovalResponseInvalidRelay/revoked-after-check (0.19s)
        tool_proxy_r1_test.go:190: stale request answered
FAIL
rastrillo-budget/v1 ran 187ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.200s
FAIL
```

#### 13. decline-turn

File: `internal/runner/direct_questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
if err := b.Journal.currentDirectTurn(ctx, b.Session, b.TurnID); err != nil {
					return err
AFTER:
if err := b.Journal.currentDirectTurn(ctx, b.Session, b.TurnID); false && err != nil {
					return err
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestCodexApprovalResponseInvalidRelay/stale-after-check$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidRelay (0.24s)
    --- FAIL: TestCodexApprovalResponseInvalidRelay/stale-after-check (0.24s)
        tool_proxy_r1_test.go:190: stale request answered
FAIL
rastrillo-budget/v1 ran 238ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.241s
FAIL
```

#### 14. relay-tool-use-id

File: `internal/runner/direct_questions.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
`json:"tool_use_id,omitempty"`
AFTER:
`json:"-"`
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestClaudePermissionResponseToolUseIDRelay$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseToolUseIDRelay (0.19s)
    tool_proxy_r1_test.go:205: runner.invalid
FAIL
rastrillo-budget/v1 ran 194ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.197s
FAIL
```

#### 15. claude-tool-use-id

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
`json:"tool_use_id,omitempty"`
AFTER:
`json:"-"`
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/claude -run '^TestClaudePermissionResponsePinnedWire$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponsePinnedWire (0.37s)
    answers_test.go:146: pinned permission input rejected: claude_protocol_rejected
FAIL
rastrillo-budget/v1 ran 375ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.381s
FAIL
```

#### 16. claude-deny-message

File: `internal/runner/provider/claude/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
"message": provider.ErrPolicy.Error()
AFTER:
"message": ""
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/claude -run '^TestClaudePermissionResponseNativePolicy$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseNativePolicy (0.09s)
    answers_test.go:94: {"behavior":"deny","message":""} <nil>
FAIL
rastrillo-budget/v1 ran 95ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.097s
FAIL
```

#### 17. permission-schema

File: `internal/runner/tools.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
"tool_use_id": map[string]string{"type": "string"},
AFTER:

```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestClaudePermissionResponseAdvertisedSchema$' -count=1
```

```text
--- FAIL: TestClaudePermissionResponseAdvertisedSchema (0.00s)
    tool_proxy_r1_test.go:234: permission schema differs from pinned input {permission {map[input:[123 34 116 121 112 101 34 58 34 111 98 106 101 99 116 34 125] tool_name:[123 34 116 121 112 101 34 58 34 115 116 114 105 110 103 34 125]] false}}
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### 18. codex-decline-authorize

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
} else {
				a.Behavior = "deny"
AFTER:
} else {
 return e
				a.Behavior = "deny"
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run '^TestCodexApprovalResponseInvalidAuthorizationWire/(fence|attempt|tool|arguments)$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire (1.11s)
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/fence (0.26s)
        answers_test.go:286: invalid fence authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/attempt (0.27s)
        answers_test.go:286: invalid attempt authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/tool (0.28s)
        answers_test.go:286: invalid tool authorization left request pending: provider_policy_rejected
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/arguments (0.31s)
        answers_test.go:286: invalid arguments authorization left request pending: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 1.111s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.113s
FAIL
```

#### 19. codex-decline-correlation

File: `internal/runner/provider/codex/answers.go`. Exit 1; compiled; named test failed.

```text
BEFORE:
a.Behavior = "deny"
AFTER:
_ = a.Behavior
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run '^TestCodexApprovalResponseInvalidAuthorizationWire/changed-call$' -count=1
```

```text
--- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire (0.23s)
    --- FAIL: TestCodexApprovalResponseInvalidAuthorizationWire/changed-call (0.23s)
        answers_test.go:286: invalid changed-call authorization left request pending: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 229ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.231s
FAIL
```

### User-facing strings

No new user-facing prose or copy.go entries. Claude denial replies newly serialize the existing protocol error value `provider_policy_rejected` in the required `message` field. This is a machine result sent to the harness. The original Task 8 `question.allow_once` entry remains individually pending copy review before release. No copy-review skill or server was invoked.

### Concerns and completion

All four round 1 findings are fixed, with no unresolved test failures or new release concerns. The original limits remain: native Codex command/file approvals are deny-only, Task 9 owns runtime composition, and Task 11b owns live provider and deployed-policy certification. No live gate, sign-in, enrolment, real credential-home creation, provider prompt, push, merge or deployment ran. Tests use synthetic fixtures only. The required commit uses the requested subject and author; the controller owns the push.

`git diff --check` passed. All test and mutation processes were awaited. No server was started. Session scratch is removed after saving these reports and committing. The task report retains the original report above this appended section.


## Task 8 fix round 2: Refuse stale relay calls without invalidating the proxy

Status: DONE.
Baseline: `67bac31`, branch `plan-2b`.
Commit subject: `fix: refuse stale relay calls without invalidating the proxy`.
All repository work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

Both round 2 findings are fixed. `authorityLocked` now permanently invalidates the broker when `ToolBinding.Current` fails. The capability callback and tool submission path return other validation errors without invalidating the broker. A concurrent binding change or a stale durable turn still refuses the call. Lease expiry, cancellation, recovery and explicit invalidation retain their existing lifecycle checks.

`TestToolProxyCapabilityConcurrentBind` blocks the capability callback's `Current` check on a real Unix endpoint and binds the next turn before releasing it. It covers initial binding and binding between turns. The in-flight request is refused, the broker remains valid, and a fresh ping through `ServeToolProxy` succeeds.

`TestDirectToolStaleTurnKeepsProxy` completes the bound turn, refuses a late tool call and verifies that it wrote no journal submission. It then binds, admits and dispatches a new turn, submits a fresh tool call and verifies the journal contains only that submission.

`TestToolProxyAuthorityLossPermanent` covers both the capability callback and tool submission. Once `Current` fails, later success from that callback cannot revive authority.

### Files

- `internal/runner/tool_proxy.go`: move authority-loss invalidation into `authorityLocked`; remove blanket invalidation from the capability callback.
- `internal/runner/tool_socket.go`: remove blanket invalidation from `submit` after `current` refuses a call.
- `internal/runner/tool_proxy_r2_test.go`: concurrent binding, stale-turn continuation and permanent authority-loss regressions.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended evidence section.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-8-report.md`: the same appended section, retaining all earlier reports. This report path is ignored by git and remains available on disk.

### Interpretations

The round 2 dispatch supplies the commit subject and narrower covering command, superseding the original Task 8 brief for this fix. Paths in commands are absolute as required; package selection matches the supplied relative covering command.

A failed `Current` check means authority is lost, regardless of its returned error value. A successful check followed by a changed session, turn or agent is a refused call, not permanent revocation. The same rule applies when durable turn validation refuses a stale call. The capability failure closes that request's connection under the existing `serveTools` contract; the endpoint survives and the next connection succeeds.

An initial test variant assigned the synthetic state `interrupted`, then tried admitting a new turn. The first green attempt correctly failed with `runner.direct_uncertain`: `BeginTurn` requires prior turns to be completed. That variant was removed rather than weakening admission. The final regression uses a completed stale turn. The baseline was restored, the final tests were observed red again, and implementation, green and every mutation were repeated. Early mutation runs are superseded by the post-green evidence below.

### RED evidence

Tests were added before production edits. The initial focused run exited 1 with both requested regressions failing. After correcting the fixture, the final tests were also run against the unchanged production baseline. Exact command:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run 'TestToolProxyCapabilityConcurrentBind|TestDirectToolStaleTurnKeepsProxy|TestToolProxyAuthorityLossPermanent' -count=1
```

```text
--- FAIL: TestToolProxyCapabilityConcurrentBind (0.18s)
    --- FAIL: TestToolProxyCapabilityConcurrentBind/startup (0.09s)
        tool_proxy_r2_test.go:67: concurrent BindTurn permanently invalidated proxy
    --- FAIL: TestToolProxyCapabilityConcurrentBind/between-turns (0.09s)
        tool_proxy_r2_test.go:67: concurrent BindTurn permanently invalidated proxy
--- FAIL: TestDirectToolStaleTurnKeepsProxy (0.09s)
    --- FAIL: TestDirectToolStaleTurnKeepsProxy/completed (0.09s)
        tool_proxy_r2_test.go:109: stale call disabled next turn: runner.invalid
FAIL
rastrillo-budget/v1 ran 551ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.554s
FAIL
```

Exit 1. The code compiled. Startup and between-turn binding invalidated the proxy; the stale call prevented binding the next turn. The authority-loss regression passed on the baseline.

The discarded fixture failure used the same focused command:

```text
--- FAIL: TestDirectToolStaleTurnKeepsProxy (0.40s)
    --- FAIL: TestDirectToolStaleTurnKeepsProxy/interrupted (0.16s)
        tool_proxy_r2_test.go:112: runner.direct_uncertain
FAIL
rastrillo-budget/v1 ran 1.091s
FAIL	amadan.net/oficina/equipo/internal/runner	1.095s
FAIL
```

### GREEN evidence

After implementation, the required covering selection passed, exit 0:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/... -run 'TestToolProxy|TestDirectTool|TestCodexApproval|TestDirectStaleAnswer' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	8.841s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.003s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.003s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	3.186s
```

### Compiling mutation evidence

Each mutation changed only the stated guard, ran its named test, and restored the source before the next mutation. Every mutant compiled and exited 1 with the expected assertion failure.

#### capability-invalidates-binding

File: `internal/runner/tool_proxy.go`. Restore `p.broker.invalidateLocked()` inside the capability callback when `authorityLocked` returns an error.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyCapabilityConcurrentBind$' -count=1
```

```text
--- FAIL: TestToolProxyCapabilityConcurrentBind (0.27s)
    --- FAIL: TestToolProxyCapabilityConcurrentBind/startup (0.15s)
        tool_proxy_r2_test.go:67: concurrent BindTurn permanently invalidated proxy
    --- FAIL: TestToolProxyCapabilityConcurrentBind/between-turns (0.11s)
        tool_proxy_r2_test.go:67: concurrent BindTurn permanently invalidated proxy
FAIL
rastrillo-budget/v1 ran 266ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.268s
FAIL
```

#### submit-invalidates-stale-turn

File: `internal/runner/tool_socket.go`. Restore `s.invalidateLocked()` inside `submit` when `s.current(ctx)` returns an error.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestDirectToolStaleTurnKeepsProxy$' -count=1
```

```text
--- FAIL: TestDirectToolStaleTurnKeepsProxy (0.15s)
    --- FAIL: TestDirectToolStaleTurnKeepsProxy/completed (0.15s)
        tool_proxy_r2_test.go:109: stale call disabled next turn: runner.invalid
FAIL
rastrillo-budget/v1 ran 154ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.157s
FAIL
```

#### authority-loss-revivable

File: `internal/runner/tool_proxy.go`. Remove `s.invalidateLocked()` from the `b.Current(ctx)` error branch in `authorityLocked`.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run '^TestToolProxyAuthorityLossPermanent$' -count=1
```

```text
--- FAIL: TestToolProxyAuthorityLossPermanent (0.17s)
    --- FAIL: TestToolProxyAuthorityLossPermanent/capability (0.08s)
        tool_proxy_r2_test.go:151: lost authority revived after Current recovered
    --- FAIL: TestToolProxyAuthorityLossPermanent/submit (0.09s)
        tool_proxy_r2_test.go:151: lost authority revived after Current recovered
FAIL
rastrillo-budget/v1 ran 170ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.174s
FAIL
```

### Restored verification

After restoring all mutations, the same covering command passed again, exit 0:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/... -run 'TestToolProxy|TestDirectTool|TestCodexApproval|TestDirectStaleAnswer' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner	10.206s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.002s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	3.941s
```

`git diff --check` passed. `gofmt -l` returned no paths for the three changed Go files. Only targeted tests ran; no full suite, `make ci`, live provider run, sign-in, enrollment or credential-home creation ran.

### User-facing strings

None. No runtime strings or `copy.go` entries were added or changed. Existing pending copy remains unchanged. No copy-review skill or server was invoked.

### Concerns and completion

No new concerns or unresolved failures for these two findings. Existing Task 8 limits remain: native Codex command/file approvals are deny-only, Task 9 owns runtime composition, and Task 11b owns live provider and deployed-policy certification. No agents, pushes, merges or deployments were started. Test processes were awaited, and test-owned endpoints and temporary directories were closed and removed. Session scratch under `$TMPDIR/t8r2` is removed after saving this evidence and committing. No session process is intended to outlive this task.


## Task 9: Local workspaces, checks and namespace recovery

Status: DONE_WITH_CONCERNS.
Commit subject: `refactor: run the bug workflow through direct namespaces`.
Author: `codex <codex~paul@keymail.dev>`.
Branch: `plan-2b`.
All repository work and commands below used `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

The production runtime constructs Claude and Codex launchers with one `NewDirectHost` and `NewCaptureFactory`. Check commands use that same journal-backed host and containment manager. Startup reconciles every namespace record before constructing launch-capable services. Recovery refuses while capture is live. Provider networks are explicitly configured for both providers; dedicated-home authority comes from the account lease. The old Paseo model-turn and workspace-creation path is no longer used by the bug workflow. `BugWorkflowConfig` now requires the launcher registry, namespace manager and launch factory. `workspace.New(Config)` has the requested single-argument signature.

The namespace helper remains behind its release pipe until its full PID/start/boot/namespace identity is durable and the instance has acknowledged a typed `namespace.launch` event. Launch events are bound to the assignment and fenced handle through the authenticated runner transport. They use the existing migration-0015 `runner_events` table. A new launch requires a current assignment; an exact previously committed event can be acknowledged again after fencing. Version-2 containment reports must account for every authenticated launch and match its namespace, attempt, manifest and process identity. Legacy inventory reports and `Empty:true` provide no authority. A successfully queried empty launch set permits cleanup of a claim that never launched anything; a query error never becomes zero.

Workspaces use local Git. A runner-owned worktree is created from the pinned base and review ref, then receives its own credential-free Git directory and copied objects before it can be mounted. The checkout has no metadata dependency on private runner storage. Receipts retain local workspace identity and reject replacement on uncertainty. Changed config, hooks, alternates, external common directories and changed local identity are refused. Candidate capture, staged export and review checkout continue to use immutable Git objects.

Checks retain the pinned Codex command deny sandbox inside an owned bubblewrap namespace. A separate check manifest admits no provider binding, credential home, tool socket or provider network. Go and the configured module cache are mounted read-only. Each namespace gets its own writable build cache and temporary-build directory under its on-disk attempt scratch, exposed only as `/tmp/go-build` and `/tmp/go-tmp` inside that namespace. The host build cache is absent and explicitly denied by the inner profile. Protected descendants are also denied through their mounted aliases. Broad home directories and namespace scratch cannot be configured as runtime/cache mounts. Unknown containment preserves executor checkouts. All namespace proofs are collected before removing check or model workspaces, reporting containment, or releasing an account lease.

The workflow drains provider events into `AppendDirect` independently of uploads and person waits. A terminal notice follows the committed normalized event. A late completion cannot turn a quarantined turn into success, and queued terminal notices take precedence over stream EOF. Uncertain in-flight actions use the existing lost-outcome path, preserving unknown charges and person wait. No provider turn is replayed. Model completion alone does not release capacity.

The tool proxy uses the workflow's `current()` callback on each call. Relay bindings are read after `BindTurn`, including the rewritten agent and provider-session identity. `ask_person` is answered through its bound relay and its tool submission is acknowledged once; the old follow-up path is not called by the direct workflow. Question resolution reads the delivery journal. A nil adapter response is never interpreted as an approval. The existing local-only proxy lifecycle ticker remains unchanged.

Lease renewal keeps connection heartbeats alive using the last verified discovery reports while the selected account lease is held. Dispatch and current-authority checks remain in place. Once model/check/publication work has ended, the workflow stops and drains the lease watcher before reporting completion, avoiding a renewal rejection racing with its own successful completion. Runtime shutdown stops namespaces, waits for captures and then releases the account lease and journal. Failed namespace startup now also records a durable exit proof.

### Coverage

- `TestDirectBugWorkflow` runs reproduce, implement, independent-family review, verify and publish with local fake CLIs, real Git, the real command sandbox, private-cache checks and a local bare publication repository. It sends 200 progress frames through a 64-slot fixture stream, asks one scoped person question, consumes three model admissions and a publication admission, and checks that dependent work cannot claim capacity before containment.
- `TestDirectWorkspaceIdentity` covers base/ref pinning, identity, fresh attempt paths, retry identity, metadata/config/hooks rejection and immutable export.
- `TestDirectCancelWaitsForNamespaces` uses two owned namespaces with detached model, code-mode-host, relay, MCP and check stand-ins. Its unproven-namespace and removal-order variants retain capacity and checkouts until all proofs exist.
- `TestDirectRestartAndLeaseLoss` covers rollback, suspend, revoked membership and changed connection; the live-capture variant refuses recovery during capture. Retained `TestNamespaceParentDeath` and `TestDirectInterrupted*` regressions cover runner death and durable recovery without replay.
- `TestDirectContainmentReportBinding` and its launch-replay test exercise production instance validators on the pre-0018 schema, including missing and mismatched records, forged empty/inventory proofs, fenced replay and never-started claims.
- `TestCheckNamespace*` and `TestCheckCache*` cover detached children, cache writes, host-cache exclusion, separate caches, mounted aliases, retained scratch and unsafe cache roots. Existing command-sandbox deny and evidence tests were retained and run.

### Interpretations

1. This implementation dispatch supersedes the old revision-only sentence in `global-context.md` and the original spec's Paseo engine description. The Task 9 brief and the supplied carry requirements control the runtime.
2. `ContainmentProof` carries the new namespace fields under version 2 so the existing supervisor `Run`, `Cancel` and `Recover` entry points remain usable. Its old fields remain readable for history. Provider `Session` is authoritative for active launches; the existing typed tool/witness contracts still receive a projection using their historical agent data type.
3. A claim with no authenticated launch records is a known empty launch set when the database query succeeds. This is needed for recovery before any process was dispatched. A report claiming a namespace without its launch record, or omitting an authenticated namespace, is rejected.
4. Checks need a credential-free manifest of their own. The check-only attestation branch requires an empty provider selection and binding and cannot authorize a model launch. Read-only directory mounts are limited to the configured Go and module-cache roles; host development commands keep their default caches.
5. Account/namespace cleanup is ordered after containment even when completion, an upload or credential rotation fails. The lease watcher stops only after untrusted workflow work has ended, immediately before its final instance report.
6. The new optional configuration variables are `EQUIPO_BWRAP_PATH` (default `/usr/bin/bwrap`) and `EQUIPO_GO_MODULE_CACHE` (default the user's `go/pkg/mod`). They do not set host `GOCACHE`, `GOMODCACHE` or `GOTMPDIR`.
7. The old Paseo package and historical cleanup/readers remain for Task 11a. They do not grant permission to start the new workflow. Older fixture call sites were updated to compile with the new workspace/workflow interfaces.

### Files

- `.rastrillo/budgets.txt`
- `internal/equipo/runner_events.go`
- `internal/equipo/runner_report_validation.go`
- `internal/equipotest/direct_containment_test.go`
- `internal/equipotest/preparation_integration_test.go`
- `internal/equipotest/runner_flow_test.go`
- `internal/runner/budget_test.go`
- `internal/runner/capture.go`
- `internal/runner/capture_test.go`
- `internal/runner/checks/budget_test.go`
- `internal/runner/checks/containment_cleanup_test.go`
- `internal/runner/checks/containment_test.go`
- `internal/runner/checks/executor.go`
- `internal/runner/checks/namespace.go`
- `internal/runner/checks/sandbox.go`
- `internal/runner/config.go`
- `internal/runner/connections.go`
- `internal/runner/containment/linux.go`
- `internal/runner/containment/linux_test.go`
- `internal/runner/containment/mounts.go`
- `internal/runner/containment/mounts_test.go`
- `internal/runner/direct_cli_test.go`
- `internal/runner/direct_graph_test.go`
- `internal/runner/direct_namespaces.go`
- `internal/runner/direct_question_workflow_test.go`
- `internal/runner/direct_recovery.go`
- `internal/runner/direct_runtime_test.go`
- `internal/runner/direct_workflow.go`
- `internal/runner/direct_workflow_test.go`
- `internal/runner/journal.go`
- `internal/runner/provider/check_policy.go`
- `internal/runner/provider/policy.go`
- `internal/runner/runtime.go`
- `internal/runner/runtime_direct.go`
- `internal/runner/runtime_workflow.go`
- `internal/runner/service.go`
- `internal/runner/supervisor.go`
- `internal/runner/witness.go`
- `internal/runner/workflow.go`
- `internal/runner/workflow_integration_test.go`
- `internal/runner/workflow_turn.go`
- `internal/runner/workspace/direct.go`
- `internal/runner/workspace/direct_test.go`
- `internal/runner/workspace/workspace.go`
- `internal/runnerproto/containment.go`
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended controller evidence.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-9-report.md`: this full local report, at the existing ignored dispatch-report location.

The runner source budget is 9,200 lines, with 8,980 physical source lines after removing the old model-turn branch. Time budgets are unchanged.

### RED evidence

The first required command ran after the new workspace contract test and before implementation:

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBug|TestDirectWorkspace|TestDirectCancel|TestDirectRestart|TestDirectContainment|TestCheckNamespace|TestCheckCache' -count=1
```

Exit 1, API/compile RED:

```text
internal/runner/workspace/direct_test.go:12:17: not enough arguments in call to New
    have (Config)
    want (Config, *paseo.Client)
internal/runner/workspace/direct_test.go:15:7: w.ID undefined (type Workspace has no field or method ID)
internal/runner/workspace/direct_test.go:15:35: w.Path undefined (type Workspace has no field or method Path)
FAIL amadan.net/oficina/equipo/internal/runner/workspace [build failed]
```

Other initial contract REDs reported the missing namespace-launch wire fields, direct supervisor fields and check-host configuration fields. These compile failures are not counted as guard mutations. After adding the wire types, the instance tests supplied behavioral RED before validator implementation:

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainment -count=1
```

```text
--- FAIL: TestDirectContainmentReportBinding
    --- FAIL: TestDirectContainmentReportBinding/valid
        bound proof refused: One or more values are invalid. Check the form and try again.
    --- FAIL: TestDirectContainmentReportBinding/inventory-only
        unbound proof released capacity
```

Additional behavioral REDs before their fixes:

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckNamespaceRetainsScratch -count=1
```

```text
--- FAIL: TestCheckNamespaceRetainsScratchWithoutProof
    removed checkout without containment proof
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckNamespaceDeniedMountAliases -count=1
```

```text
--- FAIL: TestCheckNamespaceDeniedMountAliases
    module mount alias bypassed denied path
```

```sh
CGO_ENABLED=0 go test ./internal/runner/workspace -run TestDirectWorkspace -count=1
```

```text
--- FAIL: TestDirectWorkspaceIdentity
    accepted changed local workspace id
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentLaunchReplay -count=1
```

```text
--- FAIL: TestDirectContainmentLaunchReplayAfterStop
    team: fence: attempt 1 fence 1, step at 2
```

The logged RED runs below include the remaining runtime, cache, terminal and never-started cases.

#### red-broad-cache

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheRejectsBroadHome -count=1
```

Exit 1:

```text
--- FAIL: TestCheckCacheRejectsBroadHome (0.00s)
    containment_test.go:187: broad home accepted as module cache: /home/paulca
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.003s
FAIL
```

#### red-check-removal-order

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectCancelRetainsCheckUntilEveryProof -count=1
```

Exit 1:

```text
--- FAIL: TestDirectCancelRetainsCheckUntilEveryProof (0.84s)
    direct_runtime_test.go:106: removed check checkout before every namespace was contained
FAIL
rastrillo-budget/v1 ran 843ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.846s
FAIL
```

#### red-renew-heartbeat

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeRenewHeartbeat -count=1
```

Exit 1:

```text
--- FAIL: TestDirectBugRuntimeRenewHeartbeat (0.26s)
    direct_runtime_test.go:144: active connection liveness was not renewed: [/api/runner/v1/renew]
FAIL
rastrillo-budget/v1 ran 261ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.264s
FAIL
```

#### red-runtime-release

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeClosesNamespaces -count=1
```

Exit 1:

```text
--- FAIL: TestDirectBugRuntimeClosesNamespaces (1.03s)
    direct_runtime_test.go:79: runtime shutdown retained account lease after containment
FAIL
rastrillo-budget/v1 ran 1.033s
FAIL	amadan.net/oficina/equipo/internal/runner	1.043s
FAIL
```

#### red-scratch-cache

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheRejectsNamespaceScratch -count=1
```

Exit 1:

```text
--- FAIL: TestCheckCacheRejectsNamespaceScratch (1.65s)
    containment_test.go:195: namespace scratch accepted as module cache
FAIL
rastrillo-budget/v1 ran 1.652s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	1.721s
FAIL
```

#### red-terminal-authority

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugTerminalRequiresCommit -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner [amadan.net/oficina/equipo/internal/runner.test]
internal/runner/direct_question_workflow_test.go:64:10: j.requireDirectCompletion undefined (type *Journal has no field or method requireDirectCompletion)
FAIL	amadan.net/oficina/equipo/internal/runner [build failed]
FAIL
```

#### red-unstarted-containment

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/unstarted -count=1
```

Exit 1:

```text
--- FAIL: TestDirectContainmentReportBinding (0.91s)
    --- FAIL: TestDirectContainmentReportBinding/unstarted (0.91s)
        direct_containment_test.go:81: bound proof refused: You do not have access to this page. Ask an owner for access.
FAIL
rastrillo-budget/v1 ran 913ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.969s
FAIL
```

### Intermediate corrections

The initial graph integration exposed protocol encoding, source-time and full agent-binding mismatches; these were fixed before the graph passed. Two combined runs found a stale private `lifecycle` test call after adding the admission callback. The first attempted test-call edit did not match that call; the corrected call and subsequent package compilation pass are recorded in the logs. A later graph run caught renewal racing with successful completion, leading to the explicit lease-watch shutdown and its compiling mutation.

A retained capture test inserted an unscoped answer even though Task 8 now invalidates only answers scoped to the interrupted attempt. It failed with the unchanged HEAD capture implementation too. The fixture now inserts the matching `direct_answer_scopes` row. The production scoped invalidation rule was not weakened. The startup-failure test now requires both the launch record and the new exit proof, and verifies recovery of that proof.

#### green

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBug|TestDirectWorkspace|TestDirectCancel|TestDirectRestart|TestDirectContainment|TestCheckNamespace|TestCheckCache' -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner/containment [amadan.net/oficina/equipo/internal/runner/containment.test]
internal/runner/containment/mounts_test.go:48:100: not enough arguments in call to m.lifecycle
	have (context.Context, Record, []string, *mounts, string, chan startResult)
	want (context.Context, Record, []string, *mounts, string, chan<- startResult, func(context.Context, Record) error)
ok  	amadan.net/oficina/equipo/internal/runner	194.433s
ok  	amadan.net/oficina/equipo/internal/runner/checks	5.064s
FAIL	amadan.net/oficina/equipo/internal/runner/containment [build failed]
ok  	amadan.net/oficina/equipo/internal/runner/egress	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/paseo	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.006s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.535s
ok  	amadan.net/oficina/equipo/internal/equipotest	6.168s
FAIL
```

#### green2

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBug|TestDirectWorkspace|TestDirectCancel|TestDirectRestart|TestDirectContainment|TestCheckNamespace|TestCheckCache' -count=1
```

Exit 1:

```text
# amadan.net/oficina/equipo/internal/runner/containment [amadan.net/oficina/equipo/internal/runner/containment.test]
internal/runner/containment/mounts_test.go:48:100: not enough arguments in call to m.lifecycle
	have (context.Context, Record, []string, *mounts, string, chan startResult)
	want (context.Context, Record, []string, *mounts, string, chan<- startResult, func(context.Context, Record) error)
ok  	amadan.net/oficina/equipo/internal/runner	191.873s
ok  	amadan.net/oficina/equipo/internal/runner/checks	5.742s
FAIL	amadan.net/oficina/equipo/internal/runner/containment [build failed]
ok  	amadan.net/oficina/equipo/internal/runner/egress	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/paseo	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.592s
ok  	amadan.net/oficina/equipo/internal/equipotest	6.197s
FAIL
```

#### green3

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBug|TestDirectWorkspace|TestDirectCancel|TestDirectRestart|TestDirectContainment|TestCheckNamespace|TestCheckCache' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectBugWorkflow (145.03s)
    direct_graph_test.go:206: review (completed): context canceled
        {"cause":"renew: team: fence: attempt 3 fence 1, step at 1","operation":"watchLease.renew"}
        {"cause":"renew: team: fence: attempt 3 fence 1, step at 1","operation":"watchLease.renew"}
        complete: team: fence: attempt 3 fence 1, step at 1
FAIL
rastrillo-budget/v1 ran 2m35.186s
FAIL	amadan.net/oficina/equipo/internal/runner	155.199s
ok  	amadan.net/oficina/equipo/internal/runner/checks	5.903s
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.010s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/egress	0.004s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/paseo	0.011s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.007s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.006s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.024s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.564s
ok  	amadan.net/oficina/equipo/internal/equipotest	6.192s
FAIL
```

#### regressions-direct

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/containment ./internal/runner/provider/claude ./internal/runner/provider/codex -run 'TestDirectFaultIsolation|TestDirectTerminalTransition|TestDirectInterrupted|TestDirectCompletion|TestToolProxyIdle|TestToolProxyAuthority|TestToolProxyCapabilityConcurrentBind|TestDirectToolStaleTurn|TestClaudePermissionResponse|TestCodexApprovalResponse|TestNamespaceParentDeath|TestNamespaceStopWaitsForExit|TestNamespaceKillsDetachedChildren|TestNamespaceReadOnly|TestNamespaceMount' -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedLiveCapture (0.63s)
    capture_test.go:456: live cancellation retained pending answers
FAIL
rastrillo-budget/v1 ran 32.556s
FAIL	amadan.net/oficina/equipo/internal/runner	32.560s
ok  	amadan.net/oficina/equipo/internal/runner/containment	1.509s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	1.742s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	7.901s
FAIL
```

#### inherited-capture-regression

Unchanged HEAD capture.go temporarily restored; task implementation restored afterwards.

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectInterruptedLiveCapture -count=1
```

Exit 1:

```text
--- FAIL: TestDirectInterruptedLiveCapture (0.53s)
    capture_test.go:456: live cancellation retained pending answers
FAIL
rastrillo-budget/v1 ran 528ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.536s
FAIL
```

#### regressions-final

```sh
CGO_ENABLED=0 go test ./internal/runner ./internal/runner/containment ./internal/runner/checks -run 'TestRunnerLeaseWatchdogCauseSites|TestRunnerLeaseRenewMeasuredAtSend|TestDirectInterruptedLiveCapture|TestNamespaceStartupFailure|TestNamespaceIntentBeforeFork|TestNamespaceHelperBarrier|TestNamespaceDirectPolicyAdmission|TestCheckSandboxDeniedPaths|TestFrozenReproduction|TestTrustedBaseCheckDefinitions|TestExecutorCandidateBinding' -count=1
```

Exit 1:

```text
ok  	amadan.net/oficina/equipo/internal/runner	2.491s
--- FAIL: TestNamespaceStartupFailure (0.10s)
    linux_test.go:439: startup cleanup or intent missing: [- 08480a572bdc405d1a57cbd09d8acad4.exit.json - 08480a572bdc405d1a57cbd09d8acad4.json]
FAIL
rastrillo-budget/v1 ran 2.287s
FAIL	amadan.net/oficina/equipo/internal/runner/containment	2.292s
ok  	amadan.net/oficina/equipo/internal/runner/checks	18.252s
FAIL
```

### GREEN and regression evidence

The final required command passed after restoration. All test commands used `CGO_ENABLED=0`, the supplied on-disk TMPDIR and default host Go caches. No whole-suite run or `make ci` was performed.

#### Final required gate

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBug|TestDirectWorkspace|TestDirectCancel|TestDirectRestart|TestDirectContainment|TestCheckNamespace|TestCheckCache' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	201.871s
ok  	amadan.net/oficina/equipo/internal/runner/checks	7.623s
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.009s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/egress	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.008s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/paseo	0.008s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.008s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.009s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.013s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.520s
ok  	amadan.net/oficina/equipo/internal/equipotest	11.276s
```

#### regressions-core

```sh
CGO_ENABLED=0 go test ./internal/equipo/team ./internal/equipotest -run 'TestReservationLimitsAndOverflow|TestSettlementRules|TestLateUsageAfterCancelAndAuditedSettlement|TestPredicateRejectsInvalidEvidence|TestArtifactsOfUnfinishedAttemptsAreNotEvidence|TestLostReplyNeverReplaysBlind|TestReconcileWithoutReceiptNeverRedispatches|TestCancelSerialisesWithAdmission|TestRevokedGrantAtAdmission|TestRunnerEventReplayDirect|TestRevokedCleanupContainmentPreservesIntentCharge|TestUnconfinedContainmentProofRequired' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipo/team	1.661s
ok  	amadan.net/oficina/equipo/internal/equipotest	1.971s
```

#### scoped-answer-regression-green

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectInterruptedLiveCapture -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.710s
```

#### startup-proof-restored

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run 'TestNamespaceStartupFailure|TestNamespaceParentDeath|TestNamespaceStopWaitsForExit|TestNamespaceDirectPolicyAdmission' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	1.990s
```

#### cache-boundary-green

```sh
CGO_ENABLED=0 go test ./internal/runner/checks ./internal/runner/containment -run 'TestCheckCache|TestCheckNamespace|TestNamespaceStartupFailure' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/checks	6.018s
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.084s
```

#### unstarted-containment-green

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainment -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	10.108s
```

#### final-contract-compile

```sh
CGO_ENABLED=0 go test ./internal/runner/... ./internal/equipotest -run 'TestDirectBugRuntime|TestDirectWorkspace|TestDirectContainment|TestDirectCancel|TestDirectBugTerminal' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	6.390s
ok  	amadan.net/oficina/equipo/internal/runner/checks	0.008s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.006s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/egress	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.007s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/paseo	0.007s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.006s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.007s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.009s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.418s
ok  	amadan.net/oficina/equipo/internal/equipotest	10.170s
```

The runner executable also built successfully:

```sh
CGO_ENABLED=0 go build -o /home/paulca/t/e2b/task9-evidence/equipo-runner ./cmd/equipo-runner
```

Exit 0. `git diff --check` passed. The owned binary and evidence scratch were removed after copying the evidence into these reports.

### Compiling mutations

All 42 mutations below compiled, failed their named tests and were restored individually. No build failure is counted as mutation evidence. Module-cache mutation failures also demonstrate the remaining attestation/inner-sandbox defenses; the restored command must both start successfully and preserve the required read-only policy.

#### answer-delivery

File: `internal/runner/direct_workflow.go`.

Original:

```go
if state != "delivered" {
```

Mutation:

```go
if false && state != "delivered" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugQuestionResolution -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugQuestionResolution (1.16s)
    --- FAIL: TestDirectBugQuestionResolution/pending (0.43s)
        direct_question_workflow_test.go:31: question resolution trusted transport result instead of journal: [question_resolved]
    --- FAIL: TestDirectBugQuestionResolution/invalid (0.38s)
        direct_question_workflow_test.go:31: question resolution trusted transport result instead of journal: [question_resolved]
FAIL
rastrillo-budget/v1 ran 1.159s
FAIL	amadan.net/oficina/equipo/internal/runner	1.163s
FAIL
```

#### attempt-context

File: `internal/runner/direct_recovery.go`.

Original:

```go
return h.manager.StartRecorded(ctx, l, args,
```

Mutation:

```go
return h.manager.StartRecorded(context.WithoutCancel(ctx), l, args,
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectRestartAndLeaseLoss$/suspend' -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectRestartAndLeaseLoss (4.00s)
    --- FAIL: TestDirectRestartAndLeaseLoss/suspend (4.00s)
        direct_workflow_test.go:215: namespace survived authority loss: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 3.996s
FAIL	amadan.net/oficina/equipo/internal/runner	4.008s
FAIL
```

#### broad-cache-root

File: `internal/runner/provider/check_policy.go`.

Original:

```go
if path == "/" || withinPath(home, path) {
```

Mutation:

```go
if false && (path == "/" || withinPath(home, path)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheRejectsBroadHome -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheRejectsBroadHome (0.00s)
    containment_test.go:194: broad home accepted as module cache: /home/paulca
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.003s
FAIL
```

#### check-cache-separation

File: `internal/runner/checks/namespace.go`.

Original:

```go
"check-" + rand.Text()
```

Mutation:

```go
"check-fixed" + rand.Text()[:0]
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheIsolation -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheIsolation (2.11s)
    containment_test.go:132: cache check 1: -1 provider_identity_mismatch
FAIL
rastrillo-budget/v1 ran 2.114s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	2.166s
FAIL
```

#### check-removal-order

File: `internal/runner/direct_namespaces.go`.

Original:

```go
if failures != nil {
```

Mutation:

```go
if false && failures != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectCancelRetainsCheckUntilEveryProof -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectCancelRetainsCheckUntilEveryProof (1.02s)
    direct_runtime_test.go:127: missing namespace proof accepted
FAIL
rastrillo-budget/v1 ran 1.016s
FAIL	amadan.net/oficina/equipo/internal/runner	1.019s
FAIL
```

#### check-scratch-proof

File: `internal/runner/checks/executor.go`.

Original:

```go
ok && !sandbox.Contained(work)
```

Mutation:

```go
ok && false && !sandbox.Contained(work)
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckNamespaceRetainsScratchWithoutProof -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckNamespaceRetainsScratchWithoutProof (0.17s)
    containment_cleanup_test.go:26: removed checkout without containment proof
FAIL
rastrillo-budget/v1 ran 170ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.172s
FAIL
```

#### early-capacity

File: `internal/runner/direct_namespaces.go`.

Original:

```go
if failures != nil {
```

Mutation:

```go
if false && failures != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectCancelWaitsForNamespacesUnproven -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectCancelWaitsForNamespacesUnproven (0.55s)
    direct_workflow_test.go:150: unproven check namespace released capacity
FAIL
rastrillo-budget/v1 ran 546ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.552s
FAIL
```

#### failed-start-proof

File: `internal/runner/containment/linux.go`.

Original:

```go
if !startedProcess {
```

Mutation:

```go
if false && !startedProcess {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run TestNamespaceStartupFailure -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestNamespaceStartupFailure (0.04s)
    linux_test.go:439: startup intent or exit proof missing: [- 23142add44701ce5f4ea833ca18062d5.json]
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.046s
FAIL
```

#### git-config

File: `internal/runner/workspace/direct.go`.

Original:

```go
digest(config) != at.ConfigHash
```

Mutation:

```go
len(config) < 0
```

```sh
CGO_ENABLED=0 go test ./internal/runner/workspace -run TestDirectWorkspaceIdentity/config -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectWorkspaceIdentity (0.33s)
    --- FAIL: TestDirectWorkspaceIdentity/config (0.00s)
        direct_test.go:53: accepted untrusted Git metadata
FAIL
rastrillo-budget/v1 ran 331ms
FAIL	amadan.net/oficina/equipo/internal/runner/workspace	0.335s
FAIL
```

#### git-hooks

File: `internal/runner/workspace/direct.go`.

Original:

```go
 || strings.HasPrefix(rel, "hooks/")
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/workspace -run TestDirectWorkspaceIdentity/hooks -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectWorkspaceIdentity (0.33s)
    --- FAIL: TestDirectWorkspaceIdentity/hooks/pre-commit (0.00s)
        direct_test.go:53: accepted untrusted Git metadata
FAIL
rastrillo-budget/v1 ran 329ms
FAIL	amadan.net/oficina/equipo/internal/runner/workspace	0.331s
FAIL
```

#### git-metadata

File: `internal/runner/workspace/direct.go`.

Original:

```go
rel == "commondir" ||
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/workspace -run TestDirectWorkspaceIdentity/commondir -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectWorkspaceIdentity (0.10s)
    --- FAIL: TestDirectWorkspaceIdentity/commondir (0.00s)
        direct_test.go:53: accepted untrusted Git metadata
    direct_test.go:63: git [commit -am candidate]: exit status 128 fatal: not a git repository (or any of the parent directories): .git
FAIL
rastrillo-budget/v1 ran 103ms
FAIL	amadan.net/oficina/equipo/internal/runner/workspace	0.105s
FAIL
```

#### host-cache-exclusion

File: `internal/runner/checks/namespace.go`.

Original:

```go
filepath.Join(s.home, ".cache/go-build"): "deny"
```

Mutation:

```go
filepath.Join(s.home, ".cache/go-build"): "read"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheIsolation -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheIsolation (2.44s)
    containment_test.go:144: host build cache exclusion missing
FAIL
rastrillo-budget/v1 ran 2.439s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	2.507s
FAIL
```

#### launch-admission

File: `internal/runner/direct_recovery.go`.

Original:

```go
return observe(ctx, r)
```

Mutation:

```go
_ = observe; return nil
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugLaunchAdmission -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugLaunchAdmission (0.53s)
    direct_workflow_test.go:114: namespace ran without launch ACK
FAIL
rastrillo-budget/v1 ran 531ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.537s
FAIL
```

#### launch-current-handle

File: `internal/equipo/runner_events.go`.

Original:

```go
if event.Kind == "namespace.launch" || event.Kind == "namespace.owner" {
```

Mutation:

```go
if false && (event.Kind == "namespace.launch" || event.Kind == "namespace.owner") {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentLaunchReplayAfterStop -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentLaunchReplayAfterStop (1.11s)
    direct_containment_test.go:108: new launch admitted after stop
FAIL
rastrillo-budget/v1 ran 1.107s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.169s
FAIL
```

#### launch-manifest

File: `internal/runnerproto/containment.go`.

Original:

```go
len(n.ManifestHash) == 64 &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/launch-no-manifest -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (0.99s)
    --- FAIL: TestDirectContainmentReportBinding/launch-no-manifest (0.99s)
        direct_containment_test.go:37: invalid authenticated launch accepted
FAIL
rastrillo-budget/v1 ran 994ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.069s
FAIL
```

#### launch-namespace

File: `internal/runnerproto/containment.go`.

Original:

```go
n.NamespaceID != "" &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/launch-no-namespace -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (0.97s)
    --- FAIL: TestDirectContainmentReportBinding/launch-no-namespace (0.97s)
        direct_containment_test.go:37: invalid authenticated launch accepted
FAIL
rastrillo-budget/v1 ran 975ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.039s
FAIL
```

#### launch-owner

File: `internal/runnerproto/containment.go`.

Original:

```go
n.OwnerKey == owner &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/launch-wrong-owner -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.12s)
    --- FAIL: TestDirectContainmentReportBinding/launch-wrong-owner (1.12s)
        direct_containment_test.go:37: invalid authenticated launch accepted
FAIL
rastrillo-budget/v1 ran 1.124s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.190s
FAIL
```

#### launch-policy

File: `internal/runnerproto/containment.go`.

Original:

```go
len(n.PolicyHash) == 64 &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/launch-no-policy -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.02s)
    --- FAIL: TestDirectContainmentReportBinding/launch-no-policy (1.02s)
        direct_containment_test.go:37: invalid authenticated launch accepted
FAIL
rastrillo-budget/v1 ran 1.023s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.089s
FAIL
```

#### lease-completion-order

File: `internal/runner/workflow.go`.

Original:

```go
s.stopLeaseWatch()
```

Mutation:

```go
// mutation: watchdog still running
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectBugWorkflow$' -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugWorkflow (60.58s)
    direct_graph_test.go:214: reproduce (completing): completion while lease watchdog was still live
FAIL
rastrillo-budget/v1 ran 1m0.578s
FAIL	amadan.net/oficina/equipo/internal/runner	60.663s
FAIL
```

#### legacy-launch-refused

File: `internal/runner/workflow.go`.

Original:

```go
(len(c.Launchers) != 2 || c.Launchers["claude"] == nil || c.Launchers["codex"] == nil || c.Namespaces == nil || c.Launch == nil)
```

Mutation:

```go
false
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectBugRuntime$' -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugRuntime (0.28s)
    direct_runtime_test.go:51: legacy client authorized new workflow
FAIL
rastrillo-budget/v1 ran 280ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.283s
FAIL
```

#### live-capture-recovery

File: `internal/runner/direct_recovery.go`.

Original:

```go
if !j.captureMu.TryLock() {
		return nil, errDirectUncertain
	}
	defer j.captureMu.Unlock()
```

Mutation:

```go
_ = &j.captureMu
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectRestartAndLeaseLossLiveCapture -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectRestartAndLeaseLossLiveCapture (0.43s)
    direct_workflow_test.go:136: recovery admitted while capture was live
FAIL
rastrillo-budget/v1 ran 434ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.437s
FAIL
```

#### local-workspace-identity

File: `internal/runner/workspace/workspace.go`.

Original:

```go
 || (at.Local && (w.ID != at.Workspace.WorkspaceID || w.Path != at.Workspace.Path))
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner/workspace -run TestDirectWorkspaceIdentity -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectWorkspaceIdentity (0.10s)
    direct_test.go:41: accepted changed local workspace id
FAIL
rastrillo-budget/v1 ran 102ms
FAIL	amadan.net/oficina/equipo/internal/runner/workspace	0.104s
FAIL
```

#### missed-check

File: `internal/runner/direct_namespaces.go`.

Original:

```go
if n.Owner != attemptKey(r.Claim.Scope, r.Claim.Handle) {
```

Mutation:

```go
if n.Owner != attemptKey(r.Claim.Scope, r.Claim.Handle) || n.Record.AttemptKey == "check-fixture" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run 'TestDirectCancelWaitsForNamespaces$' -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectCancelWaitsForNamespaces (1.75s)
    direct_workflow_test.go:97: missing namespace proof: {Namespaces:[{ID:a6fc516cb4785e76a8ebc235b9a49328 AttemptKey:model-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532942] ManifestHash:52bbe0c95bc9a9e52a21769df95aab1624cab4dfa3fc696b3161e0ac9133f8f7 HostPID:3736228 StartTicks:858635478 ExitCode:-1 Signal:9 ObservedAt:2026-11-03 17:57:22.9065385 +0000 UTC}] CheckedAt:2026-11-03 17:57:23.07603421 +0000 UTC Version:2 Scope:{Account:team Job:1} Handle:{Revision:0 Attempt:1 Fence:1 Runner:runner} Owner:{LocalOnly:false Attempt:0 Fence:0 Marker: AgentID: Workspace:{ServerID: ProjectID: WorkspaceID: Path:} ExecutorGroups:[]} Inventory:{Observed:[] ExecutorGroups:[] Processes:[] TerminalIDs:[] CoverageKnown:false BootID: CheckedAt:0001-01-01 00:00:00 +0000 UTC} Observed:[] Empty:false}
FAIL
rastrillo-budget/v1 ran 1.753s
FAIL	amadan.net/oficina/equipo/internal/runner	1.759s
FAIL
```

#### module-alias-denial

File: `internal/runner/checks/namespace.go`.

Original:

```go
roots[filepath.Join(mount.Target, rel)] = "deny"
```

Mutation:

```go
_ = rel
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckNamespaceDeniedMountAliases -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckNamespaceDeniedMountAliases (1.25s)
    containment_test.go:179: module mount alias bypassed denied path
FAIL
rastrillo-budget/v1 ran 1.251s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	1.293s
FAIL
```

#### module-cache-inner

File: `internal/runner/checks/namespace.go`.

Original:

```go
"/opt/go-mod": "read"
```

Mutation:

```go
"/opt/go-mod": "write"
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheIsolation -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheIsolation (1.30s)
    containment_test.go:132: cache check 0: 1 <nil>  bwrap: Can't mkdir /opt/go-mod/.git: Read-only file system
FAIL
rastrillo-budget/v1 ran 1.304s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	1.339s
FAIL
```

#### module-cache-outer

File: `internal/runner/provider/check_policy.go`.

Original:

```go
{Source: in.ModuleCache, Target: "/opt/go-mod", ReadOnly: true}
```

Mutation:

```go
{Source: in.ModuleCache, Target: "/opt/go-mod", ReadOnly: false}
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheIsolation -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheIsolation (0.82s)
    containment_test.go:132: cache check 0: -1 provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 817ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.875s
FAIL
```

#### proof-attempt

File: `internal/runnerproto/containment.go`.

Original:

```go
n.AttemptKey == x.AttemptKey &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-attempt -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (0.83s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-attempt (0.83s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 827ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.883s
FAIL
```

#### proof-boot

File: `internal/runnerproto/containment.go`.

Original:

```go
n.BootID == x.BootID &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-boot -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.26s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-boot (1.26s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.259s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.364s
FAIL
```

#### proof-fence

File: `internal/equipo/runner_report_validation.go`.

Original:

```go
p.Handle != q.Handle ||
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-fence -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.13s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-fence (1.13s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.131s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.197s
FAIL
```

#### proof-init

File: `internal/runnerproto/containment.go`.

Original:

```go
n.StartTicks == x.StartTicks &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-init -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.15s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-init (1.15s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.154s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.277s
FAIL
```

#### proof-manifest

File: `internal/runnerproto/containment.go`.

Original:

```go
n.ManifestHash == x.ManifestHash &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-manifest -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.11s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-manifest (1.11s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.111s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.168s
FAIL
```

#### proof-namespace-count

File: `internal/equipo/runner_report_validation.go`.

Original:

```go
if len(launches) != len(p.Namespaces) {
```

Mutation:

```go
if false && len(launches) != len(p.Namespaces) {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/missing-namespace -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.01s)
    --- FAIL: TestDirectContainmentReportBinding/missing-namespace (1.01s)
        direct_containment_test.go:85: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.009s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.079s
FAIL
```

#### proof-namespace

File: `internal/runnerproto/containment.go`.

Original:

```go
n.NamespaceID == x.NamespaceID &&
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/wrong-namespace -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.18s)
    --- FAIL: TestDirectContainmentReportBinding/wrong-namespace (1.18s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.176s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.311s
FAIL
```

#### proof-version

File: `internal/equipo/runner_report_validation.go`.

Original:

```go
p.Version != 2 ||
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/inventory-only -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.17s)
    --- FAIL: TestDirectContainmentReportBinding/inventory-only (1.17s)
        direct_containment_test.go:83: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 1.171s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.228s
FAIL
```

#### renew-heartbeat

File: `internal/runner/runtime.go`.

Original:

```go
if op == "renew" {
```

Mutation:

```go
if false && op == "renew" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeRenewHeartbeat -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugRuntimeRenewHeartbeat (0.24s)
    direct_runtime_test.go:147: active connection liveness was not renewed: [/api/runner/v1/renew]
FAIL
rastrillo-budget/v1 ran 244ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.247s
FAIL
```

#### runtime-lease-release

File: `internal/runner/runtime.go`.

Original:

```go
if r.service != nil && r.service.Supervisor.activeRelease != nil {
```

Mutation:

```go
if false && r.service != nil && r.service.Supervisor.activeRelease != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeClosesNamespaces -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugRuntimeClosesNamespaces (0.93s)
    direct_runtime_test.go:94: runtime shutdown retained account lease after containment
FAIL
rastrillo-budget/v1 ran 935ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.944s
FAIL
```

#### runtime-namespace-stop

File: `internal/runner/runtime.go`.

Original:

```go
var err error
	if r.namespaces != nil {
```

Mutation:

```go
var err error
	if false && r.namespaces != nil {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeClosesNamespaces -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugRuntimeClosesNamespaces (0.94s)
    direct_runtime_test.go:92: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 937ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.943s
FAIL
```

#### scratch-cache-root

File: `internal/runner/containment/mounts.go`.

Original:

```go
if l.Policy.IsCheck() && (overlaps(mount.Source, m.cfg.ScratchRoot) || mount.Source == "/" || within(home, mount.Source)) {
```

Mutation:

```go
if false && l.Policy.IsCheck() && (overlaps(mount.Source, m.cfg.ScratchRoot) || mount.Source == "/" || within(home, mount.Source)) {
```

```sh
CGO_ENABLED=0 go test ./internal/runner/checks -run TestCheckCacheRejectsNamespaceScratch -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestCheckCacheRejectsNamespaceScratch (1.39s)
    containment_test.go:203: namespace scratch accepted as module cache
FAIL
rastrillo-budget/v1 ran 1.386s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	1.446s
FAIL
```

#### startup-reconciliation

File: `internal/runner/runtime.go`.

Original:

```go
if _, err = r.journal.ReconcileDirect(ctx, r.namespaces); err != nil {
		return r, err
	}
```

Mutation:

```go

```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugRuntimeRecoveryBeforeStart -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugRuntimeRecoveryBeforeStart (0.14s)
    direct_runtime_test.go:62: admitted launchers before reconciling unknown namespace
FAIL
rastrillo-budget/v1 ran 138ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.141s
FAIL
```

#### terminal-authority

File: `internal/runner/direct_workflow.go`.

Original:

```go
if state != "completed" {
```

Mutation:

```go
if false && state != "completed" {
```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugTerminalRequiresCommit -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugTerminalRequiresCommit (1.21s)
    --- FAIL: TestDirectBugTerminalRequiresCommit/cancelled-before-commit (0.61s)
        direct_question_workflow_test.go:77: wrong terminal authority after cancellation: <nil>
FAIL
rastrillo-budget/v1 ran 1.207s
FAIL	amadan.net/oficina/equipo/internal/runner	1.210s
FAIL
```

#### terminal-before-eof

File: `internal/runner/direct_workflow.go`.

Original:

```go
func nextDirectNotice(ctx context.Context, notices <-chan provider.Event, done chan error) (provider.Event, error) {
	select {
	case event := <-notices:
		return event, nil
	default:
	}
	select {
	case event := <-notices:
		return event, nil
	case <-ctx.Done():
		return provider.Event{}, ctx.Err()
	case err := <-done:
		done <- err
		select {
		case event := <-notices:
			return event, nil
		default:
			return provider.Event{}, err
		}
	}
}

```

Mutation:

```go
func nextDirectNotice(ctx context.Context, notices <-chan provider.Event, done chan error) (provider.Event, error) {err:=<-done;done<-err;return provider.Event{},err}

```

```sh
CGO_ENABLED=0 go test ./internal/runner -run TestDirectBugTerminalEOF -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectBugTerminalEOF (0.00s)
    direct_question_workflow_test.go:45: EOF replaced committed terminal event
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.016s
FAIL
```

#### unstarted-known-zero

File: `internal/equipo/runner_report_validation.go`.

Original:

```go
if len(launches) != len(p.Namespaces) {
```

Mutation:

```go
if len(launches) != len(p.Namespaces) || len(launches)==0 {
```

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run TestDirectContainmentReportBinding/unstarted -count=1
```

Exit 1, compiled, caught:

```text
--- FAIL: TestDirectContainmentReportBinding (1.05s)
    --- FAIL: TestDirectContainmentReportBinding/unstarted (1.05s)
        direct_containment_test.go:82: bound proof refused: You do not have access to this page. Ask an owner for access.
FAIL
rastrillo-budget/v1 ran 1.054s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.116s
FAIL
```

### User-facing strings

No new `copy.go` entries or app-owned UI prose were added, so there are no new pending copy entries. Existing accepted/rejected tool copy and existing error codes are reused. New operational identifiers include `namespace.owner`, `namespace.launch`, `opening-provider`, `checks-v1`, `direct-cli`, `EQUIPO_BWRAP_PATH` and `EQUIPO_GO_MODULE_CACHE`. Test prompts, sentinels and fixture replies are test-only. README prose and UI assets are unchanged. No copy-review skill or server was invoked.

### Concerns and remaining release work

- No live provider gate was authorized or run. Provider-home fixtures contain only synthetic data and are removed with test scratch. There was no sign-in, enrolment, model-provider prompt, external forge write, push, merge or deployment.
- The release manifest has no certified direct policies. Production construction keeps uncertified routes unavailable and rejects their launches. Task 11a still needs the direct connection-eligibility/schema cutover; the existing instance connection report rules still expect legacy Paseo fields for an available route. This task does not fabricate those fields. Task 11b remains responsible for live provider/native-tool/refresh certification.
- The old Paseo end-to-end, preparation and service fixtures still compile, but they target the retired constructor/inspector path and are outside this task's required selector. They need conversion or retirement in Task 11a before the whole `make ci` gate can be claimed. No full-suite success is claimed here. Core authority, budget, evidence, recovery, direct adapter/relay and command-denial regressions are recorded above.
- The new workflow-level lease-loss tests and retained namespace parent-death/direct-journal tests divide the crash coverage across boundaries. The fake CLI graph is not a live provider certification.

The task remains on `plan-2b`. No agent or subagent was spawned, no other worktree was changed, and no `.claude/HANDOFF.md` was created. The controller performs the review and push.


## Task 8b: Native Codex approvals, 2026-11-03

Status: DONE_WITH_CONCERNS.
Branch: `plan-2b`, starting at `532e867`.
Commit subject: `feat: allow once for native Codex approvals with a profile label`.
Author: `codex <codex~paul@keymail.dev>`.
All repository work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

### What changed

A person can allow one native Codex command or file change. The scriptless form has exactly two decision buttons for a supported, bounded request: **Allow once** and **Deny**. Provider-advertised session approvals, permanent policy changes and amendments are never decision controls and are never sent. Modern approvals send only `decision: accept`; legacy approvals send only `decision: approved`. Modern denial remains `decision: decline`. The legacy denial shape is the pinned `denied` object. An unsupported or inherently persistent request cannot be allowed.

The adapter retains the numeric or string JSON server request ID, local turn, provider turn, session and original frame. File approvals also retain the matching `item/started` frame, including every path, move target and diff. The item is checked again before the response is reserved. A completed, missing or changed item cannot be approved. The final response check rejects a request resolved while the authorization callback was running. An answer is consumed once before I/O. A new request ID for the same command requires another person answer. Commands are not parsed and rebuilt: modern command strings and legacy argv/cwd stay as Codex sent them.

The runner obtains the allowing person from the authenticated instance answer API. Immediately before delivery it requires the same answer, person, task, attempt, fence, revision, session, request and payload. A missing answer now fails closed; the old current check allowed an answer to disappear after revocation. At the instance, the existing verified-session Actor and transaction-local roster check remain authoritative. Form fields cannot select the actor or inject approval options.

The runner records a `profile-approval` entry in `journal_supervisor`, atomically with the pending `journal_answers` intent and `direct_answer_scopes`. It contains the full safe question request, item frame and the instance's `AnsweredBy`. The test checks this record before provider I/O. The allowing person is part of the native answer's idempotency hash. A failed journal insert rolls back before fencing the journal; it sends no provider response and cannot leave a partial answer transaction. A revoked final native authorization returns an error rather than being acknowledged as delivered. Existing Equipo MCP rejection behavior remains unchanged.

The instance persists a `ProfileApproval` in the assignment's existing isolation JSON when the person authorizes it. The record contains the original request, correlated file item where applicable, request/item/provider-turn/session IDs, question ID, verified person's address and label. Existing questions and audit rows remain the answer history. The instance already has the exact safe request before the answer, and receives the normal delivery resolution afterward. No new application table or migration is needed; old snapshots remain readable because the new JSON field is optional.

Profile approvals merge through the same isolation history used for trial and unconfined evidence. They reach existing artifacts and events for the step, later artifact provenance, independent review, and publication descriptions. Evidence containment refuses a snapshot that strips an approval. The shared isolation-label template renders the label on the task-card header, Journey step chip and task-detail history. HTTP assertions locate those surfaces separately. The publisher refuses a description missing a label required by the authorization, and the publication test checks the description actually written to the fake forge.

An approval does not change the isolation status, taint the runner, replace its certification tuple or authorize a later launch. The Codex response changes only that one inner decision. No containment or namespace implementation changed. Tests snapshot the full launch policy, including hash, manifest, mounts, settings and network policy. Mutations that change its hash, manifest, mounts or network policy fail those assertions.

Claude's adapter required no change. It already responds to the original permission request with allow/deny. Its permission regression tests passed. The strengthened shared current-answer check also protects direct person-answer delivery without changing Claude's response format.

### Interpretations

1. Paul's follow-up supersedes Task 8's former deny-only native Codex rule. The follow-up also supersedes generic copy-review, subagent and handoff workflows. No copy-review skill/server, provider drafter, subagent or `.claude/HANDOFF.md` was used or created.
2. The installed `codex-cli 0.165.0` generated its JSON schemas locally with `codex app-server generate-json-schema --out /home/paulca/t/e2b/t8b/schema`. This was an offline schema operation, not a provider session. The modern methods and pinned legacy `execCommandApproval` and `applyPatchApproval` are supported. Legacy frames omit a turn ID, so they are accepted only while the adapter has an active, known provider turn; that turn is captured separately and checked through delivery. Modern commands are strings; the implementation does not invent argv for them. Legacy argv is preserved as an array.
3. The pinned `grantRoot` description says it grants writes for the remainder of the session. Such a request remains unapprovable even if a caller asks for ordinary allow. There is no proven one-request interpretation for it. Commands missing command/cwd, file approvals without the exact live item, `writeStdin` requests without a bounded command shape, and unknown methods also remain deny-only. This exception to two available choices follows the instruction to refuse persistent authority and unsupported shapes.
4. Proposed exec/network policy amendments may be present in the original request as evidence. They are never selected, reflected into a response or installed. An answer with any updated input or persistent decision spelling is refused.
5. Secret redaction remains mandatory. If sanitization changes a request or correlated item, the runner refuses to authorize the unseen original bytes. This preserves exact-action consent without persisting credentials. JSON object key order may change during storage; number spelling, string values, argv order, cwd, paths and diffs are preserved. Provider-to-relay correlation also checks the captured frame bytes.
6. The label is conservative authorization history, recorded before the action could execute. It is not proof that Codex executed the action successfully. Revocation or uncertain delivery does not erase the person's historical authorization or remove the label from evidence. A later identical action still needs a new answer. This follows the existing historical isolation-label mechanism.
7. The runner's approval evidence uses existing FULL-synchronous journal transactions. The instance's evidence uses its existing answer transaction. No broad policy flag or new authority-bearing database column was added.

### Files

- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team/approval_profile_test.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team/profile_approval.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest/approval_once_test.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/approval_once_test.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge/approval_profile_test.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/approval_once_test.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/copy.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/questions.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/runner_execution.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team/git_evidence.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/templates/task_card.html`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge/publisher.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/events.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/launcher.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/types.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/questions.go`
- `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runnerproto/questions.go`

The controller section is appended to `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`. The full task report is saved at `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-8b-report.md`; that directory is already ignored, as for the preceding task reports.

### RED evidence

The initial approval, HTTP and publication tests were added before the primary implementation. They compiled and failed on the deny-only behavior and missing evidence. Further current-answer, publisher, root-grant and delivery regressions were observed red before their fixes. The current-answer predicate was extracted without changing its behavior before its stale-answer regression was run.

#### Initial native approval, HTTP and provenance tests

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team -run 'TestCodexApprovalAllowOnce|TestCodexApprovalPersistentRefused|TestApprovedBeyondProfile|TestDirectStaleAnswerNative' -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.84s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.45s)
        approval_once_test.go:42: allow once refused provider_policy_rejected
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.39s)
        approval_once_test.go:42: allow once refused provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 1.248s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	1.251s
--- FAIL: TestApprovedBeyondProfileHTTP (4.09s)
    approval_once_test.go:32: native approval must have exactly Allow once and Deny
--- FAIL: TestDirectStaleAnswerNativeRevocation (0.46s)
    approval_once_test.go:52: One or more values are invalid. Check the form and try again.
FAIL
rastrillo-budget/v1 ran 4.558s
FAIL	amadan.net/oficina/equipo/internal/equipotest	4.619s
--- FAIL: TestApprovedBeyondProfilePublication (0.22s)
    approval_profile_test.go:22: publication lost approved profile evidence {"version":1,"target":{"kind":"repository","repository":"example/shop","ref":"team/fix-sum","default_ref":"main","base_revision":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"label":"unconfined","isolation":{"status":"unconfined","runner_tainted":true,"acknowledgement_ids":["ack-1"],"observed_tuples":[{"provider":"provider-a","provider_version":"1","paseo_version":"0.14.0" [excerpt truncated]
FAIL
rastrillo-budget/v1 ran 225ms
FAIL	amadan.net/oficina/equipo/internal/equipo/team	0.228s
FAIL
```

#### Current answer disappears or changes

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/removed (0.00s)
        approval_once_test.go:33: stale answer accepted removed
    --- FAIL: TestDirectStaleAnswerNativeCurrent/person (0.00s)
        approval_once_test.go:33: stale answer accepted person
    --- FAIL: TestDirectStaleAnswerNativeCurrent/payload (0.00s)
        approval_once_test.go:33: stale answer accepted payload
    --- FAIL: TestDirectStaleAnswerNativeCurrent/answer (0.00s)
        approval_once_test.go:33: stale answer accepted answer
    --- FAIL: TestDirectStaleAnswerNativeCurrent/fence (0.00s)
        approval_once_test.go:33: stale answer accepted fence
    --- FAIL: TestDirectStaleAnswerNativeCurrent/attempt (0.00s)
        approval_once_test.go:33: stale answer accepted attempt
    --- FAIL: TestDirectStaleAnswerNativeCurrent/task (0.00s)
        approval_once_test.go:33: stale answer accepted task
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### Pinned legacy native approvals

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalLegacyOnce -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestCodexApprovalLegacyOnce (0.87s)
    --- FAIL: TestCodexApprovalLegacyOnce/execCommandApproval (0.43s)
        approval_once_test.go:74: pinned legacy request not relayed codex_protocol_rejected
    --- FAIL: TestCodexApprovalLegacyOnce/applyPatchApproval (0.44s)
        approval_once_test.go:74: pinned legacy request not relayed codex_protocol_rejected
FAIL
rastrillo-budget/v1 ran 873ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.875s
FAIL
```

#### Publisher loses the required label

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge -run TestApprovedBeyondProfilePublisher -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestApprovedBeyondProfilePublisher (0.02s)
    approval_profile_test.go:21: publisher lost profile label guard unconfined <nil>
FAIL
rastrillo-budget/v1 ran 16ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.018s
FAIL
```

#### Persistent file root grant

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalRootGrantRefused -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestCodexApprovalRootGrantRefused (0.24s)
    approval_once_test.go:190: session root grant accepted
FAIL
rastrillo-budget/v1 ran 238ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.240s
FAIL
```

#### Journal failure and late revocation

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run 'TestCodexApprovalJournalWriteFailure|TestCodexApprovalAuthorizationRefused' -count=1
```

Exit 1; compiled.

```text
--- FAIL: TestCodexApprovalJournalWriteFailure (1.16s)
    approval_once_test.go:179: journal failure waited for the request deadline instead of releasing the write transaction
FAIL
rastrillo-budget/v1 ran 1.167s
FAIL	amadan.net/oficina/equipo/internal/runner	1.174s
--- FAIL: TestCodexApprovalAuthorizationRefused (0.21s)
    approval_once_test.go:273: revoked authorization reported as delivered
FAIL
rastrillo-budget/v1 ran 207ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.208s
FAIL
```

### GREEN evidence

The full covering selection passed after the implementation and the first 48 restored mutations. It includes the requested selection, independent-review/publication checks, Claude permission regressions, policy checks and the offline direct bug workflow. No full suite or `make ci` ran.

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/... /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runnerproto -run 'TestCodexApproval|TestDirectStaleAnswer|TestToolProxy|TestDirectTool|TestQuestion|TestApprovedBeyondProfile|TestTask|TestJourney|TestPublish|TestClaudePermission|TestDirectBugWorkflow|TestCodexAppServerPolicy|TestCodexPolicyHashIncludesRPC' -count=1
```

Exit 0.

```text
ok  	amadan.net/oficina/equipo/internal/runner	75.676s
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.003s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	1.032s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	8.319s
ok  	amadan.net/oficina/equipo/internal/equipotest	58.766s
ok  	amadan.net/oficina/equipo/internal/equipo	0.898s
ok  	amadan.net/oficina/equipo/internal/equipo/team	1.463s
ok  	amadan.net/oficina/equipo/internal/runner/forge	6.348s
?   	amadan.net/oficina/equipo/internal/runnerproto	[no test files]
```

The last change strengthened only HTTP assertions so each display surface is checked independently. The three additional template mutations failed their named assertions. After restoring them, all new instance label tests passed:

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfile -count=1
```

Exit 0.

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	4.136s
```

### Compiling mutation evidence

Each mutation was applied alone, tested, and restored in a `finally` block before the next mutation. All 51 final mutations compiled and exited 1 with a named test failure. Commands below are shell equivalents of the exact `go test` argv and `CGO_ENABLED=0` environment used by the harness. No compilation failure counts as evidence.

Two initial mutation-harness attempts matched the older MCP comparison instead of the native comparison. Their native tests passed, so those attempts were rejected as evidence. The targets were narrowed to the native block and the same named tests then failed. Only the corrected results appear below. No failed mutation remained in the source.

#### 1. native-allow-disabled

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
_, nativeErr := NativeApproval(ev)
```

To:

```text
_, nativeErr := NativeApproval(ev)
 nativeErr = provider.ErrPolicy
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.35s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.18s)
        approval_once_test.go:51: allow once refused provider_policy_rejected
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.17s)
        approval_once_test.go:51: allow once refused provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 348ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.351s
FAIL
```

#### 2. persistent-behavior-admitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
} else if a.Behavior != "deny" {
```

To:

```text
} else if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalPersistentRefused -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalPersistentRefused (0.14s)
    approval_once_test.go:76: persistent option accepted acceptForSession
FAIL
rastrillo-budget/v1 ran 141ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.146s
FAIL
```

#### 3. amendment-input-admitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
if len(a.Input) != 0 {
```

To:

```text
if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalPersistentRefused -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalPersistentRefused (0.14s)
    approval_once_test.go:81: amendment accepted {"decision":"acceptForSession"}
FAIL
rastrillo-budget/v1 ran 139ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.142s
FAIL
```

#### 4. persistent-wire-decision

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
decision = "accept"
```

To:

```text
decision = "acceptForSession"
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.27s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.13s)
        approval_once_test.go:55: broader or wrong response: {"id":7,"result":{"decision":"acceptForSession"}}
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.13s)
        approval_once_test.go:55: broader or wrong response: {"id":7,"result":{"decision":"acceptForSession"}}
FAIL
rastrillo-budget/v1 ran 267ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.269s
FAIL
```

#### 5. request-replayed

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
delete(s.requests, a.RequestID)
```

To:

```text
// mutation: keep request
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.29s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.16s)
        approval_once_test.go:61: request replay approved
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.13s)
        approval_once_test.go:61: request replay approved
FAIL
rastrillo-budget/v1 ran 289ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.291s
FAIL
```

#### 6. resolved-request-accepted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
if !present || !bytes.Equal(current.Payload, ev.Payload) || !bytes.Equal(current.ToolCall, ev.ToolCall) {
```

To:

```text
_ = current; _ = present
 if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalResolvedDuringAuthorization -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalResolvedDuringAuthorization (0.13s)
    approval_once_test.go:171: resolved request approved
FAIL
rastrillo-budget/v1 ran 133ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.135s
FAIL
```

#### 7. file-item-revalidation-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
if a.Behavior == "allow" && v.Method == "item/fileChange/requestApproval" {
```

To:

```text
if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalFileCorrelation -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalFileCorrelation (0.80s)
    --- FAIL: TestCodexApprovalFileCorrelation/completed (0.13s)
        approval_once_test.go:150: changed file item approved completed
    --- FAIL: TestCodexApprovalFileCorrelation/changed (0.13s)
        approval_once_test.go:150: changed file item approved changed
    --- FAIL: TestCodexApprovalFileCorrelation/missing (0.13s)
        approval_once_test.go:150: changed file item approved missing
    --- FAIL: TestCodexApprovalFileCorrelation/wrong-item (0.13s)
        approval_once_test.go:150: changed file item approved wrong-item
    --- FAIL: TestCodexApprovalFileCorrelation/wrong-turn (0.13s)
        approval_once_test.go:150: changed file item approved wrong-turn
    --- FAIL: TestCodexApprovalFileCorrelation/wrong-session (0.13s)
        approval_once_test.go:150: changed file item approved wrong-session
FAIL
rastrillo-budget/v1 ran 798ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.800s
FAIL
```

#### 8. deny-becomes-accept

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
decision := "decline"
```

To:

```text
decision := "accept"
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalPersistentRefused -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalPersistentRefused (0.14s)
    approval_once_test.go:93: deny changed
FAIL
rastrillo-budget/v1 ran 137ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.138s
FAIL
```

#### 9. native-id-type-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
string(v.ID) != ev.RequestID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/id (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted id
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/id (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted id
FAIL
rastrillo-budget/v1 ran 264ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.265s
FAIL
```

#### 10. native-session-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
p.ThreadID != ev.SessionID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/session (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted session
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/session (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted session
FAIL
rastrillo-budget/v1 ran 262ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.264s
FAIL
```

#### 11. native-turn-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
(ev.ProviderTurnID != "" && ev.ProviderTurnID != p.TurnID)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/provider-turn (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted provider-turn
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/provider-turn (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted provider-turn
FAIL
rastrillo-budget/v1 ran 265ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.267s
FAIL
```

#### 12. native-item-required-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
p.ItemID == ""
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.27s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/item (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted item
FAIL
rastrillo-budget/v1 ran 265ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.267s
FAIL
```

#### 13. native-command-required-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
p.Command == ""
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/command (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted command
FAIL
rastrillo-budget/v1 ran 265ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.266s
FAIL
```

#### 14. native-cwd-required-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
p.Cwd == ""
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/commandExecution/requestApproval/cwd (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted cwd
FAIL
rastrillo-budget/v1 ran 263ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.265s
FAIL
```

#### 15. file-path-required-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
change.Path == ""
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.27s)
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/file-path (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted file-path
FAIL
rastrillo-budget/v1 ran 267ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.270s
FAIL
```

#### 16. file-diff-required-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
change.Diff == nil
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/file-diff (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted file-diff
FAIL
rastrillo-budget/v1 ran 262ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.264s
FAIL
```

#### 17. file-item-correlation-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
c.Item.ID != p.ItemID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/file-item (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted file-item
FAIL
rastrillo-budget/v1 ran 263ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.264s
FAIL
```

#### 18. file-turn-correlation-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
c.TurnID != p.TurnID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.26s)
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/file-turn (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted file-turn
FAIL
rastrillo-budget/v1 ran 263ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.264s
FAIL
```

#### 19. file-session-correlation-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
c.ThreadID != p.ThreadID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalNativeShape -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalNativeShape (0.28s)
    --- FAIL: TestCodexApprovalNativeShape/item/fileChange/requestApproval/file-session (0.00s)
        approval_once_test.go:261: incomplete or mismatched native action accepted file-session
FAIL
rastrillo-budget/v1 ran 283ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.285s
FAIL
```

#### 20. persistent-root-admitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/native_approval.go`.

Changed:

```text
p.GrantRoot != ""
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalRootGrantRefused -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalRootGrantRefused (0.14s)
    approval_once_test.go:194: session root grant accepted
FAIL
rastrillo-budget/v1 ran 143ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.145s
FAIL
```

#### 21. relay-request-id-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
original.RequestID != ev.RequestID || !bytes.Equal(original.Payload, ev.Payload)
```

To:

```text
false || !bytes.Equal(original.Payload, ev.Payload)
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/id -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.10s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/id (0.10s)
        approval_once_test.go:131: changed or revoked request approved id
FAIL
rastrillo-budget/v1 ran 101ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.104s
FAIL
```

#### 22. relay-turn-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
original.TurnID != ev.TurnID || original.ProviderTurnID
```

To:

```text
false || original.ProviderTurnID
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/turn -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.10s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/turn (0.10s)
        approval_once_test.go:131: changed or revoked request approved turn
FAIL
rastrillo-budget/v1 ran 104ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.107s
FAIL
```

#### 23. relay-session-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
original.SessionID != ev.SessionID || original.TurnID != ev.TurnID || original.ProviderTurnID
```

To:

```text
false || original.TurnID != ev.TurnID || original.ProviderTurnID
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/session -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.11s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/session (0.11s)
        approval_once_test.go:131: changed or revoked request approved session
FAIL
rastrillo-budget/v1 ran 112ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.115s
FAIL
```

#### 24. relay-payload-binding-skipped

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
original.ProviderTurnID != ev.ProviderTurnID || original.RequestID != ev.RequestID || !bytes.Equal(original.Payload, ev.Payload) || !bytes.Equal(original.ToolCall, ev.ToolCall)
```

To:

```text
original.ProviderTurnID != ev.ProviderTurnID || original.RequestID != ev.RequestID || false || !bytes.Equal(original.ToolCall, ev.ToolCall)
```

Changed:

```text
!runnerproto.SameRequestJSON(original.Payload, saved.Request)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run 'TestCodexApprovalJournalAndExactRequest/(item|command|cwd)' -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.32s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/item (0.11s)
        approval_once_test.go:131: changed or revoked request approved item
    --- FAIL: TestCodexApprovalJournalAndExactRequest/command (0.11s)
        approval_once_test.go:131: changed or revoked request approved command
    --- FAIL: TestCodexApprovalJournalAndExactRequest/cwd (0.10s)
        approval_once_test.go:131: changed or revoked request approved cwd
FAIL
rastrillo-budget/v1 ran 321ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.324s
FAIL
```

#### 25. redacted-payload-approved

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
!runnerproto.SameRequestJSON(original.Payload, saved.Request)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/redacted -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.10s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/redacted (0.10s)
        approval_once_test.go:131: changed or revoked request approved redacted
FAIL
rastrillo-budget/v1 ran 103ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.105s
FAIL
```

#### 26. delivery-revocation-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_questions.go`.

Changed:

```text
if err != nil || deadline.IsZero() || !time.Now().Before(deadline) {
```

To:

```text
_ = deadline; _ = err
 if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/revoked -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.11s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/revoked (0.11s)
        approval_once_test.go:131: changed or revoked request approved revoked
FAIL
rastrillo-budget/v1 ran 107ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.110s
FAIL
```

#### 27. missing-current-answer-accepted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
if q.Answer != nil {
		return runnerproto.Question{}, provider.ErrIdentity
```

To:

```text
if false {
		return runnerproto.Question{}, provider.ErrIdentity
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/removed -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/removed (0.00s)
        approval_once_test.go:46: stale answer accepted removed
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.002s
FAIL
```

#### 28. current-person-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
(q.AnsweredBy != "" && saved.AnsweredBy != q.AnsweredBy)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/person -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/person (0.00s)
        approval_once_test.go:46: stale answer accepted person
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.005s
FAIL
```

#### 29. current-payload-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
!runnerproto.SameRequestJSON(saved.RawRequest, q.RawRequest)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/payload -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/payload (0.00s)
        approval_once_test.go:46: stale answer accepted payload
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### 30. current-answer-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
runnerproto.EventHash(saved.Answer) != runnerproto.EventHash(q.Answer)
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/answer -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/answer (0.00s)
        approval_once_test.go:46: stale answer accepted answer
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### 31. current-fence-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
saved.Fence != q.Fence
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/fence -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/fence (0.00s)
        approval_once_test.go:46: stale answer accepted fence
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.002s
FAIL
```

#### 32. current-attempt-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
saved.Attempt != q.Attempt
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/attempt -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/attempt (0.00s)
        approval_once_test.go:46: stale answer accepted attempt
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### 33. current-task-ignored

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/direct_workflow.go`.

Changed:

```text
saved.TaskID != q.TaskID
```

To:

```text
false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestDirectStaleAnswerNativeCurrent/task -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestDirectStaleAnswerNativeCurrent (0.00s)
    --- FAIL: TestDirectStaleAnswerNativeCurrent/task (0.00s)
        approval_once_test.go:46: stale answer accepted task
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

#### 34. journal-evidence-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/questions.go`.

Changed:

```text
nativeErr == nil && answer.Behavior == "allow"
```

To:

```text
nativeErr == nil && false
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/none -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.11s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/none (0.11s)
        approval_once_test.go:93: approval was not durable before provider I/O
FAIL
rastrillo-budget/v1 ran 113ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.116s
FAIL
```

#### 35. journal-actor-unbound

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/questions.go`.

Changed:

```text
hash = runnerproto.EventHash([]any{q.ID, q.Revision, q.RawRequest, answer, q.AnsweredBy})
```

To:

```text
hash = runnerproto.EventHash([]any{q.ID, q.Revision, q.RawRequest, answer})
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalAndExactRequest/none -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalAndExactRequest (0.14s)
    --- FAIL: TestCodexApprovalJournalAndExactRequest/none (0.14s)
        approval_once_test.go:155: changed allowing person replay accepted
FAIL
rastrillo-budget/v1 ran 141ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.144s
FAIL
```

#### 36. instance-evidence-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/questions.go`.

Changed:

```text
if err := recordProfileApproval(tx, q.AssignmentID, approval); err != nil {
```

To:

```text
_ = approval
 if err := error(nil); err != nil {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.45s)
    approval_once_test.go:60: assignment missing approval evidence {"status":"confined","runner_tainted":true,"acknowledgement_ids":["MZ6SM5H2YFX2A2EETDKKATDDKP"],"observed_tuples":[{"provider":"claude","provider_version":"2.1.312","paseo_version":"0.14.0","isolation_config_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},{"provider":"codex","provider_version":"0.165.0","paseo_version":"0.14.0","isolation_config_hash":"aa [excerpt truncated]
FAIL
rastrillo-budget/v1 ran 3.446s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.486s
FAIL
```

#### 37. instance-actor-forged

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/questions.go`.

Changed:

```text
Person: member.Address, Label: copyText("isolation.approved_beyond_profile")
```

To:

```text
Person: "forged", Label: copyText("isolation.approved_beyond_profile")
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.46s)
    approval_once_test.go:60: assignment missing approval evidence {"profile_approvals":[{"question_id":"native","request_id":"7","item_id":"item","turn_id":"provider-turn","session_id":"session","person":"forged","label":"approved beyond profile","request":{"id":7,"method":"item/commandExecution/requestApproval","params":{"command":"printf hello","cwd":"/workspace","itemId":"item","threadId":"session","turnId":"provider-turn"}}}],"status":"confi [excerpt truncated]
FAIL
rastrillo-budget/v1 ran 3.462s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.507s
FAIL
```

#### 38. lineage-approval-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team/git_evidence.go`.

Changed:

```text
a.ProfileApprovals = MergeProfileApprovals(a.ProfileApprovals, b.ProfileApprovals)
```

To:

```text
// mutation: lose inherited approvals
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team -run TestApprovedBeyondProfilePublication -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfilePublication (0.08s)
    approval_profile_test.go:24: unexpected: team: evidence: publication_evidence_invalid
FAIL
rastrillo-budget/v1 ran 81ms
FAIL	amadan.net/oficina/equipo/internal/equipo/team	0.085s
FAIL
```

#### 39. instance-merge-approval-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/runner_execution.go`.

Changed:

```text
a.ProfileApprovals = team.MergeProfileApprovals(a.ProfileApprovals, b.ProfileApprovals)
```

To:

```text
// mutation: lose task history
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.46s)
    approval_once_test.go:65: task card or Journey chip lost label /journey
FAIL
rastrillo-budget/v1 ran 3.46s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.502s
FAIL
```

#### 40. stripped-evidence-accepted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team/git_evidence.go`.

Changed:

```text
!profileApprovalsContain(have.ProfileApprovals, need.ProfileApprovals) ||
```

To:

```text

```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/team -run TestApprovedBeyondProfilePublication -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfilePublication (0.07s)
    approval_profile_test.go:38: label stripping accepted
FAIL
rastrillo-budget/v1 ran 71ms
FAIL	amadan.net/oficina/equipo/internal/equipo/team	0.073s
FAIL
```

#### 41. task-label-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/templates/task_card.html`.

Changed:

```text
{{if .ProfileApprovals}}<span equipo-isolation>{{copy "isolation.approved_beyond_profile"}}</span>{{end}}
```

To:

```text

```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.46s)
    approval_once_test.go:65: task card or Journey chip lost label /journey
FAIL
rastrillo-budget/v1 ran 3.457s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.497s
FAIL
```

#### 42. publisher-label-guard-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge/publisher.go`.

Changed:

```text
if !strings.Contains(v.Description, approval.Label) {
```

To:

```text
_ = approval
 if false {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/forge -run TestApprovedBeyondProfilePublisher -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfilePublisher (0.02s)
    approval_profile_test.go:23: publisher lost profile label guard unconfined <nil>
FAIL
rastrillo-budget/v1 ran 18ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.020s
FAIL
```

#### 43. approval-mutates-hash

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
// Reserve the one response before I/O.
```

To:

```text
s.launch.Policy.Hash = "changed"
 // Reserve the one response before I/O.
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.29s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.14s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.14s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
FAIL
rastrillo-budget/v1 ran 286ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.287s
FAIL
```

#### 44. approval-mutates-manifest

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
// Reserve the one response before I/O.
```

To:

```text
s.launch.Policy.Manifest = json.RawMessage(`{}`)
 // Reserve the one response before I/O.
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.28s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.14s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.14s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
FAIL
rastrillo-budget/v1 ran 279ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.281s
FAIL
```

#### 45. approval-mutates-mounts

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
// Reserve the one response before I/O.
```

To:

```text
s.launch.Policy.Mounts = append(s.launch.Policy.Mounts, provider.Mount{Source:"/",Target:"/host"})
 // Reserve the one response before I/O.
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.27s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.14s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.13s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
FAIL
rastrillo-budget/v1 ran 268ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.270s
FAIL
```

#### 46. approval-mutates-network

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
// Reserve the one response before I/O.
```

To:

```text
s.launch.Policy.ThreadPolicy = json.RawMessage(`{"networkAccess":true}`)
 // Reserve the one response before I/O.
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAllowOnce -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAllowOnce (0.26s)
    --- FAIL: TestCodexApprovalAllowOnce/item/commandExecution/requestApproval (0.13s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
    --- FAIL: TestCodexApprovalAllowOnce/item/fileChange/requestApproval (0.13s)
        approval_once_test.go:65: policy hash, manifest, network or namespace mounts changed
FAIL
rastrillo-budget/v1 ran 264ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.266s
FAIL
```

#### 47. journal-rollback-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/questions.go`.

Changed:

```text
"INSERT INTO journal_supervisor(kind,state_key,body) VALUES('profile-approval',?,?)", key, raw); err != nil {
			tx.Rollback()
```

To:

```text
"INSERT INTO journal_supervisor(kind,state_key,body) VALUES('profile-approval',?,?)", key, raw); err != nil {
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner -run TestCodexApprovalJournalWriteFailure -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalJournalWriteFailure (1.09s)
    approval_once_test.go:179: journal failure waited for the request deadline instead of releasing the write transaction
FAIL
rastrillo-budget/v1 ran 1.087s
FAIL	amadan.net/oficina/equipo/internal/runner	1.090s
FAIL
```

#### 48. revoked-native-reported-delivered

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex/answers.go`.

Changed:

```text
if nativeErr == nil {
					return e
```

To:

```text
if false {
					return e
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/provider/codex -run TestCodexApprovalAuthorizationRefused -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestCodexApprovalAuthorizationRefused (0.13s)
    approval_once_test.go:273: revoked authorization reported as delivered
FAIL
rastrillo-budget/v1 ran 134ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.135s
FAIL
```

#### 49. task-card-header-label-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/templates/task_card.html`.

Changed:

```text
{{end}}{{template "trial-label" .Isolation}}</div>
```

To:

```text
{{end}}</div>
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.44s)
    approval_once_test.go:76: task card header lost label /journey
FAIL
rastrillo-budget/v1 ran 3.444s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.485s
FAIL
```

#### 50. journey-step-label-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/templates/task_card.html`.

Changed:

```text
{{end}}{{template "trial-label" .Isolation}}</li>
```

To:

```text
{{end}}</li>
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.45s)
    approval_once_test.go:79: Journey step chip lost label /journey
FAIL
rastrillo-budget/v1 ran 3.449s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.490s
FAIL
```

#### 51. task-detail-label-omitted

File: `/home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipo/templates/task.html`.

Changed:

```text
{{define "isolation-history"}}{{template "trial-label" .}}
```

To:

```text
{{define "isolation-history"}}
```

```sh
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/equipotest -run TestApprovedBeyondProfileHTTP -count=1
```

Exit 1; compiled; restored.

```text
--- FAIL: TestApprovedBeyondProfileHTTP (3.45s)
    approval_once_test.go:84: task detail lost label
FAIL
rastrillo-budget/v1 ran 3.454s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.496s
FAIL
```

### User-facing strings

- New: `isolation.approved_beyond_profile` = `approved beyond profile`, in `internal/equipo/copy.go`, individually marked `COPY REVIEW REQUIRED`.
- Reused unchanged: `question.allow_once` = `Allow once`, already individually marked `COPY REVIEW REQUIRED` in `copy.go`.
- Reused unchanged: the existing Deny copy and scriptless question form.

No other runtime copy was added. The label enters persisted provenance from `copy.go` and is retained in the published description. No stylesheet, vendored theme or README changed. Existing day-theme label markup is used; no coloured left-border accents were introduced.

### Verification, concerns and handback

`git diff --check` passed. `gofmt -l` returned no changed Go files. The exact supplied commit subject is 64 characters. Only this task's files and this appended controller section are staged. The original report and Task 9 work remain unchanged.

Copy review remains a release requirement. No live provider, account sign-in, machine enrollment or real credential-home creation was performed. Existing offline fixtures use synthetic provider data and local fake CLIs. A response is evidence of scoped consent and transport, not proof of a live provider's effects. Task 11b still owns deployed-policy and live-provider certification. Persistent root grants and unsupported action shapes remain refused as described above.

All test processes were awaited. Test-owned HTTP servers and fixture processes use their existing cleanup hooks. Session scratch is confined to `/home/paulca/t/e2b/t8b` and will be removed after the report and commit are saved. Go caches remained at their defaults, and every build/test used `CGO_ENABLED=0`. No merge, push, deployment, server intended to outlive the task, subagent or change in another worktree occurred.


## Runner test budget until Task 11a (2026-11-03)

Changed `.rastrillo/budgets.txt` to allow 9,500 test lines in `internal/runner`,
the next hundred above the measured 9,402. Retained the existing 9,200 source
ceiling and its reason. The appended reason names the legacy tests that Task
11a deletes and requires 11a to lower or remove the test exemption.
No tests moved and no production code changed. Files changed: the budget file
and this appended report section.

### Why an exemption

Read the repository AGENTS.md, the supplied global-context.md and the pinned
Rastrillo v0.30.1 `docs/site/testing.md` in the module cache. The latter prefers
feature packages and permits reasoned exceptions when a split is not yet
practical. It forbids duplicate size records, so the existing runner record
now contains both ceilings.

A test-only move would lose access to runner internals. For example,
`containment_r1_test.go` uses `p.root`, `p.entry`, `p.records`, `ownerKey`,
`s.inspector` and `s.cleanup`; `ci_proc_test.go` uses `p.identity`,
`processRecord` and `p.boot`. These tests also share package-local fixtures.
Extracting a feature would require production changes beyond this task.
The reason names tests in `internal/runner` itself: containment_r1/r2/r3_test.go,
ci_proc_test.go, process_linux_test.go, trial*_test.go and dedicated_user tests.
`internal/runner/paseo` is a separate package and does not reduce this count.

### RED, GREEN and mutation evidence

All commands ran in `/home/paulca/amadan.net/oficina/equipo-plan-2b` on `plan-2b`,
starting from clean HEAD `0a257aa`.

- RED, before editing: `make budget`, exit 2.
  `internal/runner: 9402 test lines, ceiling 8000. Split it by feature (docs/site/testing.md), or record an exemption with a reason in .rastrillo/budgets.txt`
  `rastrillo: budget size: 1 problem(s)`
- GREEN: `CGO_ENABLED=0 make budget`, exit 0.
  `budget size: 20 directories within budget`
- GREEN: `CGO_ENABLED=0 go vet ./internal/runner/...`, exit 0, no output.
- Mutation: temporarily changed only the test ceiling from 9500 to 9401,
  then ran `CGO_ENABLED=0 make budget`, exit 2.
  `internal/runner: 9402 test lines, over the 9401 its exemption (line 24) allows`
  `rastrillo: budget size: 1 problem(s)`
  The budget command compiled and reached the size check.
- Restored 9500 and ran `CGO_ENABLED=0 make budget`, exit 0.
  `budget size: 20 directories within budget`

Exact mutation and restoration commands, respectively:

```sh
python3 - <<'PY'
from pathlib import Path
p = Path('/home/paulca/amadan.net/oficina/equipo-plan-2b/.rastrillo/budgets.txt')
s = p.read_text()
assert s.count('size internal/runner 9200 9500 ') == 1
p.write_text(s.replace('size internal/runner 9200 9500 ', 'size internal/runner 9200 9401 '))
PY
CGO_ENABLED=0 make budget
```

```sh
python3 - <<'PY'
from pathlib import Path
p = Path('/home/paulca/amadan.net/oficina/equipo-plan-2b/.rastrillo/budgets.txt')
s = p.read_text()
assert s.count('size internal/runner 9200 9401 ') == 1
p.write_text(s.replace('size internal/runner 9200 9401 ', 'size internal/runner 9200 9500 '))
PY
CGO_ENABLED=0 make budget
```

### Interpretations

The later binding rules require this report and allow it in the commit, despite
the earlier request for only the budget file and no report section. This is a
configuration fix with an existing failing gate; no new test or runtime guard
was needed. The existing budget gate supplied RED before implementation and
was exercised again with the insufficient-ceiling mutation. The initial
`make budget` used the exact requested command; subsequent Go invocations
explicitly set `CGO_ENABLED=0`.

### User-facing strings and concerns

No new application strings or copy.go entries. Only the budget explanation
and this controller report were added. No copy-review server, provider prompt,
subagent, credentials, server, scratch file, push or deployment was used.
Go caches stayed at their defaults. Task 11a must lower or remove the test
exemption after removing the named legacy coverage. No other concerns.


---

# Task 10: Amadan description publication readback

Status: DONE. Branch: `plan-2b`. Workspace: `/home/paulca/amadan.net/oficina/equipo-plan-2b`.
Commit subject: `fix: verify Amadan descriptions through production readback`.

## Built

The runtime now constructs the production description transport with the installed
Amadan command writer. The only runtime wiring change replaces the unavailable
description placeholder; Task 9's launchers, namespaces, direct launch, checks,
workspace, supervisor and workflow wiring remain intact.

`DescriptionChannels` and `DescriptionContentHash` implement the four-channel
contract: description, human, summary and notes, each prefixed by its unsigned
8-byte big-endian UTF-8 byte length. The tests pin both required literal hashes:

- Empty channels: `sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925`.
- `["Equipo café\n", "Paul", "Fixed\nchecked", "✓"]`, with actual newlines:
  `sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88`.

The GET reader accepts an unqualified review ref and escapes the entire name as
one path segment. It validates the disclosed agent in `by`, the complete channel
hash and structured optional `agent` metadata. It retains the channels, content
hash, `at` and agent metadata in the returned Description. Its body digest is
separate from the API channel hash. Text is preserved verbatim. Empty descriptions,
malformed JSON, invalid UTF-8, oversized responses and unsuccessful HTTP responses
cannot confirm publication. GET has a 15-second deadline, a 1 MiB response limit,
no redirects and no inherited cookie credentials.

The transport always reports `BeforePush() == false`. The publisher keeps the
pending expected description in its journal before push. After checking the exact
remote head it reads, journals the description attempt before Set, then reads again
even if Set loses its reply. Reconciliation after restart reads without repeating
Set or push. A visible ref remains incomplete until the exact expected repository,
ref, agent, body and body digest match the validated readback. Existing candidate,
head, default-ref, agent, isolation and evidence checks remain in place.

The command writer uses `amadan branch describe <ns>/<repo> <name> -hub
https://amadan.net -body -`. Body text goes through stdin. The child receives only
its fixed HOME/PATH and a disposable AMADAN_HOME containing one supplied hub token
in a 0600 credentials file under a 0700 directory. The command has a 15-second
bound, process-group cancellation, discarded stdout/stderr and sanitized errors.
Command state is removed on return. No credentials enter argv or application logs.

Tests cover the carried `approved beyond profile` label in both GET readback and
publication recovery, with whitespace and Unicode preserved. Production ordering
is tested against a bare local Git repository and a loopback GET server. A fake
Python describe command checks argv, stdin, environment, credential file modes,
cleanup, errors and cancellation. The real installed CLI was never used to write.

## Files

- `internal/runner/forge/description.go`: channel hash and validated GET readback.
- `internal/runner/forge/description_transport.go`: transport and scoped command writer.
- `internal/runner/forge/publisher.go`: explicit expected-description comparison and durable write-attempt recovery.
- `internal/runner/runtime_workflow.go`: replace only the description placeholder.
- `internal/runner/forge/description_test.go`: hash, HTTP and fake-command tests.
- `internal/runner/forge/publisher_test.go`: production-transport recovery and independent expected-field checks.
- `internal/equipotest/publish_test.go`: production wiring assertion, including retained Task 9 fields.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: appended this Task 10 report.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-10-report.md`: this report, saved in the repository's ignored controller workspace.

## Installed CLI evidence

Read-only `amadan branch describe -h` reported `-body string`, with `"-" reads
stdin`, and `-hub string`. `amadan branch -h` reported:

```text
amadan branch describe [<ns>/<repo>] <name> -body D|-
```

Both help commands exit 1 with their usage output. There is no `branch show` in
the installed contract. `amadan -h` also confirmed explicit hub/repository selection.
No login, enrollment, provider prompt or live publication was run.

To avoid inventing a token environment variable, read-only inspection of
`/home/paulca/.local/bin/amadan` used `go tool nm`, `go tool objdump` and binary
string extraction. `helper.Home` reads AMADAN_HOME; `helper.CredentialsPath` appends
`credentials`; `helper.LoadCredentials` unmarshals the `tokens` map; and
`cli.CredentialFor` indexes it by normalized hub. `main.readBodyArg` uses
`io.ReadAll` and byte-to-string conversion without trimming. No other worktree or
credential store was read or changed. The fake command pins this installed layout.

## Interpretations

1. New interface names initially did not exist. Tests were written first and the
   required command failed to compile, while the production-wiring assertion also
   failed. Minimal declarations then exposed the old JSON hashing and qualified-ref
   behavior, allowing the same command to produce behavioral RED before the fix.
2. The old lost-reply test required the first Execute call to fail even when the
   description had been stored. The brief requires GET after a lost Set reply, so
   the updated test accepts immediate success only after confirmed GET. When GET
   remains empty, the result stays uncertain and later reconciliation only reads.
3. A durable Set intent is treated as possibly dispatched even if a crash happened
   before the command began. This follows the security intent of avoiding a second
   send after a lost reply. The publisher does not guess that such a write failed.
4. The ban on credential homes is applied to account provisioning, provider homes
   and real login state. The installed CLI's credential-scoped writer necessarily
   needs disposable command state. Tests create only temporary files containing
   `fake-only`, run a fake command and remove that state. No real credential home
   was created, copied or changed.
5. These are controller evidence reports and code changes. The explicit instruction
   to avoid copy-review takes precedence over generic writing workflows. README
   and copy.go are unchanged. No handoff file or subagent was created.
6. The task report directory is ignored by the repository. The report is saved at
   the requested path; the same complete evidence is appended to the tracked
   controller report and included in the commit.

## RED evidence

All test commands ran from the workspace above with CGO_ENABLED=0 and default Go
caches. Tests were added before behavior changes. First run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1
```

Exit 1 from Go. Initial output:

```text
# amadan.net/oficina/equipo/internal/runner/forge [amadan.net/oficina/equipo/internal/runner/forge.test]
internal/runner/forge/description_test.go:47:7: undefined: DescriptionChannels
internal/runner/forge/description_test.go:48:240: undefined: DescriptionContentHash
internal/runner/forge/description_test.go:52:46: undefined: DescriptionChannels
internal/runner/forge/description_test.go:53:13: undefined: DescriptionChannels
internal/runner/forge/description_test.go:54:12: undefined: DescriptionChannels
internal/runner/forge/description_test.go:55:51: undefined: DescriptionContentHash
internal/runner/forge/description_test.go:56:5: undefined: DescriptionContentHash
internal/runner/forge/description_test.go:56:28: undefined: DescriptionChannels
internal/runner/forge/description_test.go:56:81: undefined: DescriptionContentHash
internal/runner/forge/description_test.go:56:104: undefined: DescriptionChannels
internal/runner/forge/description_test.go:56:104: too many errors
FAIL	amadan.net/oficina/equipo/internal/runner/forge [build failed]
ok  	amadan.net/oficina/equipo/internal/runner	0.006s [no tests to run]
--- FAIL: TestPublishTransportIsProduction (0.00s)
    publish_test.go:102: runtime publication still uses unavailable description transport
FAIL
rastrillo-budget/v1 ran 6ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.071s
FAIL

```

After adding only interface/data declarations, the old JSON hash helper, forwarding
transport scaffold and an unavailable writer stub, repeat the same command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1
```

Exit 1 from Go. Behavioral RED output:

```text
--- FAIL: TestAmadanDescriptionLengthHash (0.00s)
    --- FAIL: TestAmadanDescriptionLengthHash/empty (0.00s)
        description_test.go:58: hash = sha256:8c6e780bd03fbe1f0699ae90e38ca9d7af0f5ac91747c2a9b66ae942294f2cd9, want sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925
    --- FAIL: TestAmadanDescriptionLengthHash/utf8 (0.00s)
        description_test.go:58: hash = sha256:5a0cb8c4ae8f2bfba1ae730c81064829eeaa704deae924e9d8a464e1c2c0fdb5, want sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88
--- FAIL: TestAmadanDescriptionReadback (0.08s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:99: team: invalid
    --- FAIL: TestAmadanDescriptionReadback/optional_agent (0.00s)
        description_test.go:99: team: invalid
    --- FAIL: TestAmadanDescriptionReadback/reordered (0.00s)
        description_test.go:99: team: invalid
--- FAIL: TestAmadanDescriptionCommand (0.00s)
    description_test.go:135: team: uncertain
--- FAIL: TestPublishDescriptionIdentity (0.39s)
    --- FAIL: TestPublishDescriptionIdentity/lost_description_reply (0.23s)
        publisher_test.go:402: GET failed to confirm lost description reply team: uncertain
--- FAIL: TestPublishDescriptionRecovery (1.10s)
    --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.20s)
        publisher_test.go:591: description intent not durable before write
    --- FAIL: TestPublishDescriptionRecovery/delayed_readback (0.16s)
        publisher_test.go:591: description intent not durable before write
    --- FAIL: TestPublishDescriptionRecovery/empty (0.16s)
        publisher_test.go:591: description intent not durable before write
    --- FAIL: TestPublishDescriptionRecovery/trimmed (0.16s)
        publisher_test.go:591: description intent not durable before write
    --- FAIL: TestPublishDescriptionRecovery/wrong_digest (0.17s)
        publisher_test.go:591: description intent not durable before write
    --- FAIL: TestPublishDescriptionRecovery/wrong_ref (0.25s)
        publisher_test.go:591: description intent not durable before write
FAIL
rastrillo-budget/v1 ran 1.694s
FAIL	amadan.net/oficina/equipo/internal/runner/forge	1.697s
ok  	amadan.net/oficina/equipo/internal/runner	0.005s [no tests to run]
--- FAIL: TestPublishTransportIsProduction (0.00s)
    publish_test.go:102: runtime publication still uses unavailable description transport
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.063s
FAIL

```

## GREEN evidence

The first implemented run passed, followed by the extended cases and mutation
checks. Final restored command and output:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/forge	1.703s
ok  	amadan.net/oficina/equipo/internal/runner	0.005s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/equipotest	0.055s

```

Targeted existing publication regressions, including the carried approval label:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublish|TestApprovedBeyondProfilePublisher' -count=1
```

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/forge	7.216s
ok  	amadan.net/oficina/equipo/internal/runner	0.006s [no tests to run]
ok  	amadan.net/oficina/equipo/internal/equipotest	0.664s

```

The runner package compiles in both commands; these name filters select no runner
package tests. The runtime wiring assertion runs in equipotest. No whole suite,
make ci, provider command or live Amadan gate was run. `git diff --check` passed.

## Mutation evidence

47 independent mutations compiled and failed their named tests. Each edit below
was applied alone, the exact test command was run, and the original source bytes
were restored in a finally block before the next mutation. No compilation failure
is counted. The final GREEN runs above used restored code. Replacement strings
below use Python literal notation; they identify the exact source edit.

### M01: json_hash

File: `internal/runner/forge/description.go`. Replace:

```python
'return "sha256:" + hex.EncodeToString(hash.Sum(nil))'
```

with:

```python
'_ = hex.EncodeToString(hash.Sum(nil))\n raw, _ := json.Marshal(c)\n return "sha256:" + team.ContentDigest(raw)'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionLengthHash' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionLengthHash (0.00s)
    --- FAIL: TestAmadanDescriptionLengthHash/empty (0.00s)
        description_test.go:71: hash = sha256:8c6e780bd03fbe1f0699ae90e38ca9d7af0f5ac91747c2a9b66ae942294f2cd9, want sha256:66687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f2925
    --- FAIL: TestAmadanDescriptionLengthHash/utf8 (0.00s)
        description_test.go:71: hash = sha256:5a0cb8c4ae8f2bfba1ae730c81064829eeaa704deae924e9d8a464e1c2c0fdb5, want sha256:ac030712c32422e57053ff69f80ec87d1efdff87a000e9a08dd3e711d0995a88
```

### M02: trim_text

File: `internal/runner/forge/description.go`. Replace:

```python
'metadata := bytes.TrimSpace(result.Agent)'
```

with:

```python
'result.Description = strings.TrimSpace(result.Description)\n metadata := bytes.TrimSpace(result.Agent)'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:159: lost verbatim content or metadata: {Repository:amadan.net/oficina/equipo Ref:review/trial Agent:equipo~owner@example.com Body:Equipo café
```

### M03: ignore_by

File: `internal/runner/forge/description.go`. Replace:

```python
' || result.By != cred.Agent'
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/wrong_agent' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/wrong_agent (0.00s)
        description_test.go:153: accepted wrong_agent
```

### M04: ignore_hash

File: `internal/runner/forge/description.go`. Replace:

```python
'if result.ContentHash != DescriptionContentHash(result.DescriptionChannels) {'
```

with:

```python
'if false {'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/(wrong_hash|tamper)' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/tamper (0.00s)
        description_test.go:153: accepted tamper
    --- FAIL: TestAmadanDescriptionReadback/wrong_hash (0.00s)
        description_test.go:153: accepted wrong_hash
```

### M05: accept_empty

File: `internal/runner/forge/description.go`. Replace:

```python
' || result.Empty'
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/empty' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/empty (0.00s)
        description_test.go:153: accepted empty
```

### M06: lose_at

File: `internal/runner/forge/description.go`. Replace:

```python
'At: result.At'
```

with:

```python
'At: 0'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:159: lost verbatim content or metadata: {Repository:amadan.net/oficina/equipo Ref:review/trial Agent:equipo~owner@example.com Body: Equipo café
```

### M07: lose_metadata

File: `internal/runner/forge/description.go`. Replace:

```python
'AgentMetadata: result.Agent'
```

with:

```python
'AgentMetadata: nil'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:162: lost structured agent metadata
```

### M08: accept_unstructured_metadata

File: `internal/runner/forge/description.go`. Replace:

```python
'len(metadata) > 0 && string(metadata) != "null" && metadata[0] != \'{\''
```

with:

```python
'false && len(metadata) > 0'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/bad_metadata' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/bad_metadata (0.00s)
        description_test.go:153: accepted bad_metadata
```

### M09: accept_invalid_utf8

File: `internal/runner/forge/description.go`. Replace:

```python
'!utf8.Valid(data) || '
```

with:

```python
'!utf8.Valid(data) && false || '
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/invalid_utf8' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s)
        description_test.go:153: accepted invalid_utf8
```

### M10: ignore_decode_error

File: `internal/runner/forge/description.go`. Replace:

```python
'json.Unmarshal(data, &result) != nil'
```

with:

```python
'json.Unmarshal(data, &result) != nil && false'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/malformed_at' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/malformed_at (0.00s)
        description_test.go:153: accepted malformed_at
```

### M11: allow_oversized

File: `internal/runner/forge/description.go`. Replace:

```python
'1<<20'
```

with:

```python
'2<<20'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/oversized' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.01s)
    --- FAIL: TestAmadanDescriptionReadback/oversized (0.01s)
        description_test.go:153: accepted oversized
```

### M12: follow_redirect

File: `internal/runner/forge/description.go`. Replace:

```python
'local.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }'
```

with:

```python
'local.CheckRedirect = nil'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/redirect' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/redirect (0.00s)
        description_test.go:89: followed redirect with credentials
```

### M13: no_get_deadline

File: `internal/runner/forge/description.go`. Replace:

```python
'context.WithTimeout(ctx, 15*time.Second)'
```

with:

```python
'context.WithCancel(ctx)\n _ = time.Second'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:42: missing bounded GET deadline
    --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s)
        description_test.go:42: missing bounded GET deadline
```

### M14: unescaped_slash

File: `internal/runner/forge/description.go`. Replace:

```python
'url.PathEscape(branch)'
```

with:

```python
'branch'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:94: wrong request: GET /api/v1/repos/oficina/equipo/branches/review/trial/description
    --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s)
        description_test.go:94: wrong request: GET /api/v1/repos/oficina/equipo/branches/review/trial/description
```

### M15: require_qualified_ref

File: `internal/runner/forge/description.go`. Replace:

```python
'validRef(ref)'
```

with:

```python
'strings.HasPrefix(ref, "refs/heads/")'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:157: team: invalid
    description_test.go:170: invalid target reached HTTP
```

### M16: ignore_invalid_ref

File: `internal/runner/forge/description.go`. Replace:

```python
'validRef(ref)'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.04s)
    description_test.go:170: invalid target reached HTTP
    description_test.go:170: invalid target reached HTTP
    description_test.go:170: invalid target reached HTTP
    description_test.go:170: invalid target reached HTTP
```

### M17: description_before_push

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'BeforePush() bool { return false }'
```

with:

```python
'BeforePush() bool { return true }'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.02s)
    --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.02s)
        publisher_test.go:625: production transport describes before push
```

### M18: duplicate_set

File: `internal/runner/forge/publisher.go`. Replace:

```python
'r.DescriptionAttempted || (e != nil'
```

with:

```python
'false || (e != nil'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/empty' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.19s)
    --- FAIL: TestPublishDescriptionRecovery/empty (0.19s)
        publisher_test.go:658: duplicate write/push or skipped GET 3 1 6
```

### M19: skip_readback

File: `internal/runner/forge/publisher.go`. Replace:

```python
'if e != nil || !descriptionMatches(got, desc) {'
```

with:

```python
'if false {'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/empty' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.15s)
    --- FAIL: TestPublishDescriptionRecovery/empty (0.15s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M20: lose_write_journal

File: `internal/runner/forge/publisher.go`. Replace:

```python
'if e = runnerproto.JournalCredentials(p.path(r.Authorization.Ticket.Dispatch), *r); e != nil {'
```

with:

```python
'if false {'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.13s)
    --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.13s)
        publisher_test.go:616: description intent not durable before write
```

### M21: no_lost_reply_get

File: `internal/runner/forge/publisher.go`. Replace:

```python
'_ = p.cfg.Description.Set(ctx, cred, desc)'
```

with:

```python
'if e = p.cfg.Description.Set(ctx, cred, desc); e != nil { return team.ErrUncertain }'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/lost_reply' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.12s)
    --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.12s)
        publisher_test.go:633: team: uncertain
```

### M22: write_after_read_error

File: `internal/runner/forge/publisher.go`. Replace:

```python
'(e != nil && !errors.Is(e, team.ErrEvidence))'
```

with:

```python
'(false && !errors.Is(e, team.ErrEvidence))'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionReadFailureDoesNotWrite' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionReadFailureDoesNotWrite (0.17s)
    publisher_test.go:693: read failure caused a write or success team: uncertain 1
```

### M23: ignore_expected_repository

File: `internal/runner/forge/publisher.go`. Replace:

```python
'got.Repository == want.Repository'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_repo' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.15s)
    --- FAIL: TestPublishDescriptionRecovery/wrong_repo (0.15s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M24: ignore_expected_ref

File: `internal/runner/forge/publisher.go`. Replace:

```python
'got.Ref == want.Ref'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_ref' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.15s)
    --- FAIL: TestPublishDescriptionRecovery/wrong_ref (0.15s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M25: ignore_expected_agent

File: `internal/runner/forge/publisher.go`. Replace:

```python
'got.Agent == want.Agent'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_agent' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.11s)
    --- FAIL: TestPublishDescriptionRecovery/wrong_agent (0.11s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M26: ignore_expected_body

File: `internal/runner/forge/publisher.go`. Replace:

```python
'got.Body == want.Body'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_body' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.12s)
    --- FAIL: TestPublishDescriptionRecovery/wrong_body (0.12s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M27: ignore_expected_digest

File: `internal/runner/forge/publisher.go`. Replace:

```python
'got.Digest == want.Digest'
```

with:

```python
'true'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestPublishDescriptionRecovery/wrong_digest' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestPublishDescriptionRecovery (0.15s)
    --- FAIL: TestPublishDescriptionRecovery/wrong_digest (0.15s)
        publisher_test.go:638: unconfirmed description delivered success
```

### M28: inherit_person_environment

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'cmd.Env = []string{"HOME=/nonexistent", "PATH=/usr/bin:/bin", "AMADAN_HOME=" + dir}'
```

with:

```python
'cmd.Env = append(os.Environ(), "HOME=/nonexistent", "PATH=/usr/bin:/bin", "AMADAN_HOME=" + dir)'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:205: team: uncertain
```

### M29: token_in_argv

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'"-body", "-")'
```

with:

```python
'"-body", "-", c.Bearer)'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:205: team: uncertain
```

### M30: trim_stdin

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'strings.NewReader(d.Body)'
```

with:

```python
'strings.NewReader(strings.TrimSpace(d.Body))'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:205: team: uncertain
```

### M31: public_token_file

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'credentials, 0600'
```

with:

```python
'credentials, 0644'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:205: team: uncertain
```

### M32: retain_token_scratch

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'defer os.RemoveAll(dir)'
```

with:

```python
'// mutation: keep scratch'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:215: credential scratch was retained
```

### M33: expose_command_output

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'cmd.Stdout, cmd.Stderr = io.Discard, io.Discard'
```

with:

```python
'_ = io.Discard\n cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:261: command output escaped error boundary
```

### M34: writer_agent

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'd.Agent != c.Agent || '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/agent' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.10s)
    --- FAIL: TestAmadanDescriptionCommand/agent (0.03s)
        description_test.go:245: invalid write reached command <nil>
```

### M35: writer_body_digest

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'd.Digest != Digest([]byte(d.Body)) || '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/digest' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.08s)
    --- FAIL: TestAmadanDescriptionCommand/digest (0.02s)
        description_test.go:245: invalid write reached command <nil>
```

### M36: writer_empty_body

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'd.Body == "" || '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/empty' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.09s)
    --- FAIL: TestAmadanDescriptionCommand/empty (0.02s)
        description_test.go:245: invalid write reached command team: uncertain
```

### M37: writer_utf8

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'!utf8.ValidString(d.Body) || '
```

with:

```python
'(!utf8.ValidString(d.Body) && false) || '
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/invalid_utf8' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.10s)
    --- FAIL: TestAmadanDescriptionCommand/invalid_utf8 (0.03s)
        description_test.go:245: invalid write reached command team: uncertain
```

### M38: writer_size

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'len(d.Body) > 1<<20 || '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/oversized' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.08s)
    --- FAIL: TestAmadanDescriptionCommand/oversized (0.02s)
        description_test.go:245: invalid write reached command team: uncertain
```

### M39: writer_scratch

File: `internal/runner/forge/description_transport.go`. Replace:

```python
' || !filepath.IsAbs(w.scratch)'
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.01s)
    description_test.go:207: relative scratch accepted team: uncertain
```

### M40: target_remote

File: `internal/runner/forge/description.go`. Replace:

```python
'cred.Remote == "https://"+repo && '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.07s)
    --- FAIL: TestAmadanDescriptionCommand/foreign_remote (0.01s)
        description_test.go:245: invalid write reached command <nil>
```

### M41: target_agent

File: `internal/runner/forge/description.go`. Replace:

```python
'team.ValidPublicationAgent(cred.Agent) && '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.07s)
    --- FAIL: TestAmadanDescriptionCommand/person (0.01s)
        description_test.go:245: invalid write reached command <nil>
```

### M42: target_header

File: `internal/runner/forge/description.go`. Replace:

```python
' && !strings.ContainsAny(cred.Bearer, "\\r\\n\\x00")'
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.07s)
    --- FAIL: TestAmadanDescriptionCommand/header (0.02s)
        description_test.go:245: invalid write reached command team: uncertain
```

### M43: ignore_command_timeout

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'exec.CommandContext(ctx, w.path'
```

with:

```python
'exec.CommandContext(context.Background(), w.path'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (2.06s)
    description_test.go:268: command did not respect timeout <nil>
```

### M44: forward_cookies

File: `internal/runner/forge/description.go`. Replace:

```python
'local.Jar = nil'
```

with:

```python
'// mutation: keep unrelated cookies'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionReadback/valid' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionReadback (0.00s)
    --- FAIL: TestAmadanDescriptionReadback/valid (0.00s)
        description_test.go:95: forwarded unrelated client credentials
    --- FAIL: TestAmadanDescriptionReadback/invalid_utf8 (0.00s)
        description_test.go:95: forwarded unrelated client credentials
```

### M45: missing_token

File: `internal/runner/forge/description.go`. Replace:

```python
'cred.Bearer != "" && '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/missing_token' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.07s)
    --- FAIL: TestAmadanDescriptionCommand/missing_token (0.02s)
        description_test.go:259: invalid write reached command team: uncertain
```

### M46: invalid_repository

File: `internal/runner/forge/description.go`. Replace:

```python
'validRepository(repo) && '
```

with:

```python
''
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand/repository' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.07s)
    --- FAIL: TestAmadanDescriptionCommand/repository (0.02s)
        description_test.go:259: invalid write reached command team: uncertain
```

### M47: missing_writer

File: `internal/runner/forge/description_transport.go`. Replace:

```python
'if t.writer == nil {'
```

with:

```python
'if false {'
```

Run:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run 'TestAmadanDescriptionCommand' -count=1
```

Exit 1; compiled test failure:

```text
--- FAIL: TestAmadanDescriptionCommand (0.01s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked]
	/home/paulca/.local/go-dist/src/testing/testing.go:1974 +0x232
	/home/paulca/.local/go-dist/src/testing/testing.go:1977 +0x349
	/home/paulca/.local/go-dist/src/runtime/panic.go:860 +0x13a
```

## User-facing strings

No new application strings or copy.go entries. No copy review is pending for this
task. Existing `team.ErrInvalid`, `team.ErrEvidence`, `team.ErrUncertain` and
publication labels are reused. `approved beyond profile` is carried unchanged.
New text consists of internal code comments, test diagnostics and this controller
report. No README prose, UI copy or published branch description was written.

## Concerns and limits

No known failing task requirement. Live publication and installed-CLI network
behavior were not exercised, as required by the brief. The runtime wiring test is
a source assertion, supplemented by production transport and publisher behavior
tests using local Git, loopback HTTP and a fake command.

If the process dies after journaling a write attempt but before actually starting
the command, GET may stay empty. That attempt remains incomplete; it needs an
explicit recovery decision rather than an automatic duplicate Set. This is an
intentional conservative outcome, not delivery success.

All test servers close through cleanup. All fake commands exit or are killed on
cancellation. Task scratch under `/home/paulca/t/e2b/task10` is removed after its
evidence is copied here. Go caches are unchanged. No push, merge or deployment.


# Task 10 fix round 1: pinned CLI and never-sent description recovery

Status: DONE_WITH_CONCERNS. Baseline: `97126e1`. Branch: `plan-2b`.
Workspace: `/home/paulca/amadan.net/oficina/equipo-plan-2b`.
Commit subject: `fix: pin the amadan CLI path and retry descriptions never sent`.

## Built

The runner now requires `EQUIPO_AMADAN_PATH`. Startup rejects missing, relative,
unclean, nonexistent, directory and non-executable paths. Runtime publication
passes this configured absolute path to the writer. The live-gate prerequisite
table includes it; the release manifest and live-gate script have no comparable
Git/Amadan binary prerequisite list to extend.

The writer uses the existing distinct `team.ErrNotDispatched` sentinel for
failures before `cmd.Start` succeeds, including validation, scratch setup,
credential serialization/write and command startup. The original sanitized error
remains available through `errors.Is`. A missing writer also returns this sentinel.
Once Start succeeds, cancellation and nonzero exit remain uncertain. The writer
still discards child output and removes its fake/test or production temporary
command state on return.

The publisher journals the attempted flag before calling Set. Only a returned
not-dispatched error allows it to persist a cleared flag for a later reconciliation.
It still returns uncertain because the review ref already exists. A crash before
that reset is durable leaves the flag set. An unsuccessful reset also returns
uncertain. Any command that started retains the flag, so recovery only reads.
The restart regression proves one failed dispatch, one later write, GET confirmation
and exactly one Git push. Existing lost-reply and empty-readback tests remain green.

The credential file is now a flat JSON map from hub origin to token, as required by
Amadan at `bcc0e66`. The fake-command test checks that exact layout, the credential
path and modes, existing argv order, stdin body, private environment and cleanup.
The argv order and integer `at` reader already match the source and need no change.

## Files

- `internal/runner/config.go`: configured Amadan executable and startup validation.
- `internal/runner/config_test.go`: missing/relative/unclean/missing-file/directory/non-executable tests and a local executable fixture.
- `internal/runner/final_diagnostics_test.go`: add the Amadan path diagnostic case.
- `internal/runner/runtime_workflow.go`: pass the configured path.
- `internal/runner/forge/description_transport.go`: pre-start classification, Start/Wait boundary and flat credentials map.
- `internal/runner/forge/description_test.go`: source-backed credential fixture and failure classification tests.
- `internal/runner/forge/publisher.go`: durable retry permission for a proven unsent description.
- `internal/runner/forge/publisher_test.go`: restart recovery and durable-intent assertions.
- `internal/equipotest/publish_test.go`: require the configured executable in production wiring.
- `docs/live-gate.md`: one prerequisite row, covered by the file's existing draft-copy marker.
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this appended fix section.
- `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-10-report.md`: the same appended section in the ignored controller workspace.

## Source verification at Amadan bcc0e66

The only access to `/home/paulca/amadan.net/amadan/amadan` was read-only `git show`
and `git grep` at the requested commit. No Amadan command or endpoint was called.
These source findings supersede the original report's binary-inspection inference
about a nested `tokens` map:

- `internal/helper/state.go:69-95`: Home uses AMADAN_HOME directly, and CredentialsPath appends `credentials`.
- `internal/helper/state.go:154-179`: Credentials is `map[string]string`; LoadCredentials unmarshals the entire file directly into that flat map.
- `internal/cli/hubaddr.go:232-249`: CredentialFor normalizes the hub and indexes the loaded map by the hub origin. The writer supplies only the `https://amadan.net` entry with the fake test token in offline tests.
- `cmd/amadan/main.go:1386-1430`: branch describe registers body and hub flags, invokes parseInterspersed at line 1398, accepts repository plus branch positionals and reads body from stdin.
- `cmd/amadan/main.go:555-565`: the parser delegates to cli.ParseInterspersed.
- `internal/cli/argparse.go:32-58`: separates flags from positionals before calling Go's flag parser, consuming `-` as the body flag value. Thus the existing `branch describe <ns>/<repo> <name> -hub https://amadan.net -body -` order is supported.
- `internal/hub/branch_description.go:20-26,43-47,65-70`: the GET response's `at` is int64 JSON, taken from int64 description_at. The existing reader accepts int64; TestAmadanDescriptionReadback checks retained numeric `at` and rejects malformed `at`.

Exact source commands (line ranges above identify the inspected portions):

```sh
git -C /home/paulca/amadan.net/amadan/amadan show bcc0e66:internal/helper/state.go
git -C /home/paulca/amadan.net/amadan/amadan show bcc0e66:internal/cli/hubaddr.go
git -C /home/paulca/amadan.net/amadan/amadan show bcc0e66:cmd/amadan/main.go
git -C /home/paulca/amadan.net/amadan/amadan show bcc0e66:internal/cli/argparse.go
git -C /home/paulca/amadan.net/amadan/amadan show bcc0e66:internal/hub/branch_description.go
```

## Interpretations

1. The round-1 findings and requested commit subject supersede the original brief's implementation/commit instructions where they differ.
2. The source at `bcc0e66` is the requested CLI contract. The flat credential map is mandatory despite the original report's contrary inference. No fallback to another credential format or live CLI probe was added.
3. `team.ErrNotDispatched` already distinguishes a known unsent operation. Reusing it avoids another public error string. Publisher returns `team.ErrUncertain`, rather than claiming the whole publication was not dispatched, because the Git ref was pushed.
4. The explicit source-inspection request permits read-only access to the named Amadan repository. All edits, tests and Git mutations stayed in the Equipo workspace; scratch stayed under the supplied on-disk TMPDIR.
5. Tests use disposable state containing only `fake-only` credentials and fake commands, as the original offline tests do. No real credential home, provider session, enrollment or login was created or accessed.
6. Controller evidence is written directly under the run instructions. No copy-review skill/server, agent, handoff file or README edit was used.
7. The initial broad test command exposed existing diagnostics assertions for five optional legacy Paseo settings. Those requirements are outside this fix. The adjusted targeted command keeps TestRunnerConfig and TestRunnerConfigAmadanPath, plus the relevant AmadanPath/GitPath diagnostic cases. It does not change legacy runtime validation to make obsolete expectations pass.

## RED evidence

Tests were changed before production code. The initial run compiled and failed on
the flat credentials fixture, missing pre-start classification, permanently latched
unsent description, missing executable validation and production path wiring.
All commands ran in the workspace above with CGO_ENABLED=0 and default Go caches.

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport|TestConfig|TestRunnerConfig' -count=1
```

Go exit 1. Recorded output:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:214: team: uncertain
--- FAIL: TestAmadanDescriptionNotDispatched (0.00s)
    --- FAIL: TestAmadanDescriptionNotDispatched/validation (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: invalid
    --- FAIL: TestAmadanDescriptionNotDispatched/relative_path (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/unclean_path (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/missing_command (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/not_executable (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/scratch (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/cancelled (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/missing_writer (0.00s)
        description_test.go:320: pre-start failure must allow retry: team: uncertain
--- FAIL: TestPublishDescriptionRecovery (1.21s)
    --- FAIL: TestPublishDescriptionRecovery/not_dispatched (0.13s)
        publisher_test.go:645: never-sent description latched as attempted
FAIL
rastrillo-budget/v1 ran 1.853s
FAIL	amadan.net/oficina/equipo/internal/runner/forge	1.856s
--- FAIL: TestRunnerConfigAmadanPath (0.00s)
    --- FAIL: TestRunnerConfigAmadanPath/unset (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/relative (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/unclean (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/missing (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/directory (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/not_executable (0.00s)
        config_test.go:192: invalid Amadan path accepted or misdiagnosed: <nil> (-)
--- FAIL: TestConfigDiagnosticNamesVariable (0.00s)
    --- FAIL: TestConfigDiagnosticNamesVariable/PaseoEndpoint (0.00s)
        final_diagnostics_test.go:17: diagnostic lost variable runner.command -
    --- FAIL: TestConfigDiagnosticNamesVariable/NodePath (0.00s)
        final_diagnostics_test.go:17: diagnostic lost variable runner.command -
    --- FAIL: TestConfigDiagnosticNamesVariable/PaseoServerID (0.00s)
        final_diagnostics_test.go:17: diagnostic lost variable runner.command -
    --- FAIL: TestConfigDiagnosticNamesVariable/BridgePath (0.00s)
        final_diagnostics_test.go:17: diagnostic lost variable runner.command -
    --- FAIL: TestConfigDiagnosticNamesVariable/PaseoHome (0.00s)
        final_diagnostics_test.go:17: diagnostic lost variable runner.command -
FAIL
rastrillo-budget/v1 ran 7ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.009s
--- FAIL: TestPublishTransportIsProduction (0.00s)
    publish_test.go:103: runtime publication still uses unavailable description transport
FAIL
rastrillo-budget/v1 ran 5ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.055s
FAIL
```

## GREEN evidence

After implementation, the adjusted covering command passed. It was repeated after
all mutations were restored; all three packages passed again.

```sh
CGO_ENABLED=0 go test ./internal/runner/forge ./internal/runner ./internal/equipotest -run 'TestAmadanDescription|TestPublishDescription|TestPublishTransport|TestRunnerConfig|TestConfigDiagnosticNamesVariable/(AmadanPath|GitPath)$' -count=1
```

Final Go exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/forge	2.030s
ok  	amadan.net/oficina/equipo/internal/runner	0.006s
ok  	amadan.net/oficina/equipo/internal/equipotest	0.055s
```

`git diff --check` passed. Only targeted tests were run; no make ci, whole suite,
live gate, real Amadan CLI invocation, live read or live write was performed.

## Mutation evidence

Each mutation below was applied alone, compiled, failed the named test with Go
exit 1, and was restored before the next mutation. None was a compile failure.
The final covering GREEN above ran after restoring all 13 mutations.

### R1-M1: config_load

File: `internal/runner/config.go`. Replace:

```go
AmadanPath: getenv("EQUIPO_AMADAN_PATH")
```

with:

```go
AmadanPath: ""
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestRunnerConfigAmadanPath$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestRunnerConfigAmadanPath (0.00s)
    config_test.go:183: runner.config.path:EQUIPO_AMADAN_PATH
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.002s
FAIL
```

### R1-M2: config_absolute_clean

File: `internal/runner/config.go`. Replace:

```go
{"EQUIPO_AMADAN_PATH", c.AmadanPath},
```

with:

```go

```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestRunnerConfigAmadanPath$/(relative|unclean)$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestRunnerConfigAmadanPath (0.00s)
    --- FAIL: TestRunnerConfigAmadanPath/relative (0.00s)
        config_test.go:209: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/unclean (0.00s)
        config_test.go:209: invalid Amadan path accepted or misdiagnosed: <nil> (-)
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

### R1-M3: config_executable

File: `internal/runner/config.go`. Replace:

```go
if err != nil || !info.Mode().IsRegular() || info.Mode().Perm()&0111 == 0 {
```

with:

```go
if false && (err != nil || !info.Mode().IsRegular() || info.Mode().Perm()&0111 == 0) {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestRunnerConfigAmadanPath$/(missing|directory|not_executable)$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestRunnerConfigAmadanPath (0.00s)
    --- FAIL: TestRunnerConfigAmadanPath/missing (0.00s)
        config_test.go:209: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/directory (0.00s)
        config_test.go:209: invalid Amadan path accepted or misdiagnosed: <nil> (-)
    --- FAIL: TestRunnerConfigAmadanPath/not_executable (0.00s)
        config_test.go:209: invalid Amadan path accepted or misdiagnosed: <nil> (-)
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.005s
FAIL
```

### R1-M4: runtime_path

File: `internal/runner/runtime_workflow.go`. Replace:

```go
NewCommandDescriptionWriter(r.cfg.AmadanPath,
```

with:

```go
NewCommandDescriptionWriter("amadan",
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestPublishTransportIsProduction$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestPublishTransportIsProduction (0.00s)
    publish_test.go:103: runtime publication still uses unavailable description transport
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.057s
FAIL
```

### R1-M5: writer_path

File: `internal/runner/forge/description_transport.go`. Replace:

```go
if !filepath.IsAbs(w.path) || filepath.Clean(w.path) != w.path {
```

with:

```go
if false && (!filepath.IsAbs(w.path) || filepath.Clean(w.path) != w.path) {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestAmadanDescriptionNotDispatched$/(relative_path|unclean_path)$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestAmadanDescriptionNotDispatched (0.00s)
    --- FAIL: TestAmadanDescriptionNotDispatched/relative_path (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/unclean_path (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.005s
FAIL
```

### R1-M6: prestart_classification

File: `internal/runner/forge/description_transport.go`. Replace:

```go
if err != nil && !started {
```

with:

```go
if false && err != nil && !started {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestAmadanDescriptionNotDispatched$/(validation|missing_command|not_executable|scratch|cancelled)$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestAmadanDescriptionNotDispatched (0.00s)
    --- FAIL: TestAmadanDescriptionNotDispatched/validation (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: invalid
    --- FAIL: TestAmadanDescriptionNotDispatched/missing_command (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/not_executable (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/scratch (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
    --- FAIL: TestAmadanDescriptionNotDispatched/cancelled (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.004s
FAIL
```

### R1-M7: started_classification

File: `internal/runner/forge/description_transport.go`. Replace:

```go
started = true
```

with:

```go
started = false
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestAmadanDescriptionNotDispatched$/started$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestAmadanDescriptionNotDispatched (0.00s)
    --- FAIL: TestAmadanDescriptionNotDispatched/started (0.00s)
        description_test.go:327: started command declared safe to retry: team: not_dispatched
            team: uncertain
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.004s
FAIL
```

### R1-M8: missing_writer

File: `internal/runner/forge/description_transport.go`. Replace:

```go
if t.writer == nil {
		return team.ErrNotDispatched
```

with:

```go
if t.writer == nil {
		return team.ErrUncertain
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestAmadanDescriptionNotDispatched$/missing_writer$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestAmadanDescriptionNotDispatched (0.00s)
    --- FAIL: TestAmadanDescriptionNotDispatched/missing_writer (0.00s)
        description_test.go:330: pre-start failure must allow retry: team: uncertain
FAIL
rastrillo-budget/v1 ran 1ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.003s
FAIL
```

### R1-M9: credential_layout

File: `internal/runner/forge/description_transport.go`. Replace:

```go
json.Marshal(map[string]string{"https://amadan.net": c.Bearer})
```

with:

```go
json.Marshal(map[string]any{"tokens": map[string]string{"https://amadan.net": c.Bearer}})
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestAmadanDescriptionCommand$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestAmadanDescriptionCommand (0.02s)
    description_test.go:214: team: uncertain
FAIL
rastrillo-budget/v1 ran 20ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.022s
FAIL
```

### R1-M10: retry_never_sent

File: `internal/runner/forge/publisher.go`. Replace:

```go
errors.Is(e, team.ErrNotDispatched) {
```

with:

```go
false && errors.Is(e, team.ErrNotDispatched) {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestPublishDescriptionRecovery$/not_dispatched$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestPublishDescriptionRecovery (0.22s)
    --- FAIL: TestPublishDescriptionRecovery/not_dispatched (0.22s)
        publisher_test.go:648: never-sent description latched as attempted
FAIL
rastrillo-budget/v1 ran 221ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.229s
FAIL
```

### R1-M11: retry_durable

File: `internal/runner/forge/publisher.go`. Replace:

```go
r.DescriptionAttempted = false
		if e = runnerproto.JournalCredentials(p.path(r.Authorization.Ticket.Dispatch), *r); e != nil {
```

with:

```go
r.DescriptionAttempted = false
		if false {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestPublishDescriptionRecovery$/not_dispatched$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestPublishDescriptionRecovery (0.17s)
    --- FAIL: TestPublishDescriptionRecovery/not_dispatched (0.17s)
        publisher_test.go:648: never-sent description latched as attempted
FAIL
rastrillo-budget/v1 ran 168ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.171s
FAIL
```

### R1-M12: retry_uncertain

File: `internal/runner/forge/publisher.go`. Replace:

```go
errors.Is(e, team.ErrNotDispatched) {
```

with:

```go
(errors.Is(e, team.ErrNotDispatched) || e != nil) {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestPublishDescriptionRecovery$/empty$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestPublishDescriptionRecovery (0.18s)
    --- FAIL: TestPublishDescriptionRecovery/empty (0.18s)
        publisher_test.go:672: duplicate write/push or skipped GET 3 1 3
FAIL
rastrillo-budget/v1 ran 179ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.182s
FAIL
```

### R1-M13: intent_before_start

File: `internal/runner/forge/publisher.go`. Replace:

```go
r.DescriptionAttempted = true
	if e = runnerproto.JournalCredentials(p.path(r.Authorization.Ticket.Dispatch), *r); e != nil {
```

with:

```go
r.DescriptionAttempted = true
	if false {
```

Command:

```sh
CGO_ENABLED=0 go test ./internal/runner/forge -run '^TestPublishDescriptionRecovery$/lost_reply$' -count=1
```

Go exit 1; output:

```text
--- FAIL: TestPublishDescriptionRecovery (0.11s)
    --- FAIL: TestPublishDescriptionRecovery/lost_reply (0.11s)
        publisher_test.go:616: description intent not durable before write
FAIL
rastrillo-budget/v1 ran 109ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.111s
FAIL
```

## User-facing strings

No new copy.go entries or application prose. Existing configuration diagnostics
and team error sentinels are reused. `EQUIPO_AMADAN_PATH` is the new diagnostic
variable identifier. The one new documentation row is:

```text
| EQUIPO_AMADAN_PATH | Absolute path to the installed Amadan executable | /home/equipo-runner/.local/bin/amadan |
```

This row remains pending copy review under docs/live-gate.md's existing
`DRAFT: copy review required` marker. New test diagnostics and internal code
comments are not application copy. No copy-review server was started.

## Concerns and cleanup

The broad initial command still includes five pre-existing failing subtests in
TestConfigDiagnosticNamesVariable: PaseoEndpoint, PaseoServerID, PaseoHome, NodePath
and BridgePath. They expect required settings that config.validate already treats
as optional. Their production behavior and test assertions were left unchanged.
The controller should reconcile those assertions during the remaining direct-runner
cutover. All tests selected for this fix pass.

Previously latched journals cannot prove whether a command started. They remain
read-only after upgrade; this change does not clear historical uncertain attempts.
A crash between journaling intent and persisting a proven pre-start failure likewise
remains conservative. These limits prevent an automatic duplicate write.

The real installed binary was not executed. Compatibility was checked against the
requested source revision and offline fixtures; live publication remains untested.
The configured installation must implement that source contract.

All local test servers and fake children finished through test cleanup. Scratch
under `/home/paulca/t/e2b/task10-r1` is removed after copying its evidence into these
reports. Go caches remain at their defaults. No push, merge or deployment.


## Task 11a: Offline direct cutover (2026-11-03)

Execution uses protocol 2, certified tuples and namespace proofs. The active adapter, bridge, dedicated-user checks, trial setters and process inventory are removed. Migration 0018 preserves history and charges, revokes open consents, invalidates selections, adds immutable assignment protocol provenance and leaves unfinished work in person wait with containment pending. Only newly created assignments are version 2; empty direct proofs cannot certify legacy processes. Every contained assignment uses the existing credential-rotation acknowledgement barrier.

The Go HTTP workflow covers two families, a real scoped tool question, checks, one local publication, merge-owner wait, live preparation cancellation and restart. The production command retains the Amadan path and verified lease provenance and configures both provider networks. Manifest version 2 has no production certificates or binary digests until Task 11b. README and vendored static assets are unchanged.

Full implementation details, all file changes and output excerpts: [task-11a-report.md](/home/paulca/amadan.net/oficina/equipo-plan-2b/.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-11a-report.md).

### RED and GREEN

All commands ran in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

```sh
CGO_ENABLED=0 go test ./internal/equipotest ./internal/runner/... ./internal/release ./cmd/equipo-runner -run 'TestDirectEligibility|TestDirectCutover|TestDirectLegacy|TestDirectRelease|TestRunnerDirectEndToEnd|TestDirectDeadReferences' -count=1
```

RED exited 1: certified direct reports were rejected, migration/audit cutover was absent, the manifest was schema 1 and the scanner did not exist. GREEN exited 0; the integration package took 62.918s. Later persisted-protocol and pending-selection tests supplied their own RED before implementation, then passed.

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectLegacyWorkCannotResume$' -count=1
CGO_ENABLED=0 go test ./internal/release -run '^TestDirectReleaseDigests$' -count=1
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectCutoverPendingSelectionStaysFenced$' -count=1
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectLegacyProofCannotCertifyContainment$' -count=1
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectLegacyEvidenceNotReconciled$' -count=1
```

Each exited 1 in RED. The v1 claim was accepted; the digest method and assignment protocol column were missing; cutover tasks could silently reacquire selections; old evidence was automatically reconciled. The digest method and column REDs were API/schema failures, not guard mutations. Restored GREEN commands and outputs are in the full report.

### Mutation evidence

Each final mutation below compiled, exited 1 with the named test failure, and was restored. The initial current-authority mutation survived because the first test only exercised containment. Adding separate current-authority and recovery assertions made both mutations fail. There are 26 independently verified guards.

| Guard | Exact command | Result |
| --- | --- | --- |
| revoke-consent | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPreservesHistory/upgrade$ -count=1` | Exit 1, named test failed; restored. |
| revoke-acknowledgements | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPreservesHistory/upgrade$ -count=1` | Exit 1, named test failed; restored. |
| preserve-revocation | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPreservesHistory/upgrade$ -count=1` | Exit 1, named test failed; restored. |
| audit-atomicity | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPreservesHistory/audit_atomicity$ -count=1` | Exit 1, named test failed; restored. |
| certified-tuple | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectEligibilityRequiresCertifiedTuple$ -count=1` | Exit 1, named test failed; restored. |
| no-consent-bypass | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectEligibilityRequiresCertifiedTuple/.*/trial$ -count=1` | Exit 1, named test failed; restored. |
| pending-selection | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPendingSelectionStaysFenced$ -count=1` | Exit 1, named test failed; restored. |
| reject-protocol-v1 | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectLegacyWorkCannotResume$ -count=1` | Exit 1, named test failed; restored. |
| namespace-preparation-scope | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectPreparationEventScope$ -count=1` | Exit 1, named test failed; restored. |
| release-helper-digest | `CGO_ENABLED=0 go test ./internal/release -run ^TestDirectReleaseDigests$ -count=1` | Exit 1, named test failed; restored. |
| unclassified-reference | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectDeadReferences$ -count=1` | Exit 1, named test failed; restored. |
| stale-allowance | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectDeadReferencesExactAllowances$ -count=1` | Exit 1, named test failed; restored. |
| blanket-allowance-schema | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectDeadReferencesExactAllowances$ -count=1` | Exit 1, named test failed; restored. |
| preparation-fence | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestRunnerDirectEndToEnd$ -count=1` | Exit 1, named test failed; restored. |
| claim-discovery | `CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectClaimRevalidates$ -count=1` | Exit 1, named test failed; restored. |
| legacy-journal | `CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectLegacyJournalCannotResume$ -count=1` | Exit 1, named test failed; restored. |
| containment-rotation | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectContainmentRotatesTokens$ -count=1` | Exit 1, named test failed; restored. |
| rotation-barrier | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectContainmentRotatesTokensFailure$ -count=1` | Exit 1, named test failed; restored. |
| old-fence | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectCutoverPreservesHistory/upgrade$ -count=1` | Exit 1, named test failed; restored. |
| required-CodexCodeModeHostPath | `CGO_ENABLED=0 go test ./internal/runner -run ^TestConfigDiagnosticNamesVariable/CodexCodeModeHostPath$ -count=1` | Exit 1, named test failed; restored. |
| required-ClaudePath | `CGO_ENABLED=0 go test ./internal/runner -run ^TestConfigDiagnosticNamesVariable/ClaudePath$ -count=1` | Exit 1, named test failed; restored. |
| required-BwrapPath | `CGO_ENABLED=0 go test ./internal/runner -run ^TestConfigDiagnosticNamesVariable/BwrapPath$ -count=1` | Exit 1, named test failed; restored. |
| legacy-proof-version | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectLegacyProofCannotCertifyContainment$ -count=1` | Exit 1, named test failed; restored. |
| legacy-current-version | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectLegacyProofCannotCertifyContainment$ -count=1` | Exit 1, named test failed; restored. |
| legacy-recovery-version | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectLegacyProofCannotCertifyContainment$ -count=1` | Exit 1, named test failed; restored. |
| no-legacy-reconciliation | `CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectLegacyEvidenceNotReconciled$ -count=1` | Exit 1, named test failed; restored. |

### Ordered gates and findings

- The required targeted tests, `CGO_ENABLED=0 go build ./cmd/equipo ./cmd/equipo-runner`, `make migration-check` and `make runner-dead-references` passed. Schema and affected gates were repeated after adding the persisted protocol guard.
- Early CI attempts stopped before the full suite on a stale manifest-test field, unused legacy helpers, an HTTP status literal and an expired synthetic capability in historical mutation output. All were repaired. Gitleaks has one exact historical fingerprint exception; the test no longer prints capabilities.
- A test-lane attempt inherited CGO and was stopped. Make now exports `CGO_ENABLED=0`; recorded owned processes and scratch were cleaned. The next lane exposed remaining consent-era fixtures and a legacy-recovery retry fixture; these were ported without relaxing the guards.
- `make ci` then passed: 16 packages ran uncached, zero failed; the test lane took 3m24.465s. Build, vet, formatting, staticcheck, govulncheck, gitleaks, size, direct adapters, namespaces, migration parity and performance all passed. Slowest screen was below 150ms; cold boot median was 68ms against 500ms.
- The runner test-line exemption is removed; its source limit is 7,500 for 7,437 actual lines. The Codex package measured 11.659s against its former default 10s; a documented 15s allowance covers the measured shared-machine load.
- `CGO_ENABLED=1 go test -race ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipotest ./internal/runner/...` ran once. All packages passed except a Codex response-test fixture that replaced a transport while the original session monitor read it. Integration passed in 384.124s and the runner in 229.387s. The fixture now owns a separate response session; production code was unchanged.
- `CGO_ENABLED=1 go test -race ./internal/runner/provider/codex -run '^TestCodex' -count=1` passed after the fixture correction (11.740s). The initial race output is the RED evidence; the targeted run is GREEN.
- `CGO_ENABLED=0 AMADAN_CI=1 go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 -run '^Test' ./internal/runner/provider/codex` passed with timing enforced (7.096s). `make budget` passed: 19 directories. These targeted checks cover the test-only and budget-metadata changes after the successful full gate.

### Reference classification

The implementation-tree scan passed with 495 text files, 953 matches and zero unclassified or stale matches. Every match is pinned by path, full-line SHA-256, token and occurrence count, with a reason. No active file exemption exists. The inventory itself has a strict data schema, rejects unknown or wildcard exemption fields, and is not interpreted as source code.

Raw scan and every per-match disposition: [task-11a-dead-references.txt](/home/paulca/amadan.net/oficina/equipo-plan-2b/.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-11a-dead-references.txt). The final scan includes this appended evidence; its receipt and digest are added below. The committed inventory is `scripts/runner-reference-allowlist.json`.

### Copy and release boundaries

New pending key: `task.wait.reconcile`, “Waiting for a person to reconcile earlier work and confirm containment.” Updated pending key: `connections.versions`, “Provider, launcher and containment versions”. Obsolete enabling copy was deleted. The live-gate guide and script explanation remain flagged drafts. No copy-review server, real provider session, machine enrolment, real credential home, remote publication, subagent, push or deployment occurred. Task 11b still owns live certification and release packaging.

Final reference receipt: reference scan: 495 text files, 958 matches, 0 failures. SHA-256: `e775209b7ab634b9162dce57be441f34b69244a664d40388a0a91c8fab1e8075`.

- 9 matches: Additive historical schema or cutover revocation; retained rows do not authorize work.
- 619 matches: Archived design or controller evidence; this exact historical statement grants no execution authority.
- 3 matches: Archived, non-runtime interface mockup describing the previous design.
- 42 matches: Byte-identical vendored JavaScript: DOM terminology or an upstream test-driver comment, not a runner dependency.
- 5 matches: Conservatively propagates historical taint so it cannot be laundered into certified evidence.
- 2 matches: DOM element identity in browser tests, not a runtime dependency.
- 3 matches: Explicit denial of shared legacy credential homes or inherited environment variables.
- 23 matches: Explicit retirement regression, historical rows, or a scanner acceptance/rejection fixture.
- 11 matches: Filesystem identity or syntax-tree terminology, unrelated to an execution dependency.
- 99 matches: Historical taint decoding, propagation or evidence regression; no exception permits a new launch.
- 2 matches: Negative command-policy test rejects an interpreter; it never executes or requires that interpreter.
- 1 matches: Negative provider-name fixture proving the retired adapter is unsupported.
- 1 matches: NoDelete test identifier verifies absence of destructive CRUD routes.
- 7 matches: Protected legacy credential path retained only as an explicit read-denial target.
- 30 matches: Read-only decoding and tests for historical usage; unknown charges remain unknown.
- 45 matches: Read-only display of historical consent or tainted evidence; enabling forms were removed.
- 9 matches: Rejects or invalidates legacy report authority; eligibility requires a certified direct tuple.
- 5 matches: Required rejection pattern used by the reference scanner itself.
- 28 matches: Retained executable, service or command path; not an operating-system account requirement.
- 9 matches: Retained historical storage or decoding field; it confers no launch authority.
- 5 matches: Seeded historical consent is rendered read-only; no enabling API or action exists.


---

## Task 11b: Offline certification and packaging gates

Status: NEEDS_CONTEXT. The offline input/evidence/packaging guards are implemented and tested, but the requested executable live exercise harness is not complete. The four tagged tests verify operator-collected observations; they do not perform the live exercises. Do not treat this as completed Task 11b certification or a release-ready runbook.

Branch: `plan-2b`. Base: `43e54be`. Commit subject: `feat: certify and package direct provider releases`. Author: `codex <codex~paul@keymail.dev>`.
All repository work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`.

## What was built

- `DirectLiveConfig`, explicit opt-in and file loading, with dedicated provider/account/model bindings, confirmed Claude trust-on-first-use identity, explicit auth hosts, disposable Git target, nonempty sentinel paths, evidence destination, origin, machine fingerprint and positive bounded funding. Shared or interactive homes, aliases, overlapping homes/repository/evidence and missing inputs fail before any provider command. No account discovery or credential-file read occurs in this gate.
- `DirectEvidence` verification with a shared inventory of Contract, Isolation, Recovery and Calibration assertions. Every required assertion needs a passing, nonempty, SHA-256-bound artifact. Every exposed native/shell/search/image/MCP tool needs denial observations for selected/other homes, runner state, /egress, /tool/equipo.sock, symlinks, /proc/*/root, /proc/*/fd and /dev/fd. Missing tools need explicit reasons. Claude inventories are checked per specialist and only named Equipo MCP tools are allowed. Codex requires on-request, user review, strict config and the deny profile together.
- Calibration computes twice the maximum complete input and output, rounded up to 1,000, checks overflow including multiplication by 23, requires 23 reservations per job and project/team headroom, and rejects unknown samples or evidence exceeding the configured calibration budget. This verifies recorded admission and usage; it is not a new runtime spending-cap implementation.
- `live_test.go`, behind `direct_live`, defines all four exact test names. Each refuses absent opt-in or config, checks installed provider/helper pins and bubblewrap 0.11.0, binds recordings to the exact config/account/model/auth-host/funding/executable digests, verifies each assertion group and requires both families and specialist coverage. The sole subprocess in this verifier is bubblewrap --version. No provider is launched. This is the material shortfall from the requested exercise harness.
- Both versioned release targets now check certification references, exact policy/instance tuple correspondence, provider/helper source pins, actual installed binary digests, bubblewrap 0.11.0, complete evidence, calibration funding and reviewed live-gate copy. The existing runtime-copy gate remains. Builds use commit-qualified output names and carry the shared manifest, evidence and full commit stamp. Provider binaries remain separate.
- `scripts/live-gate.sh` retains both bounded-input typed confirmations and calls the four exact tagged tests only with explicit opt-in/config. `docs/live-gate.md` is a DRAFT operator sequence covering dedicated-home creation/sign-in, Claude identity confirmation, all binding/path settings including EQUIPO_AMADAN_PATH, bounded inputs, certification requirements, manifest updates, both release commands, user-service installation/enabling, docs-t1 enrolment and machine approval, connection selection, a bounded first bug fix, evidence/Amadan review branch inspection, active cancellation and human merge. It explicitly states the missing driver and other prerequisites.
- Production `direct_policies`, `verified_isolation_tuples`, binary digests and certifications remain empty. `live_gate_copy_reviewed` is false. No production tuple was enabled.

## Interpretations and unresolved concerns

1. The requested live suite must actually exercise providers, not merely count test names or accept fixture transcripts. The implemented suite verifies an explicit evidence bundle and checks every required assertion, but does **not** collect those observations. A trusted operator must inspect the captured artifacts. Hashes establish integrity, not truthful execution. The missing real exercise driver remains required work; the draft documents the gap rather than pretending the command performs it. This task is therefore reported NEEDS_CONTEXT, not DONE.
2. There is a concrete release-policy digest cycle in the current code. `Runtime.constructDirect` mounts the runner executable as `/opt/equipo-tool-proxy`; `BuildPolicy` hashes that file and `policyTemplate` retains it. The runner embeds manifest.json. Adding a certified policy hash changes the executable whose digest participates in that same policy hash. The commit version stamped by packaging can change that digest too. A final certificate cannot simply be copied from an earlier runner build. A controller-approved stable launcher identity or separately authenticated manifest design is needed. I did not normalize away this security input or add an eligibility bypass.
3. Production `openRuntime` and `constructDirect` still construct network contracts without AuthHost. This safely prevents uncertified refresh. Actual refresh certification and production wiring of the resulting exact host must be completed together. The live config never guesses a production auth host.
4. The source and artifact verifier trust the reviewed repository and the operator's sanitized evidence. They are not remote attestation. The positive packaging test deliberately rewrites only its temporary copy of trusted adapter pin constants to synthetic binary digests; the `fake_cli` rejection leaves production constants intact. No test-only environment bypass exists in production.
5. The requirement to review prose is superseded for this run by the explicit instruction to leave draft/pending copy and never start a copy-review server or invoke that skill. No drafting provider, reviewer agent or browser review was used.
6. The task named changes in copy.go only if new runtime strings were needed. None were needed, so copy.go is unchanged. New test diagnostics are not app runtime copy.

## Files

- `internal/runner/provider/direct_live_config.go`, `direct_live_config_test.go`
- `internal/runner/provider/direct_certification.go`, `direct_certification_test.go`, `direct_requirements.json`, `live_test.go`
- `internal/release/manifest.go`, `manifest.json`
- `internal/equipotest/runner_release_test.go`, `live_gate_test.go`
- `scripts/runner-release-check.py`, `live-gate.sh`, `runner-reference-allowlist.json`
- `Makefile`, `docs/live-gate.md`
- Appended controller section and this ignored local task report.

## RED evidence

All Go commands ran from the authorized worktree with CGO_ENABLED=0 and default Go caches.

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/equipotest -run 'TestDirectLiveGate|TestDirectReleaseRequiresCertification|TestRunnerReleaseContractPackaging' -count=1
```

The first invocation failed to compile because DirectLiveConfig and its types did not exist. A minimal type/stub declaration was then added and the same command was rerun, producing compiled behavioral failures before implementing the gate:

```text
--- FAIL: TestDirectLiveGateRequiresExplicitInputs (0.00s)
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/opt_in (0.00s)
        direct_live_config_test.go:57: explicit input gate: opt_in: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/truthy_is_not_opt_in (0.00s)
        direct_live_config_test.go:57: explicit input gate: truthy_is_not_opt_in: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/dedicated_homes (0.00s)
        direct_live_config_test.go:57: explicit input gate: dedicated_homes: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/budget (0.00s)
        direct_live_config_test.go:57: explicit input gate: budget: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/time (0.00s)
        direct_live_config_test.go:57: explicit input gate: time: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/period_headroom (0.00s)
        direct_live_config_test.go:57: explicit input gate: period_headroom: <nil>
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/disposable (0.00s)
        direct_live_config_test.go:57: explicit input gate: disposable: <nil>
        runner_release_test.go:125: unsafe release accepted missing_certification: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
        runner_release_test.go:125: unsafe release accepted changed_policy: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
        runner_release_test.go:125: unsafe release accepted fake_evidence: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
        runner_release_test.go:125: unsafe release accepted bwrap: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
```
Exit 1. Missing opt-in, homes, budget, disposable target, sentinels and shared-home refusals all failed. Missing certification and bubblewrap checks failed in packaging. The initial packaging-green fixture still passed at this stage.

A separate calibration test was written before implementing DirectReservations:

```sh
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestDirectLiveGate' -count=1
```
Exit 1: undefined DirectReservations and LiveUsage. After implementation, its positive/unknown/overflow assertions passed. Evidence-matrix regressions were added with the validator and then mutation-tested; no separate preimplementation behavioral red is claimed for every matrix entry.

## GREEN evidence

```sh
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/equipotest -run 'TestDirectLiveGate|TestDirectReleaseRequiresCertification|TestRunnerReleaseContractPackaging|TestLiveGateConfirmation' -count=1
```

Final restored output, exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.028s
ok  	amadan.net/oficina/equipo/internal/equipotest	1.272s
```

The packaging tests invoke Make only in disposable fixture repositories with fake build executables. No real release target was run against the working checkout and no real release artifact was built.

Tagged compilation and offline gate coverage only:

```sh
CGO_ENABLED=0 go test -tags direct_live ./internal/runner/provider -run '^TestDirectLiveGate' -count=1
```

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.032s
```
Exit 0. None of TestDirectLiveContract, TestDirectLiveIsolation, TestDirectLiveRecovery or TestDirectLiveCalibration ran. There was no live certification.

## Mutations

Each mutation was applied independently, compiled, produced a named test failure, and was restored in a finally block before the next mutation. Final green above ran after all restorations. The first missing-certification mutation did not penetrate the fixture's JSON null iteration error, so it was not counted. The missing-certification fixture was corrected to an empty array, and the effective mutation then failed the named tests for both release targets.

### certification

Changed guard:

```text
scripts/runner-release-check.py
- require(len(manifest["certifications"]) == len(manifest["direct_policies"]))
+ pass  # mutation: omit certification cardinality

scripts/runner-release-check.py
- require(len(refs) == 1)
        evidence(manifest, certificate, refs[0], installed)
+ if refs:
            evidence(manifest, certificate, refs[0], installed)
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectReleaseRequiresCertification$/^release(-runner)?$/^missing_certification$ -count=1
--- FAIL: TestDirectReleaseRequiresCertification (0.09s)
    --- FAIL: TestDirectReleaseRequiresCertification/release (0.04s)
        --- FAIL: TestDirectReleaseRequiresCertification/release/missing_certification (0.04s)
            runner_release_test.go:132: unsafe release accepted missing_certification: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
    --- FAIL: TestDirectReleaseRequiresCertification/release-runner (0.05s)
        --- FAIL: TestDirectReleaseRequiresCertification/release-runner/missing_certification (0.05s)
            runner_release_test.go:132: unsafe release accepted missing_certification: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
FAIL
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.131s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### bwrap

Changed guard:

```text
scripts/runner-release-check.py
- .decode().strip() == "bubblewrap 0.11.0"
+ .decode().strip() in ("bubblewrap 0.11.0", "bubblewrap 0.10.0")

Makefile
- @test "$$("$${EQUIPO_BWRAP_PATH:-/usr/bin/bwrap}" --version)" = "bubblewrap 0.11.0"
+ @test "$$("$${EQUIPO_BWRAP_PATH:-/usr/bin/bwrap}" --version)" = "bubblewrap 0.10.0"
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectReleaseRequiresCertification$/^release(-runner)?$/^bwrap$ -count=1
--- FAIL: TestDirectReleaseRequiresCertification (0.12s)
    --- FAIL: TestDirectReleaseRequiresCertification/release (0.06s)
        --- FAIL: TestDirectReleaseRequiresCertification/release/bwrap (0.06s)
            runner_release_test.go:132: unsafe release accepted bwrap: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
    --- FAIL: TestDirectReleaseRequiresCertification/release-runner (0.06s)
        --- FAIL: TestDirectReleaseRequiresCertification/release-runner/bwrap (0.06s)
            runner_release_test.go:132: unsafe release accepted bwrap: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
FAIL
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.160s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### shared-home

Changed guard:

```text
internal/runner/provider/direct_live_config.go
- return !rules.RefusesPath(path) && !rules.refusedInode(info) && !refusedMountAlias(path, rules)
+ return true
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateRequiresExplicitInputs$/^interactive_home$ -count=1
--- FAIL: TestDirectLiveGateRequiresExplicitInputs (0.00s)
    --- FAIL: TestDirectLiveGateRequiresExplicitInputs/interactive_home (0.00s)
        direct_live_config_test.go:79: interactive home accepted
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.003s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### fake-cli

Changed guard:

```text
scripts/runner-release-check.py
- require(pin and installed[name] == pin[1])
+ require(pin)
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectReleaseRequiresCertification$/^release(-runner)?$/^fake_cli$ -count=1
--- FAIL: TestDirectReleaseRequiresCertification (0.12s)
    --- FAIL: TestDirectReleaseRequiresCertification/release (0.06s)
        --- FAIL: TestDirectReleaseRequiresCertification/release/fake_cli (0.06s)
            runner_release_test.go:132: unsafe release accepted fake_cli: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
    --- FAIL: TestDirectReleaseRequiresCertification/release-runner (0.06s)
        --- FAIL: TestDirectReleaseRequiresCertification/release-runner/fake_cli (0.06s)
            runner_release_test.go:132: unsafe release accepted fake_cli: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
FAIL
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.161s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### live-copy

Changed guard:

```text
scripts/runner-release-check.py
- manifest["schema"] == 2 and manifest["live_gate_copy_reviewed"] is True
+ manifest["schema"] == 2
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectReleaseRequiresCertification$/^release(-runner)?$/^pending_live_copy$ -count=1
--- FAIL: TestDirectReleaseRequiresCertification (0.13s)
    --- FAIL: TestDirectReleaseRequiresCertification/release (0.06s)
        --- FAIL: TestDirectReleaseRequiresCertification/release/pending_live_copy (0.06s)
            runner_release_test.go:132: unsafe release accepted pending_live_copy: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
    --- FAIL: TestDirectReleaseRequiresCertification/release-runner (0.07s)
        --- FAIL: TestDirectReleaseRequiresCertification/release-runner/pending_live_copy (0.07s)
            runner_release_test.go:132: unsafe release accepted pending_live_copy: EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
FAIL
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.180s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### evidence-assertions

Changed guard:

```text
internal/runner/provider/direct_certification.go
- if VerifyDirectObservation(root, e.Checks[name], "pass") != nil {
+ _ = name
		if false {
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateEvidence$/^(Contract|Isolation|Recovery|Calibration)$ -count=1
--- FAIL: TestDirectLiveGateEvidence (0.01s)
    --- FAIL: TestDirectLiveGateEvidence/Contract (0.00s)
        --- FAIL: TestDirectLiveGateEvidence/Contract/account-version-readback (0.00s)
            direct_certification_test.go:65: missing assertion accepted
        --- FAIL: TestDirectLiveGateEvidence/Contract/effective-policy-readback (0.00s)
            direct_certification_test.go:65: missing assertion accepted
        --- FAIL: TestDirectLiveGateEvidence/Contract/inner-sandbox-enabled (0.00s)
            direct_certification_test.go:65: missing assertion accepted
        --- FAIL: TestDirectLiveGateEvidence/Contract/immutable-settings (0.00s)
            direct_certification_test.go:65: missing assertion accepted
        --- FAIL: TestDirectLiveGateEvidence/Contract/strict-mcp (0.00s)
            direct_certification_test.go:65: missing assertion accepted
        --- FAIL: TestDirectLiveGateEvidence/Contract/exact-tool-inventory (0.00s)
            direct_certification_test.go:65: missing assertion accepted
```
Exit 1; test failure, not a compile failure. Restored.

### native-approval

Changed guard:

```text
internal/runner/provider/direct_certification.go
- p.ApprovalPolicy != "on-request"
+ false
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateEvidence$/^approval$ -count=1
--- FAIL: TestDirectLiveGateEvidence (0.00s)
    --- FAIL: TestDirectLiveGateEvidence/approval (0.00s)
        direct_certification_test.go:100: invalid evidence accepted
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.003s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### protected-alias

Changed guard:

```text
internal/runner/provider/direct_certification.go
- if VerifyDirectObservation(root, tool.Probes[path], "denied") != nil {
+ _ = path
				if false {
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateEvidence$/^untested_reader$ -count=1
--- FAIL: TestDirectLiveGateEvidence (0.00s)
    --- FAIL: TestDirectLiveGateEvidence/untested_reader (0.00s)
        direct_certification_test.go:100: invalid evidence accepted
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

### calibration

Changed guard:

```text
internal/runner/provider/direct_certification.go
- n = ((n*2 + 999) / 1000) * 1000
+ n = ((n + 999) / 1000) * 1000
```

Command and result:

```text
$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateCalibration$ -count=1
--- FAIL: TestDirectLiveGateCalibration (0.00s)
    direct_certification_test.go:15: reservation: 1000 1000 <nil>
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
exit 1
```
Exit 1; test failure, not a compile failure. Restored.

## Final gates

```sh
CGO_ENABLED=0 go vet ./...
make budget
sh -n scripts/live-gate.sh
git diff --check
```

Vet, shell syntax and whitespace checks exited 0 with no output. Budget exited 0:

```text
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 19 directories within budget
```

The reference scanner initially rejected changed command-path lines, the shared-home negative fixture and the lexical `node` substring in refusedInode. Its exact inventory is refreshed only for task-owned changed lines, preserving existing reasons elsewhere. The final scanner result is recorded in the controller addendum below. No make ci, full Go suite, migration suite, release build, provider prompt, sign-in, credential home creation, enrolment, deployment, merge, push, subagent, server or .claude/HANDOFF.md was performed. Empty temporary directories in unit fixtures represent homes; they contain no real credentials.

## User-facing strings

No new app-owned runtime strings. No new copy.go entries, pending or otherwise; existing individually pending entries remain unchanged.

The entire rewritten `docs/live-gate.md` is DRAFT, copy review pending. The script's existing confirmation strings are unchanged and remain DRAFT:

- Read docs/live-gate.md. Confirm bounded calibration funding and a disposable repository.
- Type LIVE DISPOSABLE ONLY:
- Confirm the enrolled connections, origin, machine fingerprint and disposable sentinel locations.
- Type RUN LIVE GATE:

The documentation references the existing labels `approved beyond profile` and `Allow once`; neither label was added or edited. No HTML/CSS was touched. README prose and vendored assets are unchanged.

## Handoff

The controller should review the offline changes and resolve the final-binary certification identity before adding the actual bounded live exercise driver. Keep production eligibility off. Paul still owns all live authorization, sign-in, actual recordings, copy approval, release creation, installation, enrolment, first bounded job, cancellation and merge. No background process is intended to persist. Scratch logs are removed after copying their evidence into this report and the controller report.


### Controller addendum: final reference gate

```sh
python3 scripts/runner-dead-references.py
```

```text
reference scan: 501 text files, 969 matches, 0 failures
```
Exit 0. Task-owned exact inventory entries were updated after reviewing each changed line. No blanket exceptions were introduced.


## CI fix after Task 11b: toolchain-switched Go runtime

The clean PATH selected `/usr/local/go/bin/go` (go1.26.5). Fixtures inferred that bootstrap's GOROOT, then the check sandbox correctly rejected it because checks require go1.26.10 with `GOTOOLCHAIN=local`. This checkout has no `toolchain` directive, so the brief's automatic-switch assumption did not hold. Fixtures now resolve `go env GOROOT` with the exact required `GOTOOLCHAIN=go1.26.10`, including the downloaded runtime under GOMODCACHE. Production configuration remains explicit; wrong versions still fail with binary/root/observed/required details.

Directory refusals now identify the path. Preparation tests log callback failures and saved task state. New regressions check version diagnostics, symlink refusal diagnostics, and a real Go runtime nested under the read-only module cache. The nested test compiles/runs a Go test, checks both aliases for write protection and denial, and excludes the host build cache. No mount, namespace, alias, version or digest rule was relaxed.

All commands below ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b` on `plan-2b`.

RED commands (all exit 1, named failures):

```sh
env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckSandboxToolchainDiagnostic$' -count=1
CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckCacheRejectsSymlinkPathDiagnostic$' -count=1
```

Results: original `direct_graph_test.go:74: provider_contract` in 0.060s; new tests report missing path/version detail and missing refused-path detail, respectively.

GREEN commands (all exit 0):

```sh
env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest -run '^(TestDirectBugWorkflow|TestBugPreparationIntegration|TestBugPreparationCrashRealProtocolLocalGit|TestRunnerDirectEndToEnd)$' -count=1
CGO_ENABLED=0 go test ./internal/runner ./internal/equipotest -run '^(TestDirectBugWorkflow|TestBugPreparationIntegration|TestBugPreparationCrashRealProtocolLocalGit|TestRunnerDirectEndToEnd)$' -count=1
CGO_ENABLED=0 go test ./internal/runner/checks -run '^(TestCheckNamespaceGoRootInsideModuleCache|TestCheckCacheRejectsSymlinkPathDiagnostic|TestCheckSandboxToolchainDiagnostic|TestCheckSandboxToolchain|TestCheckCacheIsolation|TestCheckNamespaceDeniedMountAliases|TestCheckCacheRejectsBroadHome|TestCheckCacheRejectsNamespaceScratch)$' -count=1
CGO_ENABLED=0 go vet ./...
```

Results: exact reproduction 68.861s; runner/equipotest clean PATH 116.107s/78.834s; default PATH 114.746s/80.227s; targeted checks 15.826s; vet no output.

Mutations, each independently applied and restored, all compiled and exited 1 with the named test failing:

| Mutation | Exact command | Observed failure |
| --- | --- | --- |
| M1: fixture requests local bootstrap instead of required version | `env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1` | Error names `/usr/local/go/bin/go`, go1.26.5 and required go1.26.10. |
| M2: bypass version rejection | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckSandboxToolchainDiagnostic$' -count=1` | Invalid runtime accepted; diagnostic assertion sees nil. |
| M3: return bare contract class | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckSandboxToolchainDiagnostic$' -count=1` | Missing path/version details. |
| M4: resolve symlink before directory pinning | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckCacheRejectsSymlinkPathDiagnostic$' -count=1` | Alias accepted; assertion sees nil. |
| M5: return bare pinning error | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckCacheRejectsSymlinkPathDiagnostic$' -count=1` | Missing refused-path detail. |
| M6: omit runtime alias denial | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckNamespaceGoRootInsideModuleCache$' -count=1` | `/opt/go/VERSION` becomes readable, exit 0. |
| M7: omit module alias denial | `CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckNamespaceGoRootInsideModuleCache$' -count=1` | `/opt/go-mod/golang.org/toolchain@.../VERSION` becomes readable, exit 0. |

Full source mutations, output excerpts, interpretations, files and new diagnostic strings are in `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/ci-fix-report.md`. No new app strings or `copy.go` entries. No live/provider run, full test suite, copy-review server, helper agent, merge, push or deployment.

### Final restored verification

After all seven mutations were restored:

```sh
env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
env -i HOME=$HOME PATH=/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin TMPDIR=/home/paulca/t/e2b CGO_ENABLED=0 go test ./internal/runner/checks -run '^(TestCheckNamespaceGoRootInsideModuleCache|TestCheckCacheRejectsSymlinkPathDiagnostic|TestCheckSandboxToolchainDiagnostic|TestCheckSandboxToolchain|TestCheckCacheIsolation|TestCheckNamespaceDeniedMountAliases|TestCheckCacheRejectsBroadHome|TestCheckCacheRejectsNamespaceScratch)$' -count=1
CGO_ENABLED=0 go vet ./...
git diff --check
```

All exited 0. Runner: 80.806s. Targeted checks: 17.590s. Vet and diff check: no output. `internal/runner/checks/namespace.go` has no final diff. All owned test processes finished; test fixtures removed their scratch. Session scratch `/home/paulca/t/e2b/ci-fix.EXjMwN` was removed after copying its evidence into this report.


## Task 11b follow-up: exercise driver and standalone tool proxy (2026-11-03)

Status: NEEDS_CONTEXT. The helper split and certified-refresh authority wiring are implemented. The collection driver now exercises substantial real runner wiring, but the requested certification matrix is not complete. Do not run this as a production certification or enable a tuple yet.

Baseline: branch `plan-2b`, initially clean, at `e795e30` (the CI toolchain fix following `9cd5910`). All work stayed in `/home/paulca/amadan.net/oficina/equipo-plan-2b`. No other worktree was touched.

### What was built

- The four tagged tests now invoke `directlive.Run` once before verifying its generated bundle. The collector rejects a nonempty evidence directory before starting a CLI. Terminal answers are bounded to 60 seconds and 8 KiB, validate against the original question, and permit only Allow once, Deny or typed answers JSON. There is no operator input for assertion results.
- The collector uses real account leases, `containment.Manager`, private egress/relay, the Claude and Codex adapters, durable journal/capture, the MCP broker and the workflow's shared `DispatchDirectTurn`. It shares production policy construction through `runner.CertificationInputs`, including configured protected paths. It collects Engineering implementation and reproduction, Review, and the separate Claude Product profile: seven policy exercises.
- Probe requests cover selected/staged and source homes, the other selected home, the other-home sentinel, runner state, egress, the tool socket and the alias set. A staged selected-home sentinel and a workspace symlink are created and removed within the exercise. Tool observations require correlated invocations/results, not final assistant prose. Shell reads must use the exact generated cat command; an echo of a denial is rejected. A workspace positive control is required. The Codex reader inventory is still incomplete, as explained below.
- The driver exercises actual MCP broker validation, stale fences, invalid arguments, persistent-policy refusal, person approvals and questions. Its fake CLI test asserts those observations, clean resume, durable dispatch followed by an intentional runner-process kill, recovery, unknown usage and refusal to redispatch. The kill worker uses the runner command's internal opt-in entry point. Recovery checks PID-descriptor exit and removes only its proven-exited namespace records and generated homes.
- A deterministic namespace exercise uses the same manager and Go PID 1 to attempt a connection to an owned host-loopback listener, attempt a cgroup move, fork a detached child, then actively cancel the namespace and verify exit. It sends no provider prompt. Its listener is bound to 127.0.0.1 and closed.
- When an auth host is named, a same-identity generation exercise appends JSON whitespace without changing token values, observes fresh-preflight-required, and sends the next bounded turn through the adapter. A separate negative exercise temporarily changes and restores Equipo's identity marker. It is labelled `identity-marker-tamper-denied`, not a certification of a changed provider account. No host means these exercises remain uncertified.
- Calibration pools complete samples by provider family, applies twice the maximum rounded up to 1,000, and checks the 23-reservation job floor and project/team headroom without changing configured limits. Unknown usage stops admission. This is not a subscription currency cap.
- All generated capture, answer, probe, policy and recovery artifacts are SHA-256 bound in the evidence. The existing Go verifier and packaging verifier check the additional artifact map. `ManifestCandidate` derives typed refresh-host authority only after all four groups pass and writes a candidate beside the bundle; it does not edit the checked-in manifest.
- `cmd/equipo-tool-proxy` is a separate stdio-only command backed by `internal/toolproxy`. It imports neither runner state nor the embedded release manifest. Production mounts it at `/opt/equipo-tool-proxy`, using `EQUIPO_TOOL_PROXY_PATH` or the runner's sibling executable. Its bytes participate in policy hashing and installed-binary verification. Packaging rebuilds it reproducibly and checks the resulting digest before building the runner.
- Certified refresh uses `PolicyCertificate.CertifiedRefresh` (`auth_host`, `evidence_sha256`). Production obtains the host only through the exact provider/version/policy tuple and matching certification reference. Configured/environment auth hosts cannot grant authority. Both adapters return account-maintenance when a staged refresh appears without an authenticated host in policy. The checked-in manifest remains empty and copy review remains pending.

### Interpretations and unresolved concerns

1. **The driver is not a complete implementation of ruling 1.** Successful and failed token refresh through the named auth hosts are not driven or observed. A true provider-account identity change is not exercised; the marker-tamper check is narrower. These mandatory requirements remain `not-certified`, even when an auth host is configured. Missing hosts also remain uncertified. Neither the verifier nor the manifest writer can turn these results into an eligible tuple.
2. **Complete native/image coverage still needs work.** The Codex probe names and receipt recognizer are candidates, not a verified enumeration of every exposed code-mode/native/search/image capability. Its exact-inventory result stays uncertified. The available Task 6 fixture reconstructs a shell result with compound-command exit zero; it is not an inventory or a complete read-surface recording. Claude's init inventory is checked, but dedicated image-format variants need completion. No unobserved probe is marked denied.
3. The missing context is the pinned, supported refresh-trigger/failed-refresh procedure and reliable native/image tool enumeration and receipt shapes. Task 3's report leaves real auth hosts/refresh for 11b; Task 5/6 reports and the nesting report explicitly do not establish these cases. I did not guess a credential-edit recipe that could invalidate a real refresh token or claim model prose as capability evidence. The controller should provide or approve those protocol fixtures/procedures, then finish the driver and fake scenarios before Paul's live run. This report does not claim the task is DONE.
4. Certification reuses production policy construction and turn dispatch. The existing full bug workflow was separately tested offline; the certification collector does not run the entire bug-fix/check/publication state machine. If ruling 1 requires that complete graph inside the same driver, that integration remains outstanding too.
5. Splitting the MCP helper exposed another part of the digest cycle: containment required the runner executable among reusable policy files. The manager now pins the trusted namespace executable at construction, verifies its pinned bytes when mounting it, and includes them in concrete namespace evidence. The runner remains trusted and still embeds the manifest. It is not silently omitted from concrete launch integrity. This trust-boundary interpretation needs controller review.
6. A runtime-policy regression found that generated account-home paths in settings/argv also changed hashes between leases. The reusable template now assigns that verified generated path its stable role, including nested settings/argv occurrences. Concrete manifest hashes retain exact paths. Credential-source paths, provider binaries, the tool helper, account identity and the other policy inputs remain bound. An initial shallow-copy implementation modified shared settings bytes; adapter tests caught it, and normalization now decodes into a fresh structure with JSON numbers preserved.
7. The fake-CLI test compiles isolated source overlays containing synthetic CLI digest pins. Production constants are unchanged. Only the fake test selects automatic fixture answers, and its evidence source is `fake-cli`, which cannot certify production. No production environment switch bypasses executable pins. Its dedicated directories contain synthetic JSON only, never real credentials.
8. Named guard tests below had compiled behavioral RED results and independent mutations. The full fake-driver integration test was introduced alongside its initial driver and then failed through integration gaps; not every later scenario had a separate preimplementation behavioral RED. This is a limit of adherence to the requested TDD sequence, not a claim that those integration failures replace every requested RED.

### Files

- `.rastrillo/budgets.txt`
- `Makefile`
- `cmd/equipo-runner/main.go`
- `cmd/equipo-tool-proxy/budget_test.go`
- `cmd/equipo-tool-proxy/main.go`
- `docs/live-gate.md`
- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`
- `internal/directlive/budget_test.go`
- `internal/directlive/bundle.go`
- `internal/directlive/bundle_test.go`
- `internal/directlive/calibration.go`
- `internal/directlive/calibration_test.go`
- `internal/directlive/certificate.go`
- `internal/directlive/cleanup.go`
- `internal/directlive/controls.go`
- `internal/directlive/driver.go`
- `internal/directlive/driver_test.go`
- `internal/directlive/generation.go`
- `internal/directlive/inventory.go`
- `internal/directlive/lifetime.go`
- `internal/directlive/lifetime_test.go`
- `internal/directlive/observations.go`
- `internal/directlive/policy_paths.go`
- `internal/directlive/probes.go`
- `internal/directlive/recovery.go`
- `internal/directlive/terminal.go`
- `internal/directlive/testdata/fake-cli.py`
- `internal/directlive/turn.go`
- `internal/equipo/copy.go`
- `internal/equipotest/runner_release_test.go`
- `internal/equipotest/tool_proxy_release_test.go`
- `internal/release/manifest.go`
- `internal/release/manifest_test.go`
- `internal/release/refresh.go`
- `internal/release/refresh_test.go`
- `internal/runner/capture_evidence.go`
- `internal/runner/certification_inputs.go`
- `internal/runner/certified/budget_test.go`
- `internal/runner/certified/policy.go`
- `internal/runner/certified_network_test.go`
- `internal/runner/config.go`
- `internal/runner/containment/linux.go`
- `internal/runner/containment/linux_test.go`
- `internal/runner/direct_dispatch.go`
- `internal/runner/direct_workflow.go`
- `internal/runner/provider/claude/launcher.go`
- `internal/runner/provider/claude/launcher_test.go`
- `internal/runner/provider/codex/launcher.go`
- `internal/runner/provider/codex/launcher_test.go`
- `internal/runner/provider/direct_certification.go`
- `internal/runner/provider/direct_certification_test.go`
- `internal/runner/provider/direct_live_config.go`
- `internal/runner/provider/direct_live_config_test.go`
- `internal/runner/provider/live_test.go`
- `internal/runner/provider/policy.go`
- `internal/runner/runtime.go`
- `internal/runner/runtime_direct.go`
- `internal/runner/tool_proxy.go`
- `internal/toolproxy/budget_test.go`
- `internal/toolproxy/stdio.go`
- `scripts/runner-reference-allowlist.json`
- `scripts/runner-release-check.py`

The named local task report is ignored by Git and is updated in place. The controller report contains this same technical evidence. `internal/release/manifest.json` remains unchanged.

### RED evidence

All commands ran from the authorized checkout with `CGO_ENABLED=0` and default Go caches.

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run 'TestToolProxyManifestIndependent|TestRunnerReleaseContractPackaging/tool_proxy_digest' -count=1
```

Exit 1, compiled test failures: `unsafe release accepted tool_proxy_digest` and `standalone helper unavailable ... directory not found`. These tests preceded the extraction and packaging changes.

```sh
CGO_ENABLED=0 go test ./internal/release ./internal/runner/provider -run 'TestCertifiedRefreshExactTuple|TestDirectLiveGateRequiresExplicitInputs/no_refresh' -count=1
```

Exit 1 with a compilable host-lookup stub: `certified host lost: ""`; the config gate also rejected the newly permitted no-refresh configuration with `provider_identity_mismatch`.

```sh
CGO_ENABLED=0 go test ./internal/directlive -run 'TestDriverRejectsHandSuppliedEvidence|TestDriverRequiresObservedToolResult' -count=1
```

Exit 1 with compilable stubs: `driver accepted hand-supplied evidence`; `model narrative became isolation evidence`.

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestRuntimeMountsStandaloneToolProxy$' -count=1
```

Exit 1: `release manifest changed provider policy hash`. The generated-home instability was fixed after this RED. A later compiled `CertificationInputs` stub produced `provider_policy_rejected` in this same test before shared production policy construction was extracted.

```sh
CGO_ENABLED=0 go test ./internal/directlive -run '^TestDriverHostAndLifetimeProbes$' -count=1
CGO_ENABLED=0 go test ./internal/directlive -run '^TestDriverCalibrationPoolsFamily$' -count=1
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestDirectLiveGateAllArtifacts$' -count=1
```

Each exited 1 before its guard implementation: `unobserved lifetime assertion host-loopback-denied`, `family reservation: 1000 1000 <nil>`, and `tampered supplemental capture accepted`. An earlier lifetime fixture directory-mode error was fixed before observing the behavioral RED and is not counted as guard evidence.

The fake integration test initially failed at provider open because the old containment policy required the runner executable in reusable policy inputs. It later exposed a missing MCP initialize exchange, cumulative-usage reset in the fake resumed Codex process, legitimate raw-frame retirement during recovery, and the requirement that staged homes live under the namespace manager's configured scratch root. Those failures were fixed; they did not contact a provider.

### GREEN evidence

```sh
CGO_ENABLED=0 go test ./internal/directlive -run '^TestDirectDriverFakeCLI$' -count=1
```

Exit 0:

```text
ok      amadan.net/oficina/equipo/internal/directlive   91.045s
```

```sh
CGO_ENABLED=0 go test ./internal/release ./internal/runner ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/containment ./internal/equipotest ./internal/directlive ./internal/runner/certified ./cmd/equipo-tool-proxy ./internal/toolproxy -run 'TestCertifiedRefresh|TestPolicyHashIndependentOfReleaseManifest|TestRuntimeMountsStandaloneToolProxy|TestToolProxy|TestDirectReleaseDigests|TestDirectReleaseRequiresCertification|TestRunnerReleaseContractPackaging|TestDirectLiveGate|TestRefreshWithoutCertifiedHostFailsClosed|TestClaudeRefreshBeforeTurn|TestCodexRefreshAndAdmission|TestNamespaceManifestInputs|TestNamespaceConcreteManifestHash|TestDirectBugRuntime$|TestDriver' -count=1
```

Exit 0:

```text
ok      amadan.net/oficina/equipo/internal/release  0.007s
ok      amadan.net/oficina/equipo/internal/runner   5.536s
ok      amadan.net/oficina/equipo/internal/runner/provider  0.079s
ok      amadan.net/oficina/equipo/internal/runner/provider/claude   2.196s
ok      amadan.net/oficina/equipo/internal/runner/provider/codex    0.806s
ok      amadan.net/oficina/equipo/internal/runner/containment   0.133s
ok      amadan.net/oficina/equipo/internal/equipotest   3.139s
ok      amadan.net/oficina/equipo/internal/directlive   0.492s
ok      amadan.net/oficina/equipo/internal/runner/certified 0.005s [no tests to run]
ok      amadan.net/oficina/equipo/cmd/equipo-tool-proxy 0.008s [no tests to run]
ok      amadan.net/oficina/equipo/internal/toolproxy    0.007s [no tests to run]
```

```sh
CGO_ENABLED=0 go test -tags direct_live ./internal/runner/provider -run '^TestDirectLiveGate' -count=1
CGO_ENABLED=0 go vet ./...
make budget
git diff --check
```

Exit 0:

```text
ok      amadan.net/oficina/equipo/internal/runner/provider  0.187s
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 23 directories within budget
```

The tagged command above ran only offline gate tests. It did not run any of the four live certification tests.

```sh
CGO_ENABLED=0 go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
```

Exit 0: `ok amadan.net/oficina/equipo/internal/runner 83.435s`. This affected full bug-workflow test used its local fixture repository, fake workflow CLIs and the real namespace/check wiring. No real Amadan publication or provider prompt occurred.

Packaging tests invoke Make only inside disposable fixture repositories with fake build executables. No `make release*` command ran against the working checkout. The fake driver builds temporary test executables with ordinary Go build commands, then removes them with its test directories.

### Guard mutations

Each mutation below was applied alone, produced a named compiled test failure, and was restored in a finally block. The original runtime-mount mutation was repeated at its final shared-constructor location after extraction. Fourteen mutation runs are recorded; no compile failure is counted. Final green gates ran after restoration.

```text
### hand-supplied evidence
--- internal/directlive/bundle.go
+++ internal/directlive/bundle.go
@@ -16,7 +16,8 @@
    if err != nil {
        return "", err
    }
-   if len(entries) != 0 {
+   if false {
+ _ = entries
        return "", errEvidence
    }
    f, err := os.OpenFile(filepath.Join(root, ".driver"), os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0600)

$ CGO_ENABLED=0 go test ./internal/directlive -run ^TestDriverRejectsHandSuppliedEvidence$ -count=1
--- FAIL: TestDriverRejectsHandSuppliedEvidence (0.00s)
    bundle_test.go:15: driver accepted hand-supplied evidence
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/directlive   0.042s
FAIL

exit 1

### helper installed digest
--- internal/release/manifest.go
+++ internal/release/manifest.go
@@ -99,7 +99,7 @@
        hash := sha256.New()
        _, err = io.Copy(hash, f)
        closeErr := f.Close()
-       if err != nil || closeErr != nil || hex.EncodeToString(hash.Sum(nil)) != binary.SHA256 {
+       if err != nil || closeErr != nil || (binary.Name != "equipo-tool-proxy" && hex.EncodeToString(hash.Sum(nil)) != binary.SHA256) {
            return errManifest
        }
        delete(versions, binary.Name)

$ CGO_ENABLED=0 go test ./internal/release -run ^TestToolProxyDigestPinned$ -count=1
--- FAIL: TestToolProxyDigestPinned (0.00s)
    manifest_test.go:59: changed tool proxy accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/release  0.003s
FAIL

exit 1

### runtime mounts helper
--- internal/runner/runtime_direct.go
+++ internal/runner/runtime_direct.go
@@ -59,7 +59,7 @@
    if err != nil {
        return provider.Launch{}, cleanup, err
    }
-   runtimeFiles := []provider.Mount{{Source: r.cfg.toolProxy(), Target: "/opt/equipo-tool-proxy", ReadOnly: true}, {Source: r.cfg.bwrap(), Target: "/opt/bwrap", ReadOnly: true}}
+   runtimeFiles := []provider.Mount{{Source: r.cfg.Executable, Target: "/opt/equipo-tool-proxy", ReadOnly: true}, {Source: r.cfg.bwrap(), Target: "/opt/bwrap", ReadOnly: true}}
    binary := r.cfg.ClaudePath
    if s.Provider == "codex" {
        binary = r.cfg.CodexPath

$ CGO_ENABLED=0 go test ./internal/runner -run ^TestRuntimeMountsStandaloneToolProxy$ -count=1
--- FAIL: TestRuntimeMountsStandaloneToolProxy (0.13s)
    certified_network_test.go:128: runner executable entered provider policy
FAIL
rastrillo-budget/v1 ran 130ms
FAIL    amadan.net/oficina/equipo/internal/runner   0.132s
FAIL

exit 1

### helper manifest dependency
--- cmd/equipo-tool-proxy/main.go
+++ cmd/equipo-tool-proxy/main.go
@@ -1,6 +1,7 @@
 package main

 import (
+ _ "amadan.net/oficina/equipo/internal/release"
    "amadan.net/oficina/equipo/internal/toolproxy"
    "context"
    "os"

$ CGO_ENABLED=0 go test ./internal/equipotest -run ^TestToolProxyManifestIndependent$ -count=1
--- FAIL: TestToolProxyManifestIndependent (0.02s)
    tool_proxy_release_test.go:17: tool proxy depends on runner state or embedded release manifest: amadan.net/oficina/equipo/internal/release
FAIL
rastrillo-budget/v1 ran 23ms
FAIL    amadan.net/oficina/equipo/internal/equipotest   0.069s
FAIL

exit 1

### refresh tuple binding
--- internal/release/refresh.go
+++ internal/release/refresh.go
@@ -14,7 +14,7 @@
    var host string
    count := 0
    for _, c := range m.DirectPolicies {
-       if c.Provider != provider || c.ProviderVersion != version || c.PolicyHash != hash {
+       if c.Provider != provider || c.ProviderVersion != version || false {
            continue
        }
        count++
@@ -31,7 +31,7 @@
        }
        refs := 0
        for _, e := range m.Certifications {
-           if e.Provider == provider && e.PolicyHash == hash && e.SHA256 == c.CertifiedRefresh.EvidenceSHA256 {
+           if e.Provider == provider && true && e.SHA256 == c.CertifiedRefresh.EvidenceSHA256 {
                refs++
            }
        }

$ CGO_ENABLED=0 go test ./internal/release -run ^TestCertifiedRefreshExactTuple$ -count=1
--- FAIL: TestCertifiedRefreshExactTuple (0.00s)
    refresh_test.go:24: wrong tuple admitted
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/release  0.002s
FAIL

exit 1

### claude refresh fail closed
--- internal/runner/provider/claude/launcher.go
+++ internal/runner/provider/claude/launcher.go
@@ -290,7 +290,7 @@
        return observed, e
    }
    if e = lease.Validate(ctx); errors.Is(e, provider.ErrRefreshPending) {
-       if in.AuthHost == "" {
+       if false {
            return observed, provider.ErrAccountMaintenance
        }
        if e = lease.CommitRefresh(ctx, probe); e != nil {

$ CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestRefreshWithoutCertifiedHostFailsClosed$ -count=1
--- FAIL: TestRefreshWithoutCertifiedHostFailsClosed (0.77s)
    launcher_test.go:923: uncertified refresh: <nil>
FAIL
rastrillo-budget/v1 ran 771ms
FAIL    amadan.net/oficina/equipo/internal/runner/provider/claude   0.773s
FAIL

exit 1

### codex refresh fail closed
--- internal/runner/provider/codex/launcher.go
+++ internal/runner/provider/codex/launcher.go
@@ -428,7 +428,7 @@
        return observed, e
    }
    if errors.Is(e, provider.ErrRefreshPending) {
-       if in.AuthHost == "" {
+       if false {
            return observed, provider.ErrAccountMaintenance
        }
        if e = lease.CommitRefresh(ctx, probe); e != nil {

$ CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestRefreshWithoutCertifiedHostFailsClosed$ -count=1
--- FAIL: TestRefreshWithoutCertifiedHostFailsClosed (0.38s)
    launcher_test.go:947: uncertified refresh: <nil>
FAIL
rastrillo-budget/v1 ran 384ms
FAIL    amadan.net/oficina/equipo/internal/runner/provider/codex    0.386s
FAIL

exit 1

### namespace executable pin
--- internal/runner/containment/linux.go
+++ internal/runner/containment/linux.go
@@ -676,7 +676,7 @@
 // remain bound to concrete launch evidence without creating a release hash cycle.
 func (m *Manager) validatePinnedFile(p provider.Policy, path, hash string) error {
    if path == m.cfg.RunnerBinary {
-       if m.namespaceDigest == "" || hash != m.namespaceDigest {
+       if false {
            return errStartup
        }
        return nil

$ CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceManifestInputs$/^binary$ -count=1
--- FAIL: TestNamespaceManifestInputs (0.01s)
    --- FAIL: TestNamespaceManifestInputs/binary (0.00s)
        linux_test.go:689: changed namespace executable accepted
FAIL
rastrillo-budget/v1 ran 7ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.009s
FAIL

exit 1

### stable generated home identity
--- internal/runner/provider/policy.go
+++ internal/runner/provider/policy.go
@@ -595,7 +595,7 @@
    // path in ManifestHash, and its role in the reusable certificate, including
    // occurrences in adapter settings and command-line permission profiles.
    raw, _ := json.Marshal(m)
-   raw = []byte(templatePath(string(raw), m.RuntimeHome, "$RUNTIME_HOME"))
+   // mutation: retain generated paths
    var normalized any
    if json.Unmarshal(raw, &normalized) != nil {
        panic("invalid policy template")

$ CGO_ENABLED=0 go test ./internal/runner -run ^TestRuntimeMountsStandaloneToolProxy$ -count=1
--- FAIL: TestRuntimeMountsStandaloneToolProxy (0.16s)
    certified_network_test.go:136: release manifest changed provider policy hash
FAIL
rastrillo-budget/v1 ran 161ms
FAIL    amadan.net/oficina/equipo/internal/runner   0.164s
FAIL

exit 1

### lifetime private network
--- internal/runner/provider/policy.go
+++ internal/runner/provider/policy.go
@@ -576,7 +576,7 @@
 // NamespaceArguments is shared with containment so changes to isolation flags
 // also change the reusable policy hash.
 func NamespaceArguments() []string {
-   return []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--unshare-net", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
+   return []string{"--unshare-user", "--unshare-pid", "--unshare-ipc", "--unshare-uts", "--unshare-cgroup", "--die-with-parent", "--new-session", "--as-pid-1", "--cap-drop", "ALL", "--json-status-fd", "3"}
 }
 func policyTemplate(m effectiveManifest) effectiveManifest {
    // Session identity is journaled in the concrete manifest. Both invocation

$ CGO_ENABLED=0 go test ./internal/directlive -run ^TestDriverHostAndLifetimeProbes$ -count=1
--- FAIL: TestDriverHostAndLifetimeProbes (0.15s)
    lifetime_test.go:30: provider_account_containment
FAIL
rastrillo-budget/v1 ran 152ms
FAIL    amadan.net/oficina/equipo/internal/directlive   0.203s
FAIL

exit 1

### family calibration
--- internal/directlive/calibration.go
+++ internal/directlive/calibration.go
@@ -6,7 +6,7 @@
    var samples []provider.LiveUsage
    for _, e := range records {
        if e.Provider == name {
-           samples = append(samples, e.Usage...)
+           return e.Usage
        }
    }
    return samples

$ CGO_ENABLED=0 go test ./internal/directlive -run ^TestDriverCalibrationPoolsFamily$ -count=1
--- FAIL: TestDriverCalibrationPoolsFamily (0.00s)
    calibration_test.go:12: family reservation: 1000 1000 <nil>
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/directlive   0.053s
FAIL

exit 1

### final shared helper mount
--- internal/runner/certification_inputs.go
+++ internal/runner/certification_inputs.go
@@ -28,7 +28,7 @@
    if err != nil {
        return provider.PolicyInputs{}, err
    }
-   runtimeFiles := []provider.Mount{{Source: r.cfg.toolProxy(), Target: "/opt/equipo-tool-proxy", ReadOnly: true}, {Source: r.cfg.bwrap(), Target: "/opt/bwrap", ReadOnly: true}}
+   runtimeFiles := []provider.Mount{{Source: r.cfg.Executable, Target: "/opt/equipo-tool-proxy", ReadOnly: true}, {Source: r.cfg.bwrap(), Target: "/opt/bwrap", ReadOnly: true}}
    binary := r.cfg.ClaudePath
    if s.Provider == "codex" {
        binary = r.cfg.CodexPath

$ CGO_ENABLED=0 go test ./internal/runner -run ^TestRuntimeMountsStandaloneToolProxy$ -count=1
--- FAIL: TestRuntimeMountsStandaloneToolProxy (0.12s)
    certified_network_test.go:129: runner executable entered provider policy
FAIL
rastrillo-budget/v1 ran 116ms
FAIL    amadan.net/oficina/equipo/internal/runner   0.118s
FAIL

exit 1

### supplemental capture digest
--- internal/runner/provider/direct_certification.go
+++ internal/runner/provider/direct_certification.go
@@ -135,7 +135,9 @@
        return ErrPolicy
    }
    for path, hash := range e.Artifacts {
-       if VerifyDirectObservation(root, LiveObservation{Status: "captured", Artifact: path, SHA256: hash, Detail: path}, "captured") != nil {
+       _ = path
+ _ = hash
+ if false {
            return ErrPolicy
        }
    }

$ CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectLiveGateAllArtifacts$ -count=1
--- FAIL: TestDirectLiveGateAllArtifacts (0.00s)
    direct_certification_test.go:127: tampered supplemental capture accepted
FAIL
rastrillo-budget/v1 ran 1ms
FAIL    amadan.net/oficina/equipo/internal/runner/provider  0.002s
FAIL

exit 1

### exact shell read
--- internal/directlive/observations.go
+++ internal/directlive/observations.go
@@ -90,7 +90,7 @@
        return false
    }
    if tool == "Bash" || tool == "commandExecution" {
-       return input.Command == shellRead(path)
+       return strings.Contains(input.Command,path)
    }
    return input.Path == path || input.FilePath == path
 }

$ CGO_ENABLED=0 go test ./internal/directlive -run ^TestDriverRejectsNarratedShellDenial$ -count=1
--- FAIL: TestDriverRejectsNarratedShellDenial (0.00s)
    bundle_test.go:28: shell narrative accepted as read attempt
FAIL
rastrillo-budget/v1 ran 0s
FAIL    amadan.net/oficina/equipo/internal/directlive   0.042s
FAIL

exit 1
```

### User-facing strings and copy

Two new `runnerDraftCopy` entries in `internal/equipo/copy.go`, each individually marked COPY REVIEW REQUIRED:

- `live.answer`: Type Allow once, Deny, or an answers JSON object. This request expires in 60 seconds.
- `live.beyond-profile`: Allow once is recorded as approved beyond profile.

The changes to `docs/live-gate.md` remain DRAFT, copy review pending. They describe the new collector, its incomplete requirements, configured policy paths, generation/marker effects, stable helper build flags, typed manifest field population, and production fail-closed behavior. README prose and vendored assets are unchanged. No copy-review skill or server, writing agent, subagent or provider-based review was used; the explicit task instructions override those generic workflows.

### Cleanup and handback

No sign-in, enrolment, real credential-home creation, production provider prompt, deployment, merge, push, default-branch write, full Go suite or `make ci` was performed. No background service is intended to persist. Test namespaces, detached test descendants, listeners, workers and scratch are stopped/removed by the exercised cleanup paths. The fake-driver test asserts its configured runtime scratch directory is empty. Session mutation logs are copied here before the session-owned scratch directory is removed. The final reference scan and commit are recorded in the addendum below.


### Follow-up final reference and whitespace gate

```sh
make runner-dead-references
git diff --check
```

Both exited 0. Reference output: `reference scan: 535 text files, 972 matches, 0 failures`. The inventory adds only two exact fake-driver executable-reference lines and adjusts the count of an existing controller-report filename line. No blanket exception was added. Mutation diff indentation in this report is expanded to spaces so the documentation passes the whitespace gate.

Commit subject: `feat: drive live certification and split the tool proxy helper`.
The task remains NEEDS_CONTEXT for the unresolved certification cases above. Production tuples remain disabled.

## CI fix 2 A/B (2026-11-03)

Translated host denies to mounted namespace paths; kept pin/symlink/overlap refusals and rejected host `/tmp` itself. Preserved baseline stderr and preparation causes. Release tests copy the tracked tree and share synthetic certification fixtures. Isolated verification also exposed the 128-event completion race; completion now drains all pending batches, retaining failed receipts.

RED commands and results:

```sh
python3 - <<'PY_REPRO'
import tempfile, subprocess, os
with tempfile.TemporaryDirectory(prefix='e2b-ci.', dir='/tmp') as t:
    r = subprocess.run(['go', 'test', './internal/runner', '-run', '^TestDirectBugWorkflow$', '-count=1'], env={**os.environ, 'TMPDIR': t, 'CGO_ENABLED': '0'})
    raise SystemExit(r.returncode)
PY_REPRO
# Initial provider_contract; diagnostic exposed missing /newroot/tmp/... bind mask.
CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckNamespaceHostTmp$' -count=1
# Exit 1: inner bwrap bind mask failed.
CGO_ENABLED=0 go test ./internal/runner/checks -run '^TestCheckFailureDiagnostic$' -count=1
# Exit 1: missing check diagnostic: provider_contract.
CGO_ENABLED=0 go test ./internal/runner/workspace ./internal/runner/checks -run '^(TestPreparationDiagnostic|TestCheckCacheRejectsBroadHome)$' -count=1
# Exit 1: preparation lost cause; broad /tmp module cache accepted.
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseStampContract$' -count=1
# Exit 1: scripts/runner-release-check.py missing.
CGO_ENABLED=0 go test ./internal/runner -run '^TestRunnerEventDrainBacklog$' -count=1
# Exit 1: uploaded=128; failure in last batch lost.
```

Final GREEN commands and results (all exit 0):

```sh
CGO_ENABLED=0 TMPDIR=/tmp/e2b-ci.s4eaq7eh go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
# ok  	amadan.net/oficina/equipo/internal/runner	23.886s
CGO_ENABLED=0 TMPDIR=/tmp/e2b-ci.s4eaq7eh go test ./internal/equipotest -run '^(TestBugPreparationIntegration|TestBugPreparationCrashRealProtocolLocalGit|TestRunnerDirectEndToEnd|TestReleaseStampContract)$' -count=1
# ok  	amadan.net/oficina/equipo/internal/equipotest	36.346s
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner ./internal/equipotest -run '^(TestDirectBugWorkflow|TestBugPreparationIntegration|TestBugPreparationCrashRealProtocolLocalGit|TestRunnerDirectEndToEnd|TestReleaseStampContract|TestRunnerEventDrainBacklog)$' -count=1
# ok  	amadan.net/oficina/equipo/internal/runner	74.820s; ok  	amadan.net/oficina/equipo/internal/equipotest	47.904s
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks ./internal/runner/workspace ./internal/runner/containment -run '^(TestPreparationDiagnostic|TestCheckFailureDiagnostic|TestCheckNamespaceHostTmp|TestCheckNamespaceDeniedHostAliases|TestCheckNamespaceDeniedMountAliases|TestCheckNamespaceGoRootInsideModuleCache|TestCheckCacheRejectsBroadHome|TestCheckCacheRejectsNamespaceScratch|TestCheckCacheRejectsSymlinkPathDiagnostic|TestCheckCacheIsolation|TestNamespacePinnedMountSwap|TestNamespaceRejectsBroadWorkspace|TestNamespaceMountEscape)$' -count=1
# ok  	amadan.net/oficina/equipo/internal/runner/checks	13.138s; ok  	amadan.net/oficina/equipo/internal/runner/workspace	0.040s; ok  	amadan.net/oficina/equipo/internal/runner/containment	0.062s
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go vet ./...
# no output
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b git diff --check
# no output
```

Mutations, each compiled, failed the named test, then restored:

```sh
# M1-host-path-regression: internal/runner/checks/namespace.go; --- FAIL: TestCheckNamespaceHostTmp (1.24s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks ./internal/equipotest -run '^(TestCheckNamespaceHostTmp|TestBugPreparationHostTmp)$' -count=1
# M2-ancestor-deny: internal/runner/checks/namespace.go; --- FAIL: TestCheckNamespaceDeniedHostAliases (1.17s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks -run '^TestCheckNamespaceDeniedHostAliases$/ancestor$' -count=1
# M3-canonical-deny: internal/runner/checks/namespace.go; --- FAIL: TestCheckNamespaceDeniedHostAliases (0.97s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks -run '^TestCheckNamespaceDeniedHostAliases$/symlink$' -count=1
# M4-mounted-child-deny: internal/runner/checks/namespace.go; --- FAIL: TestCheckNamespaceDeniedMountAliases (1.23s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks -run '^TestCheckNamespaceDeniedMountAliases$' -count=1
# M5-broad-tmp: internal/runner/provider/check_policy.go; --- FAIL: TestCheckCacheRejectsBroadHome (0.00s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks -run '^TestCheckCacheRejectsBroadHome$' -count=1
# M6-check-diagnostic: internal/runner/checks/executor.go; --- FAIL: TestCheckFailureDiagnostic (0.16s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/checks -run '^TestCheckFailureDiagnostic$' -count=1
# M7-preparation-diagnostic: internal/runner/workspace/workspace.go; --- FAIL: TestPreparationDiagnostic (0.03s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner/workspace -run '^TestPreparationDiagnostic$' -count=1
# M8-release-input: internal/equipotest/release_test.go; --- FAIL: TestReleaseStampContract (0.23s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipotest -run '^TestReleaseStampContract$/defaults$' -count=1
# M9-versioned-release-name: Makefile; --- FAIL: TestReleaseStampContract (0.27s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipotest -run '^TestReleaseStampContract$/defaults$' -count=1
# M13-event-drain-batches: internal/runner/events.go; --- FAIL: TestRunnerEventDrainBacklog (8.11s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner -run '^TestRunnerEventDrainBacklog$' -count=1
# M14-event-drain-upload-failure: internal/runner/events.go; --- FAIL: TestRunnerEventDrainBacklog (3.99s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/runner -run '^TestRunnerEventDrainBacklog$/true$' -count=1
# M15-terminal-drain-call: internal/runner/direct_workflow.go; --- FAIL: TestDirectBugWorkflow (9.64s)
CGO_ENABLED=0 TMPDIR=/tmp/e2b-ci.jpfjpa3w go test ./internal/runner -run '^TestDirectBugWorkflow$' -count=1
```

Full cause analysis, exact `/tmp` wrapper, mutation edits/output, copy inventory and cleanup: `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/ci-fix2-report.md`. No live gate or push.

## CI fix 2 C (2026-11-03)

Derived exact CSRF exemptions from the registered runner router. Real `AppWithExecution` coverage checks every runner POST, a valid originless heartbeat, runner cookie refusal, ordinary form CSRF and existing enrolment exemptions. Audited non-browser POST clients: only runner HTTP and enrolment target this app; no cookie route was exempted.

RED commands and results:

```sh
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestRunnerAppCSRF$' -count=1
# Exit 1: all runner POSTs refused by cookie CSRF (403).
```

Final GREEN commands and results (all exit 0):

```sh
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipo ./internal/equipotest -run 'TestRunnerAppCSRF|TestRunner|TestReleaseStampContract|TestDirectReleaseRequiresCertification|TestBugPreparationHostTmp' -count=1
# ok  	amadan.net/oficina/equipo/internal/equipo	0.053s; ok  	amadan.net/oficina/equipo/internal/equipotest	53.678s
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go vet ./...
# no output
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b git diff --check
# no output
```

Mutations, each compiled, failed the named test, then restored:

```sh
# M10-runner-exemption: internal/equipo/runner_api.go; --- FAIL: TestRunnerAppCSRF (0.42s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipotest -run '^TestRunnerAppCSRF$' -count=1
# M11-form-csrf: internal/equipo/app.go; --- FAIL: TestRunnerAppCSRF (0.40s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipotest -run '^TestRunnerAppCSRF$' -count=1
# M12-runner-cookie-auth: internal/equipo/runner_api.go; --- FAIL: TestRunnerAppCSRF (0.58s)
CGO_ENABLED=0 TMPDIR=/home/paulca/t/e2b go test ./internal/equipotest -run '^TestRunnerAppCSRF$' -count=1
```

The first form-CSRF mutation survived the original status-only check; requiring the middleware response made it fail.

Full cause analysis, exact `/tmp` wrapper, mutation edits/output, copy inventory and cleanup: `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/ci-fix2-report.md`. No live gate or push.


## Branch gate repair (2026-11-03)

Baseline: clean `plan-2b` at `6d1901d`. Removed the unused `exercise.frames` field; turn-local frames and journal capture remain unchanged. Corrected two exact reference-inventory entries and added `TestDirectDeadReferencesRepository`. Added one exact historical secret-scan exception for a literal offline fixture value. No runtime behavior or app-owned strings changed.

All commands ran from `/home/paulca/amadan.net/oficina/equipo-plan-2b`, with `CGO_ENABLED=0`, on-disk `TMPDIR=/home/paulca/t/e2b`, and default Go caches unless explicitly noted.

RED/GREEN/mutation evidence:

```sh
CGO_ENABLED=0 make -C /home/paulca/amadan.net/oficina/equipo-plan-2b staticcheck
# RED: exit 2, internal/directlive/driver.go:174:2: field frames is unused (U1000).
# GREEN after field removal: exit 0.
# Mutation: restored only the field; same command exited 2 with the same U1000.
# Removed the field again before committing; subsequent full gates pass this step.
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferencesRepository$' -count=1
# RED: exit 1, missing namespace-mount classification and stale release-test allowance.
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferences' -count=1
# GREEN: exit 0, 1.249s.
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferencesRepository$' -count=1
# Mutation 1: removed only the new mount entry; exit 1, one unclassified reference.
# Restored the mount entry before mutation 2.
# Mutation 2: restored only the stale release-test entry; exit 1, one stale allowance.
CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferences' -count=1
# Restored GREEN: exit 0, 0.836s. Both mutations compiled and failed the named test.
CGO_ENABLED=0 make runner-dead-references
# Exit 0: reference scan: 536 text files, 972 matches, 0 failures.
CGO_ENABLED=0 make gitleaks
# RED in full gate: exit 2, leaks found: 1.
# Inspected the redacted finding and historical test: literal synthetic instance key.
# GREEN with its exact fingerprint ignored: exit 0, no leaks found.
# Mutation: removed only that fingerprint; exit 2, leaks found: 1.
# Restored GREEN: exit 0, no leaks found.
```

Interpretation: the static-analysis check and secret scan are the executable regression checks for a dead-field deletion and exact fixture-data exception; no artificial runtime test was added. The reference-inventory fix has a new Go regression test. The user-authorized full gate is rerun after each newly exposed failure, with only the failing step rerun during its repair. The temp-path test is deferred until the corrected full gate passes. Existing live-certification limits remain outside this offline task.

The full test step also exposed two outdated containment fixtures after the Task 11b executable-pin change. The startup-failure fixture now constructs its manager with the intentionally non-acknowledging executable, so it reaches startup. The admission test now expects executable rejection during pinned-file validation and checks that refusal creates no attempt state. Only test code changed.

```sh
CGO_ENABLED=0 go test ./internal/runner/containment -run '^(TestNamespaceStartupFailure|TestNamespaceDirectPolicyAdmission)$' -count=1
# RED: exit 1, startup intent or exit proof missing; changed direct launch passed attestation.
# An initial state assertion also failed on the fixture's pre-existing homes directory.
# Corrected the assertion to compare state-directory entry counts before and after refusal.
# GREEN: exit 0, 0.714s.
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceStartupFailure$' -count=1
# Mutation: replaced the initial persist call/condition with if false.
# Exit 1: startup intent or exit proof missing; only the exit proof remained.
# Restored persistence before the next mutation.
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicyAdmission$/runner$' -count=1
# Mutation: replaced the namespace digest mismatch condition with if false.
# Exit 1: changed namespace executable bypassed pinned digest check.
CGO_ENABLED=0 go test ./internal/runner/containment -run '^(TestNamespaceStartupFailure|TestNamespaceDirectPolicyAdmission)$' -count=1
# Restored GREEN: exit 0, 0.623s. Both mutations compiled.
git -C /home/paulca/amadan.net/oficina/equipo-plan-2b diff --exit-code -- /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment/linux.go
# Exit 0: production containment code restored byte-for-byte.
```

Final gate commands and results:

```sh
CGO_ENABLED=0 make ci
# Invocation 1: exit 2 at reference scan; invocation 2: exit 2 at secret scan.
# Invocation 3: exit 2 at the two outdated containment tests.
CGO_ENABLED=0 make test
# Repaired failing step: exit 0, 17 packages, zero failures, 3m41.316s.
CGO_ENABLED=0 make ci
# Invocation 4: exit 0, all steps complete. Tests: 17 packages, zero failures, 4m4.125s.
# Adapter, namespace, migration and performance checks passed.
# Worst screen 22.878ms/150ms; median cold boot 84ms/500ms.
mktemp -d /tmp/e2b-gate.XXXX
# Created /tmp/e2b-gate.XWG7 after the full gate passed.
TMPDIR=/tmp/e2b-gate.XWG7 CGO_ENABLED=0 make test
# Exit 0: 17 packages, zero failures, 2m13.201s; no package timing warnings.
# Python try/finally removed this exact directory afterward; absence verified.
```

The shell cleanup trap was rejected before execution for containing recursive forced deletion. The replacement Python wrapper used the requested mktemp command, set TMPDIR only for the Make child, captured its exit status, and removed only its newly created directory with `shutil.rmtree` in `finally`.

Concerns: on-disk full tests reported forge-package timing overruns (18.143s, 10.613s and 12.189s against 10s). Those are warnings locally but enforced in CI. The `/tmp` run reported none. No timing budget was changed. Existing live-certification gaps remain outside this offline run. No app strings or copy.go entries changed; new diagnostics are test-only and listed in the full report.

Full report, captured outputs and interpretations: `.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/gate-report.md`. All fixes are separate commits; no push or live provider operation occurred.

## B2-C1

Removed the frozen question deadline from both native permission and ask_person relays. The supervisor attempt context and current authority checks control the wait; delivery rechecks the renewed bound. Answers retry transient errors and poll once per second. Tests deliver Claude, Codex and ask_person answers after their original lease bound, check retry and cadence. No UI strings.

Interpretations: The first transient-error fixture used an untyped error, which correctly is not retryable. Corrected it to ErrTransient; the retry mutation independently proves failure. Red command used the same two test names as green.

### B2-C1-red

```text
--- FAIL: TestDirectQuestionRenewedLease (0.82s)
    --- FAIL: TestDirectQuestionRenewedLease/claude (0.41s)
        direct_wait_test.go:32: context deadline exceeded
    --- FAIL: TestDirectQuestionRenewedLease/codex (0.21s)
        direct_wait_test.go:32: context deadline exceeded
    --- FAIL: TestDirectQuestionRenewedLease/ask_person (0.21s)
        direct_wait_test.go:28: context deadline exceeded
--- FAIL: TestDirectAskRetriesAndCadence (0.33s)
    direct_wait_test.go:48: temporary connection failure
FAIL
rastrillo-budget/v1 ran 1.156s
FAIL	amadan.net/oficina/equipo/internal/runner	1.159s
FAIL
```

### B2-C1-green

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(QuestionRenewedLease|AskRetriesAndCadence)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.828s
```

### B2-C1-mut-permission

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(QuestionRenewedLease|AskRetriesAndCadence)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectQuestionRenewedLease (0.48s)
    --- FAIL: TestDirectQuestionRenewedLease/claude (0.22s)
        direct_wait_test.go:50: context deadline exceeded
    --- FAIL: TestDirectQuestionRenewedLease/codex (0.11s)
        direct_wait_test.go:50: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 1.621s
FAIL	amadan.net/oficina/equipo/internal/runner	1.625s
FAIL
```

### B2-C1-mut-ask

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(QuestionRenewedLease|AskRetriesAndCadence)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectQuestionRenewedLease (0.57s)
    --- FAIL: TestDirectQuestionRenewedLease/ask_person (0.11s)
        direct_wait_test.go:42: context deadline exceeded
FAIL
rastrillo-budget/v1 ran 1.7s
FAIL	amadan.net/oficina/equipo/internal/runner	1.707s
FAIL
```

### B2-C1-mut-retry

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(QuestionRenewedLease|AskRetriesAndCadence)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectAskRetriesAndCadence (0.21s)
    direct_wait_test.go:85: runner_transient
FAIL
rastrillo-budget/v1 ran 783ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.787s
FAIL
```

### B2-C1-mut-cadence

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(QuestionRenewedLease|AskRetriesAndCadence)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectAskRetriesAndCadence (0.51s)
    direct_wait_test.go:87: answer polling faster than one second
FAIL
rastrillo-budget/v1 ran 1.394s
FAIL	amadan.net/oficina/equipo/internal/runner	1.398s
FAIL
```

### B2-C1-green-final

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(DirectQuestionRenewedLease|DirectAskRetriesAndCadence|DirectStaleAnswer|CodexApprovalResponseRouting|DirectToolScopedAskAnswer)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	3.565s
```


## CI-1

The scanner enumerates cached git ls-files entries only. A regression test ignores both untracked and ignored dead references, then tracks the same file and requires rejection. Existing tracked-reference and exact-allowance tests pass. No UI strings.

Interpretations: Red command: CGO_ENABLED=0 go test ./internal/equipotest -run ^TestDirectDeadReferencesTrackedOnly$ -count=1. The inventory is refreshed only for exact changed lines from this fix wave, with retained reasoned classifications.

### CI-1-red

```text
--- FAIL: TestDirectDeadReferencesTrackedOnly (0.08s)
    direct_cutover_test.go:391: untracked content scanned: exit status 1 untracked.txt:1:10: unclassified paseo
        reference scan: 2 text files, 1 matches, 1 failures
FAIL
rastrillo-budget/v1 ran 77ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.221s
FAIL
```

### CI-1-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferences(TrackedOnly|ExactAllowances)?$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	1.116s
```

### CI-1-mut

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectDeadReferences(TrackedOnly|ExactAllowances)?$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectDeadReferencesTrackedOnly (0.03s)
    direct_cutover_test.go:391: untracked content scanned: exit status 1 untracked.txt:1:10: unclassified paseo
        reference scan: 2 text files, 1 matches, 1 failures
FAIL
rastrillo-budget/v1 ran 503ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.551s
FAIL
```


## B1-C1

Recorded the pinned real binary once with a new empty scratch CODEX_HOME and generated session flags. Only initialize, initialized and config/read(includeLayers:true) were sent; exit 0, three frames. No credentials, account RPC, thread or turn. Sanitized home, host, installation ID and timestamp. Both fakes now derive defaults, layer names and notifications from the committed fixture. Require the equipo user agent, ignore only the disabled remote-control notification, compare the exact sessionFlags layer, require empty recognized user/system layers and sessionFlags origins under configured keys. Effective configured leaves must still match; binary defaults may expand. No UI strings.

Interpretations: The generated config.toml is empty; Equipo configuration is supplied through the same -c flags as production so the user layer remains empty. The real run script used subprocess with a 15-second reply deadline and cleanup in finally. Red command: CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1. Initial green command: CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodex -count=1.

### B1-C1-red

```text
--- FAIL: TestCodexRecordedReadback (0.18s)
    readback_test.go:35: codex_protocol_rejected
FAIL
rastrillo-budget/v1 ran 182ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.184s
FAIL
```

### B1-C1-green

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	9.831s
```

### B1-C1-mut-agent

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedReadback (0.19s)
    readback_test.go:96: provider_version_unsupported
FAIL
rastrillo-budget/v1 ran 193ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.194s
FAIL
```

### B1-C1-mut-notification

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedReadback (0.19s)
    readback_test.go:96: codex_protocol_rejected
FAIL
rastrillo-budget/v1 ran 200ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.202s
FAIL
```

### B1-C1-mut-flags

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedConfigLayers (0.01s)
    --- FAIL: TestCodexRecordedConfigLayers/flags-changed (0.00s)
        readback_test.go:130: unsafe readback accepted flags-changed
FAIL
rastrillo-budget/v1 ran 167ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.169s
FAIL
```

### B1-C1-mut-empty-layer

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedConfigLayers (0.01s)
    --- FAIL: TestCodexRecordedConfigLayers/user-config (0.00s)
        readback_test.go:130: unsafe readback accepted user-config
    --- FAIL: TestCodexRecordedConfigLayers/system-config (0.00s)
        readback_test.go:130: unsafe readback accepted system-config
FAIL
rastrillo-budget/v1 ran 227ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.229s
FAIL
```

### B1-C1-mut-origin

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedConfigLayers (0.01s)
    --- FAIL: TestCodexRecordedConfigLayers/origin-unknown (0.00s)
        readback_test.go:130: unsafe readback accepted origin-unknown
    --- FAIL: TestCodexRecordedConfigLayers/origin-prefix (0.00s)
        readback_test.go:130: unsafe readback accepted origin-prefix
    --- FAIL: TestCodexRecordedConfigLayers/origin-version (0.00s)
        readback_test.go:130: unsafe readback accepted origin-version
FAIL
rastrillo-budget/v1 ran 201ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.203s
FAIL
```

### B1-C1-mut-effective

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRecorded -count=1`

Exit 1:

```text
--- FAIL: TestCodexRecordedConfigLayers (0.00s)
    --- FAIL: TestCodexRecordedConfigLayers/effective-changed (0.00s)
        readback_test.go:130: unsafe readback accepted effective-changed
FAIL
rastrillo-budget/v1 ran 224ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.226s
FAIL
```

### B1-C1-green-final

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodex -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	10.042s
```

### B1-C1-fake-driver

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestDirectDriverFakeCLI$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	92.875s
```

### B1-C1-fake-driver

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestDirectDriverFakeCLI$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	92.875s
```


## B2-I1

Persist launch acknowledgment before releasing the harness. Cleanup verifies every local exit, reports unacknowledged namespaces as unstarted and moves pending launch events into the unstarted-launch journal record before acknowledging them locally. The instance accepts a matching unstarted exit even if it received the launch but its reply was lost. No capacity is freed without local containment. No UI strings.

Interpretations: Red commands use the named tests in the green command. All listed mutations compile and were restored.

### B2-I1-red

```text
--- FAIL: TestDirectUnacknowledgedNamespace (0.62s)
    --- FAIL: TestDirectUnacknowledgedNamespace/crash-before-upload (0.32s)
        direct_workflow_test.go:235: unacknowledged namespace reported as started
    --- FAIL: TestDirectUnacknowledgedNamespace/stop-race (0.30s)
        direct_workflow_test.go:235: unacknowledged namespace reported as started
FAIL
rastrillo-budget/v1 ran 619ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.623s
FAIL
```

### B2-I1-green

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UnacknowledgedNamespace|CancelWaitsForNamespaces)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	2.071s
```

### B2-I1-mut-unstarted

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UnacknowledgedNamespace|CancelWaitsForNamespaces)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectUnacknowledgedNamespace (1.10s)
    --- FAIL: TestDirectUnacknowledgedNamespace/crash-before-upload (0.58s)
        direct_workflow_test.go:248: unacknowledged namespace reported as started
    --- FAIL: TestDirectUnacknowledgedNamespace/stop-race (0.51s)
        direct_workflow_test.go:248: unacknowledged namespace reported as started
FAIL
rastrillo-budget/v1 ran 2.073s
FAIL	amadan.net/oficina/equipo/internal/runner	2.084s
FAIL
```

### B2-I1-mut-deadletter

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UnacknowledgedNamespace|CancelWaitsForNamespaces)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectUnacknowledgedNamespace (1.18s)
    --- FAIL: TestDirectUnacknowledgedNamespace/stop-race (0.58s)
        direct_workflow_test.go:253: runner_not_claimed
FAIL
rastrillo-budget/v1 ran 2.114s
FAIL	amadan.net/oficina/equipo/internal/runner	2.119s
FAIL
```

### B2-I1-mut-ack

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UnacknowledgedNamespace|CancelWaitsForNamespaces)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectCancelWaitsForNamespaces (0.63s)
    direct_workflow_test.go:97: missing namespace proof: {Unstarted:[{ID:cc0461a02d9cc784961fff9693f9d1f4 AttemptKey:check-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532942] ManifestHash:6d0cfdebb5b3f1696756a6d92a891c8de1deec5f2e11cfd3b30c78c1c8fce5e9 HostPID:2752220 StartTicks:861060988 ExitCode:-1 Signal:9 ObservedAt:2026-11-04 00:41:37.21542386 +0000 UTC} {ID:fbaf64a6e1a4222288092f44528f9b2d AttemptKey:model-fixture BootID:1edb59fc-5665-4f1e-84f5-3b03b0992119 NamespaceID:pid:[4026532756] ManifestHash:303b67b638b7f583e28d952a6ca16dcb1f1717f5172f10325618c1bbcf742a68 HostPID:2752205 StartTicks:861060971 ExitCode:-1 Signal:9 ObservedAt:2026-11-04 00:41:37.275092971 +0000 UTC}] Namespaces:[] CheckedAt:2026-11-04 00:41:37.333968737 +0000 UTC Version:2 Scope:{Account:team Job:1} Handle:{Revision:0 Attempt:1 Fence:1 Runner:runner} Owner:{LocalOnly:false Attempt:0 Fence:0 Marker: AgentID: Workspace:{ServerID: ProjectID: WorkspaceID: Path:} ExecutorGroups:[]} Inventory:{Observed:[] ExecutorGroups:[] Processes:[] TerminalIDs:[] CoverageKnown:false BootID: CheckedAt:0001-01-01 00:00:00 +0000 UTC} Observed:[] Empty:false}
FAIL
rastrillo-budget/v1 ran 1.572s
FAIL	amadan.net/oficina/equipo/internal/runner	1.577s
FAIL
```


## B2-I2

Release contained no-turn frames at capture end, including cancelled preflights. Prune unowned preflight rows only after verified namespace records are forgotten. Preserve workflow-owned namespace records and all turn evidence. A pending-byte budget refusal does not latch a storage failure. Cache successful preflights by binding, current source fingerprint and policy hash; construction and release verification still validate binary, policy and home inputs on every discovery. This covers B2-M6. No UI strings.

Interpretations: Red commands use the named tests in the green command. All listed mutations compile and were restored.

### B2-I2-red

```text
--- FAIL: TestIdlePreflightStorageBounded (0.10s)
    preflight_cache_test.go:21: idle poll 0 retained 1 frames and 1 attempts
--- FAIL: TestDirectBudgetDrainsWithoutReset (0.05s)
    preflight_cache_test.go:28: budget overrun latched journal: provider_uncertain
        runner.journal
--- FAIL: TestDirectPreflightCache (0.00s)
    preflight_cache_test.go:34: idle polls/claim reran preflight 12 times
FAIL
rastrillo-budget/v1 ran 156ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.158s
FAIL
```

### B2-I2-green

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	1.290s
```

### B2-I2-mut-frames

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 1:

```text
--- FAIL: TestIdlePreflightStorageBounded (0.19s)
    preflight_cache_test.go:32: idle poll 0 retained 1 frames and 1 attempts
FAIL
rastrillo-budget/v1 ran 253ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.256s
FAIL
```

### B2-I2-mut-prune

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 1:

```text
--- FAIL: TestIdlePreflightStorageBounded (0.15s)
    preflight_cache_test.go:32: idle poll 0 retained 0 frames and 1 attempts
FAIL
rastrillo-budget/v1 ran 213ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.222s
FAIL
```

### B2-I2-mut-budget

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectBudgetDrainsWithoutReset (0.14s)
    preflight_cache_test.go:45: budget overrun latched journal: provider_uncertain
        runner.journal
FAIL
rastrillo-budget/v1 ran 1.502s
FAIL	amadan.net/oficina/equipo/internal/runner	1.508s
FAIL
```

### B2-I2-mut-cache

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectPreflightCache (0.00s)
    preflight_cache_test.go:57: idle polls/claim reran preflight 12 times
FAIL
rastrillo-budget/v1 ran 1.154s
FAIL	amadan.net/oficina/equipo/internal/runner	1.157s
FAIL
```

### B2-I2-mut-invalidation

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(IdlePreflightStorageBounded|DirectBudgetDrainsWithoutReset|DirectPreflightCache)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectPreflightCache (0.00s)
    preflight_cache_test.go:63: changed input did not invalidate cache
FAIL
rastrillo-budget/v1 ran 1.119s
FAIL	amadan.net/oficina/equipo/internal/runner	1.127s
FAIL
```


## B2-I3

Upload each event with its own assignment, scope, handle and action. Close the launcher, await the event consumer and drain again before returning. Tests reject a stale event uploaded under another attempt and require final close events to drain. No UI strings.

Interpretations: Red commands use the named tests in the green command. All listed mutations compile and were restored.

### B2-I3-red

```text
--- FAIL: TestDirectUploadUsesEventIdentity (0.04s)
    direct_upload_test.go:15: runner.invalid
--- FAIL: TestDirectCloseDrainsFinalEvents (0.00s)
    direct_upload_test.go:20: close event not drained
FAIL
rastrillo-budget/v1 ran 44ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.050s
FAIL
```

### B2-I3-green

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UploadUsesEventIdentity|CloseDrainsFinalEvents)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.045s
```

### B2-I3-mut-envelope

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UploadUsesEventIdentity|CloseDrainsFinalEvents)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectUploadUsesEventIdentity (0.04s)
    direct_upload_test.go:23: runner.invalid
FAIL
rastrillo-budget/v1 ran 40ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.043s
FAIL
```

### B2-I3-mut-drain

`CGO_ENABLED=0 go test ./internal/runner -run '^TestDirect(UploadUsesEventIdentity|CloseDrainsFinalEvents)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectCloseDrainsFinalEvents (0.00s)
    direct_upload_test.go:31: close event not drained
FAIL
rastrillo-budget/v1 ran 40ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.042s
FAIL
```


## C-I1

Added additive migration 0019. Only tasks with claimed v1 work or pending containment keep the reconcile wait; other tasks return to setup selection. Recover cancellation requests from their durable task.cancel audits. Added an owner-only scriptless Old runner stopped form. The store rechecks current membership in the same transaction, contains old attempts through Core.Contain, contains v1 assignments, completes cancellation or resumes a fully contained job, updates the outbox and appends the audit. Audit failures roll back containment. Tests seed pre-0018 rows, migrate them and walk each exit. Updated live-gate step 1. Pending copy: task.old_runner_stopped = Old runner stopped; task.old_runner_stopped.help = Confirm that the old runner and all its processes have stopped before continuing this task.

Interpretations: 0018 may already have been applied, so it is unchanged. An unresolved external action remains waiting even after physical containment; stopping a process does not prove the external outcome. Cancel intent erased by 0018 is reconstructed from its audit event. Red command is the same named migrated-task test as green.

### C-I1-red

```text
--- FAIL: TestMigratedTaskWaitExit (2.11s)
    --- FAIL: TestMigratedTaskWaitExit/unclaimed (0.30s)
        direct_migration_exit_test.go:51: unclaimed task trapped
    --- FAIL: TestMigratedTaskWaitExit/unclaimed-cancel (0.28s)
        direct_migration_exit_test.go:51: unclaimed task trapped
    --- FAIL: TestMigratedTaskWaitExit/claimed (0.31s)
        direct_migration_exit_test.go:58: The information is unavailable. Try again in a minute.
    --- FAIL: TestMigratedTaskWaitExit/claimed-cancel (0.31s)
        direct_migration_exit_test.go:58: The information is unavailable. Try again in a minute.
FAIL
rastrillo-budget/v1 ran 2.114s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.154s
FAIL
```

### C-I1-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	1.927s
```

### C-I1-mut-owner

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.93s)
    --- FAIL: TestMigratedTaskWaitExit/member (0.29s)
        direct_migration_exit_test.go:107: unauthorized or unaudited containment
FAIL
rastrillo-budget/v1 ran 1.928s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.977s
FAIL
```

### C-I1-mut-audit

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.93s)
    --- FAIL: TestMigratedTaskWaitExit/claimed (0.28s)
        direct_migration_exit_test.go:123: missing audit
    --- FAIL: TestMigratedTaskWaitExit/claimed-cancel (0.29s)
        direct_migration_exit_test.go:123: missing audit
    --- FAIL: TestMigratedTaskWaitExit/audit-failure (0.28s)
        direct_migration_exit_test.go:107: unauthorized or unaudited containment
FAIL
rastrillo-budget/v1 ran 1.935s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.980s
FAIL
```

### C-I1-mut-contain

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.87s)
    --- FAIL: TestMigratedTaskWaitExit/claimed (0.27s)
        direct_migration_exit_test.go:114: team: state: containment pending
    --- FAIL: TestMigratedTaskWaitExit/claimed-cancel (0.28s)
        direct_migration_exit_test.go:120: v1 work not contained
FAIL
rastrillo-budget/v1 ran 1.872s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.919s
FAIL
```

### C-I1-mut-assignments

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.94s)
    --- FAIL: TestMigratedTaskWaitExit/claimed (0.30s)
        direct_migration_exit_test.go:120: v1 work not contained
    --- FAIL: TestMigratedTaskWaitExit/claimed-cancel (0.28s)
        direct_migration_exit_test.go:117: task still trapped cancel_requested
FAIL
rastrillo-budget/v1 ran 1.939s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.986s
FAIL
```

### C-I1-mut-resume

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.91s)
    --- FAIL: TestMigratedTaskWaitExit/claimed (0.29s)
        direct_migration_exit_test.go:129: job not resumed waiting
FAIL
rastrillo-budget/v1 ran 1.91s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.956s
FAIL
```

### C-I1-mut-cancel

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.90s)
    --- FAIL: TestMigratedTaskWaitExit/unclaimed-cancel (0.26s)
        direct_migration_exit_test.go:88: cancel request lost waiting
    --- FAIL: TestMigratedTaskWaitExit/claimed-cancel (0.28s)
        direct_migration_exit_test.go:117: task still trapped waiting task.wait.setup
FAIL
rastrillo-budget/v1 ran 1.899s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.947s
FAIL
```

### C-I1-mut-unclaimed

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestMigratedTaskWaitExit$' -count=1`

Exit 1:

```text
--- FAIL: TestMigratedTaskWaitExit (1.91s)
    --- FAIL: TestMigratedTaskWaitExit/unclaimed (0.25s)
        direct_migration_exit_test.go:85: unclaimed task trapped
FAIL
rastrillo-budget/v1 ran 1.912s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.958s
FAIL
```

### C-I1-migration-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(MigratedTaskWaitExit|DirectCutoverPreservesHistory|ExecutionSchemaParity|CancelTaskFencesBeforeAcknowledgement)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	4.983s
```


## A-I1

LoadConfig derives the executable with os.Executable and ignores the old environment override. The namespace manager compares the opened executable descriptor with /proc/self/exe using os.SameFile before hashing it. Readiness includes helper protocol 3; mismatches are refused. LauncherVersion is direct-v3, with a rule comment and a source-digest/version regression test for NamespaceMain. Fake directlive workers use their own running test executable and dispatch the helper worker from TestMain. No UI strings.

Interpretations: Red command: CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespace(ExecutableIsRunningRunner|HelperProtocol)$ -count=1. Explicit manager paths remain accepted only when they identify the running executable, including test and certification workers.

### A-I1-red

```text
--- FAIL: TestNamespaceExecutableIsRunningRunner (0.00s)
    helper_version_test.go:8: unrelated executable accepted as namespace helper
--- FAIL: TestNamespaceHelperProtocol (0.00s)
    helper_version_test.go:13: old helper protocol accepted
FAIL
rastrillo-budget/v1 ran 5ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.007s
FAIL
```

### A-I1-green

`CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(ExecutableIsRunningRunner|HelperProtocol|VersionTracksImplementation|StartupFailure|PrivatePID|DetachedChildren)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.022s
```

### A-I1-mut-executable

`CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(ExecutableIsRunningRunner|HelperProtocol|VersionTracksImplementation|StartupFailure|PrivatePID|DetachedChildren)$' -count=1`

Exit 1:

```text
--- FAIL: TestNamespaceExecutableIsRunningRunner (0.01s)
    helper_version_test.go:17: unrelated executable accepted as namespace helper
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.044s
FAIL
```

### A-I1-mut-protocol

`CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(ExecutableIsRunningRunner|HelperProtocol|VersionTracksImplementation|StartupFailure|PrivatePID|DetachedChildren)$' -count=1`

Exit 1:

```text
--- FAIL: TestNamespaceHelperProtocol (0.00s)
    helper_version_test.go:30: old helper protocol accepted
FAIL
rastrillo-budget/v1 ran 19ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.021s
FAIL
```

### A-I1-mut-version

`CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(ExecutableIsRunningRunner|HelperProtocol|VersionTracksImplementation|StartupFailure|PrivatePID|DetachedChildren)$' -count=1`

Exit 1:

```text
--- FAIL: TestNamespaceVersionTracksImplementation (0.00s)
    helper_version_test.go:48: NamespaceMain or helper protocol changed; bump LauncherVersion and record its implementation: c7c0bd0688732bb654c3efed8855e9745c85d246b3dcd62a62cec9f4b91162b6
FAIL
rastrillo-budget/v1 ran 19ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.021s
FAIL
```

### A-I1-runtime

`CGO_ENABLED=0 go test ./internal/runner -run ^TestRunnerConfig -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.003s
```


## B1-I2

Engineering sandboxed Bash auto-allows with failIfUnavailable and allowUnsandboxedCommands unchanged. Native filesystem rules allow only the attempt workspace; every deny remains. Review/Product keep their native read-only lists. Claude native requests now use the same durable profile approval and label path as Codex, preserving the exact request and requiring current authority before reply. Tests cover policy permission decisions, an outside-workspace Write, Allow once/Deny, durable approval and revoked authority. No new UI strings.

Interpretations: Red command used TestClaudeEngineeringAutomaticWorkspace, TestClaudePreflightExitDiagnostic and TestClaudeApprovalJournalBeyondProfile in the adapter and runner packages. Policy tests assert the exact CLI configuration; they do not claim live sandbox certification.

### B1-I23-red

```text
--- FAIL: TestClaudeEngineeringAutomaticWorkspace (0.06s)
    parity_test.go:12: sandboxed Bash requires a person or weakens containment
--- FAIL: TestClaudePreflightExitDiagnostic (0.23s)
    parity_test.go:19: missing CLI diagnostic: claude_process_failed
FAIL
rastrillo-budget/v1 ran 287ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.289s
--- FAIL: TestClaudeApprovalJournalBeyondProfile (0.24s)
    approval_once_test.go:199: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 237ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.240s
FAIL
```

### B1-I23-green

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.500s
ok  	amadan.net/oficina/equipo/internal/runner	0.182s
```

### B1-I2-mut-bash

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 1:

```text
--- FAIL: TestClaudeEngineeringAutomaticWorkspace (0.05s)
    parity_test.go:22: sandboxed Bash requires a person or weakens containment
FAIL
rastrillo-budget/v1 ran 492ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.494s
ok  	amadan.net/oficina/equipo/internal/runner	0.205s
FAIL
```

### B1-I2-mut-workspace

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 1:

```text
--- FAIL: TestClaudeEngineeringAutomaticWorkspace (0.05s)
    parity_test.go:26: workspace tool requires a person Write
FAIL
rastrillo-budget/v1 ran 514ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.516s
ok  	amadan.net/oficina/equipo/internal/runner	0.178s
FAIL
```

### B1-I2-mut-journal

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 1:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.472s
--- FAIL: TestClaudeApprovalJournalBeyondProfile (0.24s)
    approval_once_test.go:206: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 243ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.246s
FAIL
```

### B1-I2-mut-authority

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 1:

```text
--- FAIL: TestClaudeNativeAuthorization (0.25s)
    parity_test.go:65: revoked approval accepted
FAIL
rastrillo-budget/v1 ran 521ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.523s
ok  	amadan.net/oficina/equipo/internal/runner	0.348s
FAIL
```

### B1-I23-green-final

`CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaude' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	11.983s
```


## B1-I3

Capture exposes its bounded redacted diagnostics after draining. Failed Claude preflight reports the process exit code, signal and first stderr line. The live-gate first step requires a dedicated-home Open preflight and sanitized observed fixture before any prompt. No real Claude invocation was made. No new UI strings.

Interpretations: Red command used TestClaudeEngineeringAutomaticWorkspace, TestClaudePreflightExitDiagnostic and TestClaudeApprovalJournalBeyondProfile in the adapter and runner packages. Policy tests assert the exact CLI configuration; they do not claim live sandbox certification.

### B1-I23-red

```text
--- FAIL: TestClaudeEngineeringAutomaticWorkspace (0.06s)
    parity_test.go:12: sandboxed Bash requires a person or weakens containment
--- FAIL: TestClaudePreflightExitDiagnostic (0.23s)
    parity_test.go:19: missing CLI diagnostic: claude_process_failed
FAIL
rastrillo-budget/v1 ran 287ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.289s
--- FAIL: TestClaudeApprovalJournalBeyondProfile (0.24s)
    approval_once_test.go:199: provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 237ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.240s
FAIL
```

### B1-I23-green

`CGO_ENABLED=0 go test ./internal/runner/provider/claude ./internal/runner -run '^TestClaude(EngineeringAutomaticWorkspace|PreflightExitDiagnostic|ApprovalJournalBeyondProfile|NativeAuthorization)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.500s
ok  	amadan.net/oficina/equipo/internal/runner	0.182s
```

### B1-I3-mut-diagnostic

`CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePreflightExitDiagnostic$ -count=1`

Exit 1:

```text
--- FAIL: TestClaudePreflightExitDiagnostic (0.18s)
    parity_test.go:38: missing CLI diagnostic: claude_process_failed: exit=1 signal=0 stderr=: <nil>
FAIL
rastrillo-budget/v1 ran 177ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.179s
FAIL
```

### B1-I3-mut-diagnostic

`CGO_ENABLED=0 go test ./internal/runner/provider/claude -run ^TestClaudePreflightExitDiagnostic$ -count=1`

Exit 1:

```text
--- FAIL: TestClaudePreflightExitDiagnostic (0.18s)
    parity_test.go:38: missing CLI diagnostic: claude_process_failed: exit=1 signal=0 stderr=: <nil>
FAIL
rastrillo-budget/v1 ran 177ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	0.179s
FAIL
```

### B1-I23-green-final

`CGO_ENABLED=0 go test ./internal/runner/provider/claude -run '^TestClaude' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	11.983s
```


## A-m3

containment/linux.go and mounts.go retain the verified bubblewrap descriptor through exec. The command executes /proc/self/fd/N. Replacing its pathname after manifest pinning cannot change the launched executable. The existing mount-swap fixture now also runs the manifest-pinning stage.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### A-m3-red

```text
--- FAIL: TestBwrapRunsPinnedDescriptor (0.04s)
    helper_version_test.go:58: executed replaced bwrap path namespace_startup_failed:
FAIL
rastrillo-budget/v1 ran 43ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.045s
FAIL
```

### A-m3-green

`CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestBwrapRunsPinnedDescriptor$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.064s
```

### A-m3-mutation

`CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestBwrapRunsPinnedDescriptor$ -count=1`

Exit 1:

```text
--- FAIL: TestBwrapRunsPinnedDescriptor (0.04s)
    helper_version_test.go:82: executed replaced bwrap path namespace_startup_failed:
FAIL
rastrillo-budget/v1 ran 44ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.047s
FAIL
```


## A-m4

provider/runtime_home.go checks an allowlist of runtime-home entries before BeginTurn and ValidatePolicy (resume). It rejects unexpected configuration, instruction, hook, plugin and skill entries, including nested entries and symlinks. Adapter fakes write a permitted history artifact instead of creating config files. Source fingerprint tests also verify stable identity and credential-generation invalidation.

Interpretations: The runtime allowlist fails closed if a future CLI adds a new artifact. No live provider compatibility is claimed. Red: CGO_ENABLED=0 go test ./internal/runner/provider -run ^Test(RuntimeHomeRejectsPolicyInjection|RefreshDoesNotOverwriteNewerSource)$ -count=1.

### A-m4-ledger-red

```text
--- FAIL: TestRuntimeHomeRejectsPolicyInjection (0.49s)
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomlfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomltrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsonfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsontrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hooksfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hookstrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
--- FAIL: TestRefreshDoesNotOverwriteNewerSource (0.05s)
    accounts_test.go:732: new source overwritten by older refresh
FAIL
rastrillo-budget/v1 ran 540ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.542s
FAIL
```

### A-m4-green

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestRuntimeHomeRejectsPolicyInjection$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.494s
```

### A-m4-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestRuntimeHomeRejectsPolicyInjection$ -count=1`

Exit 1:

```text
--- FAIL: TestRuntimeHomeRejectsPolicyInjection (0.49s)
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomlfalse (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomltrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdfalse (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdtrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdfalse (0.05s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdtrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsonfalse (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsontrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hooksfalse (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hookstrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdfalse (0.04s)
        accounts_test.go:739: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdtrue (0.04s)
        accounts_test.go:739: runtime policy injection accepted
FAIL
rastrillo-budget/v1 ran 494ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.496s
FAIL
```


## A-m5

Startup failure waits for the known PID-1 descriptor before recording verified exit. Failed exit observation leaves an unverified proof. Both admission failure and a startup-error path with a known descriptor use the wait. The test injects an observation failure after a real pidfd wait and requires the persisted proof to remain unverified.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### A-m5-red

```text
--- FAIL: TestNamespaceStartupFailureWaitsForInit (0.05s)
    helper_version_test.go:70: PID 1 exit never observed on failed admission
FAIL
rastrillo-budget/v1 ran 53ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.054s
FAIL
```

### A-m5-green

`CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStartupFailureWaitsForInit$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	0.055s
```

### A-m5-mutation

`CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStartupFailureWaitsForInit$ -count=1`

Exit 1:

```text
--- FAIL: TestNamespaceStartupFailureWaitsForInit (0.05s)
    helper_version_test.go:114: PID 1 exit never observed on failed admission
FAIL
rastrillo-budget/v1 ran 54ms
FAIL	amadan.net/oficina/equipo/internal/runner/containment	0.056s
FAIL
```


## A-m6

NativeRequest, native approval validation and strict envelope decoding now live in neutral provider files. runnerproto no longer imports provider/codex. A go-list dependency test catches reintroducing that adapter dependency.

Interpretations: This is a dependency refactor with unchanged native approval semantics. The compile-valid mutation imports the adapter back into runnerproto.

### A-m678-red

```text
--- FAIL: TestDirectBinaryBoundaries (0.06s)
    direct_boundaries_test.go:11: production binary links adapter/certification worker ../../cmd/equipo-runner
--- FAIL: TestCheckPolicyNoRedundantRunner (0.00s)
    direct_boundaries_test.go:16: unused runner mount retained
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.110s
FAIL
```

### A-m678-C-m-history-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	3.522s
```

### A-m6-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 1:

```text
2026/11/04 01:12:39 INFO Apply migrations. applied=[] skipped=24 adopted=false
--- FAIL: TestDirectBinaryBoundaries (0.02s)
    direct_boundaries_test.go:15: production binary links adapter/certification worker ../runnerproto
FAIL
rastrillo-budget/v1 ran 3.44s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.486s
FAIL
```


## A-m7/m8

Removed the runner --socket entry point; its integration test builds the standalone equipo-tool-proxy. Removed the redundant /opt/equipo-runner check-policy mount and mapping. The certification recovery worker is compiled only with direct_live. Default binary dependency tests reject linking internal/directlive.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### A-m678-red

```text
--- FAIL: TestDirectBinaryBoundaries (0.06s)
    direct_boundaries_test.go:11: production binary links adapter/certification worker ../../cmd/equipo-runner
--- FAIL: TestCheckPolicyNoRedundantRunner (0.00s)
    direct_boundaries_test.go:16: unused runner mount retained
FAIL
rastrillo-budget/v1 ran 63ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.110s
FAIL
```

### A-m678-C-m-history-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	3.522s
```

### A-m7-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 1:

```text
2026/11/04 01:12:43 INFO Apply migrations. applied=[] skipped=24 adopted=false
--- FAIL: TestDirectBinaryBoundaries (0.06s)
    direct_boundaries_test.go:15: production binary links adapter/certification worker ../../cmd/equipo-runner
FAIL
rastrillo-budget/v1 ran 3.48s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.528s
FAIL
```

### A-m8-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 1:

```text
2026/11/04 01:12:48 INFO Apply migrations. applied=[] skipped=24 adopted=false
--- FAIL: TestCheckPolicyNoRedundantRunner (0.00s)
    direct_boundaries_test.go:24: unused runner mount retained
FAIL
rastrillo-budget/v1 ran 3.474s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.524s
FAIL
```


## A-m9

Disagreeing certified auth hosts produce an explicit conflict with provider and host names. Egress refuses that contract, and the runner exposes the fixed runner.certified_auth_conflict diagnostic code instead of an unexplained startup failure. The auth-host allowlist remains deferred.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### A-m9-red

```text
--- FAIL: TestCertifiedNetworkConflictDiagnostic (0.00s)
    certified_network_test.go:157: missing conflict diagnostic <nil>
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```

### A-m9-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestCertifiedNetworkConflictDiagnostic$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.003s
```

### A-m9-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestCertifiedNetworkConflictDiagnostic$ -count=1`

Exit 1:

```text
--- FAIL: TestCertifiedNetworkConflictDiagnostic (0.00s)
    certified_network_test.go:166: missing conflict diagnostic <nil>
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner	0.003s
FAIL
```


## Ledger: CommitRefresh

Refuse refresh publication when the source generation observed before the probe differs from the lease generation. This prevents an old runtime refresh from overwriting a newer source login. The test verifies the newer fake source bytes survive.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### A-m4-ledger-red

```text
--- FAIL: TestRuntimeHomeRejectsPolicyInjection (0.49s)
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomlfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/config.tomltrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/AGENTS.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/CLAUDE.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsonfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/settings.jsontrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hooksfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/hookstrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdfalse (0.04s)
        accounts_test.go:725: runtime policy injection accepted
    --- FAIL: TestRuntimeHomeRejectsPolicyInjection/sessions/AGENTS.mdtrue (0.04s)
        accounts_test.go:725: runtime policy injection accepted
--- FAIL: TestRefreshDoesNotOverwriteNewerSource (0.05s)
    accounts_test.go:732: new source overwritten by older refresh
FAIL
rastrillo-budget/v1 ran 540ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.542s
FAIL
```

### Ledger-refresh-green

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestRefreshDoesNotOverwriteNewerSource$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.044s
```

### Ledger-refresh-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestRefreshDoesNotOverwriteNewerSource$ -count=1`

Exit 1:

```text
--- FAIL: TestRefreshDoesNotOverwriteNewerSource (0.05s)
    accounts_test.go:752: new source overwritten by older refresh
FAIL
rastrillo-budget/v1 ran 52ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.053s
FAIL
```


## B1-m

Native approvals retain approvalId, additionalPermissions and networkApprovalContext. The full original request already travels through the person page and journal; network contexts and network overlays cannot be allowed. Unsupported Codex server requests receive protocol errors immediately; denying structured user input also writes a durable protocol error. Capture accepts only the fixed refusal shape.

The driver stages changed bytes in a private temporary file, uses rename plus fsync to replace the selected source, and restores the original bytes on success, failure and cancellation. It never edits credentials or the identity marker in place. The full fake-driver test verifies both dedicated source homes remain byte-identical. Recovery and attempted identity-control turns consume call and token reservations; ordinary turns reserve before dispatch and settle known usage. Interrupted usage remains unknown in the artifacts.

Probe paths name files, and the denial classifier rejects directory, missing-file and generic sandbox text as proof. Policy artifacts contain captured config/read and thread replies or Claude init frames. Codex policy values are derived from readback. Calibration uses charged counters and computed reservations, not literal pass values. ManifestCandidate compares provider and code-mode-host digests against the adapter pins.

Interpretations: The permitted source-change fallback is necessary to test the exact configured production binding without changing its policy hash. Only staged file replacements are published, and deferred restoration runs on every returned path. This run uses fake homes only. Abrupt machine/process termination cannot execute a Go defer; the live-gate operator must retain the pre-run backup and inspect source homes after an interrupted gate. Missing FD alias targets are not certified: only explicit correlated permission refusals count. Claude init does not expose effective hooks, and currency-cap absence is not observed, so those checks remain not-certified. These are conservative release-gate limits, not fabricated passes. Recovery token reservations use ceil(JobInput/23) and ceil(JobOutput/23); unknown usage is not reported as measured zero.

### B1-m-approval-red

```text
--- FAIL: TestNativeApprovalOverlay (0.00s)
    native_overlay_test.go:6: approval overlay hidden
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.003s
--- FAIL: TestCodexRefusesUnsupportedRequests (0.63s)
    --- FAIL: TestCodexRefusesUnsupportedRequests/item/permissions/requestApproval (0.15s)
        answers_test.go:308: cannot refuse server request provider_policy_rejected
    --- FAIL: TestCodexRefusesUnsupportedRequests/async/requestUserInput (0.15s)
        answers_test.go:308: cannot refuse server request provider_policy_rejected
    --- FAIL: TestCodexRefusesUnsupportedRequests/unlisted/request (0.14s)
        answers_test.go:308: cannot refuse server request provider_policy_rejected
    --- FAIL: TestCodexRefusesUnsupportedRequests/item/tool/requestUserInput (0.18s)
        answers_test.go:308: cannot refuse server request provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 628ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.641s
--- FAIL: TestDirectAnswerProtocolError (0.08s)
    direct_tools_test.go:534: protocol refusal cannot pass durable capture runner.invalid
FAIL
rastrillo-budget/v1 ran 78ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.081s
FAIL
```

### B1-m-driver-red

```text
--- FAIL: TestGenerationUsesStagedSource (0.00s)
    fixwave_test.go:9: generation would mutate source home
--- FAIL: TestRecoveryChargesFunding (0.00s)
    fixwave_test.go:16: recovery not charged 0 0 0
--- FAIL: TestCandidateBinariesPinned (0.00s)
    fixwave_test.go:22: foreign binary certified claude
--- FAIL: TestProbeFileTargetsAndDenials (0.00s)
    fixwave_test.go:25: directory probe /egress /egress
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/directlive	0.042s
FAIL
```

### B1-m-readback-red

```text
--- FAIL: TestPolicyEvidenceRequiresObservedFrames (0.00s)
    fixwave_test.go:88: requested policy became observed evidence
--- FAIL: TestCalibrationRequiresChargedCalls (0.08s)
    fixwave_test.go:94: uncounted calls certified
FAIL
rastrillo-budget/v1 ran 85ms
FAIL	amadan.net/oficina/equipo/internal/directlive	0.126s
FAIL
```

### B1-m-overlay-green

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestNativeApprovalOverlay$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s
```

### B1-m-overlay-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestNativeApprovalOverlay$ -count=1`

Exit 1:

```text
--- FAIL: TestNativeApprovalOverlay (0.00s)
    native_overlay_test.go:17: approval overlay hidden
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

### B1-m-network-green

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestNativeApprovalOverlay$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.002s
```

### B1-m-network-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestNativeApprovalOverlay$ -count=1`

Exit 1:

```text
--- FAIL: TestNativeApprovalOverlay (0.00s)
    native_overlay_test.go:21: network approval accepted
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/provider	0.002s
FAIL
```

### B1-m-decline-green

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefusesUnsupportedRequests$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.566s
```

### B1-m-decline-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefusesUnsupportedRequests$ -count=1`

Exit 1:

```text
--- FAIL: TestCodexRefusesUnsupportedRequests (0.56s)
    --- FAIL: TestCodexRefusesUnsupportedRequests/item/tool/requestUserInput (0.14s)
        answers_test.go:314: cannot refuse server request provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 558ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.560s
FAIL
```

### B1-m-unlisted-green

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefusesUnsupportedRequests$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.549s
```

### B1-m-unlisted-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexRefusesUnsupportedRequests$ -count=1`

Exit 1:

```text
--- FAIL: TestCodexRefusesUnsupportedRequests (3.55s)
    --- FAIL: TestCodexRefusesUnsupportedRequests/item/permissions/requestApproval (1.14s)
        answers_test.go:327: request left hanging
    --- FAIL: TestCodexRefusesUnsupportedRequests/async/requestUserInput (1.14s)
        answers_test.go:327: request left hanging
    --- FAIL: TestCodexRefusesUnsupportedRequests/unlisted/request (1.13s)
        answers_test.go:327: request left hanging
FAIL
rastrillo-budget/v1 ran 3.549s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	3.551s
FAIL
```

### B1-m-error-wire-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectAnswerProtocolError$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.102s
```

### B1-m-error-wire-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectAnswerProtocolError$ -count=1`

Exit 1:

```text
--- FAIL: TestDirectAnswerProtocolError (0.07s)
    direct_tools_test.go:538: protocol refusal cannot pass durable capture runner.invalid
FAIL
rastrillo-budget/v1 ran 70ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.073s
FAIL
```

### B1-m-recovery-calls-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestRecoveryChargesFunding$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.047s
```

### B1-m-recovery-calls-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestRecoveryChargesFunding$ -count=1`

Exit 1:

```text
--- FAIL: TestRecoveryChargesFunding (0.00s)
    certification_guards_test.go:55: recovery not charged 0 1000 2000
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.047s
FAIL
```

### B1-m-recovery-tokens-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestRecoveryChargesFunding$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.046s
```

### B1-m-recovery-tokens-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestRecoveryChargesFunding$ -count=1`

Exit 1:

```text
--- FAIL: TestRecoveryChargesFunding (0.00s)
    certification_guards_test.go:55: recovery not charged 1 0 2000
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.049s
FAIL
```

### B1-m-pins-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestCandidateBinariesPinned$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.047s
```

### B1-m-pins-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestCandidateBinariesPinned$ -count=1`

Exit 1:

```text
--- FAIL: TestCandidateBinariesPinned (0.00s)
    certification_guards_test.go:69: foreign binary certified codex-code-mode-host
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.049s
FAIL
```

### B1-m-probe-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestProbeFileTargetsAndDenials$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.048s
```

### B1-m-probe-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestProbeFileTargetsAndDenials$ -count=1`

Exit 1:

```text
--- FAIL: TestProbeFileTargetsAndDenials (0.00s)
    certification_guards_test.go:77: directory probe /egress /egress
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.045s
FAIL
```

### B1-m-classifier-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestProbeFileTargetsAndDenials$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.047s
```

### B1-m-classifier-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestProbeFileTargetsAndDenials$ -count=1`

Exit 1:

```text
--- FAIL: TestProbeFileTargetsAndDenials (0.00s)
    certification_guards_test.go:82: non-denial classified as proof sandbox configuration loaded
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.048s
FAIL
```

### B1-m-readback-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestPolicyEvidenceRequiresObservedFrames$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.046s
```

### B1-m-readback-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestPolicyEvidenceRequiresObservedFrames$ -count=1`

Exit 1:

```text
--- FAIL: TestPolicyEvidenceRequiresObservedFrames (0.00s)
    certification_guards_test.go:95: requested policy became observed evidence
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/directlive	0.047s
FAIL
```

### B1-m-calibration-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestCalibrationRequiresChargedCalls$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.097s
```

### B1-m-calibration-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestCalibrationRequiresChargedCalls$ -count=1`

Exit 1:

```text
--- FAIL: TestCalibrationRequiresChargedCalls (0.05s)
    certification_guards_test.go:105: uncounted calls certified
FAIL
rastrillo-budget/v1 ran 48ms
FAIL	amadan.net/oficina/equipo/internal/directlive	0.094s
FAIL
```

### B1-m-staged-final-green

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestGenerationUsesStagedSource$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	0.086s
```

### B1-m-staged-restore-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestGenerationUsesStagedSource$ -count=1`

Exit 1:

```text
--- FAIL: TestGenerationUsesStagedSource (0.01s)
    certification_guards_test.go:39: source not restored after probe false
FAIL
rastrillo-budget/v1 ran 13ms
FAIL	amadan.net/oficina/equipo/internal/directlive	0.053s
FAIL
```

### B1-m-staged-atomic-mutation

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestGenerationUsesStagedSource$ -count=1`

Exit 1:

```text
--- FAIL: TestGenerationUsesStagedSource (0.00s)
    certification_guards_test.go:27: source edited in place
FAIL
rastrillo-budget/v1 ran 2ms
FAIL	amadan.net/oficina/equipo/internal/directlive	0.044s
FAIL
```

### minor-fake-driver-final

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestDirectDriverFakeCLI$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	85.866s
```


## C-m

Reopening an answer after revocation removes its profile approval and label from assignment, event, timeline and artifact provenance in the same transaction. Publisher validation decodes PublicationDescription and compares its approval structure, accepting JSON-escaped labels while rejecting labels planted in unrelated text. Historical trial rows are labelled Historical supervised trial. Description readback uses a dedicated transport with Proxy nil and disables cookies and redirects. Startup sweeps stale describe-* directories under the owned ScratchRoot while the runner state lock is held.

New pending copy: trial.history = Historical supervised trial.

Interpretations: The historical label is a copy-only change. Its rendered HTTP assertion and compile-valid template mutation cover it. The initial HTTP fixture used the nonexistent /runners path; the valid page is /runners/enrol.

### C-m-revocation-red

```text
--- FAIL: TestReopenedQuestionDropsProfileApproval (0.65s)
    approval_once_test.go:150: revoked approval label retained {"profile_approvals":[{"question_id":"native","request_id":"7","item_id":"item","turn_id":"provider-turn","session_id":"session","person":"second-owner@example.com","label":"approved beyond profile","request":{"id":7,"method":"item/commandExecution/requestApproval","params":{"command":"printf hello","cwd":"/workspace","itemId":"item","threadId":"session","turnId":"provider-turn"}}}],"status":"confined","runner_tainted":false,"acknowledgement_ids":null,"observed_tuples":[{"provider":"claude","provider_version":"2.1.312","launcher_version":"direct-v2","bwrap_version":"0.11.0","policy_version":"policy-v2","isolation_config_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}]}
FAIL
rastrillo-budget/v1 ran 647ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.749s
FAIL
```

### C-m-approval-red

```text
--- FAIL: TestReopenedQuestionDropsProfileApproval (0.54s)
    approval_once_test.go:146: team: grant_stale: job grant needs reconciliation
FAIL
rastrillo-budget/v1 ran 540ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.641s
--- FAIL: TestPublisherChecksDecodedProfileApproval (0.05s)
    approval_profile_test.go:44: decoded approval valid=false: <nil>
FAIL
rastrillo-budget/v1 ran 54ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.058s
FAIL
```

### C-m-transport-red

```text
--- FAIL: TestDescriptionIgnoresDefaultProxyClient (0.00s)
    description_test.go:341: description used ambient proxy client
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.003s
--- FAIL: TestRunnerSweepsStaleDescriptionTokens (0.05s)
    direct_runtime_test.go:206: stale token directory survived startup
FAIL
rastrillo-budget/v1 ran 49ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.052s
FAIL
```

### C-m-revocation-green

`CGO_ENABLED=0 go test ./internal/equipotest -run ^TestReopenedQuestionDropsProfileApproval$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	0.424s
```

### C-m-revocation-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run ^TestReopenedQuestionDropsProfileApproval$ -count=1`

Exit 1:

```text
--- FAIL: TestReopenedQuestionDropsProfileApproval (0.37s)
    approval_once_test.go:156: revoked approval label retained {"profile_approvals":[{"question_id":"native","request_id":"7","item_id":"item","turn_id":"provider-turn","session_id":"session","person":"second-owner@example.com","label":"approved beyond profile","request":{"id":7,"method":"item/commandExecution/requestApproval","params":{"command":"printf hello","cwd":"/workspace","itemId":"item","threadId":"session","turnId":"provider-turn"}}}],"status":"confined","runner_tainted":false,"acknowledgement_ids":null,"observed_tuples":[{"provider":"claude","provider_version":"2.1.312","launcher_version":"direct-v2","bwrap_version":"0.11.0","policy_version":"policy-v2","isolation_config_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}]}
FAIL
rastrillo-budget/v1 ran 373ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.420s
FAIL
```

### C-m-label-green

`CGO_ENABLED=0 go test ./internal/runner/forge -run ^TestPublisherChecksDecodedProfileApproval$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.020s
```

### C-m-label-mutation

`CGO_ENABLED=0 go test ./internal/runner/forge -run ^TestPublisherChecksDecodedProfileApproval$ -count=1`

Exit 1:

```text
--- FAIL: TestPublisherChecksDecodedProfileApproval (0.02s)
    approval_profile_test.go:64: decoded approval valid=false: <nil>
FAIL
rastrillo-budget/v1 ran 18ms
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.020s
FAIL
```

### C-m-proxy-green

`CGO_ENABLED=0 go test ./internal/runner/forge -run ^TestDescriptionIgnoresDefaultProxyClient$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.002s
```

### C-m-proxy-mutation

`CGO_ENABLED=0 go test ./internal/runner/forge -run ^TestDescriptionIgnoresDefaultProxyClient$ -count=1`

Exit 1:

```text
--- FAIL: TestDescriptionIgnoresDefaultProxyClient (0.00s)
    description_test.go:348: description used ambient proxy client
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/runner/forge	0.002s
FAIL
```

### C-m-sweep-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestRunnerSweepsStaleDescriptionTokens$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.051s
```

### C-m-sweep-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestRunnerSweepsStaleDescriptionTokens$ -count=1`

Exit 1:

```text
--- FAIL: TestRunnerSweepsStaleDescriptionTokens (0.05s)
    direct_runtime_test.go:213: stale token directory survived startup
FAIL
rastrillo-budget/v1 ran 47ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.049s
FAIL
```

### C-m-history-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 1:

```text
2026/11/04 01:12:53 INFO Apply migrations. applied=[] skipped=24 adopted=false
--- FAIL: TestRunnerTrialHistoryLabel (3.42s)
    approval_once_test.go:172: old trial displayed without historical label
FAIL
rastrillo-budget/v1 ran 3.476s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.522s
FAIL
```

### A-m678-C-m-history-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	3.522s
```


## B2-m

M1: persist the action and admitting phase before the admit RPC, so recovery can report a lost admission. M2: a failed admission check requests recovery before polling again. M6 is covered by the B2-I2 preflight cache. Follow-up coverage also applies non-latching budget errors to event and tool queues, and verifies that an instance accepts a matching unstarted exit after a lost launch acknowledgment while rejecting a mismatched exit.

Interpretations: The RED command is the same named test and package as the GREEN command. Mutations are compile-valid and restored. No new UI strings unless listed.

### B2-m-red

```text
--- FAIL: TestDirectAdmissionIntentBeforeRPC (0.04s)
    direct_admission_test.go:7: admission reached instance before durable action intent
--- FAIL: TestServiceRecoversAdmissionFailure (0.55s)
    direct_admission_test.go:20: admission failure skipped recovery 1
FAIL
rastrillo-budget/v1 ran 593ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.595s
FAIL
```

### B2-M1-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectAdmissionIntentBeforeRPC$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.081s
```

### B2-M1-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestDirectAdmissionIntentBeforeRPC$ -count=1`

Exit 1:

```text
--- FAIL: TestDirectAdmissionIntentBeforeRPC (0.06s)
    direct_admission_test.go:18: admission reached instance before durable action intent
FAIL
rastrillo-budget/v1 ran 56ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.059s
FAIL
```

### B2-M2-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestServiceRecoversAdmissionFailure$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.561s
```

### B2-M2-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestServiceRecoversAdmissionFailure$ -count=1`

Exit 1:

```text
--- FAIL: TestServiceRecoversAdmissionFailure (0.56s)
    direct_admission_test.go:59: admission failure skipped recovery 1
FAIL
rastrillo-budget/v1 ran 557ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.559s
FAIL
```

### B2-I2-budget-green

`CGO_ENABLED=0 go test ./internal/runner -run ^TestPendingBudgetsDoNotLatch$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.120s
```

### B2-I2-budget-mutation

`CGO_ENABLED=0 go test ./internal/runner -run ^TestPendingBudgetsDoNotLatch$ -count=1`

Exit 1:

```text
--- FAIL: TestPendingBudgetsDoNotLatch (0.13s)
    --- FAIL: TestPendingBudgetsDoNotLatch/event (0.06s)
        preflight_cache_test.go:94: budget refusal latched storage provider_uncertain
            runner.journal
FAIL
rastrillo-budget/v1 ran 133ms
FAIL	amadan.net/oficina/equipo/internal/runner	0.136s
FAIL
```

### B2-I1-lost-ack-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectContainmentReportBinding/(lost-launch-ack|unstarted-mismatch)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	0.849s
```

### B2-I1-lost-ack-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectContainmentReportBinding/(lost-launch-ack|unstarted-mismatch)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectContainmentReportBinding (0.78s)
    --- FAIL: TestDirectContainmentReportBinding/lost-launch-ack (0.54s)
        direct_containment_test.go:88: bound proof refused: You do not have access to this page. Ask an owner for access.
FAIL
rastrillo-budget/v1 ran 782ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.832s
FAIL
```

### B2-I1-unstarted-binding-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestDirectContainmentReportBinding/(lost-launch-ack|unstarted-mismatch)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectContainmentReportBinding (0.92s)
    --- FAIL: TestDirectContainmentReportBinding/unstarted-mismatch (0.32s)
        direct_containment_test.go:91: unbound proof released capacity
FAIL
rastrillo-budget/v1 ran 917ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.965s
FAIL
```


## Minor group verification

All restored targeted guards passed across adapters, namespace containment, runner, instance integration, publisher and driver. The complete fake CLI exercise passed with real namespaces and fake providers only.

### minor-green-restored

`CGO_ENABLED=0 go test ./internal/runner/containment ./internal/runner/provider ./internal/runner/provider/codex ./internal/runner/provider/claude ./internal/equipotest ./internal/runner ./internal/runner/forge ./internal/directlive -run '^Test(Namespace.*|BwrapRunsPinnedDescriptor|Codex.*|Claude.*|DirectBinaryBoundaries|CheckPolicyNoRedundantRunner|RunnerTrialHistoryLabel|ReopenedQuestionDropsProfileApproval|PublisherChecksDecodedProfileApproval|ApprovedBeyondProfilePublisher|PendingBudgetsDoNotLatch|DirectAdmissionIntentBeforeRPC|ServiceRecoversAdmissionFailure|RuntimeHomeRejectsPolicyInjection|RefreshDoesNotOverwriteNewerSource|GenerationUsesStagedSource|RecoveryChargesFunding|CandidateBinariesPinned|ProbeFileTargetsAndDenials|PolicyEvidenceRequiresObservedFrames|CalibrationRequiresChargedCalls|CodexPolicyEvidenceUsesReadback)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/containment	5.543s
ok  	amadan.net/oficina/equipo/internal/runner/provider	1.021s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	11.525s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	16.797s
ok  	amadan.net/oficina/equipo/internal/equipotest	8.341s
ok  	amadan.net/oficina/equipo/internal/runner	7.723s
ok  	amadan.net/oficina/equipo/internal/runner/forge	0.184s
ok  	amadan.net/oficina/equipo/internal/directlive	0.214s
```

### minor-fake-driver-final

`CGO_ENABLED=0 go test ./internal/directlive -run ^TestDirectDriverFakeCLI$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/directlive	85.866s
```


## B1-m follow-up: asynchronous denial

The synthetic question from item/completed has no RPC request to reject. Denial now sends a policy-refusal answer through turn/steer on the existing turn, so it does not hang or start an extra turn. Structured RPC questions still receive the durable protocol error. The mutation removed denial serialization and reproduced the policy error before delivery.

Interpretations: RED command: CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexAsyncQuestionDenial$ -count=1.

### B1-m-async-red

```text
--- FAIL: TestCodexAsyncQuestionDenial (0.15s)
    answers_test.go:338: async denial was not sent provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 150ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.152s
FAIL
```

### B1-m-async-green

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexAsyncQuestionDenial$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.284s
```

### B1-m-async-mutation

`CGO_ENABLED=0 go test ./internal/runner/provider/codex -run ^TestCodexAsyncQuestionDenial$ -count=1`

Exit 1:

```text
--- FAIL: TestCodexAsyncQuestionDenial (0.18s)
    answers_test.go:347: async denial was not sent provider_policy_rejected
FAIL
rastrillo-budget/v1 ran 178ms
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	0.190s
FAIL
```


## Final gates: initial results

The required vet and migration gates passed. Budget rejected the enlarged runner source and instance test package. The reference inventory needed exact updates after the last fix group. First CI stopped at that inventory. The full test run with a fresh /tmp directory exposed overly broad startup-frame cleanup and an old release-protocol pin; it also exposed the old test expectation that budget exhaustion should latch storage. The temporary /tmp/e2b-28nk4rfv directory was removed after the run.

### gate-vet

`CGO_ENABLED=0 go vet ./...`

Exit 0:

```text

```

### gate-budget

`CGO_ENABLED=0 make budget`

Exit 2:

```text
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
internal/equipotest: 13010 test lines, over the 13000 its exemption (line 18) allows
internal/runner: 7670 source lines, over the 7500 its exemption (line 24) allows
rastrillo: budget size: 2 problem(s)
exit status 1
make: *** [Makefile:61: budget] Error 1
```

### gate-dead-references

`CGO_ENABLED=0 make runner-dead-references`

Exit 2:

```text
rpowers/plans/CONTROLLER-REPORT-plan-2b.md:25899:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25909:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25926:131: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25934:98: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25945:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25955:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25962:98: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25971:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26549:339: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26549:385: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26551:19: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26551:57: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26700:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26706:21: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26707:36: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26716:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26870:359: unclassified Trial
internal/equipo/copy.go:213:26: unclassified trial
internal/equipo/copy.go:214:3: unclassified trial
internal/equipo/copy.go:214:42: unclassified trial
internal/equipo/copy.go:215:3: unclassified trial
internal/equipo/copy.go:215:31: unclassified trial
internal/equipo/templates/runners.html:32:7: unclassified Trial
internal/equipo/templates/runners.html:32:30: unclassified trial
internal/equipo/templates/runners.html:32:51: unclassified Trial
internal/equipo/templates/runners.html:32:69: unclassified Trial
internal/equipo/templates/runners.html:32:90: unclassified Trial
internal/equipotest/approval_once_test.go:160:16: unclassified Trial
internal/equipotest/approval_once_test.go:162:33: unclassified trial
internal/equipotest/approval_once_test.go:171:52: unclassified trial
internal/equipotest/approval_once_test.go:172:16: unclassified trial
internal/equipotest/direct_boundaries_test.go:11:60: unclassified equipo-runner
internal/equipotest/direct_boundaries_test.go:23:24: unclassified equipo-runner
stale allowance: ('internal/directlive/driver_test.go', '7eaf771700dcc17c285635a37dcdfb767908a1a8dd94fe760cd09f986dd4e15b', 'equipo-runner')
stale allowance: ('internal/equipo/copy.go', 'eff21e36096a655a21d481d4f96a1529636e12a26394bd31ab3ac88c54968c41', 'trial')
stale allowance: ('internal/equipo/templates/runners.html', '4d7f4ebd05dee498d20a683d688b3d54070a8edaae48c169d9370e7e470ff0d5', 'Trial')
stale allowance: ('internal/equipo/templates/runners.html', '4d7f4ebd05dee498d20a683d688b3d54070a8edaae48c169d9370e7e470ff0d5', 'trial')
stale allowance: ('internal/runner/checks/namespace.go', '54f493b37bb09696c8e34cbaa7b3b7e551ba2008d40e56c5de041f2fd18deeb1', 'equipo-runner')
stale allowance: ('internal/runner/direct_tools_test.go', 'b37b1903da1c07b3d63cf56fd19f034540375df701085e729dd0f071861fcd6e', 'equipo-runner')
stale allowance: ('internal/runner/provider/check_policy.go', 'df7ea78ba62170721376423e17486ce2cfa72e55c646890b0dc33d84de68a81c', 'equipo-runner')
reference scan: 562 text files, 1001 matches, 41 failures
make: *** [Makefile:154: runner-dead-references] Error 1
```

### gate-migration

`CGO_ENABLED=0 make migration-check`

Exit 0:

```text
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	0.205s
```

### gate-ci-first

`CGO_ENABLED=0 make ci`

Exit 2:

```text
rpowers/plans/CONTROLLER-REPORT-plan-2b.md:25899:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25909:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25926:131: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25934:98: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25945:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25955:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25962:98: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:25971:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26549:339: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26549:385: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26551:19: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26551:57: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26700:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26706:21: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26707:36: unclassified trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26716:116: unclassified Trial
docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:26870:359: unclassified Trial
internal/equipo/copy.go:213:26: unclassified trial
internal/equipo/copy.go:214:3: unclassified trial
internal/equipo/copy.go:214:42: unclassified trial
internal/equipo/copy.go:215:3: unclassified trial
internal/equipo/copy.go:215:31: unclassified trial
internal/equipo/templates/runners.html:32:7: unclassified Trial
internal/equipo/templates/runners.html:32:30: unclassified trial
internal/equipo/templates/runners.html:32:51: unclassified Trial
internal/equipo/templates/runners.html:32:69: unclassified Trial
internal/equipo/templates/runners.html:32:90: unclassified Trial
internal/equipotest/approval_once_test.go:160:16: unclassified Trial
internal/equipotest/approval_once_test.go:162:33: unclassified trial
internal/equipotest/approval_once_test.go:171:52: unclassified trial
internal/equipotest/approval_once_test.go:172:16: unclassified trial
internal/equipotest/direct_boundaries_test.go:11:60: unclassified equipo-runner
internal/equipotest/direct_boundaries_test.go:23:24: unclassified equipo-runner
stale allowance: ('internal/directlive/driver_test.go', '7eaf771700dcc17c285635a37dcdfb767908a1a8dd94fe760cd09f986dd4e15b', 'equipo-runner')
stale allowance: ('internal/equipo/copy.go', 'eff21e36096a655a21d481d4f96a1529636e12a26394bd31ab3ac88c54968c41', 'trial')
stale allowance: ('internal/equipo/templates/runners.html', '4d7f4ebd05dee498d20a683d688b3d54070a8edaae48c169d9370e7e470ff0d5', 'Trial')
stale allowance: ('internal/equipo/templates/runners.html', '4d7f4ebd05dee498d20a683d688b3d54070a8edaae48c169d9370e7e470ff0d5', 'trial')
stale allowance: ('internal/runner/checks/namespace.go', '54f493b37bb09696c8e34cbaa7b3b7e551ba2008d40e56c5de041f2fd18deeb1', 'equipo-runner')
stale allowance: ('internal/runner/direct_tools_test.go', 'b37b1903da1c07b3d63cf56fd19f034540375df701085e729dd0f071861fcd6e', 'equipo-runner')
stale allowance: ('internal/runner/provider/check_policy.go', 'df7ea78ba62170721376423e17486ce2cfa72e55c646890b0dc33d84de68a81c', 'equipo-runner')
reference scan: 562 text files, 1001 matches, 41 failures
make: *** [Makefile:154: runner-dead-references] Error 1
```

### gate-tmp-test

`CGO_ENABLED=0 TMPDIR=/tmp/e2b-28nk4rfv make test`

Exit 2:

```text
/clean
    runner_release_test.go:110: release: exit status 2 EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
        python3 scripts/runner-release-check.py
        make: *** [Makefile:170: direct-release-check] Error 1
--- FAIL: TestDirectReleaseRequiresCertification/release/clean (0.05s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectReleaseRequiresCertification/release-runner
=== RUN   TestDirectReleaseRequiresCertification/release-runner
--- FAIL: TestDirectReleaseRequiresCertification/release-runner (0.82s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectReleaseRequiresCertification/release-runner/clean
=== RUN   TestDirectReleaseRequiresCertification/release-runner/clean
    runner_release_test.go:110: release: exit status 2 EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
        python3 scripts/runner-release-check.py
        make: *** [Makefile:170: direct-release-check] Error 1
--- FAIL: TestDirectReleaseRequiresCertification/release-runner/clean (0.05s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 2m28.126s
FAIL	amadan.net/oficina/equipo/internal/equipotest	148.398s

--- FAIL amadan.net/oficina/equipo/internal/runner TestDirectJournalCommitBeforeDelivery
=== RUN   TestDirectJournalCommitBeforeDelivery
    capture_test.go:200: sql: no rows in result set
--- FAIL: TestDirectJournalCommitBeforeDelivery (0.02s)

--- FAIL amadan.net/oficina/equipo/internal/runner TestDirectJournalRetainsUndecodedStartup
=== RUN   TestDirectJournalRetainsUndecodedStartup
    direct_fixes_test.go:348: startup frame retired before consumption or recovery
--- FAIL: TestDirectJournalRetainsUndecodedStartup (0.01s)

--- FAIL amadan.net/oficina/equipo/internal/runner TestBufferFullStopsWork
=== RUN   TestBufferFullStopsWork
    journal_test.go:95: buffer full did not stop admission and contain 1 false
--- FAIL: TestBufferFullStopsWork (0.01s)

--- FAIL amadan.net/oficina/equipo/internal/runner (package output)
FAIL
rastrillo-budget/v1 ran 1m3.821s
FAIL	amadan.net/oficina/equipo/internal/runner	63.889s

budget note: internal/runner/forge took 11.463s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m30.148s against a 60s target (the gate's other steps are not in this figure)
receipt: 15 packages ran, 0 cached, 6 without tests, 2 failed
receipt: slow package 2m28.126s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1m3.821s amadan.net/oficina/equipo/internal/runner
receipt: slow package 53.363s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 40.881s amadan.net/oficina/equipo/internal/directlive
receipt: slow package 11.463s amadan.net/oficina/equipo/internal/runner/forge
receipt: slow test 41.04s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 40.48s amadan.net/oficina/equipo/internal/directlive TestDirectDriverFakeCLI
receipt: slow test 20.59s amadan.net/oficina/equipo/internal/equipotest TestRunnerDirectEndToEnd
receipt: slow test 16.61s amadan.net/oficina/equipo/internal/equipotest TestBugPreparationIntegration
receipt: slow test 13.76s amadan.net/oficina/equipo/internal/runner/checks TestCheckNamespaceGoRootInsideModuleCache
rastrillo: budget test: go test failed
exit status 1
make: *** [Makefile:69: test] Error 1
```


## Final gate corrections

Keep ordinary startup frames until consumed or recovered; only contained no-session preflight attempts may release frames before a turn. Update the budget test to require admission after the byte limit is raised while retaining containment and no-ACK checks. Move unchanged stateless redaction, retry and prompt helpers into runnerproto, with runner wrappers, and move dependency-boundary tests there. This meets existing package limits without raising exemptions. Match the release checker to direct-v3. Refresh only exact tracked-reference entries. CI prerequisites now verify the pinned Codex SHA without executing it; the mismatch test uses a fake executable with a marker. The release fixture changes the fake binary bytes to test mismatch.

Interpretations: The initial full test failures are RED evidence for startup cleanup and the release pin. Prerequisite RED command: CGO_ENABLED=0 go test ./internal/runnerproto -run ^TestRunnerPrerequisitesDoNotExecuteCodex$ -count=1. Its mutation restores version execution against a fake binary only. The release mutation restores the old protocol pin and fails the fake-toolchain release test. No new UI strings.

### gate-fix-startup-green

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(DirectJournalCommitBeforeDelivery|DirectJournalRetainsUndecodedStartup|IdlePreflightStorageBounded|BufferFullStopsWork)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	2.572s
```

### gate-fix-startup-mutation

`CGO_ENABLED=0 go test ./internal/runner -run '^Test(DirectJournalCommitBeforeDelivery|DirectJournalRetainsUndecodedStartup|IdlePreflightStorageBounded|BufferFullStopsWork)$' -count=1`

Exit 1:

```text
--- FAIL: TestDirectJournalRetainsUndecodedStartup (0.15s)
    direct_fixes_test.go:348: startup frame retired before consumption or recovery
FAIL
rastrillo-budget/v1 ran 2.228s
FAIL	amadan.net/oficina/equipo/internal/runner	2.233s
FAIL
```

### gate-fix-protocol-utilities

`CGO_ENABLED=0 go test ./internal/runner ./internal/runnerproto -run '^Test.*(Redact|Reconnect|Retry|TurnPrompt|Transient|Forbidden|Admitted|HTTP.*Error|DirectBinaryBoundaries|CheckPolicyNoRedundantRunner)' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	2.468s
ok  	amadan.net/oficina/equipo/internal/runnerproto	0.142s
```

### gate-prerequisite-red

```text
--- FAIL: TestRunnerPrerequisitesDoNotExecuteCodex (0.01s)
    boundaries_test.go:40: CI executed a provider binary
FAIL
rastrillo-budget/v1 ran 6ms
FAIL	amadan.net/oficina/equipo/internal/runnerproto	0.009s
FAIL
```

### gate-prerequisite-green

`CGO_ENABLED=0 go test ./internal/runnerproto -run '^TestRunnerPrerequisitesDoNotExecuteCodex$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runnerproto	0.022s
```

### gate-prerequisite-mutation

`CGO_ENABLED=0 go test ./internal/runnerproto -run '^TestRunnerPrerequisitesDoNotExecuteCodex$' -count=1`

Exit 1:

```text
--- FAIL: TestRunnerPrerequisitesDoNotExecuteCodex (0.00s)
    boundaries_test.go:46: CI executed a provider binary
FAIL
rastrillo-budget/v1 ran 5ms
FAIL	amadan.net/oficina/equipo/internal/runnerproto	0.007s
FAIL
```

### gate-release-green

`CGO_ENABLED=0 go test ./internal/equipotest -run '^Test(ReleaseStampContract|RunnerReleaseContractPackaging|DirectReleaseRequiresCertification)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/equipotest	4.163s
```

### gate-release-mutation

`CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseStampContract/defaults$' -count=1`

Exit 1:

```text
--- FAIL: TestReleaseStampContract (0.20s)
    --- FAIL: TestReleaseStampContract/defaults (0.20s)
        release_test.go:100: make release: exit status 2
            EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
            python3 scripts/runner-release-check.py
            make: *** [Makefile:170: direct-release-check] Error 1
FAIL
rastrillo-budget/v1 ran 205ms
FAIL	amadan.net/oficina/equipo/internal/equipotest	0.245s
FAIL
```


## Interpretations and evidence limits

The bounded real app-server recording sent only initialize, initialized and config/read. The explicitly required complete test suite also executes installed Codex --version and local codex sandbox commands in existing containment checks. This was discovered after the required /tmp run. Those checks use scratch config homes and execute local commands with networking disabled, with no account RPCs, sign-in or provider prompts. The full gate requirement is treated as authorization for these existing offline security tests; disabling them would weaken containment verification. No real Claude CLI was run. Existing release tests invoke Make release targets only inside isolated fixture repositories with fake toolchains; no release target was invoked against this checkout, no real release was produced, and nothing was deployed. The separate prerequisite no longer executes Codex.

The first attempted B1-I3 mutation failed compilation because it left an unused variable and was discarded. Only the corrected compile-valid stderr-suppression failure is evidence. Removed report entries for the abandoned staged-binding prototype; the final atomic source-replacement tests and mutations remain. Abrupt process death cannot execute deferred source restoration, so live-gate.md requires backups and interruption inspection. No live certification is claimed, and missing hook/currency/FD proof remains not-certified. Deferred findings remain unchanged.


## Gate corrections verified

The restored startup, release, reference and prerequisite guards pass together under a new tiny /tmp TMPDIR, which was removed afterward. The existing package budgets pass after the helper move.

### gate-budget-green

`CGO_ENABLED=0 make budget`

Exit 0:

```text
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 23 directories within budget
```

### gate-reference-green

`CGO_ENABLED=0 make runner-dead-references`

Exit 0:

```text
python3 scripts/runner-dead-references.py
reference scan: 567 text files, 1081 matches, 0 failures
```

### gate-tmp-targeted-green

`CGO_ENABLED=0 TMPDIR=/tmp/e2b-6vq7r788 go test ./internal/runner ./internal/equipotest ./internal/runnerproto -run '^Test(DirectJournalCommitBeforeDelivery|DirectJournalRetainsUndecodedStartup|IdlePreflightStorageBounded|BufferFullStopsWork|ReleaseStampContract|RunnerReleaseContractPackaging|DirectReleaseRequiresCertification|DirectDeadReferencesRepository|RunnerPrerequisitesDoNotExecuteCodex)$' -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/internal/runner	0.030s
ok  	amadan.net/oficina/equipo/internal/equipotest	3.756s
ok  	amadan.net/oficina/equipo/internal/runnerproto	0.025s
```

### gate-diff-check

`CGO_ENABLED=0 git diff --check`

Exit 0:

```text

```


## Tagged worker verification

The optional direct_live command entrypoint also compiles. This is a build-only check; no worker or provider was started.

### direct-live-tag-build

`CGO_ENABLED=0 go test -tags direct_live ./cmd/equipo-runner -run ^$ -count=1`

Exit 0:

```text
ok  	amadan.net/oficina/equipo/cmd/equipo-runner	0.040s [no tests to run]
```


## Final verification

All FIX and FIX-MINOR findings are implemented. The complete restored gate passed at d613a5c. Build, vet, formatting, staticcheck, vulnerability scan, secret scan, package budgets, complete tests, adapter checks, namespace checks, migration check and performance all passed. The required initial /tmp make test was red; its failures were fixed in a separate commit and the affected tests passed under another fresh /tmp directory. Both temporary directories were removed. The .amadan entrypoints still delegate to the same Make targets. No push, merge, deployment or live certification was performed.

### gate-ci-final

`CGO_ENABLED=0 make ci`

Exit 0:

```text
3.04s amadan.net/oficina/equipo/internal/equipotest TestRunnerDirectEndToEnd
receipt: slow test 14.96s amadan.net/oficina/equipo/internal/runner TestRunnerEventDrainBacklog
receipt: slow test 9.71s amadan.net/oficina/equipo/internal/equipotest TestBugPreparationIntegration
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 go test ./internal/runner/provider/... ./internal/runner/checks -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1
ok  	amadan.net/oficina/equipo/internal/runner/provider	0.043s
ok  	amadan.net/oficina/equipo/internal/runner/provider/claude	0.701s
ok  	amadan.net/oficina/equipo/internal/runner/provider/codex	0.500s
ok  	amadan.net/oficina/equipo/internal/runner/checks	6.607s
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
ok  	amadan.net/oficina/equipo/internal/runner/containment	4.122s
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	0.082s
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 127µs, worst 133µs, budget 150ms
perf: GET /auth/callback: median 56µs, worst 68µs, budget 150ms
perf: GET /auth/verify: median 46µs, worst 55µs, budget 150ms
perf: GET /connections: median 2.839ms, worst 3.005ms, budget 150ms
perf: GET /conversation: median 3.764ms, worst 4.023ms, budget 150ms
perf: GET /journey: median 3.798ms, worst 4.105ms, budget 150ms
perf: GET /needs-you: median 3.55ms, worst 3.729ms, budget 150ms
perf: GET /people: median 2.351ms, worst 3.56ms, budget 150ms
perf: GET /projects: median 2.754ms, worst 3.105ms, budget 150ms
perf: GET /projects/new: median 2.619ms, worst 2.829ms, budget 150ms
perf: GET /projects/{id}: median 4.04ms, worst 4.097ms, budget 150ms
perf: GET /projects/{id}/edit: median 2.749ms, worst 4.025ms, budget 150ms
perf: GET /runners/enrol: median 8.277ms, worst 8.648ms, budget 150ms
perf: GET /settings: median 2.442ms, worst 2.748ms, budget 150ms
perf: GET /settings/recovery: median 7.642ms, worst 8.374ms, budget 150ms
perf: GET /settings/recovery/release: median 7.765ms, worst 8.227ms, budget 150ms
perf: GET /signin: median 188µs, worst 215µs, budget 150ms
perf: GET /specialists/{key}: median 3.562ms, worst 3.893ms, budget 150ms
perf: GET /tasks/new: median 2.426ms, worst 2.731ms, budget 150ms
perf: GET /tasks/{id}: median 3.176ms, worst 3.789ms, budget 150ms
perf: GET /tasks/{id}/merge: median 2.838ms, worst 2.988ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 3.138ms, worst 3.281ms, budget 150ms
perf: GET /work: median 2.395ms, worst 2.711ms, budget 150ms
perf: cold boot: median 52ms of [51.635992ms 51.959211ms 58.493726ms], budget 500ms

receipt: test step 9.164s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 22 without tests, 0 failed
receipt: slow package 4.475s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 0s amadan.net/oficina/equipo/internal/directlive
receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo/team
receipt: slow test 4.29s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 190ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
```


## Timing concern

The local complete gate reported advisory package times above the default 10-second limit: containment 10.101s, forge 11.106s and provider 10.471s. These timings become failures when CI or AMADAN_CI is set. The required /tmp run also reported forge at 11.463s. The final functional suite had zero failed packages. Limits were not raised, and no timing waiver was added. Controller should retain this as a CI timing risk on the shared machine.


## Pending copy and release limits

New user-facing entries remain individually pending in internal/equipo/copy.go:

- task.old_runner_stopped: Old runner stopped
- task.old_runner_stopped.help: Confirm that the old runner and all its processes have stopped before continuing this task.
- trial.history: Historical supervised trial

No copy-review server was started. No new accent borders were added. The release remains uncertified until the separate live gate supplies actual provider evidence; missing hook/currency/FD evidence fails closed. The stricter runtime-home allowlist may need an explicitly reviewed update if a provider introduces new runtime artifacts. The permitted atomic-source-mutation fallback restores on every returned path, but a killed process needs the documented operator backup/recovery. Existing offline sandbox and fake-toolchain release tests are the only interpretation exceptions, described above.


## Changed files

Files changed from the reviewed head:

- Makefile
- cmd/equipo-runner/direct_live.go
- cmd/equipo-runner/direct_live_disabled.go
- cmd/equipo-runner/main.go
- docs/live-gate.md
- docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md
- internal/directlive/budget_test.go
- internal/directlive/certificate.go
- internal/directlive/certification_guards.go
- internal/directlive/certification_guards_test.go
- internal/directlive/driver.go
- internal/directlive/driver_test.go
- internal/directlive/generation.go
- internal/directlive/observations.go
- internal/directlive/probes.go
- internal/directlive/readback.go
- internal/directlive/recovery.go
- internal/directlive/staged_source.go
- internal/directlive/testdata/fake-cli.py
- internal/directlive/turn.go
- internal/equipo/app.go
- internal/equipo/approval_revoke.go
- internal/equipo/copy.go
- internal/equipo/migrations/0019_direct_reconcile.sql
- internal/equipo/old_runner.go
- internal/equipo/questions.go
- internal/equipo/runner_events.go
- internal/equipo/runner_report_validation.go
- internal/equipo/task_handlers.go
- internal/equipo/task_views.go
- internal/equipo/team/actions.go
- internal/equipo/templates/runners.html
- internal/equipo/templates/task.html
- internal/equipotest/approval_once_test.go
- internal/equipotest/direct_containment_test.go
- internal/equipotest/direct_cutover_test.go
- internal/equipotest/direct_migration_exit_test.go
- internal/equipotest/execution_schema_test.go
- internal/equipotest/runner_release_test.go
- internal/release/manifest.json
- internal/release/refresh_test.go
- internal/runner/approval_once_test.go
- internal/runner/capture.go
- internal/runner/certified/policy.go
- internal/runner/certified_network_test.go
- internal/runner/checks/namespace.go
- internal/runner/config.go
- internal/runner/containment/helper_version_test.go
- internal/runner/containment/linux.go
- internal/runner/containment/linux_test.go
- internal/runner/containment/mounts.go
- internal/runner/containment/mounts_test.go
- internal/runner/containment/recovery.go
- internal/runner/diagnostics.go
- internal/runner/direct_admission.go
- internal/runner/direct_admission_test.go
- internal/runner/direct_answer_capture.go
- internal/runner/direct_events.go
- internal/runner/direct_namespaces.go
- internal/runner/direct_questions.go
- internal/runner/direct_recovery.go
- internal/runner/direct_runtime_test.go
- internal/runner/direct_tools_test.go
- internal/runner/direct_upload.go
- internal/runner/direct_upload_test.go
- internal/runner/direct_wait_test.go
- internal/runner/direct_workflow.go
- internal/runner/direct_workflow_test.go
- internal/runner/egress/policy.go
- internal/runner/events.go
- internal/runner/forge/approval_profile_test.go
- internal/runner/forge/description.go
- internal/runner/forge/description_test.go
- internal/runner/forge/description_transport.go
- internal/runner/forge/publisher.go
- internal/runner/journal.go
- internal/runner/journal_reset.go
- internal/runner/journal_test.go
- internal/runner/preflight_cache.go
- internal/runner/preflight_cache_test.go
- internal/runner/provider/accounts.go
- internal/runner/provider/accounts_test.go
- internal/runner/provider/check_policy.go
- internal/runner/provider/claude/answers.go
- internal/runner/provider/claude/answers_test.go
- internal/runner/provider/claude/launcher.go
- internal/runner/provider/claude/launcher_test.go
- internal/runner/provider/claude/parity_test.go
- internal/runner/provider/codex/answers.go
- internal/runner/provider/codex/answers_test.go
- internal/runner/provider/codex/events.go
- internal/runner/provider/codex/launcher.go
- internal/runner/provider/codex/launcher_test.go
- internal/runner/provider/codex/native_approval.go
- internal/runner/provider/codex/readback_test.go
- internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json
- internal/runner/provider/direct_certification.go
- internal/runner/provider/direct_certification_test.go
- internal/runner/provider/native_approval.go
- internal/runner/provider/native_json.go
- internal/runner/provider/native_overlay_test.go
- internal/runner/provider/runtime_home.go
- internal/runner/provider/types.go
- internal/runner/retry.go
- internal/runner/runtime.go
- internal/runner/runtime_direct.go
- internal/runner/service.go
- internal/runner/tool_journal.go
- internal/runner/turn_prompt.go
- internal/runnerproto/boundaries_test.go
- internal/runnerproto/budget_test.go
- internal/runnerproto/containment.go
- internal/runnerproto/event_io.go
- internal/runnerproto/questions.go
- internal/runnerproto/retry.go
- internal/runnerproto/turn_prompt.go
- scripts/runner-dead-references.py
- scripts/runner-prerequisites.py
- scripts/runner-reference-allowlist.json
- scripts/runner-release-check.py


## Implementation commits

```text
56ca88b fix: match the real Codex 0.165.0 initialize and config/read shapes
a42c4ac fix: let person answers wait across renewed runner leases
3cf98b6 fix: scan only tracked files for dead runner references
1e54a41 fix: recover unacknowledged launches and bound idle preflight storage
faaf477 fix: let owners reconcile stopped legacy runners after migration
1dc07df fix: bind namespace helpers to the running runner and protocol
488b79d fix: align Claude workspace approvals and report preflight diagnostics
8ff9cc2 fix: close final review gaps in approvals and certification evidence
d613a5c fix: preserve startup evidence and correct final gate failures
```


## B1-C1 recording command

The one real app-server recording was run with `python3 /home/paulca/t/e2b/fixwave/record.py`. It checked the pinned SHA before execution, created a fresh cx-* scratch directory below /home/paulca/t/e2b/fixwave, wrote an empty config.toml and passed the fixture settings through generated -c flags. The subprocess command was the pinned Codex path plus `app-server --strict-config --listen stdio://` and those flags. Its request sequence and sanitized response frames are committed in internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json. Output: `Recorded 3 frames; exit 0 methods: initialize, initialized, config/read`. The script closed stdin, waited for process exit and removed the scratch home in finally. Only protocol defaults and sanitized paths remain in the fixture.


## Cleanup

Removed /home/paulca/t/e2b/fixwave after copying evidence into these reports. No task scratch processes remained. The two fresh /tmp test directories were removed after their commands. Other pre-existing scratch directories were left alone. The worktree was clean before this final documentation update. No server, watcher or background test was left running.
