Repository navigation
The prompt-routing hook names your installed bug-fix skill on bug reports, and never puts /verify first (GST-3237) - #4539
Merged
Conversation
…(GST-3237, GST-3142) A prompt that reads as a bug report now goes to the installed skill whose triggers claim bug fixing, named alone, so /verify is never ranked ahead of it. On B1's 60 in-sample prompts the hook names prove-it on all 46 bug reports (before: 40 of 60, /verify first on 7). Another installed skill's trigger needs two content words, and the opt-in step and contract hint styles quote only gstack's own skills. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ontradicting themselves The router's PROACTIVE=all rule told the model never to answer directly when a skill exists, while its own "When to invoke, and when not to" section says to answer quick factual questions directly. It now invokes the matching skill subject to that section. /ship's router rule and its description stop listing "deploy": /ship stops at a pull request, and deploying is /land-and-deploy. Rebuilt on current main from the ideas in #4500 and #4501. Co-authored-by: Lubos Buracinsky <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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>
…fixers for other targets A trigger now claims bug reports only when it names the defect and fixing it and nothing else, so a lint or link fixer no longer takes every bug report. A prompt that uses a full /review or /qa trigger keeps that skill. The negation sign now reads can't and won't. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/adversarial-native#4 reader=adversarial-native Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…uests Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…rs whole and no fix is asked A request to review or QA keeps /review or /qa only when one of their triggers appears as a whole phrase and the prompt never asks for a fix, so web-app bug reports that mention a site or a review still go to the bug-fix skill. Review-Finding: p2/red-team#1 reader=red-team Review-Finding: p2/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549) - For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543) - The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534) - A green CI run still counts when the repository's artifact storage is full. (#4536) - `/cso` now audits repositories that track symlinks. (#4567) - A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555) - The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554) - Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542) - A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544) - When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553) - The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539) - Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568) - /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552) - /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565) - The prompt-routing hook no longer acts on words inside backticks. (#4566) - In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509) - gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537) - gstack now says what it's adding before it adds a background job or a browser extension. (#4538) - For contributors: every flaky pass in Free Tests is now recorded. (#4572) - For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570) - Secret values written as `name=value` at the end of a path are now hidden. (#4571) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
On a bug report, the routing hook now names the installed bug-fix skill (prove-it, or any skill whose triggers claim bug fixing) alone, so /verify is never ranked ahead of it.
Why: in B1d, Opus 5.5 loaded prove-it in 29 of 33 sessions when the hook named it alone and 0 of 20 when it didn't; the old matcher named it on only 40 of B1's 60 prompts.
Nothing to do: the hook line's wording is unchanged.
What changed
Bug reports were getting /verify first, or no bug-fix skill at all, so the model often skipped the skill built for fixing bugs. Now a prompt that reads as a bug report names the installed bug-fix skill alone.
lib/skill-route.ts). A prompt reads as a bug report on one strong sign (a symptom word such as crash, hang, leak or wrong; an exception name; the verb fix; "expected behavior", "steps to reproduce"; "fails", "doesn't work"; a "should X, not Y" correction) or two different weak ones (error or exception used as a noun, a negated verb such as "can't", "should", "instead of"). gstack's own routed skills (/review, /qa, /verify) only check work, so they never claim one. With no bug-fix skill installed, routing is as before.--explain; the skill keeps its other triggers.GSTACK_SKILL_ROUTE_HINT=stepand=contractquote only gstack's own skills (GST-3142). Another skill gets the default line.PROACTIVE=allno longer says "Do NOT answer directly when a skill exists", which contradicted "When to invoke, and when not to". /ship's router rule and description drop "deploy"; deploying is /land-and-deploy.bug_report=true, andgstack-skill-route --explainsays when a route came from a bug report.Why
The routing hook exists to put the right skill in front of the model. On bug reports it was naming /verify first or nothing, and in B1d that decided whether the model used the bug-fix skill at all (29 of 33 sessions with it named alone, 0 of 20 without).
Blast radius
The change is inside the routing hook's matcher (
routePromptand its helpers), read by the Claude hook andgstack-skill-routeonly; both callers were updated and nothing else calls it (grep ofroutePrompt(). The hook only adds a hint line, so a misroute costs a wrong suggestion, never a failed command (test/skill-route.test.ts, 29 tests, and the full free suite in CI run 44617369574).Measured on B1's 60 in-sample prompts
test/fixtures/skill-route-b1-in-sample.jsonholds them byte for byte (each prompt's sha256 matches the B1d preregistration), with a bug or feature label written before the bug-report check. 46 are bug reports, 14 ask for new behavior.The sealed held-out tasks were never opened. The counts were rechecked after every review fix at f30cfd8.
Pre-Landing Review
Two full review passes and one extra check of the last fix found 12 issues; 7 were fixed and 5 ship as notes below the blocking bar.
--threshold; skipped one-word triggers add to the routing failure counter; a review request that uses "fix" as a noun ("code review my fix") now goes to the bug-fix skill, and that case has no test.Exploratory QA
Four probes of
gstack-skill-route --explainagainst an isolated skills folder: a crash report routes to the bug-fix skill alone, a one-word third-party trigger is skipped, a plain review request still routes to /review, and /qa's own trigger was checked as the riskiest case. All passed.Documentation
Status: current. The branch's own doc changes already match the code, so this audit made no edits.
Scope: committed diff ab6a38b..f30cfd8 on routing-hook-names-bug-fix-skill (14 files; nothing staged, unstaged or new). Authored docs checked against lib/skill-route.ts, bin/gstack-skill-route and hosts/claude/hooks/skill-route-hook.ts.
Documentation health
Coverage debt: none found. Diagram drift: the hook's flow comment was updated in the same diff; no other diagrams are affected.
Issues
Refs #4500
Refs #4501
Tests
bun test test/skill-route.test.ts: 29 pass, 0 failbun test test/parity-suite.test.ts: 2 pass, 0 failbun run test(free suite): carried from CI run 44617369574 at f30cfd8, 1712 filesbun run typecheckandbun run typecheck:test: no new diagnosticsAgent notes
Approvals
Approved: yes (record r-9cd2934b070f). The full approval record stays private.
Plan: exempt: bug fix
Plan check: exempt bug fix
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=9 fixed=7 scope=frozen fix_checks=1 dispatches=10
Gate edits: partial (1 of 7 eligible read), 0 findings
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-19 via grant relayed by the lane's parent agent; approval a-6e02413ab58b: Captain GStack Minder (GSTA-36), 2026-11-19: one fix-check on #4539 at 6486ffd, for the round-1 regression only: a bug report skips the bug-fix route only when a /review or /qa trigger appears as a whole phrase, and never when the prompt asks for a fix. Add a test with both crash examples, plus a 'review this PR for bugs' → /review control. Reason: it breaks the brief's item 1 on web-app bug reports, which the fresh-draw re-measure will contain. (fix-check at f30cfd8, 2 findings)