feat(routing): unlock the Fable agent on any mention of Fable - #39
Merged
Merged
Conversation
The spawn hook let gborges-standard:fable-xhigh run only after a message that contained one of three exact @-mention strings. A user who typed 'send this to fable xhigh' still got the spawn denied. The Astra rule on the Codex side already unlocks on the bare word, and the two rules exist for the same reason: the model must not pick the expensive rung on its own. The user asking casually was never the problem. The mention check is now a case-insensitive word match on 'fable', the same shape as the Astra match. The deny reason, the agent description, the style's routing rule, the README, and the two routing docs describe the loosened rule. Three tests cover 'fable xhigh', a capitalized 'Fable', and the non-match on 'fables'. Rev 33 becomes 34.
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 spawn hook let
gborges-standard:fable-xhighrun only after a message that contained one of three exact @-mention strings, such as@agent-fable-xhigh. A user who typed "send this to fable xhigh" still got the spawn denied and pointed at opus-xhigh.The Astra rule on the Codex side already unlocks on the bare word "astra". Both rules exist to stop the model from picking the expensive rung on its own. Neither needs the user to type the agent's full name.
What changed
plugins/gborges-standard/hooks/plugin_config.pyis now a case-insensitive word match on "fable", the same shape as the Astra match. "fables" does not match.route-spawns.pysays the message must name Fable instead of quoting the @-mention.tests/test_hooks.pycover "fable xhigh", a capitalized "Fable", and the non-match on "fables". The old @-mention tests stay.scripts/cloud-bootstrap.sh.Check
python3 -m unittest discover -s testspasses, 76 of 76.