Skip to content

feat(#573): /qa sibling-site scan prompt in §5 Risk Assessment - #576

Merged
admarble merged 2 commits into
mainfrom
feature/573-feat-qa-add-sibling-site-scan-prompt-to-first-pass
May 6, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/573-feat-qa-add-sibling-site-scan-prompt-to-first-pass

Conversation

@admarble

@admarble admarble commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a conditional Sibling-site Scan reviewer prompt to /qa SKILL.md §5 Risk Assessment that fires before the verdict on focused-AC PRs touching multi-pattern files. Mirrored across all three skill directories (.claude/skills/qa/, templates/skills/qa/, skills/qa/).

Closes the gap from /fullsolve 564 where four sibling regexes in pre-tool.sh with the same root cause as the literal AC went unsurfaced through first-pass /qa, requiring a manual "any gaps?" nudge to file #570.

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Sibling-site scan bullet in §5 Risk Assessment, with one-line "when to apply" guidance ✅ Implemented New #### Sibling-site Scan (Conditional) subsection at line 1480 of all three SKILL.md mirrors
AC-2 Original Mirrored to all three qa/SKILL.md files; check-skill-sync.ts reports them in sync ✅ Implemented synced qa/SKILL.md — 3/3 match in npx tsx scripts/check-skill-sync.ts output
AC-3 Original Bullet contains "don't widen scope mid-PR" + "follow-up issue" anti-scope-creep clause ✅ Implemented "Don't widen scope mid-PR; file a follow-up issue instead." present in all three mirrors
AC-4 Original Pointer to feedback_qa_second_look.md included ✅ Implemented "This operationalizes the principle in feedback_qa_second_look.md..." (no prior reference existed; augmented per spec Open Question 1)
AC-5 Original CHANGELOG [Unreleased] / ### Changed entry referencing #573 ✅ Implemented New top entry under existing ### Changed section, ending (#573)

Files Changed

  • .claude/skills/qa/SKILL.md — +8 lines (new subsection)
  • templates/skills/qa/SKILL.md — +8 lines (mirror)
  • skills/qa/SKILL.md — +8 lines (mirror)
  • CHANGELOG.md — +1 line ([Unreleased] / ### Changed)

Test plan

  • Three SKILL.md mirrors are byte-identical (verified by diff -q)
  • npx tsx scripts/check-skill-sync.ts reports qa/SKILL.md — 3/3 match
  • grep confirms required strings ("Sibling-site Scan", "don't widen scope mid-PR", "file a follow-up issue", "feedback_qa_second_look.md") in all three mirrors
  • CHANGELOG entry visible under [Unreleased] / ### Changed ending in (#573)
  • /qa invoked on a future focused-AC PR surfaces sibling sites in its verdict (manual confirmation, post-merge)

Note: Pre-existing skill-sync drift

check-skill-sync.ts exits 1 due to pre-existing divergence in unrelated files (improve/SKILL.md, loop/SKILL.md, qa/references/quality-gates.md, security-review/SKILL.md, etc.) — confirmed by stashing this branch's changes and re-running. The exit-1 condition exists on main. AC-2's specific target (qa/SKILL.md) reports 3/3 match.

Closes #573

Adds a conditional reviewer prompt to /qa SKILL.md §5 Risk Assessment
that fires before the verdict on focused-AC PRs touching multi-pattern
files. Before declaring AC met, the reviewer scans the same file/module
for sibling code matching the bug's root cause; gaps surface as expanded
scope (only when trivial), follow-up issue suggestion, or
NEEDS_VERIFICATION. Bullet explicitly says "don't widen scope mid-PR;
file a follow-up issue instead" to keep this a safety net, not a
scope-creep incentive, and points at feedback_qa_second_look.md for the
underlying principle. Mirrored across the three skill directories.

Closes the gap exposed by /fullsolve 564 where four sibling regexes in
pre-tool.sh with the same root cause as the literal AC went unsurfaced
through first-pass /qa, requiring a manual "any gaps?" nudge to file
#570.
Apply the new sibling-site scan to its own PR — surfaces structural gaps
between the prompt and its surrounding scaffolding.

- §5 Risk Assessment: drop "REQUIRED unless SMALL_DIFF" carve-out. The
  Simple Fix output template already includes the Risk Assessment block,
  so the carve-out was already misaligned and would have skipped the
  new bullet on the very motivating case (small-diff focused-AC fixes).

- Risk Assessment template (§5 inline + Simple Fix Template + Standard
  Template): add `Sibling sites considered:` slot so findings have a
  canonical home instead of forcing reviewers to invent an ad-hoc
  subsection (as PR #576's own QA had to do).

- Sibling-site Scan bullet: define "multi-pattern file" with a concrete
  threshold (≥3 instances) + example; drop `NEEDS_VERIFICATION` from
  the surfacing trichotomy (that verdict is reserved for external/
  temporal gates — CI pending, manual-test ACs unexecuted — and the
  bullet's own ethic says don't block merge); add explicit "orchestrator/
  inline-review only" scope note so it's clear sequant-qa-checker
  sub-agents aren't expected to carry it.

- CHANGELOG: trim the 7-line entry to match neighbor entries and
  reflect the post-gap-fix content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(qa): add sibling-site scan prompt to first-pass /qa verdict checklist

1 participant