Skip to content

feat(qa): add §4 prompt for intra-file bug-class generalization (sibling lines, same root cause) #587

Closed

Description

@admarble

Summary

`/qa` Section 5's sibling-site scan (added in #573) catches cross-file sibling vulnerabilities — code in OTHER files matching the bug pattern. There's a complementary gap at the intra-file level: when the diff fixes a bug at line N, the same root-cause pattern often exists at sibling lines in the same file/function, and the literal-repro discipline doesn't catch it.

Evidence

During `/fullsolve 575` (PR #579, `templates/scripts/cleanup-worktree.sh`):

  • The bug: `cd $WORKTREE_PATH; git worktree remove $WORKTREE_PATH` — every subsequent `git` call's cwd was invalidated by the destructive `git worktree remove`.
  • Round-1 fix: I added `cd "$MAIN_WORKTREE"` immediately before the line cited by the issue body (the main worktree removal at line 76).
  • Live AC repro passed (the literal issue-body scenario).
  • Round-1 missed the structurally identical sibling site: three lines earlier, the `.exec-agents/agent-` cleanup loop had the SAME pattern (`for agent_dir in "$EXEC_AGENTS_DIR"/agent-; do ... git worktree remove "$agent_dir"`). The `2>/dev/null || true` guard would have made the failure silent. The user surfaced this with "any gaps?" — round-2 fix moved `cd` earlier to cover both call sites.

This is a structural failure mode: literal-repro testing verifies the cited symptom path but doesn't generalize across sibling call sites within the same file/function. `/qa` Section 5 (cross-file sibling-site scan from #573) would not have caught this either — the sibling site is in the same file, not a different one.

Proposed change

In `templates/skills/qa/SKILL.md` §4 "Failure Path & Edge Case Testing", add a fifth question:

```diff
Before any READY_FOR_MERGE verdict, complete the adversarial thinking checklist:

  1. "What would break this?" - Identify and test at least 2 failure scenarios
  2. "What assumptions am I making?" - List and validate key assumptions
  3. "What's the unhappy path?" - Test invalid inputs, failed dependencies
  4. "Did I test the feature's PRIMARY PURPOSE?" - If it handles errors, trigger an error
    +5. "Does the same root-cause pattern exist at sibling sites in this file?" - The literal repro from the issue body is necessary but not sufficient. After the cited bug is fixed, audit other call sites in the same file (and same function/loop) that share the root-cause pattern. Examples: if a destructive operation invalidates a resource that subsequent code depends on, scan for other destructive operations on the same resource type. If a wrong null-check is the bug, scan for the same access pattern elsewhere. Complementary to Section 5's cross-file sibling-site scan: §4's question is intra-file; §5 is cross-file.
    ```

Use a language-neutral example in the SKILL prose so the discipline reads as universal, not bash-specific.

Mirror across all three skill directories: `.claude/skills/qa/SKILL.md`, `skills/qa/SKILL.md`, `templates/skills/qa/SKILL.md`.

Acceptance Criteria

  • AC-1: §4 includes a fifth question prompting intra-file sibling-site audit, with a language-neutral example (no bash-specific phrasing).
  • AC-2: Prose explicitly distinguishes from Section 5: §4 new question is intra-file (other lines/functions in the same file with the same root cause); §5 is cross-file (other files in the codebase with the same vulnerability).
  • AC-3: Change is mirrored across all three `qa/SKILL.md` files.
  • AC-4: SKILL.md output template's Self-Evaluation section adds a "Sibling-line audit:" line so QA reviewers must report findings (or "None — single-call-site fix"). Skipping the audit becomes visibly absent.

Notes

Activity

  1. added
    enhancement
    cli
    on May 6, 2026
  2. admarble commented on May 6, 2026

    @admarble
    ContributorAuthor

    Plan

    Acceptance Criteria

    • AC-1: §4 includes a fifth question prompting intra-file sibling-site audit, with a language-neutral example (no bash-specific phrasing). Verify: Manual — read templates/skills/qa/SKILL.md §4; confirm 5th list item, generic example.
    • AC-2: Prose explicitly distinguishes §4 (intra-file) from §5 (cross-file), with explicit cross-reference. Verify: Manual — read §4 Q5 alongside §5 Sibling-site Scan; cross-reference present.
    • AC-3: Change is mirrored across all three qa/SKILL.md files. Verify: Integration — diff -q .claude/skills/qa/SKILL.md skills/qa/SKILL.md && diff -q .claude/skills/qa/SKILL.md templates/skills/qa/SKILL.md both clean.
    • AC-4: Risk Assessment output block (3 instances) adds a **Sibling-line audit:** bullet alongside the existing **Sibling sites considered:**. Verify: Manual — grep all three SKILL.md files for Sibling-line audit: returns 3 hits.

    Implementation

    Phase 1 — Resolve framing (REQUIRED before edits): Pick the §4-vs-§5 axis. Recommend Option A: reframe §5 prose ("same file/module" → "other files in the codebase," lines 1483 & 1485) so §4 Q5 owns intra-file. Confirm AC-4 targets the existing Risk Assessment output block (lines 1476 / 2551 / 2872), since no section literally named "Self-Evaluation" exists.

    Phase 2 — Draft in templates/skills/qa/SKILL.md:

    • Add Q5 to §4 ("Failure Path & Edge Case Testing") after current Q4 (~line 1461). Language-neutral example only — abstract verbs like "destructive operation invalidates a resource subsequent code depends on; audit other destructive operations on that resource type in the function/loop."
    • Append **Sibling-line audit:** [Adjacent call sites in the same file/function audited, OR "none — single-call-site fix"] to the Risk Assessment template (3 instances).
    • Tighten §5 prose per Option A.

    Phase 3 — Mirror: Per feedback_read_each_mirrored_file.md and feedback_grep_as_checklist.md — read each file independently before edits; copy templates/skills/qa/SKILL.md verbatim to .claude/skills/qa/SKILL.md and skills/qa/SKILL.md. Run diff -q between all three pairs as the AC-3 gate; grep all three for the new bullet (must return 3 hits).

    Phase 4 — Self-dogfood: Run new §4 Q5 mentally against PR #579's exec-agents loop. Confirm a reviewer following the prompt would have caught round-1's missed sibling site. Record one-line evidence in the QA comment.

    Key Decisions

    • Append-only: No new section, no renumbering. Extends §4 and Risk Assessment template in place.
    • Single source + mirror: Author in templates/skills/qa/SKILL.md; byte-mirror to the other two. Three-way sync is a documented pitfall.
    • Not a verdict-blocker: Visible-absence in the template is the lever, matching §5 Scan's stance. Verdict algorithm unchanged.

    Open Questions

    1. §4-vs-§5 framing: Confirm Option A (reframe §5 to cross-file) vs. Option B (narrow §4 further, leave §5 unchanged). Recommend Option A — aligns with the issue's stated framing and how PR fix(#575): cleanup-worktree.sh stays on main worktree before destructive remove #579 round-1 vs. round-2 actually played out.
    2. AC-4 location: Confirm "Self-Evaluation section" = the existing Risk Assessment output block. (No section literally named "Self-Evaluation" exists; the closest is the 3-bullet Risk Assessment template at lines 1476 / 2551 / 2872.)
    3. Add Derived AC-5? One-line cross-ref in §6d sub-prompt 4 ("Sibling sites") so the three callouts (§4 Q5 intra-file, §5 Scan cross-file, §6d Q4 adversarial re-read) form a coherent ladder rather than three competing rules. Recommend yes — trivial cost, high coherence value.

    Risks & Conflicts

    Recommended Workflow

    spec → exec → qa. Testgen skipped (all ACs Manual Test); no browser-test phase (no .tsx/.jsx); no /verify phase (no scripts/CLI). Quality loop disabled.

    Label

    Recommend gh issue edit 587 --remove-label cli — this is a skill-prose change, not a CLI/interface change. Repo has no docs/skills label.

  3. added
    planned
    on May 6, 2026
  4. admarble commented on May 6, 2026

    @admarble
    ContributorAuthor

    Implementation Complete

    PR: #589

    AC Coverage

    AC Status Evidence
    AC-1: §4 fifth question, language-neutral example ✅ MET templates/skills/qa/SKILL.md:1462 — Q5 with destructive-operation + null-check examples (no bash-specific phrasing)
    AC-2: §4 (intra-file) vs §5 (cross-file) explicit cross-reference ✅ MET Q5 closing sentence: "Complementary to Section 5's cross-file sibling-site scan: §4's question is intra-file…; §5 is cross-file…". §5 prose reframed (lines 1485, 1487) so the cross-ref is honest.
    AC-3: Mirrored across all three qa/SKILL.md files ✅ MET diff -q .claude/skills/qa/SKILL.md skills/qa/SKILL.md && diff -q .claude/skills/qa/SKILL.md templates/skills/qa/SKILL.md both clean.
    AC-4: **Sibling-line audit:** bullet in 3 Risk Assessment instances ✅ MET grep -c "Sibling-line audit:" {templates,.claude,}.skills/qa/SKILL.md → 3 hits per file (9 total).

    Files Changed

    • templates/skills/qa/SKILL.md (+10 / -6)
    • .claude/skills/qa/SKILL.md (+10 / -6)
    • skills/qa/SKILL.md (+10 / -6)

    Spec Open Questions — Resolution

    1. §4-vs-§5 framing: Proceeded with Option A (recommended in spec) — reframed §5 prose so §4 Q5 owns intra-file and §5 owns cross-file. Substantive: §5's "When to apply" example changed from pre-tool.sh regex blocks (intra-file) to "regex blocks repeated across multiple hook scripts" (cross-file). Without this reframe, AC-2's "§5 is cross-file" claim would be inaccurate.
    2. AC-4 location: Treated "Self-Evaluation section" as the existing Risk Assessment output block (3 instances). Added the new bullet alongside the existing **Sibling sites considered:**.
    3. Derived AC-5 (§6d cross-ref): Skipped to keep the change minimal/scoped to the original 4 ACs. §6d Q4's reference to "single-pattern file" is now slightly inconsistent with §5's cross-file reframe — flagged here for /qa to evaluate; standalone follow-up is also acceptable.

    Quality Gates

    Check Status
    npm run build ✅ Passed
    npm run lint ✅ Passed
    npm test ✅ Passed (117 files / 2819 tests)
    npm run validate:skills ✅ qa/ validates (preexisting _shared/ warning unrelated)

    Test Coverage Analysis

    Changed File Tier Has Tests?
    templates/skills/qa/SKILL.md Optional (skill prose) N/A — markdown content
    .claude/skills/qa/SKILL.md Optional (skill prose) N/A — markdown content
    skills/qa/SKILL.md Optional (skill prose) N/A — markdown content

    Skill markdown is consumed by Claude at runtime, not unit-tested. Verification is the manual grep/diff per spec ACs.

    Pre-PR Confidence Check

    Next Steps

    Run /qa 587 to verify the new prompt works as intended (mentally apply Q5 to PR #579's exec-agents loop and confirm a reviewer would catch round-1's missed sibling site).

  5. admarble commented on May 6, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #587 (Simple Fix)

    Size Gate

    Check Value
    Diff size 48 lines (30 +, 18 -; threshold: 100)
    package.json changed No
    Security-sensitive paths No
    Decision Inline checks (Simple Fix mode)

    AC Coverage

    AC Description Status Notes
    AC-1 §4 includes a fifth question prompting intra-file sibling-site audit, with a language-neutral example (no bash-specific phrasing) ✅ MET */qa/SKILL.md:1462 adds Q5 with two abstract examples ("destructive operation invalidates a resource", "wrong null-check") — no bash/shell-specific phrasing.
    AC-2 Prose explicitly distinguishes §4 (intra-file) vs §5 (cross-file) with cross-reference ✅ MET Q5 closing sentence: "Complementary to Section 5's cross-file sibling-site scan: §4's question is intra-file…; §5 is cross-file…". §5 prose reframed (When to apply, scan instructions, and trailing "look at adjacent files" line) so the cross-reference is honest.
    AC-3 Mirrored across all three qa/SKILL.md files ✅ MET diff -q .claude/skills/qa/SKILL.md skills/qa/SKILL.md && diff -q .claude/skills/qa/SKILL.md templates/skills/qa/SKILL.md → both clean.
    AC-4 Self-Evaluation/Risk Assessment template adds **Sibling-line audit:** line in 3 instances ✅ MET grep -c "Sibling-line audit:" $f → 3 hits per file (9 total). Spec correctly resolved "Self-Evaluation" → existing Risk Assessment block (the only such template that exists).

    Coverage: 4/4 AC items fully met


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK (markdown only)
    Deleted tests 0 OK
    Files changed 3 OK
    Lines added +30 -
    Lines deleted -18 -
    Security patterns 0 OK

    CI Status

    Check State Bucket Impact
    Plugin Structure Validation SUCCESS pass ✅ MET
    validate-skills SUCCESS pass ✅ MET
    Hooks Validation SUCCESS pass ✅ MET
    typecheck SUCCESS pass ✅ MET
    Setup Directory Creation SUCCESS pass ✅ MET
    validate-plugin SUCCESS pass ✅ MET
    build (20.x) IN_PROGRESS pending ⏳ PENDING
    build (22.x) IN_PROGRESS pending ⏳ PENDING

    CI Summary: 6 passed, 2 pending, 0 failed. No CI-related ACs (markdown-only change). Builds are in flight; ACs are unaffected because the changed files are skill prose with no compiled-code surface.


    Code Review

    Strengths:

    • Minimal, focused, additive. Adds a single Q5 to the §4 checklist + one new bullet to the Risk Assessment template. No section renumbering, no algorithm changes.
    • Honest §5 reframe. PR feat(qa): add sibling-site scan prompt to first-pass /qa verdict checklist #573 originally framed §5 as "look at the same file" (intra-file). After this PR, §4 Q5 owns intra-file and §5 owns cross-file — the cross-reference now matches reality. The reframe is substantive (not just labeling): the example shifted from pre-tool.sh regex blocks (intra-file) to "regex blocks repeated across multiple hook scripts" (cross-file).
    • Three-way mirror is clean. Per feedback_read_each_mirrored_file.md and feedback_grep_as_checklist.md, all three skill directories are byte-identical, verified by diff -q.
    • Q5 prose improves on the issue's proposed text. Adds explicit (other lines/functions in the same file with the same root cause) and (other files in the codebase with the same vulnerability) clarifiers that make the intra/cross distinction unambiguous.

    Issues:

    • §6d Q4 ("Sibling sites" sub-prompt) still references the old framing. Line 1927 of each SKILL.md says: "If that scan was Skipped/N/A, briefly justify why no sibling site exists (e.g. 'single-pattern file' / 'test-only diff')". After the §5 reframe, "single-pattern file" no longer matches §5's scope (cross-file). This is the exact intra-file sibling-site that the new §4 Q5 prompt is designed to surface (see Adversarial Re-Read below). The exec phase honestly flagged this and deferred it — non-blocking, but a small follow-up.

    Suggestions:

    • Tiny tightening of §6d Q4: change 'single-pattern file' / 'test-only diff' → 'no cross-file siblings' / 'test-only diff' to align with the §5 reframe. ~30-second follow-up issue or rolled into the next QA-skill PR.

    Test Coverage Analysis

    Changed File Tier Has Tests? Test File
    templates/skills/qa/SKILL.md Optional (skill prose) N/A Markdown content; consumed by Claude at runtime, not unit-tested
    .claude/skills/qa/SKILL.md Optional (skill prose) N/A Same
    skills/qa/SKILL.md Optional (skill prose) N/A Same

    Coverage: N/A — skill markdown is exercised by future /qa runs, not Vitest. Verification mechanism is the literal grep/diff in the ACs (3 hits per file ✅, three-way mirror clean ✅).


    Anti-Pattern Detection

    No code patterns to flag — all changes are prose in markdown. No eval, no innerHTML, no hardcoded secrets. Skill Command Verification + Detection Pattern Verification are both Not Required because:

    • No new shell commands (gh/npm/npx/git) in the diff.
    • No new grep/awk/jq/sed invocations or regex literals in the diff.
    • The word "grep" appears in prose ("Don't automate via grep — false-positive risk") but not as a command.

    Risk Assessment

    • Likely failure mode: A future QA reviewer treats **Sibling-line audit:** as boilerplate ("none — single-call-site fix") without doing the actual scan, neutralizing the value of the new prompt. Mitigation is the existing feedback_qa_first_pass_thoroughness.md discipline; the lever here is visible absence, not a verdict-blocker.
    • Not tested: Skill markdown has no automated test surface. The new Q5 will only prove its value the next time a single-call-site fix masks a sibling-line bug — i.e., a counterfactual test against PR fix(#575): cleanup-worktree.sh stays on main worktree before destructive remove #579's exec-agents loop, performed mentally during this QA (see Adversarial Re-Read below).
    • Sibling sites considered: N/A — cross-file sibling-site scan does not apply (no source code changes; the only sibling is the skill itself, which is mirrored to all three locations and verified by diff).
    • Sibling-line audit: One sibling-line residue found — §6d Q4 ("Sibling sites" sub-prompt) at line 1927 of each SKILL.md still cites 'single-pattern file' as a justification for "no sibling site exists." That phrase belonged to the pre-reframe §5 (intra-file). After this PR's §5 reframe, the example is stale. This is exactly the bug class the new §4 Q5 catches — and dogfooding it against this very PR surfaces the residue. Non-blocking; recommended as a follow-up.

    Self-Dogfood: §4 Q5 against PR #579 (the motivating example)

    The issue body cites PR #579 (templates/scripts/cleanup-worktree.sh) as the case study. Round 1 fixed the cited line (git worktree remove $WORKTREE_PATH after cd $WORKTREE_PATH) but missed the structurally identical sibling site — the .exec-agents/agent-* cleanup loop three lines earlier with the same cd → destructive git worktree remove pattern.

    Mentally applying the new §4 Q5 prompt to PR #579 round-1:

    "Does the same root-cause pattern exist at sibling sites in this file?"
    Root cause: a destructive operation (git worktree remove) invalidates the cwd that subsequent git calls depend on.
    Other call sites in the same file? Yes — for agent_dir in "$EXEC_AGENTS_DIR"/agent-*; do ... git worktree remove "$agent_dir". Same root-cause pattern.

    A reviewer following Q5 would have caught round-1's gap before the user prompted "any gaps?". ✅ Prompt works as intended.


    Adversarial Re-Read (compact, per Simple Fix)

    What the structured pipeline didn't surface:

    • §6d Q4 cross-reference drift — surfaced above. The 'single-pattern file' example in §6d Q4 is now inconsistent with §5's cross-file reframe. Caught by dogfooding §4 Q5 on this PR.
    • Verbatim AC fixtures from the issue body all match. The proposed Q5 wording in the issue body is implemented verbatim with two minor improvements (Examples: → Example:, plus added intra/cross-file parenthetical clarifiers in the closing sentence). No regression.
    • Out-of-scope but adjacent (Non-Goals territory): The exec phase deferred the §6d cross-ref tidy-up, leaving the §6d Q4 residue. This is acceptable as a follow-up but should not be silently dropped — flagged here.
    • Process state: Working tree clean; PR feat(#587): /qa §4 Q5 intra-file sibling-site audit + cross-file §5 reframe #589 open; phase markers spec:completed and exec:completed present; no prior QA marker.
    • Mirror sync: Verified clean three ways. Past pitfall in MEMORY.md does not bite here.

    Verdict: AC_MET_BUT_NOT_A_PLUS

    All 4 ACs are literally MET. The change is small, focused, well-mirrored, and substantively improves the §5 framing while adding a discrete new prompt. CI is green except for two build jobs still in progress (markdown-only diff — no functional risk).

    The downgrade from READY_FOR_MERGE is for one residue: §6d Q4's 'single-pattern file' example is stale after the §5 reframe. The exec phase flagged it honestly and offered to defer; this QA confirms the deferral is safe but the cross-ref should be tidied in a follow-up. Without this small inconsistency, this PR would be A+.

    Documentation

    • N/A - Skill prose change; no README/docs update needed
    • CHANGELOG: skill-internal change, not user-facing (no [Unreleased] entry expected)

    Next Steps

    1. Merge once build (20.x) and build (22.x) complete green — they're in progress and the diff is markdown-only, so no functional risk; the verdict is unaffected by their completion.
    2. File a follow-up issue to update .claude/skills/qa/SKILL.md:1927 (and mirrors) so §6d Q4's 'single-pattern file' example matches the §5 reframe — e.g. change to 'no cross-file siblings'. ~30-second fix; could roll into the next QA-skill change.
    3. Watch for the new prompt's first real catch in the next single-call-site fix to surface its value.

  6. added
    needs-improvement
    on May 6, 2026
  7. added 2 commits that reference this issue on May 7, 2026
  8. admarble commented on May 7, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #587 (Simple Fix)

    Size Gate

    Check Value
    Diff size 66 lines (additions=39, deletions=27 — threshold 100)
    package.json changed No
    Security-sensitive paths No
    Decision Inline checks (Simple Fix mode)

    AC Coverage

    AC Description Status Notes
    AC-1 §4 fifth question, intra-file sibling-site audit, language-neutral example MET Added at qa/SKILL.md:1462. Example uses "destructive operation"/"resource"/"null-check"/"access pattern" — all language-neutral; no bash-specific phrasing.
    AC-2 Distinguishes §4 (intra-file) from §5 (cross-file) MET §4 Q5: "Complementary to Section 5's cross-file sibling-site scan: §4's question is intra-file ... §5 is cross-file ...". §5's reframed prose at L1487: "scan other files in the codebase ... Intra-file sibling sites are covered by §4 Q5; this scan is the cross-file complement." Mutually consistent.
    AC-3 Mirrored across all three qa/SKILL.md MET diff -q between all three pairs returns no output.
    AC-4 **Sibling-line audit:** bullet in 3 Risk Assessment instances MET grep -c '\*\*Sibling-line audit:\*\*' qa/SKILL.md returns 3 per file × 3 mirrors = 9 hits total. Bullets at L1478 (§5), L2554 (Simple Fix template), L2876 (Standard template).

    Coverage: 4/4 AC items fully met

    Prior-QA Residue Resolution

    The prior QA at c2d9d796 flagged one residue (verdict: AC_MET_BUT_NOT_A_PLUS): §6d Q4 still referenced 'single-pattern file' (a §5-specific example phrase) after the §5 cross-file reframe. Commit bb36102e fixed exactly that — §6d Q4 row at L1927 now reads: "Cross-file siblings: covered by Section 5's Sibling-site Scan when applicable. Intra-file siblings: covered by Section 4 Q5's audit. If both are Skipped/N/A, briefly justify why no sibling site exists (e.g. 'no cross-file siblings + single-call-site fix' / 'test-only diff')."

    grep -c 'single-pattern file\|same file/module' returns 0 in all three mirrors — the residue is fully cleaned up.

    Quality Metrics

    Metric Value Status
    Type issues (any) 0 (prose-only diff) OK
    Deleted tests 0 OK
    Files changed 3 OK
    Lines added +39 -
    Lines deleted -27 -
    Security patterns 0 OK

    CI Status

    Check State Conclusion Impact
    typecheck COMPLETED SUCCESS ✅ MET
    validate-skills COMPLETED SUCCESS ✅ MET
    Hooks Validation COMPLETED SUCCESS ✅ MET
    validate-plugin COMPLETED SUCCESS ✅ MET
    Setup Directory Creation COMPLETED SUCCESS ✅ MET
    build (20.x) COMPLETED SUCCESS ✅ MET
    build (22.x) COMPLETED SUCCESS ✅ MET
    Plugin Structure Validation COMPLETED SUCCESS ✅ MET

    CI Summary: 8 passed, 0 pending, 0 failed.

    Markdown-Only Diff Relaxation (post-#569): This QA exercises the relaxation logic that just merged. Helper output: {"isMdOnly":true,"enabled":true,"relaxed":[],"gating":[]} — structural no-op (correct: relaxation is on, but there's nothing pending to reclassify). Had this QA run while the build matrix was mid-flight, those 3 checks would have been bucketed as relaxed and the verdict could have resolved without waiting on them.

    Code Review

    Strengths:

    • §4 Q5's example mirrors the issue body's motivating PR fix(#575): cleanup-worktree.sh stays on main worktree before destructive remove #579 case literally — "if a destructive operation invalidates a resource that subsequent code depends on, scan for other destructive operations on that resource type in the same function/loop" describes exactly the git worktree remove / cwd invalidation bug that triggered this issue. The audit prompt would catch the same bug class on a first-pass review.
    • §4-vs-§5 framing now factors cleanly: Q5 owns intra-file, §5 owns cross-file. §6d Q4 cross-references both.
    • Visible-absence as the lever (template bullet, no verdict gate) matches §5's existing stance — additive, no new failure mode for prior QA pipelines.

    Issues:

    • None blocking.

    Suggestions:

    • None at this time.

    Test Coverage Analysis

    Changed File Tier Has Tests? Test File
    .claude/skills/qa/SKILL.md Standard (prose) N/A — (skills are prompts, not code)
    skills/qa/SKILL.md Standard (prose) N/A —
    templates/skills/qa/SKILL.md Standard (prose) N/A —

    Coverage: N/A — prompt prose changes have no automated test surface. Validation is npm run validate:skills (skill-structure correctness) plus the prior commit's npm test (2819 tests passing per PR body).

    Anti-Pattern Detection

    File:Line Category Pattern Suggestion
    — — — None detected (prose-only diff)

    Risk Assessment

    • Likely failure mode: Reviewers may skip the new §4 Q5 audit on time pressure and the visible-absence lever (template bullet) doesn't trigger a verdict downgrade. The cost ($30s/PR) is real but bounded.
    • Not tested: The new prompt's effectiveness is observable only on the next intra-file sibling bug class. Self-dogfood done below — see Adversarial Re-Read row 1.
    • Sibling sites considered: None — no cross-file siblings (this is the §5 question; not applicable since changes are confined to qa/SKILL.md mirrors which are duplicates of one another, not sibling files in the cross-file sense).
    • Sibling-line audit: Adjacent §4/§5/§6d/template surfaces in qa/SKILL.md were all updated in lockstep — grep -c 'single-pattern file\|same file/module' returns 0 in all three mirrors, confirming no stale framing residue. Single-call-site fix per AC-3's identical-mirror constraint.

    Adversarial Re-Read of Core Logic

    Per Simple Fix Mode, this is the inline supplement (no formal §6d):

    1. Verbatim fixtures: Issue body's motivating example is PR fix(#575): cleanup-worktree.sh stays on main worktree before destructive remove #579's templates/scripts/cleanup-worktree.sh exec-agents loop where git worktree remove $WORKTREE_PATH invalidated cwd that subsequent code depended on. The new §4 Q5 example explicitly describes this pattern ("if a destructive operation invalidates a resource that subsequent code depends on, scan for other destructive operations on that resource type in the same function/loop"). The deferred self-dogfood from the PR body's test plan is now satisfied: the new prompt LITERALLY describes the bug it was designed to catch.
    2. Evidence framing: All claims in the implementer's PR body are post-fix validations, not bug repros (build pass, lint pass, tests pass, mirror parity verified, AC-4 grep returns 3 hits per file). No conflation.
    3. Process state: Working tree clean after my temp checkout; pr589 branch deleted. No untracked stale state.
    4. Out-of-scope: Issue Non-Goals not explicitly listed, but the PR body's "Not a verdict-blocker" framing matches §5's existing stance — no scope creep into the verdict algorithm.

    Verdict: READY_FOR_MERGE

    All 4 ACs literally met. Prior QA's residue is fully resolved by commit bb36102e. The §4 Q5 example matches the PR #579 motivating case verbatim, satisfying the deferred self-dogfood. 3 mirrors byte-identical. 8/8 CI green. No blocking issues; no improvement suggestions surfaced.

    The merged markdown-only-CI-relaxation logic from #569 engaged correctly here as a structural no-op (no pending checks to relax). First real-world post-merge validation passes.

    Documentation

    • N/A — skill prose change; no README/docs update needed
    • CHANGELOG: skill-internal change, not user-facing — no [Unreleased] entry expected

    Next Steps

    1. Merge PR feat(#587): /qa §4 Q5 intra-file sibling-site audit + cross-file §5 reframe #589.
    2. The new §4 Q5 prompt is now active for all subsequent /qa runs — its first real catch will be on the next single-call-site fix where the same root-cause pattern lurks one function over.
  9. added
    ready-for-review
    and removed
    needs-improvement
    on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementplannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions