Repository navigation
feat(run): fresh-session QA — never resume the exec session into qa; expose run.fullQa (#982) - #1033
Merged
admarble merged 4 commits intoSep 10, 2026
Conversation
Entire-Checkpoint: 16b3fbc1957f
…e-surface guard QA findings on the first pass (AC_NOT_MET): - qa's fresh-session handle overwrote exec's in the #674 capture, severing exec continuity across quality-loop iterations — a second behavior change AC-4 does not license. Guard the capture with `phase !== "qa"`. - The AC-1 test's qa mock returned no handle, so its exec-continuity half was not gated. The mock now returns a handle like the real driver does. - `run.fullQa` was missing from KNOWN_KEYS.run, so the documented setting emitted a false "Unknown key ... (ignored)" warning. Registered + tested. - Added the `fullQa` live-surface guard (readyGate/#817 convention). - Commits the previously uncommitted README/CHANGELOG lines, the MCP buildRunArgs test and the AC-2 wiring test (full-qa.test.ts). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0147heJNRw8wBBujPGMqxDpR Entire-Checkpoint: ea2bbd00bf04
…AC-1 test, MCP schema tripwire, flag reference docs QA (AC_MET_BUT_NOT_A_PLUS) notes, all addressed in place: - The capture guard's comment now states where it bites: the next phase (loop, or the retried exec) would otherwise resume qa's fresh session; the loop-resume consequence is disclosed in the CHANGELOG. - The AC-1 test's loop mock returns a handle like production, so the assertions model the exec -> loop -> exec chain and check that loop resumes exec's session, not qa's. - runToolInputSchema is exported (@internal) with a tripwire asserting the fullQa key and its minimum-version note. - docs/reference/run-command.md gains the --full-qa row and run.fullQa. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0147heJNRw8wBBujPGMqxDpR
…fresh-session-qa-never-resume-the-exec-se
admarble
deleted the
feature/982-feat-run-fresh-session-qa-never-resume-the-exec-se
branch
September 10, 2026 22:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #982. W2 node 02 (
docs/internal/graph-2026-09-w2/issues/02-982-fresh-session-qa.md).What
batch-executor.tspassesundefinedinstead of the carriedresumeHandle; exec and loop keep theirs. qa's own fresh-session handle is also never captured, so exec continuity across quality-loop iterations is unchanged (first-pass QA found the capture regression; fixed in a361ed3).run.fullQais reachable.run.fullQasetting (schema, defaults,KNOWN_KEYS),--full-qaonsequant run, and thefullQaparam on MCPsequant_run(description names the minimum server version) all setconfig.fullQathroughbuildExecutionConfig.ready-gate.tsstill forcesfullQa: trueregardless. Default stays off.OQ-2 — every
executePhaseWithRetry(site inbatch-executor.ts:913ready-gaterunPhaseundefined):1122spec-only dispatch:1638per-phase loopphase === "qa" ? undefined : resumeHandle:1957loopphaseFirst-pass QA findings (AC_NOT_MET) and their fixes
if (result.resumeHandle && phase !== "qa").run.fullQamissing fromKNOWN_KEYS.run→ false "Unknown key … (ignored)" warning; registered + tested.fullQahad no live-surface guard → added,readyGate/feat(run): --ready-gate — run the post-QA ready gate insidesequant run(automates the any-gaps/fix-gaps second look, stops at human merge) #817 convention.grep -c "fullQa" src/lib/cli-flags.ts— that file holds value coercions only;--ready-gate/--escalate-effort/--auto-mergehave 0 hits there). Amended on the issue togrep -c "fullQa" src/lib/workflow/types.ts≥ 2 with a visible runner note (W2 D15). Owner: revert if you disagree.AC verification (all commands run verbatim in the worktree)
npx vitest run src/lib/workflow/batch-executor.test.ts -t "982"npx vitest run src/lib/workflow/full-qa.test.tsnode dist/bin/cli.js run --help | grep -c -- '--full-qa'→1;npx vitest run src/mcp/tools/run.test.ts -t "fullQa"→ 3 passed;grep -c "fullQa" src/lib/workflow/types.ts→4grep -n "fullQa" src/lib/settings.ts | grep -c "default(true)"→0; full suite: see belownpx vitest run src/lib/workflow/ready-gate.test.ts -t "fullQa"git diff origin/main --stat -- src/lib/workflow/drivers/ | wc -l→0grep -c "full-qa|fullQa" README.md→2;grep -c "resume" CHANGELOG.md→24npm run build && npm testbatch-executor.test.tslabel-shortcut case,skills-preflight.test.ts#933 abort case) — both unrelated to this diff and both pass in isolation (94/94, 24/24); the failures reproduce only under the 10-minute worktree suite's load. Not settled against the base commit yet — say the word and I will.Mutation verification
Mutation-verified: AC-1 — removed the
phase === "qa" ? undefined :conditional at the qa dispatch;batch-executor.test.ts > AC-1: exec dispatch carries the resume handle, every qa dispatch … does notfailed; restored.Mutation-verified: AC-4 — dropped
&& phase !== "qa"from the resume-handle capture so qa's handle was captured again; the same AC-1 test failed (exec received "QA1" instead of "H1"); restored.Mutation-verified: AC-2 — removed
"fullQa"fromKNOWN_KEYS.run;full-qa.test.ts > run.fullQa is a registered settings keyfailed; restored.Mutation-verified: AC-3 — deleted the
fullQa: mergedOptions.fullQa ?? …mapping inconfig-resolver.ts;run-options-dead-surface.test.ts > fullQa live-surface guard > maps RunOptions.fullQa into ExecutionConfigfailed; restored.Post-QA follow-ups (verdict AC_MET_BUT_NOT_A_PLUS, 2facf50)
QA's five notes, all addressed in place rather than looped:
loop, or the retried exec when no loop runs) would otherwise resume qa's fresh session. Disclosed consequence (CHANGELOG): a quality-looploopphase now resumes the exec session rather than the former exec+qa session; loop still gets the verdict viaSEQUANT_LAST_VERDICT/SEQUANT_FAILED_ACS(Quality loop retries misclassified as cold-start failures, wasting retry budget #488).loopreceived exec's handle ("H1"), not qa's.runToolInputSchemaexported (@internal) with a tripwire:fullQakey present + minimum-version note.docs/reference/run-command.md:--full-qarow,run.fullQakey + paragraph.Mutation-verified: AC-1 — re-run after the test change: dropped the qa-dispatch conditional; the AC-1 test failed; restored.
Mutation-verified: AC-4 — re-run after the test change: dropped
&& phase !== "qa"from the capture; the AC-1 test failed (loop received "QA1"); restored.Mutation-verified: AC-3 — removed the
fullQaentry fromrunToolInputSchema;run.test.ts > sequant_run fullQa live-surface tripwire > declares fullQa in runToolInputSchemafailed; restored.Not in this PR
No driver or
canResumechange (AC-6). No default flip offullQa. Theloopphase keeps resume.🤖 Generated with Claude Code