Repository navigation
Prompt router stops naming your bug-fix skill on bug reports, and CLAUDE.md drops the failing-test-first step - #4707
Merged
Merged
Conversation
…AUDE.md bug line drops the failing-test-first step In a preregistered test on 183 real Python bugs (gstack-evals#426), naming the bug-fix skill got its steps followed in 80% of sessions against 3%, but fixed no more bugs (-1.5 points, 95% interval -3.8 to +0.9). The hook still routes /review, /qa and /verify as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… supersedes them Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=red-team Review-Finding: p1/specialist-batched#2 reader=api-contract Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ps a failing-test-first step Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Ruled note on the second-model review's finding #2 (lib/skill-route.ts:425: "test" is treated as a generic word, so a third-party "debug failing tests" trigger is dropped): main already named such a skill by itself on every bug report. Narrowing GENERIC_CLAIM_WORDS waits until a real trigger is lost. Finding #1 (lib/skill-route.ts:395) stays deferred, because main does the same when no generic fixer exists. |
Merged
3 tasks done
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.
gstack's prompt hook no longer names an installed bug-fix skill (prove-it and the like) on bug reports, and the CLAUDE.md bug line drops "a focused failing test first".
Why: in gstack-evals#426, on 183 real Python bugs, naming that skill got its steps followed in 80% of sessions against 3%, but fixed no more bugs (-1.5 points, 95% interval -3.8 to +0.9).
Nothing to do: /review, /qa and /verify route exactly as before.
What changed
Until now, when a prompt read like a bug report and you had a bug-fix skill installed, the hook told the model to run that skill, alone, and named it first even beside /verify. The hook now names no skill for that reason. A third-party trigger that names only a bug and fixing it ("fix this bug", "reproduce the bug in a test") no longer routes at all, so the skill is not named through its own triggers either; a trigger with its own target ("fix lint errors", "fix postgres bugs") still routes. The CLAUDE.md bug line now reads "fix them directly: one read-only check of the cause, then fix it", in this repo's CLAUDE.md and in the test copy of the routing section older projects still have.
Two pieces stay. The bug-report signs added in #4674 and the feature-title rule from #4694 still decide whether a prompt reads as a bug report. That reading no longer names a skill, but it still keeps a reported defect away from /review and /qa unless it asks for them in their own trigger words, and it decides whether a defect word counts as an everyday word when scoring. Removing either would change how gstack's own skills route, so both stay, with their fixtures; their tests now check the classification directly. The guard against routing messages from other agents (#4423) is unchanged.
Why
gstack-evals#426 (B2) compared the bug-fix skill named by the hook against plain gstack on Opus 5.5, GPT-6.2 Sol and particle-1. The steps were followed (80% against 3%) but passes moved -1.5 points [-3.8, +0.9] and passes with a regression test +1.6 [-1.0, +4.3]. Garry cut both pieces on 2026-11-22. B1f (gstack-evals#432) found the hook is the only reliable route to its other skills, so the rest of it stays.
Blast radius
Only the routing hook,
gstack-skill-route --explainand the CLAUDE.md line change. A before/after replay of all 222 prompts in the router's fixtures (60 synthetic, 60 first-draft, 8 QA-overlap, 34 feature-title probes, 60 plain), on Claude and Codex, with and without prove-it installed (888 decisions), ran the realroutePrompton main (f528f5b) and this branch: with gstack's skills alone, 0 of 444 decisions change; with prove-it installed, 234 change, every one from naming prove-it to exactly what main routes without it (224 to no skill, 10 to /verify). prove-it is named on 0 prompts, andbugReport()gives the same answer on all 222.--explain --jsonno longer printsbug_report, and the routing log no longer writesbug_report=true; nothing in this repository reads either.Pre-Landing Review
Light depth, one full pass (specialists, then a Claude adversarial reader and a second-model review on GPT-6.2 Sol). The two specialist notes were fixed in the docs and changelog. The second-model review raised two findings it called blocking. One, a generic crash report reaching a narrower repair skill on a repair verb alone, is how main already routes when no generic bug-fix skill is installed (code this PR does not change), so it is deferred below. The other, that "test" counts as a generic word so a test-diagnostics trigger such as "debug failing tests" no longer routes, was skipped: main already treated exactly those triggers as a bug-fix skill's and named that skill alone on every bug report, which is the behavior this change cuts. Neither would fail a test, break production or lose data. The docs/skills.md note below was fixed by the documentation audit.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.
lib/skill-route.ts:395a generic crash report can route to a scoped repair skill on a repair verb aloneReview notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/skill-route.ts:554claimsBugReports also drops triggers that name tests or a crash as their targetlib/skill-route.ts:554a skill whose triggers are all dropped is silent in --explaindocs/skills.md:665docs/skills.md still describes the failing-test-first clause in the CLAUDE.md routing blockbin/gstack-skill-route:49bug_report key removed from --json and the routing loglib/skill-route.ts:424reproducing stems to reproduc, so that spelling of a generic trigger is not suppressedTODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual fix; no blockers.
Scope: 12 committed files on
stop-naming-bug-fix-skill(base f528f5b, head dc6555d), plus every authored doc grepped for stale bug-report routing claims (bug_report, the bug-fix skill named first, a failing test first). Staged, unstaged and untracked content were empty.Documentation health:
docs/skill-routing-and-contracts.md: Current. The branch already updated it: the bug-report rule is gone, and the--jsonand routing-log mentions ofbug_reportwere removed.CLAUDE.md: Current. The bugs line was updated in the branch.docs/skills.md: Updated. The /investigate section no longer says the CLAUDE.md routing block keeps a failing-test-first step.changelog.d/stop-naming-bug-fix-skill.md: Current. Not edited, because it is protected.Coverage debt:
gstack-skill-route --jsonno longer printsbug_report. That change is covered in reference docs (the routing doc and the changelog); no how-to is needed. No new public surface.Diagram drift: none. No diagrams reference the router.
Tests
bun test test/skill-route.test.ts: 38 pass, 0 failbun test test/skill-validation.test.ts: 320 pass, 0 failbun test test/setup-skill-hooks-gate.test.ts: 29 pass, 0 failbun run typecheckandbun run typecheck:test: cleanAgent notes
Agent notes
Refs GST-3538. Owner thread GSTA-807 (GStack Minder crew).
Replay: ~/.capy/work/replay/{main,branch}.jsonl on the lane machine; script ~/.capy/work/replay/replay.ts.
Gate edits: 15 listed, 15 read, 0 findings — 0 kept, 0 restored, 0 open
REVIEW_LOOP: passes=1 blocking_found=2 deferred=1 noted=5 fixed=2 scope=frozen ledgers_read=2 dispatches=1
Skipped (lane decision, flagged to the Captain): outside-voice#2 lib/skill-route.ts:425.
Approvals
Approved: yes (record r-fb6e69b8dd7b). The full approval record stays private.
Plan: approved (record r-f3dabfe2e1e6)
Plan check: approved (record r-f3dabfe2e1e6)