Repository navigation
feat(#1246): a PR from a run QA has not reviewed says "QA has not run"; MCP stops offering spec,exec to skip QA - #1298
Merged
admarble merged 4 commits intoOct 4, 2026
Conversation
Entire-Checkpoint: dfa111d0d41f
Entire-Checkpoint: 35ae522d3605
4 tasks
…-run-a-sequant-run-where-no-qa-ran-still-e
…teration's or an exec re-run's update shows the note Spec Open Question 1: a qa result counts only when it follows the run's last exec, and a qa an earlier run completed counts only when this run ran no exec. The loop marker is left out of the phases named. Entire-Checkpoint: 9aa616e964e4
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.
Summary
sequant runthat QA has not reviewed now carries one line in its body:> **QA has not run** — phases run: spec, exec. This PR has not been reviewed by sequant's QA phase; run \sequant run N --phases qa` before merging.`src/lib/workflow/batch-executor.ts, inopenOrUpdatePR): QA reviewed the latest exec. Either this run has a qa result after its last exec, or this run ran no exec and the issue's state records a completed qa from an earlier run. It reuses the state read that was already there for the exec summary. It adds nogitorghcall, so the orderedchild_processmocks still line up.src/lib/workflow/worktree-manager.ts): the line goes where the QA verdict note goes. A ready-gate report wins over a verdict note, which wins over the line, so a body never has both the line and a verdict note. Any QA verdict removes the line, includingREADY_FOR_MERGE, which has no note.src/mcp/tools/run.ts): thephasesdescription now says a run withoutqastill opens a PR, marked as not reviewed by QA. The "to skip QA" example is gone.### Addedentry.worktree-manager.build-pr-body.test.ts; run tests inbatch-executor.test.tscover aspec,execrun, an earlier completed qa (no line), and an earlier failed qa (line shown)READY_FOR_MERGEandAC_MET_BUT_NOT_A_PLUS, a qa-only re-run on the same PR (the #1198 pattern), and a ready-gate reportbuildAutomatedPRBodyoutput exactly.createPRhas no draft flag.run.test.ts: the description no longer matches/to skip QA/and does say the PR is marked as not reviewedMutation-verified: AC-1 — deleted the qaNotRunNote push in buildAutomatedPRBody; worktree-manager.build-pr-body.test.ts AC-1 case failed; restored.
Mutation-verified: AC-2 — computed qaNotRun ignoring this run's qa result; batch-executor.test.ts AC_MET_BUT_NOT_A_PLUS case failed; restored.
Mutation-verified: AC-4 — restored the 'spec,exec' to skip QA description; run.test.ts #1246 AC-4 case failed; restored.
I ran two more mutations that each failed exactly their own test: removing the verdict check failed the body-level
READY_FOR_MERGEcase, and ignoring the earlier qa recorded on state failed the earlier-run case. All three markers above came back valid fromparseMutationMarkers.Checks:
npx tsc --noEmit,npm run buildandnpm run lintall passed.npm test; the runner context says to leave that to CI.Runner fix (d1b8201): spec Open Question 1
The first version counted any qa in the run, or any completed qa in state. That left two PRs that look reviewed although their latest code never went through QA:
[exec, qa, loop, exec]) that crashes before its qa;--phases execon an issue QA reviewed earlier.The rule is now "QA reviewed the latest exec", and the AC-1 text on the issue was amended to match. The phases named leave out the internal
loopmarker.npx vitest runoverbatch-executor.test.ts,worktree-manager.build-pr-body.test.ts,src/mcp/tools/run.test.tsandready-gate-run.test.tspassed 291/291.npx tsc --noEmitand eslint are clean.Fixes #1246
🤖 Generated by
sequant run