Repository navigation
feat(#587): /qa §4 Q5 intra-file sibling-site audit + cross-file §5 reframe - #589
Merged
admarble merged 2 commits intoMay 7, 2026
Conversation
…eframe Add a fifth question to /qa Section 4 (Failure Path & Edge Case Testing) prompting reviewers to audit other call sites in the SAME file/function that share the root-cause pattern. The literal repro from the issue body is necessary but not sufficient when destructive operations / wrong null checks repeat at adjacent lines. Reframes Section 5's Sibling-site Scan as the cross-file complement so the two scans cover the full sibling-site vulnerability class without overlap. Adds a "Sibling-line audit:" bullet to all three Risk Assessment output templates so skipping the audit is visibly absent from the verdict. Mirrored across all three qa/SKILL.md files (templates, .claude, skills). Closes #587
4 tasks
Self-dogfood of the new §4 Q5 prompt against this PR surfaced 3 stale references to §5 in §6d (Adversarial Re-Read) that the §5 reframe missed: - Line 1927 (sub-prompt definition): cited "single-pattern file" and framed §5 as the sole sibling-site mechanism. - Lines 1956 + 2887 (output-format templates, two duplicates per file): "Reference Section 5's scan, OR justify N/A" — no acknowledgement of §4 Q5's intra-file complement. All three rewritten to reference both §5 (cross-file) and §4 Q5 (intra-file) explicitly, mirrored across all three qa/SKILL.md locations (9 edits total, 3 lines × 3 mirrors). Validates §4 Q5's design: structured QA caught 1/3 of these residues (line 1927 flagged as follow-up); the new prompt applied to the PR itself caught the other two sibling lines with the same root-cause framing.
admarble
deleted the
feature/587-feat-qa-add-4-prompt-for-intra-file-bug-class-gene
branch
May 7, 2026 00:16
This was referenced May 7, 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
/qa§4 (Failure Path & Edge Case Testing) prompting reviewers to audit other call sites in the same file/function that share the bug's root-cause pattern. Catches the class of bug PR fix(#575): cleanup-worktree.sh stays on main worktree before destructive remove #579 round-1 missed.**Sibling-line audit:**bullet to all three Risk Assessment output templates so skipping the audit is visibly absent from the verdict.AC Coverage
templates/skills/qa/SKILL.md:1462templates/skills/qa/SKILL.md:1485,1487)qa/SKILL.mddiff -qbetween all three pairs is clean**Sibling-line audit:**bullet in 3 Risk Assessment instancesNotes
Test plan
npm run buildpassesnpm run lintpassesnpm testpasses (117 files / 2819 tests)npm run validate:skills—qa/skill validates cleandiff -qbetween all three SKILL.md files)Closes #587