Skip to content

feat(#465): add small-diff fast path to QA skill - #469

Merged
admarble merged 2 commits into
mainfrom
feature/465-qa-skill-add-small-diff-fast-path-to-skip-sub-agen
Mar 26, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/465-qa-skill-add-small-diff-fast-path-to-skip-sub-agen

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add size gate to /qa skill: diffs below configurable threshold (default 100 lines) with no package.json changes and no security-sensitive paths use inline quality checks instead of spawning 3 sub-agents
  • Add simplified output template that omits N/A-heavy sections (Quality Plan, Incremental QA, Call-Site Review, Smoke Test, CLI Registration, Skill Command Verification, etc.) for small diffs
  • Add QASettings interface with smallDiffThreshold to settings.ts, configurable via .sequant/settings.json (qa.smallDiffThreshold)

AC Coverage

AC Description Status
AC-1 Size gate for inline quality checks ✅ Implemented
AC-2 Simple fix output mode ✅ Implemented
AC-3 Configurable threshold via settings.json ✅ Implemented
AC-4 Security-sensitive path detection reuses existing heuristic ✅ Implemented
AC-5 (Derived) Fallback to full pipeline on error ✅ Implemented
AC-6 (Derived) Log size gate decision ✅ Implemented

Test plan

  • npm run build passes
  • npm run lint passes
  • npm test passes (6 new QA settings tests, pre-existing timeout in state-utils unrelated)
  • Manual: run /qa on a small diff (<100 lines) and verify inline checks + simplified output
  • Manual: run /qa on a large diff (>=100 lines) and verify sub-agents still spawn

Closes #465

🤖 Generated with Claude Code

Add a size gate that skips sub-agent spawning for trivial diffs
(< 100 lines, no package.json changes, no security-sensitive paths).
Includes simplified output template and configurable threshold via
qa.smallDiffThreshold in .sequant/settings.json.
grep -c always outputs the count (even "0") but returns exit code 1 on
zero matches. Combined with || echo "0", this produces "0\n0" in the
variable, breaking downstream arithmetic. Also fixes overbroad 'any'
pattern (grep -c → grep -cw) and adds QA small-diff fast path docs.
@admarble
admarble merged commit e16f3ac into main Mar 26, 2026
6 of 8 checks passed
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.

QA skill: add small-diff fast path to skip sub-agents for trivial changes

1 participant