Repository navigation
Conversation
Add Phase 0a to the QA skill that parses the latest qa phase marker from issue comments and, when status=completed and commitSHA matches current HEAD, skips sub-agent spawning and code review. Previous QA result is surfaced via a short-circuit summary. Failed prior runs never short-circuit (user likely wants a re-run after a fix). Bypass with --force or --no-cache. - AC-1: Parse latest qa:* marker, extract commitSHA - AC-2: Short-circuit when status=completed and SHA matches HEAD - AC-3: --force bypasses short-circuit - AC-4: --no-cache bypasses (consistency with existing flag) - AC-5: status=failed never short-circuits - AC-6: Mirrored across .claude/skills/, skills/, templates/skills/
6 tasks
Phase 0a's short-circuit template has a `Prior Verdict:` field but the previously emitted marker stored only status + commitSHA. Add an optional `verdict` field to `status:"completed"` markers so the short-circuit summary surfaces the prior verdict literally, without re-reading the comment body. Legacy markers without the field still trigger the short-circuit but fall back to `(see prior QA comment)` — additive, backward-compatible.
The detection query used `--jq '[.comments[].body]'`, which JSON-encodes each body (quotes → \", < → \u003c). That escaping defeated the grep pattern — markers were present in the comments but never extracted, so the short-circuit path would never trigger in practice. Switch to `--jq '.comments[].body'` (streaming, raw output). Verified against issue #530's real comments: pattern now matches the qa:completed marker and extracts all four fields.
Closed
6 tasks
…hort-circuit-re-run-when-prior-qa-complet # Conflicts: # CHANGELOG.md
admarble
deleted the
feature/530-feat-qa-short-circuit-re-run-when-prior-qa-complet
branch
April 20, 2026 01:10
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
/qaskill that parses the latestqaphase marker from issue comments; whenstatus=completedandcommitSHAmatches currentHEAD, skip sub-agent spawning and output a short-circuit summary/qa <N> --forceor/qa <N> --no-cache(existing flag, consistency)status=failed) never short-circuit — user likely wants a re-run after a fix.claude/skills/,skills/,templates/skills/(verified:check-skill-sync.ts→synced qa/SKILL.md — 3/3 match)Acceptance Criteria (6/6 met)
qa:completedmarker, extractcommitSHA--forcebypasses--no-cachebypasses (consistency with existing flag at line 172)status=failednever short-circuitsTest plan
npm run build— passes (no TS changes)npm run lint— passesnpm test -- tests— 528/528 passingnpx tsx scripts/check-skill-sync.ts—qa/SKILL.mdsynced 3/3/qaon an already-QA'd issue should short-circuit (testing this feature naturally validates it)/qa <N> --forcestill runs the full pipelineCloses #530