Repository navigation
Description
Summary
The --qa-gate flag for sequant run is functionally dead code as of v2.9.0. It is
defined, plumbed, and validated, but the code path it feeds can never change runtime behavior.
Its help text promises gating behavior it does not deliver, which is misleading.
Surfaced by the July 2026 build-vs-adopt / boring-tech audit; PR #759 already removed it from
/assess chain suggestions but deliberately left the flag itself in place pending this decision.
Evidence (verified against main @ v2.9.0)
The chain loop in src/lib/workflow/run-orchestrator.ts breaks on any failed link,
unconditionally, right after the qaGate branch:
if (!result.success) {
if (options.qaGate && options.chain) { // 1346
const qaFailed = result.phaseResults.some(
(p) => p.phase === "qa" && !p.success,
);
if (qaFailed) break; // 1350 (can only reach the same break below)
}
break; // 1352 UNCONDITIONAL — negates the branch above
}Because line 1352 breaks regardless, the entire qaGate conditional (1346–1350) is inert: with
or without --qa-gate, and whether the failure was QA or not, the chain halts on the first
non-success link.
Supporting facts:
- Flag defined:
bin/cli.ts:299— help text: "Wait for QA pass before starting next issue in chain (requires --chain)". - Plumbing:
src/lib/workflow/types.ts:335,run-orchestrator.ts:652,1346,1548,commands/run-display.ts:85; validation (errors without--chain) atcommands/run.ts:81. - The
waiting_for_qa_gateIssueStatus exists instate-schema.ts:54and is read bycommands/status.ts,reconcile.ts, andstate-cleanup.ts, but is never written by any runtime path (nostatus: "waiting_for_qa_gate"assignment anywhere insrc/outside tests).
Decision to make
Pick one during spec:
- Remove the flag (with deprecation). Keep it parsing so existing scripts don't hard-error;
emit a one-line deprecation notice; delete the dead1346–1350branch and the misleading help
text. Lowest surface, matches the boring-tech "reduce dead surface" goal. - Make it actually gate. Change the loop so
--qa-gatemeans halt only on a QA failure and
continue past non-QA failures (the behavior the help text implies). Higher risk; only worth it
if there's a real use case for continuing a chain past a non-QA failure.
Default lean: option 1 (remove-with-deprecation) unless a concrete need for gate-only-on-QA
surfaces — nobody is known to rely on "continue past non-QA failures".
Constraints
- Keep the
waiting_for_qa_gatestatus enum regardless of choice — it is read by
status.ts/reconcile.ts/state-cleanup.tsfor backward-compat with legacy state files (see fix(run): pre-flight guard misses waiting_for_qa_gate issues already merged on GitHub (sibling of #592) #606).
Removing it would break reconciliation of old.sequant/state.jsonfiles. - CLI flag changes are user-facing: a hard-removal without a deprecation window is a breaking
change — prefer deprecate-then-remove.
Acceptance Criteria
- AC-1 Decision recorded (remove-with-deprecation vs make-it-actually-gate) with rationale.
- AC-2 If removing:
--qa-gatestill parses (no hard error for existing scripts) but prints a deprecation notice; the dead1346–1350branch and the misleading help text are gone. - AC-3 If making it gate: the loop halts on a QA-phase failure but continues past a non-QA failure when
--qa-gateis set; help text matches actual behavior; a regression test pins the branch/continue behavior. - AC-4
waiting_for_qa_gatestatus enum retained;status.ts/reconcile.ts/state-cleanup.tsstill handle it (legacy-state compat). - AC-5 CHANGELOG
[Unreleased]entry describing the change.
References
- Boring-tech audit follow-up (PR chore: boring-tech audit easy wins — drop dead dep, use builtin, dedupe #791 was the easy-wins batch; this is the deferred CLI-surface item).
- PR chore(assess): drop dead --qa-gate from chain suggestions; date the 17% annotation #759 removed
--qa-gatefrom/assesschain suggestions and dated the 17% chain annotation as pre-fix. docs/reference/chain-mode-analysis-2026-05.md— chain-mode forensics context.
Activity
admarble commentedon Jul 25, 2026
Plan (/spec) — #795
Complexity: Standard (5 ACs, 4 directories)
AC Quality Check
extractAcceptanceCriteriareturns 0 items for this body. The four parser patterns insrc/lib/ac-parser.ts:47-53all require a colon bound to the ID (**AC-1:**orAC-1:); this issue writes- [ ] **AC-1** Decision recorded…— bold, no colon. Consequence: no AC rows land in.sequant/state.json, so downstream/qaAC tracking is blind for this issue.Not in scope here — tracked as an open question below. AC tracking for this run is done inline.
Content lint (manual): AC-1/AC-4/AC-5 are measurable. AC-2 and AC-3 are mutually exclusive branches gated on AC-1's decision — only one can ever be satisfied. Effective AC count is 4.
Scope Assessment
Non-Goals:⚠️ No explicit Non-Goals section. The Constraints section serves the same purpose (keep the
waiting_for_qa_gateenum; no hard-removal without a deprecation window) and is treated as binding.bin/,src/,__tests__/,docs/)Verdict: ✅ SCOPE_OK
In-flight conflict check: only worktree is
main,origin/mainis 0 commits ahead. No overlap risk.AC-1 — Decision: Option 1, remove-with-deprecation
Verification: Manual Test (decision + rationale recorded in this comment, the CHANGELOG entry, and the PR body)
Rationale — three independent reasons, the second being decisive:
Option 2 delivers nothing new. Its promise ("wait for QA pass before starting the next issue") is already what plain
--chaindoes, and more strictly: the unconditionalbreakatrun-orchestrator.ts:1352halts on any failure, QA included. There is no user-visible behavior--qa-gatecould add on the halt side.Option 2's actual semantics are unsafe in chain mode specifically. The only behavioral delta Option 2 can offer is the continue side — "continue past a non-QA failure." But
--chainrebases each successor onto the predecessor's committed work. If a predecessor fails atexec, there is no committed work; if it fails at PR creation, the base is half-formed. Continuing the chain past such a failure means every successor builds on a broken or absent base — the precise failure mode chain mode exists to prevent. Option 2 asks the flag to violate its own mode's core invariant.There is nothing half-built to finish.
waiting_for_qa_gateis read in four places but written by zero runtime paths — it was never a partially-wired feature, so "make it actually gate" is net-new work, not completion.Rejected alternative (hard removal, no deprecation):
--qa-gateis user-facing surface shipped since #133; a hard removal turns any existing script into a commander parse error. Deprecate-then-remove per the issue's own constraint.AC-2 — Remove with deprecation
Verification: Unit Test (chain-break behavior) + Integration Test (flag still parses, run not aborted)
Scenario: Given a script invoking
sequant run 1 2 3 --chain --qa-gate→ When run → Then the flag parses, one deprecation line prints, and the chain behaves exactly as--chainalone.Assumptions: No consumer depends on the current
--qa-gate requires --chainhard error (grep confirms no test asserts that string).Four edits:
run-orchestrator.ts:1345-1352qaGatebranch; keep the unconditionalbreakwith a comment stating chain halts on any failed linkbin/cli.ts:299-301run.ts:81-84❌ --qa-gate requires --chainearly-return with a non-fatal yellow deprecation notice; the run proceedsrun-display.ts:84-87QA gate: enabled (chain waits for QA pass)config line — same misleading claim in a second placeNote the
run.tschange is the load-bearing part of "no hard error for existing scripts": today--qa-gatewithout--chainaborts the run outright.AC-3 — Not applicable
Option 2 not selected. AC-3 will be marked N/A with AC-1's rationale as the justification.
AC-4 — Retain
waiting_for_qa_gateVerification: Unit Test (existing
state-cleanup.test.ts/reconcile.test.tssuites pass unchanged)Scenario: Given a legacy
.sequant/state.jsonwithstatus: "waiting_for_qa_gate"→ WhenreconcileStateAtStartupruns against a merged PR → Then the entry escalates tomerged(the #606 path).Assumptions: Zero edits to
state-schema.ts:54,status.ts,reconcile.ts,state-cleanup.ts— verified by diff.Also retained deliberately:
qaGateonRunOptions(types.ts:335),RunConfig(run-log-schema.ts:234), and thecliFlagspush atrun-orchestrator.ts:1548. Keeping the flag in run logs and metrics gives us usage telemetry to decide when hard removal is safe — deleting it now would blind that decision.AC-5 — CHANGELOG
Verification: Manual Test (
[Unreleased]section contains the entry)Implementation Plan
Phase 1 — Runtime
run-orchestrator.ts; comment the unconditional break.bin/cli.tshelp text → deprecated.run.ts: fatal validation → non-fatal deprecation notice.run-display.ts: remove the misleading config line.Phase 2 — Tests
5. Rewrite
__tests__/run-orchestrator.test.ts:309— it is now tautological (it asserts a chain halt on QA failure, which the unconditional break produces with or without the flag, so it passes even against the bug). Replace with three assertions that actually discriminate: chain halts on a non-QA failure with--qa-gateset; identical halt without it; and--qa-gateabsent--chainno longer aborts the run.6. Confirm
state-cleanup/reconcilesuites are untouched and green (AC-4).Phase 3 — Docs + CHANGELOG
7.
docs/reference/run-command.md— the flag row (:55) plus the ~75-line "QA Gate Mode" section (:380-455). That section documents a pause output block that is never printed and awaiting_for_qa_gatestatus that is never written; it is the largest single piece of misleading surface in the repo and is replaced by a short deprecation note.8.
docs/reference/cheat-sheet.md:126,187anddocs/guides/git-workflows.md:169-174— same treatment.9.
docs/reference/chain-mode-analysis-2026-05.md:103— left as-is with a dated note; it is a forensics record quoting a May 2026 state, and #759 already changed the live/assesssuggestion it quotes. Rewriting history in a forensics doc would be wrong.10. CHANGELOG
[Unreleased]entry.Design Review
run.tsalongside the other constraint validations, since that is already the single placeRunOptionscombinations are vetted.console.logmatches how every otherrun.tsvalidation reports.solve-comment-parser.tsand the/solve→/assessalias: the old surface keeps working, says so loudly, and is removed on a later major.requires --chainvalidation — isn't that a silent behavior change?" It is a deliberate one: gating a no-op on another flag is theater, and keeping the abort would violate AC-2's "no hard error for existing scripts." The deprecation line replaces it and is strictly more informative. Second likely challenge: "why keepqaGatein the metricscliFlags?" — answered under AC-4 (telemetry drives the hard-removal date).Feature Quality Planning
All standard checks pass. Notable items:
run-orchestrator.test.ts:309passes against the buggy code and the fixed code — it never had power to catch this. Replacing it with a discriminating test is part of the fix, not cleanup.--qa-gate; it must not hard-fail. Covered by the AC-2 integration assertion.No derived ACs.
Open Questions
**AC-1**(bold, no colon) — this issue's five ACs parse as zero. Recommendation: file a follow-up to widen the patterns atac-parser.ts:47-53; do not widen it inside this PR (unrelated surface, and a parser change deserves its own regression corpus). Impact if ignored: any issue written in this style silently gets no AC tracking in state.--qa-gatevisible in--help, or hide it? Recommendation: visible, labeled deprecated. A deprecation window's purpose is to be discovered by people reading help output; hiding it converts a soft removal into a silent one. Impact if wrong: minor help-text noise for one release cycle.cliFlagstelemetry retained under AC-4. Not decided in this PR.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: disabled (SCOPE_OK, single-feature removal)
Reasoning: No
ui/frontend/adminlabels and no UI surface → no/test.testgenskipped despite Unit/Integration verification methods: this is achorethat modifies an existing test file, with no new module to stub — the testgen table's "bug fix / no new code stubs" row applies.Label Review
Current: none
Recommended:
chore,no-browser-testReason: CLI-surface cleanup with zero UI;
no-browser-testmakes the/testskip explicit rather than incidental.Quality Loop: Won't auto-enable — scope is green.
admarble commentedon Jul 25, 2026
QA Review for Issue #795
PR: #807 · Commit:
78364f2· Reviewed inline (388-line diff, under the 600-line threshold where checker sub-agents become unreliable on worktree code).AC Coverage
waiting_for_qa_gateenum retained; three consumers still handle itstate-schema.ts,status.ts,reconcile.ts,state-cleanup.tsare absent from the diff (git diff --name-onlyconfirms zero edits). Enum occurrences intact: state-schema 1, status 5, reconcile 1, state-cleanup 6.state-cleanup/reconcile/statussuites pass untouched.[Unreleased]entry### Deprecatedsection with(#795).Coverage: 4/4 applicable AC met (AC-3 N/A by design). No derived ACs.
AC-2 literal verification
The AC has four independent clauses; each was checked against code, not intent:
bin/cli.ts:299still registers--qa-gate; integration test drivesrun 1 --qa-gate --dry-runand--qa-gate --chain— both exit 0run-flags.ts:deprecatedFlagNotices→warnDeprecatedFlags, called atrun.ts:32; asserted at unit and CLI levelgrep qaFailed src/lib/workflow/run-orchestrator.ts→ no match; the block is now a singleif (!result.success) break;run --helpno longer matches/Wait for QA pass/, now matches/DEPRECATED/— asserted incli.integration.test.tsA fifth site the AC did not name but which carried the same false claim —
run-display.ts'sQA gate: enabled (chain waits for QA pass)header line — was also removed.Precheck Findings
run-orchestrator.tsblock quoted in the issue)missingInPR: []Source:
.sequant/gap-precheck.json(schemaVersion 1)Fixture verification: the issue's motivating example is the defective code block. The AC-claimed post-fix result is that it no longer exists — confirmed by grep. Note this fixture is a bug reproduction, so "it matches nothing" is the passing condition, the inverse of the usual fixture check.
CI Status
typecheckbuild (22.x)node-floor-guardvalidate-skillsvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed. No CI-related ACs. (Markdown-only relaxation not applicable — the diff touches TypeScript; CI was waited out rather than relaxed.)
Quality Metrics
anyadded)package.jsonchangedLocal:
npm run build✅ ·npm run lint✅ (--max-warnings 0) ·lint:skill-sync✅ 42/42 ·lint:skill-calls✅ · full suite 200 files, 4,268 tests, 0 failures.Test Coverage Analysis
src/lib/workflow/run-orchestrator.ts__tests__/run-orchestrator.test.ts(new 4-case matrix)src/commands/run-flags.tssrc/commands/run-flags.test.ts(4 new cases)src/commands/run.tssrc/commands/cli.integration.test.ts(end-to-end)bin/cli.tssrc/commands/cli.integration.test.ts(run --help)src/commands/run-display.tssrc/commands/run-display.test.tsCoverage: 5/5 changed source files have corresponding tests. Critical paths without tests: none.
Test Quality Review
Notable — the replaced test was a false negative, not merely stale.
should stop chain if QA fails with qaGate enabledasserted only the QA-failure-with---qa-gatecase, which the unconditionalbreaksatisfies with or without the gate. It passed against the defective code and against the fix, so it never had power to detect the bug. Replacing it is part of the fix, not cleanup.Similarly,
phase-executor.test.ts's #749 case re-created the chain-break predicate inline ([qaResult].some(p => p.phase === "qa" && !p.success)) and asserted on that local expression. Once #795 deleted that predicate from production, the assertion corresponded to nothing. Rewritten to assert the phase result that actually drives the chain (success === true) — a real call intomapAgentSuccessToPhaseResult.Verified empirically, not assumed: the new CLI integration tests were observed failing before the fix landed (the first attempt printed
❌ Sequant is not initializedbecause the notice sat behind the manifest guard) and passing after it was moved. This is a genuine fail-before/pass-after, not a post-hoc rationalization.Anti-Pattern Detection
Dependency Audit: N/A — no
package.jsonchange.Code Patterns: no findings. No
any, no empty catch, no secrets, no SQL concatenation, no uncleared timers, noawaitin a loop.One deliberate cleanup worth flagging as reviewed and reverted:
npm installin the worktree rewrotepackage-lock.jsonto droplibcfields from optional platform deps (an npm-version artifact). That churn was reverted out of the PR — the lockfile is unmodified.Call-Site Review
New exported functions: 2
warnDeprecatedFlags()src/commands/run.ts:32deprecatedFlagNotices()run-flags.ts:warnDeprecatedFlags+ 4 unit testsEntry-point completeness check (the real risk here): if any code path reaches a run without going through
runCommand,--qa-gatewould silently skip its notice. Traced:bin/cli.ts:362is.action(runCommand)— the sole entry — andgrep qaGate src/mcp/returns nothing, so the MCPsequant_runsurface never accepts the flag. The notice covers 100% of the flag's reachable surface.CLI Registration Verification
qaGaterun-flags.ts(notice),run-orchestrator.ts:652(run log),:1545(metricscliFlags)--qa-gateinbin/cli.ts:299Verification Status: Passed. No fields added or removed from
RunOptions;qaGateis deliberately retained on the interface so residual usage keeps flowing into run logs and metrics, which is what will tell us when hard removal is safe.Execution Evidence
node dist/bin/cli.js run --helpDEPRECATED (#795); no "Wait for QA pass"node dist/bin/cli.js run 1 --qa-gate --dry-runnode dist/bin/cli.js run 1 --qa-gate --chain --dry-runnpm run buildnpm run lintEvidence status: Complete. All three CLI invocations are pinned as automated tests rather than one-off manual runs.
Smoke Test
run 1 --qa-gate --chain --dry-runrun 1 --qa-gate --dry-run(no--chain)run --helpSmoke Test Status: Complete.
Skill Command Verification
N/A — no
.claude/skills/**/*.mdfiles changed. (§6c Detection Pattern Verification precondition is false — no skill markdown with regex/grep/awk/jq/sed in the diff hunks — so that section is omitted rather than recited.)Behavior-Rule Survival Check
Status: N/A — no AC meets the ≥2-keyword behavior-rule heuristic (AC-3 has one occurrence of
behavior; no other AC matches).Quality Plan Verification
Derived ACs: none. Quality Plan Status: Complete.
CHANGELOG Verification
CHANGELOG.mdexistschore(#795), outside thefeat|fix|perf|refactor|docsdetection set — so the gate is not triggered[Unreleased]entry### Deprecated, includes(#795)Result: Requirements met. Worth noting the gate would have skipped silently here — AC-5, not the automated check, is what forced the entry.
Risk Assessment
--qa-gatewithout--chainnow proceeds into a real run where it previously aborted at the validation gate. If someone had (accidentally) been relying on that abort as a guard — e.g. a script that passes--qa-gateexpecting a no-op exit — it would now execute a full workflow. This is the intended behavior per AC-2's "no hard error", and no test or doc ever described the abort as a feature, but it is the one behavioral change that goes beyond "the flag does nothing."--quiet/-sis not asserted either way (see the divergence noted below). Nothing exercises--qa-gatethrough an actual multi-issue chain end-to-end — the chain behavior is covered at the orchestrator unit level with a mockedrunIssue, not by a real three-issue run.RunOptionsfield for the same "declared but unconsumed" defect class.testgenandsmartTestsare genuinely consumed.experimentalTuiis a deliberate no-op — but note it is registered via.addOption(new Option(...).hideHelp()), i.e. the repo's existing precedent hides deprecated flags from help, which this PR diverges from (see below).reuseWorktrees(types.ts:319) is a real sibling: it carries a doc comment promising behavior ("Reuse existing worktrees instead of creating new ones"), has no CLI flag, and has zero consumers anywhere insrc/,bin/, orscripts/. Milder than--qa-gate(no user-facing false promise, since no flag exposes it) and deliberately not fixed here — see follow-ups.run-orchestrator.tswas re-read for other conditionals that re-test a predicate immediately before an unconditional exit. The only other early exit is the chain-link provisioning guard at ~:1300 (abortReason: chain link could not be established), which breaks on a genuinely distinct condition and has no redundant inner branch. No further inert branches in this function.Adversarial Re-Read
Findings — four surfaced, none blocking:
--quietdivergence (design decision, flagged for review).warnDeprecatedFlagsis called before theif (!options.quiet)block, so the notice prints even under-s/--quiet. The file's existing precedent gates the version warning on!options.quiet, so this is inconsistent with the surrounding convention. It was done deliberately: CI scripts — the population most likely to still pass--qa-gate— are also the population most likely to use--quiet, and suppressing the notice there would defeat the deprecation window's whole purpose. Reviewer may overrule; the trade-off is one extra line in quiet CI output.hideHelp()precedent divergence (design decision, flagged for review).--experimental-tui, this repo's only other deprecated-to-no-op flag, is hidden from--help. This PR keeps--qa-gatevisible and labelled DEPRECATED. Rationale:--qa-gatewas documented across four user-facing docs and shipped since Chain mode: Add QA gate option to prevent stale downstream issues #133, so users need to find the deprecation notice;--experimental-tuiwas always an unadvertised experimental alias. Defensible, but it is a conscious break from local precedent and the reviewer should know it was a choice rather than an oversight.Scope expansion forced by an unrelated guard (disclosed). The notice could not live inline in
run.ts: that file has a hard ≤200-LOC "thin adapter" guard (__tests__/integration/run-orchestrator.integration.test.ts, arch: extract RunOrchestrator — decouple execution engine from CLI wiring #503 AC-2) with only 2 lines of headroom, and the first attempt pushed it to 208 and failed that test. This is whyrun-flags.tsgained two functions. Reported here because it is real added surface that AC-2 did not ask for; the alternative was raising a guard that exists for a reason.Non-Goals check. The issue's Constraints section functions as its Non-Goals: (a) keep the
waiting_for_qa_gateenum — honored, zero edits to its four consumers; (b) prefer deprecate-then-remove over hard removal — honored. Neither has silently expanded.Evidence-claim audit: the one claim that could have been a bug-repro-dressed-as-validation — "the new integration tests prove the fix" — was checked: those tests were observed red before and green after, and the change that flipped them is identified (moving the notice ahead of the manifest guard).
Status: Gaps Found
Verdict: AC_MET_BUT_NOT_A_PLUS
Every applicable acceptance criterion is met and verified literally, all five CI checks pass, the full local suite is green (4,268 tests), and the change is well-tested — including replacing a test that had no power to detect the defect it claimed to cover.
Short of A+ for one reason: the PR contains two deliberate divergences from local precedent (printing under
--quiet; keeping the flag visible in--helpwhere--experimental-tuiis hidden) that are judgment calls a reviewer may want to overrule, plus added surface inrun-flags.tsthat AC-2 did not request, forced by therun.tsLOC guard. None is a defect; all three deserve a human's eye before merge rather than an automatic pass.Per project policy this verdict breaks to PR — do not run
/loopon it.Documentation
docs/reference/run-command.mdupdated (flag table + the ~75-line "QA Gate Mode" section replaced with a migration note)docs/reference/cheat-sheet.md,docs/guides/git-workflows.mdupdateddocs/reference/chain-mode-analysis-2026-05.mdannotated as superseded (left intact — it is a dated forensics record)[Unreleased]entry added--qa-gateNext Steps
--quietbehavior,--helpvisibility). Both are one-line changes if you want them the other way.reuseWorktrees(types.ts:319) is declared with a behavior-promising doc comment and has zero consumers. Same dead-surface class as--qa-gate, milder because no CLI flag exposes it. Would fit the boring-tech audit's remaining backlog.src/lib/ac-parser.ts:47-53requires a colon bound to the AC id (**AC-1:**orAC-1:). This issue writes- [ ] **AC-1** …, soextractAcceptanceCriteriareturned 0 items and no AC rows reached.sequant/state.jsonfor this run. Any issue authored in that style silently loses AC tracking. Deliberately not widened here — a parser change needs its own regression corpus.fix(#795): route the deprecation notice to stderr and pin it under --…
admarble commentedon Jul 25, 2026
QA Re-Review for Issue #795 — gaps addressed
PR: #807 · Commit:
1d314ef· Previous verdictAC_MET_BUT_NOT_A_PLUS(78364f2).All four gaps from the prior review are resolved. Resolving gap 1 surfaced a real defect underneath it.
Gap resolutions
--quiet, diverging from the version warningconsole.log. Deprecation warnings belong on stderr (node/python/gcc convention, and already this repo's own atabort.ts:117). Nowconsole.error, which also keeps a consuming script's piped stdout clean, dissolving the original objection.--qa-gatevisible in--helpwhile--experimental-tuiuseshideHelp()hideHelpis for never-advertised flags.--qa-gateshipped in #133 and is documented in four places;--experimental-tuinever was. Added a comment atbin/cli.ts:298so this doesn't get "fixed" later.run-flags.tssurface AC-2 didn't requestrun.tsis 199/200.reuseWorktrees,ac-parserac-parserwas independently fixed and merged as #808/PR #809 while this PR was open.reuseWorktreesfiled as #810.The defect found under gap 1
warnDeprecatedFlagswrote to stdout. Any script doingsequant run … | …would have received the deprecation line in its data stream. Now on stderr, with both choices documented in the function's JSDoc so neither reads as an oversight.Fail-before/pass-after verified: temporarily reverting
console.error→console.logfails 6 of 6 new assertions; restoring passes all 35 in the two files. Not assumed — observed both directions.New tests
warnDeprecatedFlags→ stderr, not stdoutwarnDeprecatedFlagsstill fires under--quiet--quietThe CLI integration tests moved from
execSynctospawnSync: no shell means nocmd.exe-vs-shredirection difference (my first version used2>/dev/null+ an explicit/bin/sh, which would have broken any Windows contributor runningnpm test— CI is Linux-only so it would have passed unnoticed), and separable streams let one run assert "on stderr and not on stdout".Merge with main
Branch was 3 commits behind. Merged (not rebased — it's pushed). One conflict in
CHANGELOG.md: my### Deprecatedvs #808's### Fixed, both under[Unreleased]. Resolved by keeping both in Keep-a-Changelog order.phase-executor.test.tsauto-merged; verified my rewritten #749 test survived intact.Bonus validation: #808's parser fix now reads this very issue's ACs —
extractAcceptanceCriteriareturns 5 where it previously returned 0.Verification
1d314efnpm run build/npm run lint__tests__+workflow+merge-checkrun.tsLOC guard (#503)On intermittent failures: an earlier full-
srcrun showed 16, then 9, then 2 failures across runs — all timeouts in process-spawning integration tests (semgrep,locks,phase-registry), none touching this PR's code. Confirmed environmental by runningsrc/lib/semgrep.test.tson cleanmain, where the same 3 tests fail identically. Clean re-runs are green. This is the known worktree-timeout class, not a regression here.AC Coverage (unchanged)
AC-1 MET · AC-2 MET · AC-3 N/A (option 2 rejected) · AC-4 MET · AC-5 MET
Verdict: READY_FOR_MERGE
The three flagged divergences are resolved — one by fixing a real defect it was masking, two by confirming and documenting the choice. Both follow-ups are dispatched (#810 filed; ac-parser fixed upstream by #808). CI green, branch merged with main, clean.
chore(#795): deprecate --qa-gate, an inert no-op flag (#807)
chore(assess): sync chain flag references and add chain-resume rule (#…
chore(#810): delete two unreachable option fields; mutation-test the …
fix(#817): close the AC-3 wiring guard and stop a crashed ready gate …
feat(#817): --ready-gate — run the post-QA ready gate inside `sequant…
test(#837): pin the non-chain guard's use of the shared predicate
fix(#837): --ready-gate resume no longer re-executes already-gated is…
fix(#834): scope AC attribution and drop the gawk-only IGNORECASE
fix(#834): §7 gates must be reachable — lint /qa's own enforcement ch…
feat(#817): --ready-gate — run the post-QA ready gate inside sequant run
fix(#817): close the AC-3 wiring guard and stop a crashed ready gate …