Repository navigation
Prompt router names your bug-fix skill first and stops sending feature requests to it (GST-3462) - #4674
Merged
Conversation
…l first Feature-titled requests are no longer read as bug reports, a reported defect is never routed to /review or /qa, and the installed bug-fix skill leads when it is one of two skills named. Adds the GSTA-759 first-draft prompts as held-in tests. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
#4423) Claude Code runs UserPromptSubmit hooks on cross-session messages and task-notification hand-backs too, and its payload cannot tell them from a typed prompt, so the hook skips text that starts with either wrapper and logs reason=agent-message. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…heck passes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Only the prompt's first line, or the first inside a tag such as <task>, can be a feature title, so a bug report whose body has a stand-alone line starting with Add or New is still read as one. Review-Finding: p1/specialist-batched#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
free-suite (6) failed at fdba829: test/free-fixtures.test.ts requires every tracked fixture to be registered. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…our bug-fix skill again A reported defect reaches /review or /qa only when it holds one of their trigger phrases in order (stopwords allowed between words), as on main, with "find bugs on my site" still working. A line inside a later tag is no longer read as a feature title, and an exception name in backticks counts in the title check. Tests: the three regression probes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The feature-title rule (a prompt whose title starts with Add, Support, [Feature] and the like is never a bug report) and the defect-word proximity change made for the same tasks move to a separate follow-up pull request. Everything else in this change stays: bug-fix skill named first, the new bug-report signs, phrase matching for /review and /qa, and skipping messages from other sessions. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ix skill is installed
Matching for /review and /qa trigger phrases now also accepts a trigger's
words in order with other small words in their place ("review my PR"
for "review this pr"), so with only gstack installed such a report
routes to /review as it does on main. With a bug-fix skill installed it
still goes to that skill, as on main.
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>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 22, 2026
…4694) The prompt hook no longer treats a feature request as a bug report just because its body mentions an error, so your bug-fix skill isn't named for "Add …", "Support …" or "[Feature]: …" requests. Why: in our eval runs, 13 of 27 feature-titled tasks were routed to the bug-fix skill, so the model started a bug-fix workflow on a feature. Nothing to do: the change is in the hook's scoring. This builds on #4674 and should land after it. 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: v1/outside-voice#1 reader=outside-voice Review-Finding: v1/outside-voice#2 reader=outside-voice Review-Finding: v1/outside-voice#6 reader=outside-voice Review-Finding: v1/adversarial-native#1 reader=adversarial-native Review-Finding: v1/adversarial-native#2 reader=adversarial-native
6 tasks done
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 now recognizes more bug reports and names your installed bug-fix skill first.
Why: in our Codex run the model loaded whichever skill the hook named first, and on 7 bug tasks that was /verify, never prove-it.
Nothing to do: the change is in the hook's scoring, with no setting or install change.
What changed
Order. When the installed bug-fix skill (a non-gstack skill with a trigger like "fix this bug") reaches the threshold beside a gstack skill, it is named first.
More bug reports recognized. New strong signs: "should X, but Y", "Expected:"/"Actual:", regressions ("started with 0.19", "used to work", "no longer"), security holes, lost data. New weak signs: "never", "must", and words for an unwanted outcome (lost, ignored, dropped, twice, truncated).
Messages no person typed are skipped (Skill routing routes messages from other agents and sessions as if a person asked #4423). Claude Code runs the hook on a message from another session (
<cross-session-message …>) and on a background agent's hand-back (<task-notification>) too, and its payload has no field that marks them, so the hook skips text that starts with either wrapper and logsreason=agent-message. Closes Skill routing routes messages from other agents and sessions as if a person asked #4423./qa or /review for a reported defect only on their own phrase. A prompt that reports a defect goes to /review or /qa only when it holds one of their trigger phrases in order, with only small words such as "my" added ("find bugs on my site", "review this PR for bugs"), and never asks for a fix; a report that just shares their words ("the site crashes during the smoke test") goes to your bug-fix skill, or with none installed is not named to /review or /qa. "Test the site and fix what you find" reports no defect and keeps /qa.
Feature-titled requests are unchanged. A rule that stopped treating feature requests (titles starting with Add, Support, [Feature] and the like) as bug reports moves to a follow-up pull request; here they route as they do on main.
Evidence
All on the synthetic prompts in
test/fixtures/; the first-draft set is held in (the rules were written after reading it).Known misses kept in the test so they can only shrink: synthetic-bug-21, -27, -36, -43. Four new tests fail on main and pass here, including #4423's dry-run prompt.
Agent notes
Issues
Fixes #4423
Approvals
Approved: yes (record r-d162425a3a9a). The full approval record stays private.
Plan: exempt: bug fix
Plan check: exempt bug fix
Ruled note: lib/skill-route.ts:521:review-qa-order at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:14:31Z) at 2026-11-22T07:14:31.938Z: routes the same as main or is the already-ruled over-catch class; no test fails, no production break (approval a-bd6d2c648ed4)
Ruled note: lib/skill-route.ts:524:bugfix-first-sort at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:14:31Z) at 2026-11-22T07:14:32.046Z: routes the same as main or is the already-ruled over-catch class; no test fails, no production break (approval a-6419b0d23d03)
Ruled note: lib/skill-route.ts:422:vulnerab-overcatch at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:14:31Z) at 2026-11-22T07:14:32.126Z: routes the same as main or is the already-ruled over-catch class; no test fails, no production break (approval a-ea44030d3f0c)
Ruled note: lib/skill-route.ts:423:version-digits at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:14:31Z) at 2026-11-22T07:14:32.207Z: routes the same as main or is the already-ruled over-catch class; no test fails, no production break (approval a-f7ce8d6e81cc)
Ruled note: lib/skill-route.ts:422:signs-overcatch at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:14:31Z) at 2026-11-22T07:14:32.312Z: routes the same as main or is the already-ruled over-catch class; no test fails, no production break (approval a-e0fcb1086808)
Ruled note: lib/skill-route.ts:335:phrase-stopword-swap at 0a13de8 ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T07:47:16Z) at 2026-11-22T07:47:22.219Z: fixed in 08343f8 and confirmed clean by the granted fix-check; its row was logged blocking (approval a-4021502dae64)
Review-loop exception: accepted by GSTA-36 2026-11-22 via GSTA-36:2026-11-22T07:32:20Z: fixed in 08343f8, confirmed clean by the granted fix-check; open only because its row was logged blocking. (fix-check at 08343f8, 1 finding)
Fixes GST-3462 items 1, 2 and outside issue #4423 (reproduced on main with the reporter's own dry-run prompt). Bug fix, no plan review; failing-first tests in test/skill-route.test.ts. /ship receipt follows.