Repository navigation
Prompt router stops sending feature requests to your bug-fix skill - #4694
Merged
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>
…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>
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>
…upport page A title such as "Support page shows a blank screen" names a thing, not a request, so its body's exception still makes it a bug report, as it did before this branch. Review-Finding: p1/specialist-batched#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and the probe counts are corrected A title such as "New users see a blank dashboard" states a symptom, a body that asks for a fix keeps the request a bug report, and an exception in fenced code outside a task tag counts as a defect. The published probe counts now match the fixture: 16 feature requests and 18 bug reports. 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 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
fix/skill-route-recall-order
to
main
November 22, 2026 11:58
|
😎 This pull request was merged. |
… landed Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
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.
What changed
<task>) starts with a word that asks for something new is not a bug report, unless the title itself names a defect (any strong or weak sign, the verb fix, or an error status such as "returns 404"), the body asks for a fix, or the body follows an issue template (steps to reproduce, expected or actual behavior).<task>tag counts as a defect when deciding whether the first line inside the tag is a feature title.ValueError) still counts as a defect, curly apostrophes are read as straight ones, and "Add-to-cart …" is not read as the word "Add".How it was checked
A probe set of 34 synthetic prompts (
test/fixtures/skill-route-feature-title-probes.json) was written and committed before the rule: 16 feature requests (14 with a feature-word title and 2 plain controls) and 18 bug reports (15 with a feature-word title and 3 plain controls), including every edge case reviewers found on #4674.The one miss is listed in the test: a feature title that says "no longer", which already counts as a regression sign. On the 46 held-in first-draft bug reports the hook still names the bug-fix skill alone on 42.
Agent notes
Follow-up split out of #4674 (GSTA-794; eval finding GEVA-558), per GStack Minder's ruling. Misroutes a reviewer finds that route the same as on #4674 or main are notes, not blockers, per that ruling.
Correction (2026-11-22): the probe table first published 14 feature requests and 20 bug reports; the fixture holds 16 and 18 (c04 and c05 are feature requests). Recounted from the fixture with the test's own routing.
Issues
Refs #4423
Documentation
Scope: The diff from base c1f16c5 touches 6 files, and the working tree had no uncommitted changes. I reviewed
docs/skill-routing-and-contracts.md,changelog.d/feature-titled-requests-not-bug-reports.md,lib/skill-route.ts,test/fixtures/skill-route-feature-title-probes.json,test/skill-route.test.ts,test/helpers/free-fixtures-data.tsanddocs/skill-gates.md.Result: The docs are current, so no files were edited.
docs/skill-routing-and-contracts.mdalready describes the new feature-title rule and the changed defect-word "everyday" rule. Both matchlib/skill-route.ts:FEATURE_TITLE,NOUN_LED,ERROR_STATUS,TEMPLATE_SIGN, andeverydaynow depending onreported. The changelog fragment is present. CHANGELOG.md, TODOS and VERSION were left alone, as the brief requires.docs/skill-gates.mdmentions the router but needs no change. The newkeepparameter onsplitCodeis internal and needs no user-facing doc.Debt: The probe fixture has 34 entries, which matches the doc and the changelog fragment. The probes were not re-run, so the 15/16 and 18/18 rates are the branch's own figures and have not been checked here.
Review
Pre-Landing Review: 1 issue — 1 auto-fixed, 0 asked, 0 deferred, 1 noted (round 1, light depth); fix-check 1: 1 noted; Step 11 (Opus adversarial, GPT-6.2 Astra second-model review): 9 findings, 5 fixed in a granted fix-check (grant a-d9217bf878c4, Captain GStack Minder), 4 ruled notes; fix-check 2: 2 noted. Gate edits: none detected.
Review-run outputs stay in the /ship run directory.
Ruled note: lib/skill-route.ts:468:fix-check at 7ef2d00 ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T06:35:57Z) at 2026-11-22T07:50:55.651Z: Routes the same as #4674 or main; a misroute the Captain ruled a note up front for this PR; none fails a test or breaks production. (approval a-054c46eb2a55)
Ruled note: lib/skill-route.ts:410:outside-voice at 7ef2d00 ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:48.685Z: Routes the same as #4674 (c1f16c5) and main: a body using fix near a failure word still routes to the bug-fix skill there too; below the floor. (approval a-cefeb3d71543)
Ruled note: lib/skill-route.ts:471:outside-voice at 7ef2d00 ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:48.802Z: Routes the same as #4674 (c1f16c5) and main: expected output in a feature body reads as an issue template there too; below the floor. (approval a-8088641040cf)
Ruled note: lib/skill-route.ts:483:outside-voice at 7ef2d00 ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:48.921Z: Routes the same as #4674 (c1f16c5) and main: a heading title with no blank line after it is a bug report there too; below the floor. (approval a-2f242361fc92)
Ruled note: lib/skill-route.ts:314:adversarial at 7ef2d00 ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:49.032Z: Hypothetical input (an inline code span across a newline); no prompt shown to misroute; below the floor. (approval a-50ade389d33c)
Ruled note: lib/skill-route.ts:469:fix-check at 556dadb ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:49.161Z: Routes the same as #4674 (c1f16c5) and main: these feature titles with an error in the body are bug reports there too; below the floor. (approval a-bc15c2dcea9e)
Ruled note: lib/skill-route.ts:516:fix-check at 556dadb ruled by GSTA-36 (relayed from GSTA-794:2026-11-22T07:59:46Z) at 2026-11-22T08:09:49.302Z: Routes the same as #4674 (c1f16c5) and main: fix used as a noun in the body is a bug report there too; below the floor. (approval a-152cbc0e8198)
Approvals
Approved: yes (record r-ebfdf000bc98). The full approval record stays private.
Plan: exempt: bug fix (kind=fix), no plan review per R65
Plan check: exempt bug fix