Repository navigation
fix(#964): orchestrated sequant run posts the fresh qa verdict, not just a stale one - #965
Merged
admarble merged 3 commits intoAug 25, 2026
Conversation
…ust a stale one batch-executor.ts never backed qa/SKILL.md's promise that "the orchestrator handles aggregated summary" - a bare `sequant run --phases qa` re-run that computed a different verdict than the last-posted comment left the stale one as the only externally-visible signal. Post a compact comment (verdict, AC coverage, gaps/suggestions, and a SEQUANT_QA_VERDICT marker) right after a standard qa phase succeeds with a parseable verdict. Best-effort and non-fatal, mirroring the #937 ready-gate postReport contract; does not touch the ready-gate's own terminal-only reporting path.
…t sibling promises Adds a scoped gate test (qa-verdict-comment-skill.test.ts) pinning §9's orchestrated-mode wording to the real mechanism — batch-executor.ts posting the SEQUANT_QA_VERDICT comment — in all three mirrors, with assertions scoped to the delimited §9 region per the #830 rule. Also asserts the old unbacked "orchestrator handles aggregated summary" promise stays gone. Reworders exec/SKILL.md §6 and test/SKILL.md §3.2, which carried the same unbacked promise for their own channels: those docs now say no per-phase comment is posted under sequant run (progress/results surface via the run summary and PR body) instead of promising orchestrator posting that does not exist.
admarble
deleted the
feature/964-bug-run-orchestrated-sequant-run-phases-qa-re-
branch
August 25, 2026 05:34
3 tasks
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
qa/SKILL.md§9 promised "the orchestrator handles aggregated summary" underSEQUANT_ORCHESTRATOR, butbatch-executor.ts(the engine behind baresequant run) never posted anything after a standard qa phase. A re-run computing a fresh, different verdict left the stale prior comment as the only externally-visible signal.runIssueWithLogging's phase loop now posts a compact comment (verdict, AC coverage, gaps/suggestions, and a<!-- SEQUANT_QA_VERDICT: {...} -->marker) right after a standard qa phase succeeds with a parseable verdict. Best-effort/non-fatal, mirroring the feat(qa/loop/ready): structured gap findings — finite taxonomy with required evidence, replacing the lossy prose-scrape gap channel #937 ready-gatepostReportcontract. Does not touchsequant ready's own terminal-only reporting.qa/SKILL.md§9 updated (all three mirrors) to name the real mechanism, now pinned by a scoped gate test (qa-verdict-comment-skill.test.ts).exec/SKILL.md§6 andtest/SKILL.md§3.2 — same unbacked "orchestrator handles summary" wording — are reworded to say what actually happens (no per-phase comment undersequant run; progress/results surface through the run summary and PR body) rather than gaining runtime posting of their own.Test plan
npm run build— passesnpm run lint— passes (0 errors)npm test— full suite green (273 files, 5633 passed, 1 expected fail, 2 skipped)batch-executor.test.tscovering AC-1 through AC-4, including the verbatim issue repro (AC-2)qa-verdict-comment-skill.test.tspinning §9's wording across all three mirrors (AC-5)Pre-PR AC Verification
SEQUANT_QA_VERDICTmarker after successful qa phasebatch-executor.tspostQaVerdictComment/buildQaVerdictComment; testAC-1: posts a comment...AC-2 (regression, verbatim repro): a re-run computing a fresh, different verdict posts againpostQaVerdictComment's try/catch; testAC-3: a comment-post failure is non-fatalresult.success && result.verdict; testAC-4: does not post when...qa/SKILL.md§9 wording synced across 3 mirrorsqa-verdict-comment-skill.test.tsasserts the §9 region namesbatch-executor.ts+SEQUANT_QA_VERDICTin all 3 mirrors and the old promise is gone;check-skill-sync.ts44/44Mutation Verification
Mutation-verified: AC-5 — reverted §9's orchestrated-mode bullet in
.claude/skills/qa/SKILL.mdto the old "orchestrator handles aggregated summary" wording;qa-verdict-comment-skill.test.tsfailed (exactly the.claude/skillscase, ontoContain("batch-executor.ts"), 1 failed / 5 passed); restored.Pre-PR Confidence Check
commitfield gives a future dedup pass an anchor.types.ts's newpostComment?field is a types-only test seam, exercised indirectly by everybatch-executor.test.tstest that passes it. The exec/test SKILL.md truth-ups have no gate test of their own — they remove a false promise rather than establish a contract, and the three-dir sync check covers mirror drift.CLI Wiring Check
N/A — no
RunOptions/CLI interface changes.IssueExecutionContext.postCommentis an internal test seam, not user-facing.Closes #964
🤖 Generated with Claude Code