| 1 | # Controller report: try-equipo re-check fixes |
| 2 | |
| 3 | Brief: CODEX-BRIEF-try-equipo-4.md. Work continues on try-equipo from |
| 4 | `d754720`, which adds the brief after `a7a507c`. |
| 5 | |
| 6 | ## Changes |
| 7 | |
| 8 | R1: Codex and its sibling code-mode host may be sourced from the packages |
| 9 | subdirectory of the system Codex home or CODEX_HOME. Both the submitted and |
| 10 | resolved source paths are checked. The exception preserves other interactive |
| 11 | home restrictions and the ZeroSub restriction, including overlapping homes. |
| 12 | Other tools do not receive the exception. The bytes must match their pin before |
| 13 | a private independent copy is written. Copy destinations receive the original |
| 14 | home restrictions without the packages exception. EQUIPO_CODEX_PATH still |
| 15 | selects the source, and the host still comes from beside the resolved Codex. |
| 16 | |
| 17 | R2: docs/live-gate.md now says that the guide disables the Go test timeout with |
| 18 | `-timeout=0`; the live driver enforces the calibration duration. |
| 19 | |
| 20 | R3: Each new runtime marker and the matching guided-setup inventory rows use |
| 21 | Paul's exact 2026-11-04 acceptance marker. The guide carries the equivalent |
| 22 | document marker. Runtime string values are unchanged. Historical reports and |
| 23 | older inventory rows retain their original status. No existing reference hash |
| 24 | changed; three exact allowances were added for the new ZeroSub test fixtures. |
| 25 | The separate release copy check still rejects older pending Plan 3 inventory |
| 26 | rows, as it did at the starting revision. That check is outside this brief's |
| 27 | full CI gate; this work does not certify a release. |
| 28 | |
| 29 | ## Verification |
| 30 | |
| 31 | All commands use CGO_ENABLED=0 and the default Go caches. New fixtures use |
| 32 | `t.TempDir()` and do not read or require TMPDIR. |
| 33 | |
| 34 | - Before implementation: `go test ./internal/tryequipo -run '^TestReviewPrivateExecutables$' -count=1` |
| 35 | exited 1. Matching packages, outside symlinks, and configured sibling discovery |
| 36 | were refused by the original implementation. |
| 37 | - After implementation: `go test ./internal/tryequipo -run '^TestReview(PrivateExecutables|CodexSiblingHost)$' -count=1` |
| 38 | exited 0. |
| 39 | - `go test ./internal/tryequipo -count=1` initially exited 0 in 4.319s. |
| 40 | A later run exited 1 in TestUpgradeOriginalThreeHomes with |
| 41 | provider_account_busy. The isolated rerun below passed; no unrelated login |
| 42 | behavior was changed. |
| 43 | - `go test ./internal/tryequipo -run '^Test(UpgradeOriginalThreeHomes|ReviewPrivateExecutables|ReviewCodexSiblingHost)$' -count=1` |
| 44 | exited 0 in 1.610s, including the final default-home coverage. |
| 45 | - `python3 scripts/runner-dead-references.py` exited 0 after the new test |
| 46 | references were inventoried. |
| 47 | |
| 48 | Each mutation below ran through a Go overlay, leaving the working source |
| 49 | unchanged. The command for each row was: |
| 50 | |
| 51 | ```sh |
| 52 | CGO_ENABLED=0 go test -overlay=<scratch>/<mutation>.json ./internal/tryequipo -run '^TestReviewPrivateExecutables$/packages/<case>' -count=1 |
| 53 | ``` |
| 54 | |
| 55 | | Mutation | Case | Observed result | |
| 56 | | --- | --- | --- | |
| 57 | | deny-packages | matching | Exit 1: matching package source refused | |
| 58 | | allow-other-home | non-packages | Exit 1: forbidden executable copied | |
| 59 | | skip-hash | wrong-hash | Exit 1: wrong hash copied | |
| 60 | | allow-destination | destination | Exit 1: all four protected destinations accepted | |
| 61 | | skip-real-path | symlink-escape | Exit 1: package symlink escaped to config | |
| 62 | | skip-lexical-path | symlink-from-config | Exit 1: config alias accepted | |
| 63 | | allow-unpinned-tool | unpinned-tool | Exit 1: unhashed tool accepted from packages | |
| 64 | | allow-prefix | packages-prefix | Exit 1: sibling directory mistaken for packages | |
| 65 | |
| 66 | The first isolated symlink mutation runs exposed shared fixture setup between |
| 67 | subtests. Each symlink case now creates its own target and parent directory. |
| 68 | Both isolated cases passed without mutation, then failed at their intended |
| 69 | security assertions with the relevant guard removed. |
| 70 | |
| 71 | ## Corrections required by the first full gate |
| 72 | |
| 73 | The first `make -k ci` completed with exit 2. Gitleaks reported two historical |
| 74 | occurrences of the same unsigned expired-token fixture in `a7a507c`. Its exact |
| 75 | value is now allowed in .gitleaks.toml; no rule, file, or directory is exempted. |
| 76 | The isolated scan then exited 0 with no findings. |
| 77 | |
| 78 | The full test step ran 25 packages uncached in 5m1.535s and failed two packages: |
| 79 | |
| 80 | - TestPlan3ReleaseBoundaries/inventory still required every entry to be pending. |
| 81 | It now also accepts Paul's exact dated marker for the guided-setup rows. |
| 82 | Other rows keep the previous requirement. The isolated inventory test passed. |
| 83 | - TestAccountResumeAndMismatch failed with provider_account_busy. A duplicate |
| 84 | descriptor can retain a flock after its owner's descriptor closes, including |
| 85 | the interval between a concurrent fork and exec. Deterministic regressions |
| 86 | reproduced this for both AccountLease.Close and the guide's home-lock cleanup. |
| 87 | Both now explicitly unlock before closing. The existing concurrent-lease |
| 88 | refusal remains tested. A run with only the lease correction still failed |
| 89 | during an unconfirmed-account retry; after both corrections, |
| 90 | `go test ./internal/tryequipo -count=3` passed in 12.366s. |
| 91 | |
| 92 | Build, vet, formatting, static analysis, vulnerability checks, size budgets, |
| 93 | adapter checks, namespace checks, migrations and performance passed in the |
| 94 | first full run. No reachable vulnerability was found. Cold boot measured |
| 95 | 104ms against 500ms; all screen measurements passed. |
| 96 | |
| 97 | Additional commands, with CGO_ENABLED=0: |
| 98 | |
| 99 | | Command | Before fix | After fix | |
| 100 | | --- | --- | --- | |
| 101 | | `go test ./internal/runner/provider -run '^TestAccountHomeMutation$/lock_release_with_inherited_descriptor$' -count=1` | Exit 1, account busy | Included in passing lock checks below | |
| 102 | | `go test ./internal/runner/provider -run '^TestAccountHomeMutation$/lock' -count=1` | Not run | Exit 0 | |
| 103 | | `go test ./internal/tryequipo -run '^TestHomeLockReleaseWithInheritedDescriptor$' -count=1` | Exit 1, lock retained | Included in the three passing package runs | |
| 104 | | `go test ./internal/plan3test -run '^TestPlan3ReleaseBoundaries$/inventory$' -count=1` | Failed in full gate | Exit 0 | |
| 105 | |
| 106 | The lease-unlock and guide-unlock overlays remove each explicit unlock. Running |
| 107 | its regression command above with `-overlay=<scratch>/<name>.json` exited 1 at |
| 108 | the intended lock assertion in both cases. Working source was unchanged. All |
| 109 | ten deliberate mutations were caught. |
| 110 | |
| 111 | ## Final gate |
| 112 | |
| 113 | R4: Run `make -k ci` after freezing all tracked changes, including this report. |
| 114 | The final exit status and any retry are recorded in the commit body and the |
| 115 | three-line handoff, so recording the outcome does not change the tested tree. |
| 116 | No live gate, real sign-in, deployment, or copy-review server is authorized or |
| 117 | started. Session scratch and mutation overlays are removed before handoff. |
| 118 | |