| new file mode 100644 |
| index 00000000..3dfbdc1e |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md |
| @@ -0,0 +1,639 @@ |
| +# Plan 2b controller report |
| + |
| +## Task 1: Direct provider contract and historical compatibility |
| + |
| +Status: DONE. Work stayed on `plan-2b` in `/home/paulca/amadan.net/oficina/equipo-plan-2b`. |
| + |
| +### Built |
| + |
| +Declared the exact Selection, Binding, Identity, Mount, Policy, Launch, Session, Turn, Answer, Event, Exit, Process, ProcessHost and Launcher contracts from the brief. Declared Task 7's Frame, Capture and CaptureFactory signatures exactly as supplied. Provider types are independent declarations with only standard-library imports. The package documents that Open sends no prompt, Events attaches before StartTurn, constructors require ProcessHost and CaptureFactory, and adapters decode captured frames rather than raw process stdout. |
| + |
| +Added direct contract version/provider validation, observed-session correlation against selection and binding, and turn-event correlation. Session IDs, attempt keys, turn IDs and admission IDs remain separate fields. These checks confer no execution authority. |
| + |
| +Extended isolation tuples, connection reports and the release manifest with LauncherVersion, BwrapVersion and PolicyVersion. Direct tuple identity includes all six values: provider, provider version, launcher revision, bubblewrap version, policy schema and effective policy hash. Existing full-struct comparisons retain every new identity field. ContainmentProof has an optional Version field, with zero preserving historical unversioned proofs. |
| + |
| +Historical Paseo, trial and unconfined JSON remains readable. ValidForDirectLaunch rejects historical tuples, mixed identities, tainted snapshots, incomplete tuples, unsupported provider names and invalid hashes. This is a structural check; actual dispatch also needs release certification. Core schema version remains 7. Scope, Handle, Usage, TokenUsage and action classifications are unchanged. No runtime cutover or certified tuple was fabricated. |
| + |
| +### Files |
| + |
| +- `internal/runner/provider/types.go`: exact contracts and correlation checks. |
| +- `internal/runner/provider/errors.go`: typed internal error codes. |
| +- `internal/runner/provider/types_test.go`: contract signatures, version/provider refusals and identity tests. |
| +- `internal/runner/provider/budget_test.go`: TestMain copied from the existing runner/paseo budget pattern. |
| +- `internal/equipo/team/git_evidence.go`: additive tuple fields, historical validation and direct validity check. |
| +- `internal/equipo/team/direct_history_test.go`: fixed historical JSON fixtures, tuple identity, wire and manifest tests. |
| +- `internal/runnerproto/types.go`: DirectVersion and report fields. |
| +- `internal/runnerproto/containment.go`: additive proof version. |
| +- `internal/release/manifest.go`: additive direct release metadata. |
| +- `docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md`: this task's evidence. |
| + |
| +Full local report: `/home/paulca/amadan.net/oficina/equipo-plan-2b/.superpowers/sdd/2026-11-03-equipo-plan-2b-direct/task-1-report.md`. The repository ignores `.superpowers/`; the local report is saved there, while the controller report is committed. |
| + |
| +### Interpretations |
| + |
| +1. Version 2 is additive: `provider.Version = 2`, exposed as `runnerproto.DirectVersion`. Existing `runnerproto.Version = 1` remains for Paseo and enrolment. Inspection found explicit version-1 requests and validations throughout the current runtime and instance. Changing that constant alone would break the runtime before Task 9. Future direct producers and consumers must use DirectVersion; the current instance does not yet accept direct requests. |
| +2. Unsupported versions in the contract test means protocol versions. Task 1 does not pin production provider, bubblewrap or policy versions. Values in test fixtures are examples, not release certification. |
| +3. `IsolationSnapshot.Valid()` remains the historical evidence reader. `ValidForDirectLaunch()` is a separate structural prerequisite, so retaining readable trial/unconfined history does not grant direct eligibility. Actual verified-tuple matching and removal of active legacy exception paths remain later tasks. |
| +4. The brief lists containment.go and manifest.go without giving new containment-proof internals or release pins. Added only optional proof versioning and the named direct version fields. Task 2 defines namespace exit proofs; later release work sets real pins after certification. |
| +5. Session.Validate and Event.ValidateIdentity provide the identity checks required by the tests without adding fields to the prescribed interfaces. ValidateIdentity applies to turn-bound events; adapters must validate session-level events through their session path. Contract validation and correlation are separate from authorization and account/policy preflight. |
| + |
| +### RED |
| + |
| +Tests and the budget TestMain were written before implementation. Command, from the repository root: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner/provider ./internal/equipo/team -run 'TestDirect|TestHistoricalIsolation' -count=1 |
| +``` |
| + |
| +Exit 1. Output excerpts: |
| + |
| +```text |
| +internal/runner/provider/types_test.go:15:13: undefined: ValidateContract |
| +internal/runner/provider/types_test.go:26:12: undefined: Launch |
| +FAIL amadan.net/oficina/equipo/internal/runner/provider [build failed] |
| +internal/equipo/team/direct_history_test.go:15:76: unknown field LauncherVersion in struct literal of type team.IsolationTuple |
| +internal/equipo/team/direct_history_test.go:29:11: got.ValidForDirectLaunch undefined |
| +FAIL amadan.net/oficina/equipo/internal/equipo/team [build failed] |
| +``` |
| + |
| +### GREEN |
| + |
| +Repeated the exact RED command after implementation, after strengthening the fixtures and identity assertions, and after all mutations were restored. Every green run exited 0. Final output: |
| + |
| +```text |
| +ok amadan.net/oficina/equipo/internal/runner/provider 0.002s |
| +ok amadan.net/oficina/equipo/internal/equipo/team 0.004s |
| +``` |
| + |
| +Targeted compatibility command: |
| + |
| +```sh |
| +CGO_ENABLED=0 go test ./internal/runner ./internal/runner/paseo ./internal/equipo/team -run '^(TestRunnerServiceLifecycleWiring|TestRunnerServiceVersions|TestRunnerJournalCrashBoundaries|TestPaseoAdapterContract|TestTrialEvidenceAndPublication|TestEvidenceObservedIsolation)$' -count=1 |
| +``` |
| + |
| +Exit 0: |
| + |
| +```text |
| +ok amadan.net/oficina/equipo/internal/runner 0.988s |
| +ok amadan.net/oficina/equipo/internal/runner/paseo 0.004s |
| +ok amadan.net/oficina/equipo/internal/equipo/team 0.785s |
| +``` |
| + |
| +`git diff --check` exited 0. `gofmt -l` on all nine Go files returned no paths. Dependency inspection used: |
| + |
| +```sh |
| +CGO_ENABLED=0 go list -f '{{join .Imports "\n"}}' ./internal/runner/provider |
| +``` |
| + |
| +Output: `context`, `encoding/json`, `io`, `time`. No runner, runnerproto or Paseo import, and no aliases to Paseo types. |
| + |
| +### Mutations |
| + |
| +36 distinct mutations compiled, failed the named test with assertions, and passed after restoration. Each mutation was applied alone to the implementation, then restored from its exact pre-mutation contents in a finally block. The same targeted command was run for the mutation and its restoration. No compiler failure was counted as proof. The history-ineligible mutation uses `_ = v` to remain compilable. |
| + |
| +One initial mutation survived: removing the selection-provider comparison was still covered by the binding-provider comparison when only the observed session changed. Added assertions that change the selection independently of the binding. The repeated mutation then failed as required. That initial run and its restoration both exited 0; it was not counted among the 36 proved mutations. |
| + |
| +1. `version` in `internal/runner/provider/types.go`. |
| + |
| + Change: `if version != Version {` to `if false {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectContractRejectsUnknownVersion$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectContractRejectsUnknownVersion (0.00s) |
| + types_test.go:21: version -1 accepted: <nil> |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +2. `provider` in `internal/runner/provider/types.go`. |
| + |
| + Change: `if name != "claude" && name != "codex" {` to `if false {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectContractRejectsUnknownVersion$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectContractRejectsUnknownVersion (0.00s) |
| + types_test.go:26: provider "" accepted: <nil> |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +3. `session-required` in `internal/runner/provider/types.go`. |
| + |
| + Change: `s.ID == "" || (l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)` to `(l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:70: empty new session accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +4. `resume-identity` in `internal/runner/provider/types.go`. |
| + |
| + Change: `s.ID == "" || (l.ResumeSessionID != "" && s.ID != l.ResumeSessionID)` to `s.ID == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:51: changed session identity accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +5. `identity-required` in `internal/runner/provider/types.go`. |
| + |
| + Change: `pair[0] == "" || pair[0] != pair[1]` to `pair[0] != pair[1]`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:73: empty matching launch identities accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +6. `identity-match` in `internal/runner/provider/types.go`. |
| + |
| + Change: `pair[0] == "" || pair[0] != pair[1]` to `pair[0] == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:51: changed session identity accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +7. `identity-l.AttemptKey` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.AttemptKey, l.AttemptKey},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:47: missing session identity accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.001s`. |
| + |
| +8. `identity-l.Selection.Provider` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.Provider, l.Selection.Provider},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:59: changed selection Provider accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +9. `identity-l.Selection.AccountID` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.AccountID, l.Selection.AccountID},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:59: changed selection AccountID accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.001s`. |
| + |
| +10. `identity-l.Selection.Model` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.Model, l.Selection.Model},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:47: missing session identity accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +11. `identity-l.Selection.Family` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.Family, l.Selection.Family},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:47: missing session identity accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +12. `identity-l.Binding.Provider` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.Provider, l.Binding.Provider},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:66: changed binding Provider accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +13. `identity-l.Binding.AccountID` in `internal/runner/provider/types.go`. |
| + |
| + Change: `\t\t{s.AccountID, l.Binding.AccountID},\n` to `(delete this row)`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:66: changed binding AccountID accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +14. `event-e.SessionID == ""` in `internal/runner/provider/types.go`. |
| + |
| + Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:83: empty matching session identities accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +15. `event-e.SessionID != s.ID` in `internal/runner/provider/types.go`. |
| + |
| + Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.TurnID == "" || e.TurnID != t.ID`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:100: mismatched event accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +16. `event-e.TurnID == ""` in `internal/runner/provider/types.go`. |
| + |
| + Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.SessionID != s.ID || e.TurnID != t.ID`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:86: empty matching turn identities accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +17. `event-e.TurnID != t.ID` in `internal/runner/provider/types.go`. |
| + |
| + Change: `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == "" || e.TurnID != t.ID` to `e.SessionID == "" || e.SessionID != s.ID || e.TurnID == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/runner/provider -run ^TestDirectIdentitySeparatesSessionAndAttempt$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIdentitySeparatesSessionAndAttempt (0.00s) |
| + types_test.go:100: mismatched event accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/runner/provider 0.002s`. |
| + |
| +18. `history-readable` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `return v.Provider != "" && v.ProviderVersion != "" && v.PaseoVersion != "" && lowerHex(v.IsolationConfigHash, 64)` to `return false`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s) |
| + direct_history_test.go:42: history lost or rejected: {"status":"confined","runner_tainted":false,"acknowledgement_ids":null,"observed_tuples":[{"provider":"codex","provider_version":"0.165.0","paseo_version":"0.14.0","isolation_config_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}]} |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +19. `history-excludes-LauncherVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.BwrapVersion == "" && v.PolicyVersion == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s) |
| + direct_history_test.go:62: partial direct identity accepted as history: LauncherVersion |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +20. `history-excludes-BwrapVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.LauncherVersion == "" && v.PolicyVersion == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s) |
| + direct_history_test.go:62: partial direct identity accepted as history: BwrapVersion |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +21. `history-excludes-PolicyVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.LauncherVersion == "" && v.BwrapVersion == "" && v.PolicyVersion == ""` to `v.LauncherVersion == "" && v.BwrapVersion == ""`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s) |
| + direct_history_test.go:62: partial direct identity accepted as history: PolicyVersion |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +22. `snapshot-valid` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !p.valid() || p.RunnerTainted {` to `if p.RunnerTainted {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:confined RunnerTainted:false AcknowledgementIDs:[] ObservedTuples:[]} |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +23. `snapshot-untainted` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !p.valid() || p.RunnerTainted {` to `if !p.valid() {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:unconfined RunnerTainted:true AcknowledgementIDs:[ack] ObservedTuples:[{Provider:codex ProviderVersion:0.165.0 PaseoVersion: LauncherVersion:revision BwrapVersion:0.11.0 PolicyVersion:1 IsolationConfigHash:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}]} |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +24. `history-ineligible` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !v.direct() {` to `_ = v\n\t\tif false {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestHistoricalIsolationRemainsReadable$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestHistoricalIsolationRemainsReadable (0.00s) |
| + direct_history_test.go:53: historical evidence granted direct eligibility |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +25. `direct-provider` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `(v.Provider == "claude" || v.Provider == "codex") &&` to `true &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.004s`. |
| + |
| +26. `direct-ProviderVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.ProviderVersion != "" && v.PaseoVersion == "" &&` to `true && v.PaseoVersion == "" &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +27. `direct-LauncherVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.LauncherVersion != "" &&` to `true &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.010s`. |
| + |
| +28. `direct-BwrapVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.BwrapVersion != "" &&` to `true &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.013s`. |
| + |
| +29. `direct-PolicyVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.PolicyVersion != "" &&` to `true &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +30. `direct-no-paseo` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `v.PaseoVersion == "" &&` to `true &&`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:120: unsafe direct snapshot accepted: {Trial:<nil> Status:confined RunnerTainted:false AcknowledgementIDs:[] ObservedTuples:[{Provider:codex ProviderVersion:0.165.0 PaseoVersion:0.14.0 LauncherVersion:revision BwrapVersion:0.11.0 PolicyVersion:1 IsolationConfigHash:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}]} |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +31. `direct-hash` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `\t\tlowerHex(v.IsolationConfigHash, 64)\n` to `\t\ttrue\n`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:82: incomplete tuple accepted |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +32. `tuple-identity-LauncherVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n for _, candidate := range have.ObservedTuples {\n candidate.LauncherVersion = ""\n v.LauncherVersion = ""\n if candidate == v { found = true }\n }\n if !found {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:95: tuple identity change ignored |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +33. `tuple-identity-BwrapVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n for _, candidate := range have.ObservedTuples {\n candidate.BwrapVersion = ""\n v.BwrapVersion = ""\n if candidate == v { found = true }\n }\n if !found {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:95: tuple identity change ignored |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.003s`. |
| + |
| +34. `tuple-identity-PolicyVersion` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !slices.Contains(have.ObservedTuples, v) {` to `found := false\n for _, candidate := range have.ObservedTuples {\n candidate.PolicyVersion = ""\n v.PolicyVersion = ""\n if candidate == v { found = true }\n }\n if !found {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectIsolationTupleIdentity (0.00s) |
| + direct_history_test.go:95: tuple identity change ignored |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.003s`. |
| + |
| +35. `wire-version` in `internal/runnerproto/types.go`. |
| + |
| + Change: `DirectVersion = provider.Version` to `DirectVersion = provider.Version + 1`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectWireAndManifest$ -count=1`. |
| + |
| + RED exit 1; assertion excerpt: |
| + |
| + ```text |
| + --- FAIL: TestDirectWireAndManifest (0.00s) |
| + direct_history_test.go:127: direct or historical wire version changed |
| + ``` |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.003s`. |
| + |
| +36. `snapshot-tuple-validation` in `internal/equipo/team/git_evidence.go`. |
| + |
| + Change: `if !v.valid() {` to `_ = v` followed by `if false {`. |
| + |
| + Command for RED and restoration: `CGO_ENABLED=0 go test ./internal/equipo/team -run ^TestDirectIsolationTupleIdentity$ -count=1`. |
| + |
| + RED exit 1: `--- FAIL: TestDirectIsolationTupleIdentity`; assertion: `incomplete tuple accepted`. |
| + |
| + Restored exit 0: `ok amadan.net/oficina/equipo/internal/equipo/team 0.002s`. |
| + |
| +### User-facing strings |
| + |
| +No UI strings, README prose or copy.go entries were added. New internal diagnostic codes are `provider_version_unsupported`, `provider_unsupported` and `provider_identity_mismatch`. They have no new user-facing route in this task. If later surfaced, map them to individually pending copy.go entries for review. No copy-review skill, server, model prompt or helper agent was used. |
| + |
| +### Concerns and limits |
| + |
| +No unresolved Task 1 failure. Direct runtime wiring, provider adapters, namespace proof enforcement, policy/account preflight, durable capture implementation and release certification remain later tasks. The old runtime and historical readers remain in place by design. No full suite or make ci was run, as instructed; only the named targeted tests ran. No provider login, enrolment, credential home or live provider run occurred. |
| + |
| +All mutation source changes were restored. The task's scratch evidence directory is removed after saving these reports. No server or background process was left running. No push, merge or deployment was performed. |