Repository navigation
fix(#1233): a successful run without qa leaves the issue in_progress, not ready_for_merge - #1239
Merged
admarble merged 6 commits intoSep 30, 2026
Conversation
Entire-Checkpoint: 09799ff21437
…, changelog QA AC_NOT_MET fix_now findings: no test drove --phases exec after a spec-only run (added, with a ready_for_merge control through the real run()); the chain checkpoint warning said 'a re-run will skip it' even when the recorded status is now in_progress (branches on isCompletedIssueStatus); missing CHANGELOG entry. The resume case is documented in code. Entire-Checkpoint: 8550ff1d113a
…match chain-resume Re-QA gaps: the comment above the checkpoint still said a completed status was always written; the warning claimed the chain resumes 'at this link' (it resumes at its first unfinished link); the documented resume case had no test. Entire-Checkpoint: 7d4e3556148d
Entire-Checkpoint: 7547c8ae6ec5
…ss outcomes Entire-Checkpoint: 517ef9a6dc88
admarble
deleted the
feature/1233-bug-state-a-successful-spec-only-run-marks-the-iss
branch
September 30, 2026 18:42
This was referenced Sep 30, 2026
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
A successful
sequant run N --phases spec(or--phases exec) marked #Nready_for_merge, so the nextsequant run N --phases execwas skipped as "already ready_for_merge" unless you passed--force, which also force-takes the issue lock.batch-executor.ts: the terminal statuses (ready_for_merge,awaiting_verification) now require that aqaphase actually ran in this run (phaseResults), not just that the run succeeded. Otherwise a successful run recordsin_progress. The ready-gate branch is unchanged.in_progress. It branches on the sameisCompletedIssueStatuspredicate the skip guard uses: a completed status is skipped, anything else is not (the chain resumes at its first unfinished link). The comment above it is updated to match.--resumerun that skips an already-completed qa also recordsin_progress, because status reflects what ran in this run. Onmainsuch a run was marked ready without reading the earlier verdict, even a failing one. A--phases qarun restores the terminal status. This is covered by a test.### Fixedentry.AC verification
npx vitest run src/lib/workflow/batch-executor.test.ts: a spec-only run and a spec+exec run recordin_progressand neverready_for_merge/awaiting_verification; so does a--resumerun that skipped qanpx vitest run src/lib/workflow/run-orchestrator.test.ts: drives the realRunOrchestrator.run()in a temp repo. With the issuein_progress,--phases execruns it (no--force). Control: withready_for_mergeit prints "already ready_for_merge — skipping" and doesn't runawaiting_verification,ready_for_mergeon a READY verdict, the #837 gate cases) stay greenMutation-verified: AC-1 — reverted
success && ranQatosuccess;src/lib/workflow/batch-executor.test.ts > #1233: a successful run without qa leaves the issue non-terminal > sets status to in_progress after a spec-only run, not ready_for_mergefailed, along with the spec+exec,--resumeand in-progress-warning cases (4 failed / 105 passed); restored.Mutation-verified: the warning — forced
reRunConsequenceto the completed-status wording;src/lib/workflow/batch-executor.test.ts > #1233: the chain checkpoint-failure warning names the right re-run outcome > says a re-run won't skip it when no qa ran (in_progress)failed (1 failed / 107 passed); restored. (That mutation ran before the test was renamed from "says a re-run resumes the link…"; the assertions are unchanged except the wording.)Runner verification (tracker #1236)
batch-executor.tsand its test. The runner added the AC-2 orchestrator test and the warning fix, and wrote the CHANGELOG entry.a8a632f2/dfc4b089.dfc4b089: NEEDS_VERIFICATION, 3/3 ACs. Its remaining gaps were CI still pending and a comment above the checkpoint where two sentences had been joined, so "therefore" followed the wrong status. The comment was fixed in659ecf1a.659ecf1ared, fixed in2ede8959): two 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 tests inready-gate-run.test.tsexpectedready_for_mergefrom an exec-only fixture, which is exactly the behaviour this PR changes. The gate runs after the normal phases, so a standard run includes qa. Those two tests now runexec, qa, the fixture mock returns the phase it was called with, and the assertions are unchanged. After that, every test file mentioningready_for_mergeorrunIssueWithLogging(25 files, 918 tests) passes.batch-executor,run-orchestrator,non-chain-skip-guard,completed-status,chain-resume.integration,abort-logging.integration, plus the two tests that scanbatch-executor.ts's source (qa-verdict-comment-skill,run-options-dead-surface). All pass.tsc,npm run lintand prettier are clean.sequant runstill opens a PR even though no qa ran. That behaviour already exists and bug(state): a successful spec-only run marks the issue ready_for_merge, so a later --phases exec skips it #1233 doesn't touch it.Closes #1233
Refs #1236
🤖 Generated with Claude Code