Repository navigation
fix(#972): NEEDS_VERIFICATION maps to awaiting_verification; MCP force param - #977
Merged
admarble merged 3 commits intoAug 29, 2026
Conversation
…e param AC-1: Add `awaiting_verification` to IssueStatusSchema (absent from COMPLETED_ISSUE_STATUSES so qa re-runs proceed without --force). Derive it in batch-executor when qa verdict is NEEDS_VERIFICATION. Add nextAction hint and status display color. AC-2: Add `force` param to MCP sequant_run tool schema; forward as --force CLI arg, mirroring the qualityLoop param pattern. AC-3: Add docs/features/qa-verdict-workflow-states.md documenting the verdict→state table and re-run policy for all four QA verdicts. Entire-Checkpoint: 13e0086b8d2d
Closed
3 tasks
…tion exclusion - run.ts force description said force is required after NEEDS_VERIFICATION — the opposite of AC-1's design (awaiting_verification re-runs freely). - completed-status.test.ts never asserted awaiting_verification is excluded from COMPLETED_ISSUE_STATUSES, so adding it to the set would have passed the suite while breaking AC-1's re-run guarantee. Claude-Session: https://claude.ai/code/session_0178TZyoqDoCYehwfnQUDyNW Entire-Checkpoint: 50bd5bb0ff10
…ashboard; fix --phase hints Second-look gaps: - state-cleanup merge-detection sweep skipped awaiting_verification, so an issue whose PR a human verified and merged directly stayed awaiting_verification forever (the #837 shape for the new status). - dashboard statusOrder omitted awaiting_verification: issues were grouped but never rendered (invisible cards); also add explicit status class. - reconcile hints named a nonexistent --phase flag (CLI has --phases only); affected the failed-phase and waiting_for_qa_gate hints (pre-existing). Claude-Session: https://claude.ai/code/session_0178TZyoqDoCYehwfnQUDyNW Entire-Checkpoint: 893094b0b7a0
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
awaiting_verificationtoIssueStatusSchema, derived inbatch-executor.tswhen QA verdict isNEEDS_VERIFICATION. Excluded fromCOMPLETED_ISSUE_STATUSESso asequant run <N> --phases qaproceeds without--force. Surfaced as magenta insequant statuswithnextActionhint pointing to the qa re-run.forceboolean param to MCPsequant_runtool schema; forwarded as--forceCLI arg (same pattern asqualityLoop). Silent-ignore eliminated — now either works or errors loudly if the schema rejects it.docs/features/qa-verdict-workflow-states.md— verdict→state table plus prose on re-run policy for all four QA verdicts and the MCPforceparam.Pre-PR AC Verification
awaiting_verification, excluded from completed, surfaced in statusstate-schema.ts:55,batch-executor.ts:1866-1873,completed-status.ts(absent),reconcile.ts:163,status.ts:119,264sequant_runacceptsforce, forwards--forcesrc/mcp/tools/run.ts:517-524,583-585docs/features/qa-verdict-workflow-states.mdTest plan
npx vitest run src/lib/workflow/reconcile.test.ts— new test:awaiting_verificationhint returnssequant run N --phases qanpx vitest run src/mcp/server-extended.test.ts— new tests:force:trueadds--force;force:falsedoes notnpx vitest run src/lib/workflow/batch-executor.test.ts— new describe#972: NEEDS_VERIFICATION →awaiting_verification; READY_FOR_MERGE →ready_for_mergenpm run build && npm run lint— both pass cleanNote: the
withActivityHookfailure atbatch-executor.test.ts:1464reported during exec did not reproduce on orchestrator re-run (93/93 pass) — likely a flake; not introduced by this PR.Closes #972
🤖 Generated with Claude Code
Orchestrator verification (2026-08-29)
Independently re-executed in the worktree: all three listed test files pass (reconcile + server-extended: 63/63; batch-executor: 93/93; completed-status: 7/7),
npm run buildandnpm run lintclean. Data flow traced: run guard →isCompletedIssueStatus→COMPLETED_ISSUE_STATUSES(awaiting_verification absent); reconcile only transitions tomerged/abandoned, so it cannot clobberawaiting_verification.Follow-up commit 8c91a49 fixes two gaps found during verification: the MCP
forcedescription claimed force is required after NEEDS_VERIFICATION (opposite of AC-1's design), and the completed-set exclusion had no gate test (addingawaiting_verificationtoCOMPLETED_ISSUE_STATUSESleft the suite green).Mutation-verified: AC-1 — added
awaiting_verificationtoCOMPLETED_ISSUE_STATUSES; test "does NOT treat awaiting_verification as completed — qa re-runs proceed without --force (#972)" failed; restored.Mutation-verified: AC-1 — replaced the verdict ternary in batch-executor.ts with unconditional
ready_for_merge; test "sets status to awaiting_verification when qa verdict is NEEDS_VERIFICATION" failed; restored.Mutation-verified: AC-2 — removed the
if (force) args.push(\"--force\")forwarding in src/mcp/tools/run.ts; test "#972: force:true forwards --force to the CLI args" failed; restored.Second-look verification (2026-08-29, commit 70afc6f)
Adversarial pass over every exhaustive
IssueStatusenumeration found three more gaps, fixed:awaiting_verification— an issue whose PR a human verified and merged directly stayedawaiting_verificationforever (the fix(chain): --chain --ready-gate resume re-executes already-gated links (COMPLETED_STATUSES misses waiting_for_human_merge/blocked) #837 shape recurring for the new status). Added to the sweep + test.statusOrderomittedawaiting_verification: issues were grouped intobyStatusbut never rendered — invisible on the dashboard. Added (plus an explicit status CSS class).--phaseflag (the CLI only has--phases <list>, bin/cli.ts:274) — pre-existing in the failed-phase andwaiting_for_qa_gatehints, adjacent to this PR's new hint. Both corrected.Verified clean by scope grep (
--phaseemitters: none remain), full affected test files (45/45), build, lint.Mutation-verified: AC-1 — removed
awaiting_verificationfrom the state-cleanup sweep condition; test "#972: advances awaiting_verification to merged when PR is MERGED on GitHub" failed; restored.