Repository navigation
The prompt-routing hook suggests skills you install, and stops sending bug reports to /qa (GST-3123) - #4506
Merged
Conversation
…GST-3123) Two of a trigger's words now count only when one of them is specific, or when short everyday words sit within 8 words of each other. On the 60 real bug reports, /qa now takes none (was 3) and /verify 9 (was 11); the 40 that match a bug-fix trigger are unchanged, and the 60 plain prompts still route nowhere. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… triggers (GST-3123) Any installed skill that is not one of gstack's own and lists triggers in its SKILL.md now competes with /review, /qa and /verify. One line names at most two skills, gstack's own skill wins a tie, and a skill whose name or trigger text holds anything but letters, digits, spaces and simple punctuation is skipped. On 60 real bug reports a bug-fix skill is named on 40 (first on 33). --explain and the routing log show each skill's source. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
gstack's own generated skill copies without an ownership marker no longer route, one hook line names a skill once, and the docs state what the trigger character set does and does not stop. Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#2 reader=api-contract Review-Finding: p1/specialist-batched#1 reader=security Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The changelog entry no longer quotes the 60-bug-report counts, which no fixture in the repo backs, and names the generated-copy ownership fix. 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>
…3123) The review fix counted any SKILL.md with gstack's generated-file banner as gstack's own, so a bug-fix skill built from a gstack template (B1's /prove-it) was never named: 0 of 60 bug reports instead of 40. gstack's own skills are now told apart by name, with setup's two alias names added, and not by the banner. 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 19, 2026
- `gstack-artifact validate` no longer passes a run.json that gstack-autoplan never wrote. (#4494) - /ship's changed-number check no longer stops on tests that only share a word with the change (#4478). (#4496) - On Capy, /ship no longer edits or comments on pull requests as you. (#4518) - The destructive-command check stops asking about scratch deletes and catches the real damage it used to miss. (#4513) - The destructive-command check reads commands more carefully, closing gaps found after the last release. (#4525) - The Codex readiness check and the second-model review now pick the same model for a custom Codex provider (GST-3089). (#4491) - gstack's Codex hooks work when your Codex folder's path has a `(`, `&` or other shell character in it. (#4528) - Uninstalling gstack keeps your own Codex hooks trusted. (#4528) - Codex hook setup matches Codex more closely. (#4528) - On Windows, setup copies the Claude Code hook code that gstack's Codex hooks import (#4528) - /review's checklist on Codex reads shell commands more carefully. (#4528) - On Codex, gstack now suggests the right skill for a prompt and stops destructive commands before they run. (#4512) - On Codex, /review is now held once when it tries to finish without its adversarial pass or its report, as it already is on Claude Code. (#4522) - On Codex, gstack's skill suggestion now names the skill the way Codex lists it. (#4523) - On Codex, gstack's suggested prompts and docs now name skills the way Codex lists them. (#4524) - /review on Codex with gpt-6.1-sol is no longer held back for a second-model pass it already ran. (#4526) - On Codex, office-hours, plan-design-review and gstack-upgrade work again when you name them. (#4510) - gstack knows when Codex is running unattended. (#4510) - Codex reviewers start with a clean context. (#4510) - Docs no longer say Codex has no hook support. (#4510) - A command whose output was cut off no longer counts as a finished read. (#4492) - A folder marked as published data can no longer hide source code or agent files from /ship's review. (#4516) - Correction to the on-by-default helper hooks entry: the hook still routes only to /review, /qa and /verify, so skills you've installed yourself aren't suggested yet. With gstack's skills it routes 14 of 60 real bug reports (was 17), and long prompts are no longer skipped. (#4505) - /sync-gbrain's read check now works when the first page in your code source is over 64 KB. (#4497) - Free-suite CI no longer fails before any test runs when Ubuntu's package mirror is slow. (#4530) - Syncing a second repo no longer makes the first one ask for /sync-gbrain again. (#4532) - gstack's helper hooks are now on by default in Claude Code, OpenClaw and Hermes, and the prompt-routing hook fires on real bug reports. (#4503) - `gstack-pregate clear --receipt` accepts a remote gate run from before a merged release when the release only regenerated a declared release output. (#4483) - The second-model review now keeps the reviewer's own result, and reports a used-up budget as a budget stop. (#4515) - When the reviewer wrote its review to the result file it was asked for, Codex then replaced that file with its short closing message ("Done, I wrote the review"), so the review was thrown away and reported as missing its markers. (#4515) - When the provider refuses the call with HTTP 402 Payment Required (usually a metering proxy that hit its allowance, or an account out of credits or quota), gstack used to record only "exit 1". (#4515) - The pre-commit /verify check now fails a check that times out, and its checks share one time budget (GST-3201). (#4527) - /ship's review collector no longer reads a reviewer's own scope list or list of passed checks as findings (GST-3201). (#4527) - Merge-queue stack tests fail when git cannot list a PR's added test files (GST-3201). (#4527) - /ship can now review results PRs that publish raw session data. (#4511) - /ship's review pass works when the checkout you ship isn't the project's default checkout. (#4507) - A second review round no longer reports done when nothing was reviewed. (#4520) - The prompt-routing hook now suggests skills you install yourself, and no longer sends ordinary bug reports to /qa (GST-3123). (#4506) - gstack's script runner and merge-queue checks now also refuse cut-off output. (#4502) - A failed second-model review reports the cause that actually stopped it, and the runner never deletes its own prompt. (#4519) - `gstack-ship-queue ready` now fills in the trial merges and the second-model trail read instead of printing lines to fill. (#4529) - Five small ship-tool fixes. (#4529) - A ruling the owner gives while a `/ship` run is open can be relayed. (#4529) - /ship no longer kills a working test run as stalled when the test command starts its workers in their own session. (#4533) - /ship no longer stops a review because the state-machine reader started its reply the way its instructions say. (#4504) - When Claude Code runs /verify right before a commit, it now gets a quick check instead of the full fix loop (GST-3150). (#4508) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
The prompt-routing hook can now suggest skills you installed yourself: any skill that lists
triggers:in its SKILL.md, not only gstack's /review, /qa and /verify. It also stops sending ordinary bug reports to /qa.Why: a bug-fix skill you install was never named (0 of 60 real bug reports); now it's named on 40 of 60, and /qa takes none of them instead of 3.
Nothing to do after merge.
What changed
gstack-skill-route --explain on a bug report with a bug-fix skill installed: main names nothing, this branch names /prove-it.
Before/after as text: gstack-skill-route --explain on a bug report with a bug-fix skill installed: main names nothing, this branch names /prove-it
You install a bug-fix skill with a "fix this bug" trigger, paste a traceback, and the hook never mentions it, because it only ever scored gstack's own /review, /qa and /verify. Now any installed skill that isn't gstack's own and lists triggers is scored the same way.
Installed skills. One hook line names at most two different skills ("this request fits /verify or /prove-it"), and at the same score gstack's skill comes first. gstack's other skills still never route. A skill is gstack's own when its folder holds
.gstack-owned, its SKILL.md links into gstack's checkout, or its name is one gstack generates or one of setup's alias names (_gstack-command,connect-chrome). A skill built from a gstack-style template is not gstack's own and still routes.Limits on what a skill can put in the line. A skill's triggers are used only when its name is letters, digits,
_ : -, it has at most 12 triggers of at most 200 characters, and every trigger is letters, digits, spaces and. , ' ? ! / -. Otherwise the whole skill is skipped and reported. Trigger text therefore can't leave its quotes or add markup or shell characters, though the quoted words are still the skill author's own./qa and bug reports. A trigger only partly present needs one of its specific words (five letters or more, not the defect word). Short everyday words must sit within 8 words of each other. Before, "pip cannot find ... fails" matched "find bugs on site", and "call site" plus "regression tests" 1,500 characters later matched "test the site".
Where to see it.
gstack-skill-route --explainlists each candidate's source (gstack, or the SKILL.md path) and both routed skills. The routing log addssource=andalso=.Route counts on 60 real bug reports. B1's 60 SWE-rebench tasks, with gstack's /review, /qa and /verify plus a bug-fix skill (/prove-it, triggers "fix this bug", "prove the fix", "reproduce the bug in a test") installed, scored with each commit's own
routePrompt:The review fix in 1bf71b5 counted gstack's generated-file banner as ownership; a template-built /prove-it carries that banner, so at 1bf71b5 through b46e91d (which only changed docs and the release note) it was never named. 2329ada tells gstack's skills apart by name instead. The 60 plain prompts in
test/fixtures/skill-route-plain-prompts.txtroute nowhere at every commit, with /prove-it installed too.Why
"A bug-fix skill you install was never named": the hook dropped every skill but gstack's three before scoring, so a skill written for bug reports got 0 of 60. It's now named on 40 of 60, and /qa stops claiming bug reports on everyday words.
Blast radius
The change is inside the prompt-routing hook (
lib/skill-route.ts,hosts/claude/hooks/skill-route-hook.ts,bin/gstack-skill-route);lib/skill-contract.tsalso callsreadFrontmatterandscanInstalledSkills, andreadFrontmatteris byte-identical to main (checked by the review of the fixes). The hook still always exits 0 and prints nothing on error, so the worst case is a missing or extra suggestion, never a blocked prompt (test/skill-route.test.ts, all 24 focused cases green).Pre-Landing Review
Pre-Landing Review: 3 issues, all three resolved automatically; no approvals requested; 0 deferred, 6 noted.
routePromptnow names each skill once.Second-model review (openai/gpt-6.1-sol): no findings. Exploratory checks, the review readers and both re-reads of the fixes raised no blocker.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
changelog.d/qa-routing-skips-bug-reports.md:1The 40-of-60 and 3-of-60 counts have no raw data in the checkout, and the /verify 9-of-60 result is left out. The release note no longer quotes them; the counts above were recounted from each commit's own lib.lib/skill-route.ts:280A third-party trigger that is one word claims every prompt containing that word, and a defect word (bug, error, fails, regression, an exception name) claims nearly every bug report: in a second-model check, a skill with the single trigger "error" was named on 40 of the 60 bug reports (first on 33) and 6 of the 60 plain prompts. "fix it" claimed none of either. A suggestion never blocks a prompt or outranks gstack at equal score. Skill authors should avoid bare generic words and defect synonyms, and prefer specific phrases of several words; the zero-route result covers only the triggers measured.hosts/claude/hooks/skill-route-hook.ts:31The opt-in pilot hint styles (GSTACK_SKILL_ROUTE_HINT=steporcontract) quote the routed skill's own first step (at most 200 characters) or contract item text (no length cap) without the trigger character limit. The default style quotes only the checked name and trigger.--explainalways shows the default style.lib/skill-route.ts:146Name-based ownership: a third-party skill named like a gstack template is logged source=gstack and wins ties.lib/skill-route.ts:124The ASCII trigger character set skips a whole skill for one curly apostrophe or colon.sf-19990dd6d31esecurity finding, details recorded privatelyExploratory QA
Functional smoke on
gstack-skill-route --explainagainst a scratch skills folder (5 probes): a bug report routes to an installed /prove-it and a skill with markup in a trigger is skipped and named (pass); an unmarked_gstack-commandalias copy routed on any prompt naming gstack before the review fix and stopped after it (fail, then pass). The hook path itself is covered bytest/skill-route.test.ts. Verdict: pass, at 1bf71b5; 2329ada's version of that check is the extended unit test.Design Review
No frontend files changed — design review skipped.
Eval Results
No paid model eval; deterministic route replay ran.
Review bot comments
No review bot comments.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).
Issues
Refs p1/specialist-batched#1
Refs p1/specialist-batched#2
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No edits and no blockers.
Scope: the routing-hook change from base 3f1b82b to head 2329ada (lib/skill-route.ts, hosts/claude/hooks/skill-route-hook.ts, bin/gstack-skill-route), including the last commit, which decides whether a skill is gstack's own by its name and setup's alias names instead of by the generated-file banner. Also checked: every doc that describes skill routing or how gstack recognizes its own skills.
Documentation health
triggers:.Coverage debt: routing for installed skills has reference and explanation coverage in skill-routing-and-contracts.md. There is still no how-to telling skill authors how to write
triggers:that pass the safety limits, which is a common gap. No diagrams are affected, so there is no diagram drift.Tests
bun run test(Free Tests, workflow_dispatch run 44455549903 at 2329ada): 1702 test files passed; /ship reused this run instead of running the suite again.bun test test/skill-route.test.ts: all 24 focused cases green at 2329ada.bun run typecheck: clean.Agent notes
Refs GST-3123
Approvals
Approved: yes (record r-ffb945eb2b54). The full approval record stays private.
Plan: approved (record r-bd11878a975d)
Plan check: approved (record r-bd11878a975d)
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=6 fixed=3 scope=frozen fix_checks=2 dispatches=4 est_input_tokens=42097
Gate edits: none detected (7 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review chain: full review at 629a3cd (specialist, red-team, adversarial, second-model read on GPT-6.1 Sol); fixes in 1bf71b5 and clean fix-check 1; release note ceaa9ff and docs b46e91d; 2329ada repairs the banner-ownership regression 1bf71b5 introduced, with clean fix-check 2 under GStack Minder's grant of 2026-11-19 (stop head 2329ada, range 1bf71b5..2329ada, approval row a-85ea3d318414); the receipt counts that as rounds=3. A cross-family read on GPT-6.2 Sol at 2329ada reproduced every route count and raised the two NOTE items in Review notes.
Counts come from a route table built like GEVA-557's (same prompts, prompt sha256 equal to
b1b routes' column), with.gstack-ownedon the three gstack skills as a real install writes it.b1b routesitself scores with its pinned hook copy (b12a7b7), so it can't show these changes. Its hook-line check expects the one-name wording, so a GEVA-2 arm that measures two-name lines needs its own check. The second fix-check ran under GStack Minder's grant of 2026-11-19 (record a-85ea3d318414).🤖 Generated with Claude Code