fix(test-kit): reject companion exit gates and tolerate deleted sources
Merged
TH
5d ago+44+44+01234567890123456789-8-8-0123456789
Summary
Follow up on the two late review findings in merged #4432. Three files; daemon-fixture test infrastructure only.
- Companion launches reject
exitGate, including gates carried by pre-bound values. Only the returned top-level launch exposes an exit handle to gate. - The repository guard reads NUL-delimited Git paths and skips missing working-tree files before reading them. Untracked fixture consumers remain checked.
Validation
Head: 8e5db839694a17f7d11d6b558fb4b2610f3940b7, based on main 59c52465.
- Fresh frozen install/build; exact-head affected gate passed, receipt
run-OHiTdY, clean unchanged checkout: eight runnable checks passed, seven CI-owned skips, no failed/unrun checks. - Full unit: 19,480 Vitest passed/three skipped; Node: 76 passed/six skipped. Hosted CI passes; Apex Sentinel review remains pending.
- The companion type regression fails on the old type and passes with the fix. Runtime coverage preserves the top-level gate and joins both children. Before rebase, 39 focused tests passed; range-diff preserves both patches unchanged.
- Unstaged deletion: old guard fails ENOENT, corrected guard passes. An invalid untracked consumer still fails the intended contract. Probes restored before validation.
- Earlier pre-rebase gate failed a release-publish timeout; that receipt remains failed. Bounded phase comparisons passed without explaining it; diagnosis stays open in #4471. No timeouts or assertions weakened.
- Cold self-review; Cubic reports no issues across the three changed files. No device-facing behavior change.
Authored with Codex.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.