Skip to content

feat(#299): add call-site review check to QA skill for new functions - #311

Closed
admarble wants to merge 1 commit into
mainfrom
feature/299-feat-add-call-site-review-check-to-qa-skill-for-ne
Closed

admarble wants to merge 1 commit into
mainfrom
feature/299-feat-add-call-site-review-check-to-qa-skill-for-ne

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds Section 2f "Call-Site Review" to the QA skill that triggers when new exported functions are detected
  • Creates reference document with detailed methodology and examples based on the Issue fix: Rebase worktrees onto main before PR to prevent lockfile drift #295 case study
  • Integrates into existing QA workflow: output template, verification checklist, verdict impact

What's Added

New QA Check: Call-Site Review

When /qa detects new exported functions in a diff, it now performs:

  1. Call-site inventory - Finds all locations where the new function is called
  2. Condition audit - Documents guards/conditions at each call site
  3. Loop awareness - Flags functions called in loops for iteration scope review
  4. AC matching - Compares call-site conditions against AC constraints

Output Format

### Call-Site Review

| Function | Call Sites | Loop? | Conditions | AC Match |
|----------|-----------|-------|------------|----------|
| `rebaseBeforePR()` | `run.ts:2977` | Yes | `success && worktreePath` | ⚠️ Missing chain mode guard |

Verdict Impact

Finding Verdict Impact
All call sites match AC No impact
Call site missing AC-required guard AC_NOT_MET
Function not called anywhere AC_MET_BUT_NOT_A_PLUS

AC Coverage

  • AC-1: QA skill detects new exported functions in the diff
  • AC-2: For each new function, QA identifies all call sites
  • AC-3: Call-site conditions listed and compared against AC constraints
  • AC-4: Functions called inside loops flagged for iteration-scope review
  • AC-5: Findings included in QA output under "Call-Site Review" section

Test plan

  • npm run build passes
  • npm run lint passes
  • npm test passes (1 unrelated flaky timeout test)
  • Run /qa on a PR with new exported functions to verify detection

Files Changed

  • .claude/skills/qa/SKILL.md - Added Section 2f, output template, verification checklist
  • .claude/skills/qa/references/call-site-review.md - New reference doc with methodology

Closes #299

🤖 Generated with Claude Code

- Add Section 2f: Call-Site Review in QA skill (SKILL.md)
- Detect new exported functions in diff (AC-1)
- Find all call sites for new functions (AC-2)
- Audit conditions at call sites vs AC constraints (AC-3)
- Detect functions called in loops and flag iteration scope (AC-4)
- Add Call-Site Review to output template (AC-5)
- Create reference doc: call-site-review.md with methodology/examples

Origin: Issue #295 - rebaseBeforePR() had thorough tests but was called
incorrectly at the call site (for all chain issues instead of final only)
@admarble admarble closed this Feb 22, 2026
@admarble
admarble deleted the feature/299-feat-add-call-site-review-check-to-qa-skill-for-ne branch February 22, 2026 09:40
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: Add call-site review check to QA skill for new functions

1 participant