oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

File too large to show in full — download it above (showing a truncated preview below).

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:

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

Exit 1. Output excerpts:

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:

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

Targeted compatibility command:

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

Exit 0:

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:

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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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: DONEWITHCONCERNS. 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:

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
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:

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
# 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):

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(RecoveryCleansScratch|ScratchIdentity)$' -count=1
--- 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):

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(Startup|Intent|Stop|ExitStatus|Socket|Nested|RecoverySaved)' -count=1
--- 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):

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace(RecoveryRejects|PinnedMount|RejectsBroad)' -count=1
--- 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):

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceHelperProtocolPrivate$' -count=1
--- 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):

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceMountEscape/.*environment' -count=1
--- 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):

CGO_ENABLED=0 go test ./internal/equipotest -run '^TestCIGateSteps$' -count=1
--- 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:

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1 -v
=== 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):

make runner-namespace-test
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):

CGO_ENABLED=0 go test ./internal/equipotest -run '^TestCIGateSteps$' -count=1
ok      amadan.net/oficina/equipo/internal/equipotest   0.054s

Final full required gate (exit 0):

CGO_ENABLED=0 make ci

Complete gate output:

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:

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

--- 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...)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
--- 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

--- 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...)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
--- 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

--- 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...)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryStaleDurableTicks$ -count=1 -timeout=20s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity/changed_manifest$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryRejectsNonInit$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity$ -count=1 -timeout=20s
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStopWaitsForExit$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceIntentBeforeFork$ -count=1 -timeout=20s
--- 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

--- 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()
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceKillsDetachedChildren$ -count=1 -timeout=20s
--- 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

--- 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()
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHelperBarrier$ -count=1 -timeout=20s
--- 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

--- 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.
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHelperProtocolPrivate$ -count=1 -timeout=20s
--- 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

--- 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
 }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespacePinnedMountSwap$ -count=1 -timeout=20s
--- 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

--- 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) }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/traversal$ -count=1 -timeout=20s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/outside_private_home$ -count=1 -timeout=20s
--- 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

--- 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"} {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/protected_state$ -count=1 -timeout=20s
--- 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

--- 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/")) {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/writable_runtime$ -count=1 -timeout=20s
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/reserved_target$ -count=1 -timeout=20s
--- 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

--- 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")) {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/environment$ -count=1 -timeout=20s
--- 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

--- 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")) {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/home_environment_traversal$ -count=1 -timeout=20s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceMountEscape/tmp_environment_traversal$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceSocketImport$ -count=1 -timeout=20s
--- 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

--- 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...)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceNestedUserNamespace$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceStartingThreadExit$ -count=1 -timeout=20s
--- 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

--- 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:
        }
    }()
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceCancellation$ -count=1 -timeout=20s
--- 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

--- 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:
CGO_ENABLED=0 go test ./internal/equipotest -run ^TestCIGateSteps$ -count=1 -timeout=20s
--- 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

--- .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
CGO_ENABLED=0 go test ./internal/equipotest -run ^TestCIGateSteps$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceParentDeath$ -count=1 -timeout=20s
--- 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

--- 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...)
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceHidesHostControl$ -count=1 -timeout=20s
--- 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

--- 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
        }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceReapsOrphans$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/missing$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/record$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/unverified$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryUnavailableProof/timestamp$ -count=1 -timeout=20s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceScratchIdentity$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryCleansScratch$ -count=1 -timeout=20s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceRecoveryIdentity/reused_pid$ -count=1 -timeout=20s
--- 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, pidfdopen, pidfdsend_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: DONEWITHCONCERNS. 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.

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

Exit 1, compiled successfully. Output excerpts:

--- 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:

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord$' -count=1
ok      amadan.net/oficina/equipo/internal/runner/containment    0.143s

GREEN evidence

After implementation, before mutations:

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

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

--- 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:

CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
make runner-namespace-test
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

--- 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
    })
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceReadOnlyScratch$' -count=1
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceCleanupFailureKeepsProof$' -count=1
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceCleanupFailureKeepsProof$' -count=1
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryReadOnlyScratch$' -count=1
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryStaleDurableTicks$' -count=1
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryReusedPID/namespace$' -count=1
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
--- 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

--- 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
        }
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryCrashBeforeExit$' -count=1
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryIdentity/reused_pid$' -count=1
--- 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

--- 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()
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord/id$' -count=1
--- 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

--- 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"))
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceRecoveryMalformedRecord/namespace$' -count=1
--- 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:

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
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.

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
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:

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
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:

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgressActiveTunnelClose|TestEgressPolicyFrozen|TestEgressHeaderTimeout|TestEgressInstalledContract|TestEgressRefreshRequiresStagedHome' -count=1
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:

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgress|TestNamespaceHidesHostControl' -count=1
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:

CGO_ENABLED=0 go test ./internal/runner/egress ./internal/runner/containment -run 'TestEgressDiesWithAttempt|TestEgressActiveTunnelClose|TestEgressStartupFailureClosesProxy' -count=1
ok      amadan.net/oficina/equipo/internal/runner/egress    0.004s
ok      amadan.net/oficina/equipo/internal/runner/containment   0.516s
CGO_ENABLED=0 go test ./internal/runner/egress -run 'TestEgressRejectsSmuggling|TestEgressRejectsHostServices/resolver_error' -count=1
ok      amadan.net/oficina/equipo/internal/runner/egress    3.005s

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

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
ok      amadan.net/oficina/equipo/internal/runner/egress    3.268s
ok      amadan.net/oficina/equipo/internal/runner/containment   1.236s
CGO_ENABLED=0 go test ./internal/runner/provider ./cmd/equipo-runner -run 'TestDirect|TestToolVerbClosed|TestRunnerServiceVerbs|TestRunnerDiagnosticIsCredentialFree' -count=1
ok      amadan.net/oficina/equipo/internal/runner/provider  0.007s
ok      amadan.net/oficina/equipo/cmd/equipo-runner 0.060s
CGO_ENABLED=0 go vet ./internal/runner/egress ./internal/runner/containment ./internal/runner/provider ./cmd/equipo-runner
Exit 0, no output.
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
Exit 0, no output.
CGO_ENABLED=0 go build -o /home/paulca/t/e2b/t3-evidence/equipo-runner ./cmd/equipo-runner
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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- FAIL: TestEgressRejectsHostServices (0.17s)
FAIL
rastrillo-budget/v1 ran 173ms
FAIL    amadan.net/oficina/equipo/internal/runner/containment   0.192s
FAIL

2. exact-host

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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

--- 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
        }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressAllowsOnlyProviderTLS$' -count=1 -timeout=25s
--- 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

--- 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{}
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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

--- 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])
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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])
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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")
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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)))
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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":
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/headers$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/concurrent$' -count=1 -timeout=25s
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/connect$' -count=1 -timeout=25s
--- 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

--- 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] {
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressHeaderTimeout$' -count=1 -timeout=25s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressLimits/idle$' -count=1 -timeout=25s
--- 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

--- 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")
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPrivateSocket$' -count=1 -timeout=25s
--- 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

--- 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)
        }
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
--- 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

--- 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
 }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
--- 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

--- 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
 }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
--- 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

--- 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
        }
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressPolicy$' -count=1 -timeout=25s
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressInstalledContract$' -count=1 -timeout=25s
--- 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

--- 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) {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressInstalledContract$' -count=1 -timeout=25s
--- 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

--- 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}
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRefreshRequiresStagedHome$' -count=1 -timeout=25s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressMountPolicy$' -count=1 -timeout=25s
--- 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

--- 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:
        }
    }()
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressDiesWithAttempt/proxy_failure$' -count=1 -timeout=25s
--- 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

--- 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)
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressDiesWithAttempt/stop$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsSmuggling$' -count=1 -timeout=25s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressRejectsHostServices/resolver_error$' -count=1 -timeout=25s
--- 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

--- 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:
        }
    }()
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressDiesWithAttempt$' -count=1 -timeout=25s
--- 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

--- 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 {
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressActiveTunnelClose/listener_failure$' -count=1 -timeout=25s
--- 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

--- 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)
    })
CGO_ENABLED=0 go test ./internal/runner/egress -run '^TestEgressActiveTunnelClose/close$' -count=1 -timeout=25s
--- 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

--- 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) {
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressStartupFailureClosesProxy$' -count=1 -timeout=25s
--- 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

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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

--- 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
    }
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestEgressRejectsHostServices$' -count=1 -timeout=25s
--- 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:

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
--- 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:

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:

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
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).
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run '^TestEgressLongScratchRoot$' -count=1
--- 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
  1. Insert directory.Close() immediately before directory = nil in open, ending the retained descriptor's lifetime before listener cleanup.
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/egress -run '^TestEgressSocketDirectoryPinned$' -count=1
--- 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
  1. 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.
CGO_ENABLED=0 go test /home/paulca/amadan.net/oficina/equipo-plan-2b/internal/runner/containment -run '^TestEgressLongScratchRoot$' -count=1
--- 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

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
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: DONEWITHCONCERNS. 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:

CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountHome|TestAccountUnavailable|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome' -count=1
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:

CGO_ENABLED=0 go test ./internal/runner/containment -run 'TestEgressRejectsForgedDedicatedHome|TestNamespaceConcreteManifestHash' -count=1
--- FAIL: TestEgressRejectsForgedDedicatedHome
    caller boolean granted dedicated-home authority
--- FAIL: TestNamespaceConcreteManifestHash
    policy hash substituted for concrete manifest hash
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestUnexpectedConfigInputs|TestEffectivePolicyPreflightLaunch|TestAccountHomeConfiguredRuntime' -count=1
--- 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
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestEffectivePolicyHostBinary|TestNamespaceManifestInputs' -count=1
p.ValidateRuntimeBinaries undefined
m.namespaceManifest undefined
FAIL [build failed]
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestEffectivePolicyManifestBoundary$' -count=1
--- FAIL: TestEffectivePolicyManifestBoundary
    outer mount policy missing from manifest
CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestAccountHomeRuntimeAliasNoSideEffects|TestAccountHomeFileGuards' -count=1
--- FAIL: TestAccountHomeRuntimeAliasNoSideEffects
    interactive directory changed <nil>
--- FAIL: TestAccountHomeFileGuards/metadata_duplicate
    unsafe account input accepted
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestPrivateHomeRejectsCredentialMount$' -count=1
--- FAIL: TestPrivateHomeRejectsCredentialMount
    credential source entered public manifest

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

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

GREEN evidence

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

CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountHome|TestAccountUnavailable|TestEffectivePolicy|TestUnexpectedConfig|TestPrivateHome' -count=1
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:

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
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:

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

RED (exit 1):

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

GREEN after adding the tags (exit 0):

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:

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

Exit 1, compiled failure:

--- 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:

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

with:

e = error(nil)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/lock$ -count=1

Exit 1, compiled failure:

--- 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:

return b.DedicatedHome
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeBinding/dedicated_provenance$ -count=1

Exit 1, compiled failure:

--- 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:

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

Exit 1, compiled failure:

--- 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:

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

Exit 1, compiled failure:

--- 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:

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

with:

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

Exit 1, compiled failure:

--- 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:

 || id != l.source.Expected

with:

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

Exit 1, compiled failure:

--- 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:

if generation != l.generation {

with:

if false && generation != l.generation {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/successful_refresh$ -count=1

Exit 1, compiled failure:

--- 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:

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

with:

if generation != l.generation {
		l.ready = false
		if false && l.active {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/active_change$ -count=1

Exit 1, compiled failure:

--- 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:

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

with:

if false && (runtimeErr != nil || sha256.Sum256(runtimeRaw) != l.runtimeGeneration) {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/runtime_active_mutation$ -count=1

Exit 1, compiled failure:

--- 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:

if !l.ready {

with:

if false && !l.ready {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountUnavailableDoesNotFailover$ -count=1

Exit 1, compiled failure:

--- 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:

if probeErr != nil {

with:

if false && probeErr != nil {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeMutation/failed_refresh$ -count=1

Exit 1, compiled failure:

--- 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:

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

with:

false && e == nil && stat.Mode&unix.S_IFMT != unix.S_IFREG
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/runtime_symlink$ -count=1

Exit 1, compiled failure:

--- 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:

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

with:

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

Exit 1, compiled failure:

--- 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:

 || !reflect.DeepEqual(actual, layers)

with:

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

Exit 1, compiled failure:

--- 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:

r.RemoteControl ||

with:

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

Exit 1, compiled failure:

--- 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:

!r.HooksDisabled ||

with:

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

Exit 1, compiled failure:

--- 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:

!r.PluginsDisabled ||

with:

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

Exit 1, compiled failure:

--- 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:

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

with:

_ = a
 _ = b
 if e != nil {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer/ignored$ -count=1

Exit 1, compiled failure:

--- 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:

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

Exit 1, compiled failure:

--- 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:

if !b.VerifiedDedicatedHome() {

with:

if b.provenance == nil { return Policy{}, nil }; if !b.VerifiedDedicatedHome() {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestUnexpectedConfigLayer$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Files=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/binary$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Settings=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/settings$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.EgressHosts=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/routing$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Tools=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/tools$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.MCP=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/mcp$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Files=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/managed$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Env=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/env$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Files=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/mount$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.ThreadPolicy=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/thread-start$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.ThreadPolicy=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/thread-resume$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.TurnPolicy=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/turn$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.ProviderVersion=""
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/provider-version$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.LauncherVersion=""
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/launcher-version$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.BwrapVersion=""
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/bwrap-version$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.Argv=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/argv$ -count=1

Exit 1, compiled failure:

--- 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:

raw, manifestHash, e := hashJSON(m)

with:

m.DeniedPaths=nil
 raw, manifestHash, e := hashJSON(m)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/denied$ -count=1

Exit 1, compiled failure:

--- 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:

m.Workspace = "$WORKSPACE"

with:

m.Workspace = m.Workspace
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/canonical_and_concrete$ -count=1

Exit 1, compiled failure:

--- 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:

_, instructionHash, _ := hashJSON(instructions)

with:

instructionHash := "constant"
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHash/instructions_separate$ -count=1

Exit 1, compiled failure:

--- 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:

 || !reflect.DeepEqual(m.Argv, argv)

with:

// removed
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/argv$ -count=1

Exit 1, compiled failure:

--- 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:

if !reflect.DeepEqual(expectedEnv, p.Env) {

with:

if false && !reflect.DeepEqual(expectedEnv, p.Env) {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/env$ -count=1

Exit 1, compiled failure:

--- 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:

if !reflect.DeepEqual(expectedMounts, p.Mounts) {

with:

if false && !reflect.DeepEqual(expectedMounts, p.Mounts) {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/mount$ -count=1

Exit 1, compiled failure:

--- 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:

if digest(p.Manifest) != p.ManifestHash {

with:

if false && digest(p.Manifest) != p.ManifestHash {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/manifesthash$ -count=1

Exit 1, compiled failure:

--- 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:

if policyHash != p.Hash {

with:

if false && policyHash != p.Hash {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation/policyhash$ -count=1

Exit 1, compiled failure:

--- 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:

return nil
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyLaunchAttestation$ -count=1

Exit 1, compiled failure:

--- 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:

return nil
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyHostBinary$ -count=1

Exit 1, compiled failure:

--- 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:

return nil
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestEffectivePolicyManifestBoundary$ -count=1

Exit 1, compiled failure:

--- 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:

 || seen[key]

with:

// removed
CGO_ENABLED=0 go test ./internal/runner -run ^TestAccountHomeConfiguredDiscovery$ -count=1

Exit 1, compiled failure:

--- 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:

return provider.Binding{Home:b.ProviderHome,Expected:b.ExpectedIdentity},nil
CGO_ENABLED=0 go test ./internal/runner -run ^TestAccountHomeConfiguredRuntime$ -count=1

Exit 1, compiled failure:

--- 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:

if l.Binding.DedicatedHome && !l.Binding.VerifiedDedicatedHome() {

with:

if false && l.Binding.DedicatedHome && !l.Binding.VerifiedDedicatedHome() {
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestEgressRejectsForgedDedicatedHome$ -count=1

Exit 1, compiled failure:

--- 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:

ManifestHash: manifestHash,

with:

ManifestHash: l.Policy.Hash,
CGO_ENABLED=0 go test ./internal/runner/containment -run ^TestNamespaceConcreteManifestHash$ -count=1

Exit 1, compiled failure:

--- 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:

return true
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/directory_mode$ -count=1

Exit 1, compiled failure:

--- 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:

 || st.Nlink != 1

with:

// removed
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/credential_hardlink$ -count=1

Exit 1, compiled failure:

--- 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:

metadata, e = canonical(metadata)

with:

metadata, e = metadata,nil
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeFileGuards/metadata_duplicate$ -count=1

Exit 1, compiled failure:

--- 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:

digest := sha256.Sum256(bytes.Join([][]byte{metadata, raw, state}, nil))

with:

_ = state
 digest := sha256.Sum256(bytes.Join([][]byte{metadata, raw}, nil))
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeGuards/same_bytes_new_generation$ -count=1

Exit 1, compiled failure:

--- 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:

if id != l.source.Expected {

with:

if false && id != l.source.Expected {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomePreflightGuards/observed_identity$ -count=1

Exit 1, compiled failure:

--- 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:

if before != after {

with:

if false && before != after {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomePreflightGuards/generation_during_probe$ -count=1

Exit 1, compiled failure:

--- 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:

root, e := makePrivateRoot(b.RuntimeRoot)

with:

_ = os.MkdirAll(b.RuntimeRoot,0700)
 root, e := makePrivateRoot(b.RuntimeRoot)
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestAccountHomeRuntimeAliasNoSideEffects$ -count=1

Exit 1, compiled failure:

--- 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:

if credentialSource(m.Source, b) {

with:

if false && credentialSource(m.Source, b) {
CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestPrivateHomeRejectsCredentialMount$ -count=1

Exit 1, compiled failure:

--- 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:

 || stat.Nlink != 1

with:

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

Exit 1, compiled failure:

--- 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 CGOENABLED=0. It fails closed if the lookup fails or has no absolute home. HOME no longer selects the default refusal paths. Inherited CODEXHOME and CLAUDECONFIGDIR 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.

CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner -run 'TestAccountRefreshPending|TestAccountContainmentLatched|TestAccountHomeDefaultsIgnoreEnvironment|TestAccountHomeConfiguredDiscoveryAliases' -count=1

Exit 1:

--- 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
CGO_ENABLED=0 go test ./internal/runner/provider ./internal/runner/containment -run 'TestEffectivePolicyTurnSources|TestPrivateHomeConfigOutsideWritableMounts|TestEffectivePolicyRejectsWritableSource|TestNamespaceProviderRequiresManifest' -count=1

Exit 1:

--- 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
CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespaceDirectPolicy' -count=1

Exit 1:

# 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
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentPreflightLatched$' -count=1

Exit 1:

--- 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
CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestAccountContainmentSourceFile$' -count=1

Exit 1:

--- 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:

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 namespacemountrejected. 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:

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:

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
make runner-namespace-test

Exit 0:

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

gofmt was appli