Repository navigation
Description
Context
Two integration test files spawn the CLI as TypeScript source under tsx:
src/lib/workflow/phase-registry.integration.test.ts → node_modules/.bin/tsx bin/cli.ts
src/commands/sync-source-invocation.integration.test.ts → node_modules/.bin/tsx bin/cli.ts
Five sibling integration files already spawn the prebuilt dist/bin/cli.js (cli.integration, run-tui, doctor.integration, locks-cli, mcp/server-extended). vitest.global-setup.ts exists specifically to make that possible — it runs npm run build once so that "integration tests that shell out to node dist/bin/cli.js don't each need their own beforeAll build."
So the fast path is already built, already documented, and already used by the majority. These two files just don't use it.
Problem
Spawning tsx bin/cli.ts compiles the whole TypeScript program on every spawn. Measured on f6aa25c, same command (run 1 --phases deploy --dry-run), same machine:
| Condition | Wall time |
|---|---|
| Idle | 4.22 s |
| Under load (full suite running) | 7.5 – 17.8 s |
vitest.config.ts sets hookTimeout: 60000 and teardownTimeout: 10000 but never sets testTimeout, so every test runs on vitest's default 5000 ms. A 4.2 s idle spawn leaves ~0.8 s of headroom, and the loaded case blows it by 3×.
The result is a flaky failure whose set shifts between runs:
FAIL phase-registry.integration.test.ts > exits non-zero when given an unknown phase
FAIL phase-registry.integration.test.ts > rejects unknown phase even when mixed with valid phases
FAIL phase-registry.integration.test.ts > accepts a list of valid registered phases
FAIL sync-source-invocation.integration.test.ts > installs the core skills, not just the version marker (AC-3)
FAIL sync-source-invocation.integration.test.ts > exits non-zero naming the missing path when the templates root is absent (AC-2)
Error: Test timed out in 5000ms.
The behavior under test is correct. Run manually, the CLI emits exactly what the assertions expect:
$ NO_COLOR=1 ./node_modules/.bin/tsx bin/cli.ts run 1 --phases deploy --dry-run
error: option '--phases <list>' argument 'deploy' is invalid. Unknown phase 'deploy'.
Available: spec, security-review, exec, testgen, test, verify, qa, loop, merger
This is a mis-sized constant, not a defect in the code under test.
Confirmed not a regression
An interleaved A/B against the pre-merge base f8481ab (alternating base/HEAD to cancel load drift, since sequential runs are confounded by the machine warming up):
| pair | base f8481ab |
HEAD f6aa25c |
|---|---|---|
| 1 | 13.65 s | 13.12 s |
| 2 | 12.61 s | 14.27 s |
| 3 | 17.77 s | 10.89 s |
| 4 | 11.21 s | 6.30 s |
Base is slower in 3 of 4 pairs. The pre-existing code blows the same budget, so no recent change is implicated.
Secondary bug: an unreachable timeout
phase-registry.integration.test.ts:66-67:
// Short timeout — we only care that the *validator* doesn't reject.
timeout: 30000,That is a spawnSync child-process timeout, not a vitest test timeout. Vitest kills the test at its own 5000 ms default long before the child's 30 s can apply, so the intended headroom is unreachable — the test is protected by a number that can never take effect. Worth fixing independently of everything else, since it silently misleads the next reader.
Why not just raise the timeout
Widening a tolerance to hide non-determinism is the wrong reflex, and this repo's own convention says so. But the two files are not the same case:
phase-registryhas no reason to usetsx. It only exercises Commander's--phasesvalidation, which is identical in source and compiled form. Pointing it atdist/bin/cli.jsremoves the compile from the hot path entirely — that is eliminating the non-determinism, not tolerating it.sync-source-invocationmust keeptsx. Its header states the reason: fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822's bug "lived entirely in howimport.meta.urlresolved at runtime, which an in-process test cannot reproduce." Converting it todistwould delete the regression coverage. Here a right-sized explicit timeout is the correct fix, because the compile is the thing under test.
Proposal
- Convert
phase-registry.integration.test.tsto spawndist/bin/cli.js, matching its five siblings and the stated purpose ofvitest.global-setup.ts. - Give
sync-source-invocation.integration.test.tsan explicit per-testtestTimeoutsized from measurement (observed worst case 17.8 s ⇒ 60 s), with a comment stating thattsxis load-bearing for fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822 and why the number is what it is. - Fix the
spawnSync-vs-vitest timeout confusion atphase-registry.integration.test.ts:67. - Consider a
testTimeoutfor theintegrationproject invitest.config.tsso subprocess-spawning tests don't silently inherit the 5 s default intended for unit tests.
Acceptance Criteria
- AC-1:
phase-registry.integration.test.tsspawnsdist/bin/cli.js; notsxinvocation remains in that file, and its assertions are unchanged. - AC-2:
sync-source-invocation.integration.test.tsstill spawns viatsx(so fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822'simport.meta.urlregression stays covered) and carries an explicittestTimeoutwith a comment justifying both thetsxrequirement and the chosen value. - AC-3: No
spawnSynctimeout:option remains where a vitesttestTimeoutwas intended; where a child timeout is genuinely wanted it is paired with atestTimeoutstrictly greater than it. - AC-4: Both files pass 3 consecutive full-suite runs (
npx vitest run src/lib/workflow src/commands) with no timeout failures. - AC-5: If a
testTimeoutis added to theintegrationproject invitest.config.ts, it is justified in a comment and does not change theunitproject's default. - AC-6: If any file skips when
distis absent, that skip is not silent — a converted validation gate must not vanish when someone runs vitest without a build. (globalSetupbuilds, so this is a guard against thedescribe.skipIf(!distExists)pattern hiding a gate.)
Out of scope
Converting sync-source-invocation to dist (deletes #822 coverage). A general subprocess-test harness or shared CLI fixture — two files do not justify it. Any change to the CLI behavior these tests assert. Re-litigating fileParallelism: false, which is already correct for the integration project.
References
vitest.config.ts—hookTimeout: 60000set,testTimeoutnever set (default 5000 ms applies)vitest.global-setup.ts— builds once so integration tests can usedist/bin/cli.jssrc/lib/workflow/phase-registry.integration.test.ts:15,67—tsxBinspawn; unreachablespawnSynctimeoutsrc/commands/sync-source-invocation.integration.test.ts:10-12— whytsxis load-bearing here (fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822)- fix: MCP integration tests consistently timing out in CI #492 (closed) — MCP integration timeouts; different root cause (
afterEachrace onexitCode/signalCode) - bug(test): locks-cli.integration.test.ts:201 flake — signal-other takeover returns null status #633 (closed) —
locks-cliflake; different root cause (child killed by signal,status === null) - Surfaced while verifying the fix(chain): --chain --ready-gate resume re-executes already-gated links (COMPLETED_STATUSES misses waiting_for_human_merge/blocked) #837 / PR fix(#837): --ready-gate resume no longer re-executes already-gated issues (chain and non-chain) #839 merge; measurements above are from that verification
Activity
admarble commentedon Jul 29, 2026
Plan (
/spec)Complexity: Standard (6 ACs, 3 directories)
AC Quality Check
All six ACs are measurable and reference concrete files/lines. Two notes:
No … remains where …,If a testTimeout is added …,If any file skips …). Each is satisfiable vacuously. Perfeedback_qa_ac_literal, they are treated as obligations to check and report, not as license to skip — each gets an explicit finding below.sync-source-invocationalready carries aspawnSyncchildtimeout: 120_000(line 74). The issue proposes a 60 stestTimeout, but 60 s < 120 s would recreate the exact unreachable-timeout bug AC-3 exists to kill. The chosen values below resolve that.Scope Assessment
Non-Goals: present in the issue (Out of scope section) — converting
sync-source-invocationtodist, a shared CLI fixture, any CLI behavior change, re-litigatingfileParallelism.src/lib/workflow,src/commands, repo root)Verdict: ✅ SCOPE_OK
Measurements (this machine,
0abdc95)Re-measured before planning rather than inheriting the issue's numbers. Same command (
run 1 --phases deploy --dry-run):tsx bin/cli.ts, warm tsx cache, idletsx bin/cli.ts, cold cache, idle (issue's figure)tsx bin/cli.ts, under full-suite load (issue's figure)node dist/bin/cli.js, idleThe warm-cache number explains why this flake is intermittent rather than constant: the 5 s budget is comfortable on a warm cache and impossible on a cold one under load. Sizing is therefore driven by the 17.8 s worst case, not the idle figure.
Also confirmed:
run 999999999 --phases spec,exec,qa --dry-runshort-circuits inside--dry-runand makes no GitHub calls (0.78 s end to end). The third phase-registry test is safe to convert — it was never doing network work, which is why its 30 s child timeout was speculative in the first place.Acceptance Criteria
AC-1:
phase-registry.integration.test.tsspawnsdist/bin/cli.js; notsxremains; assertions unchanged.Verification: Integration Test
Scenario: Given the file converted → When
npx vitest run src/lib/workflow/phase-registry.integration.test.ts→ Then 3/3 pass andgrep -c tsxon the file returns 0.Assumptions: Commander's
--phasesvalidation is byte-identical in source and compiled form (confirmed — both emitUnknown phase 'deploy'with the same available-phase list).AC-2:
sync-source-invocation.integration.test.tskeepstsxand carries an explicittestTimeoutwith a justifying comment.Verification: Integration Test + manual read
Scenario: Given the file → When read → Then
tsxBinstill present, and atestTimeoutis set with a comment covering both whytsxis load-bearing (#822import.meta.url) and how the number was derived.Assumptions: none.
AC-3: No
spawnSynctimeout:remains where a vitesttestTimeoutwas intended; a genuine child timeout is paired with a strictly greatertestTimeout.Verification: Integration Test + repo-wide grep
Scenario: Given a grep for
timeout:insidespawnSyncoption objects acrosssrc/andscripts/→ When each hit is inspected → Then each is either removed or has an enclosing vitest timeout strictly greater than it.Sibling scan result (see below): the two named files are the only violations.
AC-4: Both files pass 3 consecutive
npx vitest run src/lib/workflow src/commandswith no timeout failures.Verification: Integration Test (3× repetition)
AC-5: Any
integration-projecttestTimeoutis justified in a comment and leaves theunitproject's default alone.Verification: Manual read +
unit-project runScenario: Given
vitest.config.ts→ When theunitproject block is read → Then it has notestTimeoutkey and still inherits vitest's 5000 ms.AC-6: A
dist-absent skip must not be silent.Verification: Integration Test
Scenario: Given
dist/removed → When the converted file runs → Then it fails loudly naming the missing path, rather than reporting green with skipped tests.Sibling-site Scan
The issue names two files. I scanned every test that spawns
tsxor sets aspawnSynctimeout:, because AC-3 is phrased repo-wide ("NospawnSynctimeout:option remains…") rather than scoped to the two files:src/lib/workflow/phase-registry.integration.test.tstsx30_000(line 67)src/commands/sync-source-invocation.integration.test.tstsx120_000(line 74)src/lib/workflow/state-update-cli.test.tstsx30_000(line 31)60_000(line 49)src/lib/locks/lock-manager.integration.test.tstsx20_000per teststate-update-cli.test.tsis the useful find: it already implements exactly the child-below-test pairing AC-3 asks for, which is why it has never flaked. It is the pattern to copy, not a site to change — no edit proposed. Its existence also settles the AC-2 sizing question in favour of "child timeout below test timeout" rather than "raise the test timeout above the existing 120 s child".No scope expansion proposed. The two violations are exactly the two files the issue names.
Implementation Plan
Phase 1 — Convert
phase-registryto the prebuilt CLI (AC-1, AC-3, AC-6)tsxBin+cliSourcewithconst cliPath = resolve(projectRoot, "dist/bin/cli.js"), and everyspawnSync(tsxBin, [cliSource, …])withspawnSync("node", [cliPath, …]). Assertions untouched. This mirrorssrc/commands/numeric-flags.integration.test.ts, the closest analogue in the repo — also a Commander parse-time validation test, alsodist-based, also relying onglobalSetupfor the build.timeout: 30000at line 67 rather than re-pairing it (AC-3). Its comment states the intent was headroom for the test, not a child-process kill; withdistthe whole invocation is 0.78 s, so no child timeout is genuinely wanted. AC-3's pairing clause therefore does not apply.beforeAllhard guard fromlocks-cli.integration.test.ts— throw naming the missing path and telling the reader to runnpm run build. Deliberately notdescribe.skipIf(!distExists), which is the exact silent-vanish pattern AC-6 names.Phase 2 — Right-size
sync-source-invocation(AC-2, AC-3)Keep
tsx. Reduce the child timeout120_000 → 60_000and addtestTimeout: 90_000on thedescribe.Why child below test, not above: whichever fires first determines the error message. With the child at 60 s, a hang is killed by
spawnSyncand surfaces asresult.signal === "SIGTERM"with captured stdout/stderr — diagnosable. With vitest firing first, you get the opaqueTest timed out in 5000msthat produced this issue. The 30 s/60 s pairing instate-update-cli.test.tsis the same ordering.Why these numbers: 17.8 s worst observed under load → 60 s child kill is 3.4× headroom; 90 s test ceiling sits strictly above the child so the child always wins. Both stated in the comment alongside the fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822
tsxjustification.Phase 3 — Config-level floor (AC-5)
testTimeout: 30_000to theintegrationproject only, with a comment: subprocess-spawning tests should not silently inherit a 5 s default meant for in-process unit tests. Theunitblock is not touched.sync-source-invocation's explicit 90 s overrides this floor for the one file that needs more.Phase 4 — Verify (AC-4, AC-6)
npx vitest run src/lib/workflow src/commandsthree consecutive times; all green, zero timeout failures.rm -rf distand confirm the converted file fails loudly rather than skipping. (Note thatglobalSetuprebuilds, so this needs the guard to be checked against a genuinely absentdist.)Design Review
sync-sourceneedstsx); the floor belongs invitest.config.tsbecause "subprocess tests need more than 5 s" is a property of the wholeintegrationproject, not of one file.globalSetupalready builds. No new harness, no new fixture, no new abstraction — the issue's Out-of-scope section explicitly rejects those, and two files don't justify one.numeric-flags.integration.test.tsfor thedistspawn shape;locks-cli.integration.test.tsfor the loudbeforeAllguard;state-update-cli.test.tsfor the child-below-test timeout pairing. All three are in-repo, all three predate this change.phase-registry, no tolerance is widened at all — the compile is removed from the hot path, which eliminates the variance rather than absorbing it. Forsync-source, the compile is the thing under test (fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822 lived in runtimeimport.meta.urlresolution), so the only honest options are a right-sized timeout or deleting the regression coverage. The issue rules out the latter.sync-sourcetoo and be done?" It would delete fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822's coverage. Explicitly out of scope.integrationfloor mask future flakes?" It raises the failure latency for a genuine hang from 5 s to 30 s. That is the cost of not producing false failures on a 17.8 s legitimate run; the per-file 90 s is scoped to the one file that earns it.Feature Quality Planning
All standard checks pass. Notable items:
tsxcoverage is preserved by AC-2's carve-out.No derived ACs.
Open Questions
sync-source(60 s child / 90 s test) vs. the issue's suggested flat 60 stestTimeout. — Recommendation: the 60/90 pairing above. The issue's 60 s would sit below the existing 120 s child timeout, silently recreating the unreachable-timeout bug that AC-3 was written to eliminate. Impact if wrong: none to correctness; a hang would report vitest's less informative message instead of spawnSync's.integrationfloor value of 30 s. — Recommendation: 30 s. Above every observed subprocess test, below the point where a hung test wastes real time. Impact if wrong: only the latency of a failing run.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: disabled (SCOPE_OK, focused change)
Reasoning:
bug+no-browser-testlabels, so/testis skipped by explicit opt-out.testgenis skipped — this modifies existing tests rather than adding coverage for new behavior, and stubs would be noise.Label Review
Current:
bug,no-browser-testRecommended: unchanged
Reason: correctly labeled.
no-browser-testproperly suppresses the/testphase for a test-infrastructure change.Quality Loop: won't auto-enable — scope is green.
admarble commentedon Jul 29, 2026
QA Review for Issue #842
PR: #843
AC Coverage
phase-registryspawnsdist/bin/cli.js; notsxremains; assertions unchangedgrep tsxon the file returns only 2 hits, both header prose explaining the change — no invocation.spawnSync("node", [cliPath, …])throughout. All 6 assertions byte-identical to before.sync-source-invocationkeepstsx+ explicittestTimeoutwith justifying commenttsxBinstill used.describe(…, { timeout: TEST_TIMEOUT_MS })whereTEST_TIMEOUT_MS = 90_000. Header comment covers both required justifications: whytsxis load-bearing (#822import.meta.url) and how 60 s/90 s were derived from the 17.8 s worst case.spawnSynctimeout:where a vitesttestTimeoutwas intended; genuine child timeouts paired strictly greaternpx vitest run src/lib/workflow src/commands, no timeout failuresintegrationtestTimeoutjustified in a comment;unitdefault unchangedintegrationblock.unitblock has notestTimeoutkey and still inherits vitest's 5000 ms.dist-absent skip must not be silentCoverage: 6/6 met. Derived ACs: none (no Derived ACs table in the spec plan).
AC-3 Repo-Wide Audit
AC-3 is phrased repo-wide ("No
spawnSynctimeout:option remains…"), so I audited everyexecSync/spawnSyncchild timeout rather than only the two named files. The spec's sibling scan was incomplete — it grepped fortsx-binary spawners and therefore missedexecSync-based ones. Two further live violations:src/lib/workflow/phase-registry.integration.test.ts30 sremoved--dry-runshort-circuits, sub-second, no child timeout wantedsrc/commands/sync-source-invocation.integration.test.tsscripts/qa/precheck.test.ts.integration.infix ⇒unitproject)npx tsxtwice under a 5 s budget. Fixed: own 90 s ceilingscripts/qa/tautology-detector-cli.test.tssrc/lib/workflow/state-update-cli.test.tssrc/lib/locks/lock-manager.integration.test.tsNote this PR's own
integrationfloor changedtautology-detector-cli's compliance status (5 s → 30 s made it equal to its child timeout). Caught and fixed in the same change.Quality Metrics
any)-w)describebodyBuild: pass. Lint: pass (
--max-warnings 0). Full suite: 219 files, 4575 passed, 1 expected fail, 2 skipped, 0 failures.Test Coverage Analysis
All changed files are tests or test config, so the usual "does this file have a test?" question inverts: the right question is whether each change was executed. All were.
phase-registry.integration.test.tssync-source-invocation.integration.test.tsscripts/qa/precheck.test.tsscripts/qa/tautology-detector-cli.test.tsvitest.config.tsCHANGELOG.mdCritical paths without tests: none — no
auth/payment/security/middleware/adminpaths touched.Test Quality Review
phase-registry, right-sized where the compile is load-bearingThe one judgment call worth naming: the child timeout is deliberately below the test timeout, not above. Whichever fires first decides the error message, and the child kill gives the better one (
SIGTERM+ captured stdout/stderr, vs. vitest's opaqueTest timed out in 5000msthat produced this issue).Anti-Pattern Detection
No
any, no hardcoded secrets, no SQL concatenation, no empty catch, no uncleared timers. Nopackage.jsonchange ⇒ dependency audit N/A.Execution Evidence
scripts/files were modified, so §11 applies.npx vitest run scripts/qa/precheck.test.ts scripts/qa/tautology-detector-cli.test.tsnpx vitest run …phase-registry… …sync-source-invocation…npx vitest run src/lib/workflow src/commands×3Evidence status: Complete.
Sections not applicable
Skill Command Verification, Detection Pattern Verification (§6c precondition false — no skill markdown changed), CLI Registration Verification (no option interface touched), Call-Site Review (no new exported functions), Behavior-Rule Survival (§6e — detector run on all 6 ACs, none triggered; AC-5 and AC-6 hit one keyword each, below the ≥2 threshold), Manual Test ACs (none), Browser testing (
no-browser-testlabel).CHANGELOG Verification
CHANGELOG.mdexistsfix(#842):matches the conventional-commit regex[Unreleased]entry### FixedTest-infrastructure changes are arguably not user-facing, but the repo documents comparable contributor-facing infrastructure fixes (#803, #720), so an entry matches convention.
Risk Assessment
integrationproject's 30 s floor raises failure latency — a genuinely hung integration test now takes 30 s to fail instead of 5 s. That is the deliberate cost of not producing false failures on a legitimate 17.8 s run. Theunitproject, where a slow test is a real signal, is untouched.sync-source-invocationhas never been observed firing — no run has come close to 60 s. It is sized off measurement (17.8 s worst case), not off an observed timeout, so the specific numbers are a judgment call rather than an empirical floor. The AC-6 guard, by contrast, was observed firing.scripts/qa/precheck.test.tsandscripts/qa/tautology-detector-cli.test.ts— both had the same unreachable-timeout root cause, both fixed here.state-update-cli.test.tsandlock-manager.integration.test.tswere already compliant and left alone.phase-registryhad 3 separatespawnSynccall sites with duplicated option objects — all 3 converted via one shared localrunClihelper, so none was left ontsx.sync-source-invocation's 3 tests all route through a singlerunCli, so the child-timeout change covers all of them.Adversarial Re-Read
Findings:
tsxandnode dist/bin/cli.jsand confirmed byte-identical validator output (Unknown phase 'deploy'. Available: spec, security-review, exec, testgen, test, verify, qa, loop, merger). This is the load-bearing premise of AC-1 — that source and compiled forms validate identically — and it is now evidence rather than reasoning.globalSetuprebuildsdist, so simply deletingdistproves nothing. I ran the converted file against a throwaway config withoutglobalSetupand withdistgenuinely absent: the suite failed (Error: dist/bin/cli.js not found at … Run 'npm run build' first., 1 failed / 3 skipped, non-zero exit) rather than reporting green. Adescribe.skipIfwould have reported green — that is precisely the failure mode AC-6 names.tsxspawn was 0.69 s, not the issue's 4.2 s — the difference is a warm vs. cold tsx cache. Worth recording because it explains why this flake was intermittent rather than constant, and why sizing had to come from the 17.8 s loaded worst case rather than any idle figure.sync-source-invocationwas not converted todist(would delete fix(templates): getTemplatesDir resolves one level too high under tsx — source-run sync/init prints "✔ Synced" while installing nothing #822 coverage). No shared/general subprocess harness was introduced — therunClihelper is file-local, mirroring whatnumeric-flags.integration.test.tsandlocks-cli.integration.test.tseach already do independently. No CLI behavior these tests assert was changed.fileParallelism: falseuntouched.Gap surfaced: The commits on PR #843 are unsigned.
gpg-agentcould not launchpinentryin the non-interactive session, and disabling your signing config silently was not an acceptable substitute. Every other commit onmainis signed, so this needs a human decision before merge.Status: Gaps Found
Verdict: AC_MET_BUT_NOT_A_PLUS
All 6 ACs are met with executed evidence, and the change is strictly better than the issue asked for — the repo-wide AC-3 audit caught two live violations the issue didn't name, including one (
precheck.test.tsunder a 5 s budget) that was an undiagnosed flake of exactly this class.The verdict is not
READY_FOR_MERGEfor one reason: the commits are unsigned, which deviates from this repo's signed history and is a call only you can make. Re-sign the branch and this is a merge.Next Steps
feature/842-…if you want the branch to match repo convention, then merge fix(#842): tsx-spawning integration tests blow vitest's 5s default — phase-registry now uses the prebuilt dist #843.git diff -w— ~150 of the added lines are prettier re-indent from wrapping adescribebody.fix(#842): apply AC-6 repo-wide — kill silent dist-skips, fix prechec…
admarble commentedon Jul 29, 2026
QA Review for Issue #842 — Round 2 (gap fixes)
A second adversarial pass found that the first review's own verdict was inconsistent: it applied AC-3 repo-wide but AC-6 only to the converted file. Under a consistent reading, AC-6 was PARTIALLY_MET at the time of the first review. Commit
14b0e692closes that and two adjacent gaps.Gaps fixed
1. AC-6 applied repo-wide (was: two surviving silent-skip sites).
cli.integration.test.ts:139had adescribe.skipIf(!distExists)block whose only test assertedexpect(distExists).toBe(true)— skipped in exactly the case it would have failed, i.e. a test that could not fail under any condition.run-tui.integration.test.ts:29,40silently dropped both flag-wiring assertions on an unbuilt tree. Both files now use the throwing-beforeAllguard. Verified against a genuinely absentdist(throwaway config withoutglobalSetup): both fail loudly naming the path —Test Files 2 failed, not green-with-skips.2. Precheck fixed at the cause, not the symptom.
The first-round fix gave
precheck.test.ts's CLI block a 90 s ceiling but left it in the unit project (no.integration.infix), wherefileParallelismis ON — its twonpx tsxspawns race every other unit file for CPU, the exact contentionfileParallelism: falseexists to prevent. The CLI block now lives inscripts/qa/precheck-cli.integration.test.ts(integration project by name: serialized, 30 s floor, 90 s ceiling kept strictly above the 60 s child timeout per AC-3). The 28 in-process precheck tests stay in the parallel unit project. Confirmed vianpx vitest list: the new file runs in project[1](integration).3. The convention is now enforced, not documented.
Three files had independently reached for the silent-skip pattern, so
scripts/qa/dist-skip-guard.test.tswalks every test file undersrc/andscripts/and fails naming the offender on any dist-conditionedskipIf. Comments are stripped before matching (the fixed files quote the forbidden pattern in their own explanatory comments — the guard's first run caught exactly those, which is how the stripping requirement was discovered). Mutation-verified: planting a realdescribe.skipIf(!distExists)in a scratch test file fails the guard with the planted file's path; removing it goes green.Deleted test disclosure
The
"dist/ directory exists"test is deleted — it was the tautology in gap 1. Its job (fail whendistis missing) is now done by guards that actually execute in that case.Updated AC coverage
Full suite after fixes: 221 files, 4576 passed, 1 expected fail, 2 skipped, 0 failures. Build + lint clean.
Verdict: AC_MET_BUT_NOT_A_PLUS
Sole remaining reason unchanged: the three commits on PR #843 are unsigned (gpg-agent has no pinentry in this non-interactive session). Everything code-side is now A+ by this review's own standards. Re-sign and merge.
admarble commentedon Jul 29, 2026
/fullsolve Complete
PR #843 merged as
31f8b3e4, squash-signed by GitHub's web-flow key (B5690EEEBB952194) — same provenance as every commit on main, which resolves the unsigned-branch-commits caveat from the QA reviews: main's history never contains locally-signed commits, so the squash merge itself produced the signed commit.sequant doctorpasses, worktree + local/remote branches cleaned upfix: close three pre-2.10.0 gaps found by release verification (#851)
fix(#880): give the Ink render tests a local timeout above the unit p…
fix(#883): spawn the flag-surface tests in a manifest-less temp dir (#…
fix(#922): close the gaps flagged in Phase A review
feat(#922): Phase A — citation grounding checker and measured verdict…
feat(#938): explicit Evidence: clause on ACs — declared verification …
fix(#880): give the Ink render tests a local timeout above the unit p…
fix(#883): spawn the flag-surface tests in a manifest-less temp dir