feat(libsy): LLM-driven tool-signal discovery with warm-up gate - #644
Draft
sabhatinas wants to merge 2 commits into
Draft
feat(libsy): LLM-driven tool-signal discovery with warm-up gate#644sabhatinas wants to merge 2 commits into
sabhatinas wants to merge 2 commits into
Conversation
… catalog Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.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.
What this does
stage_routercurrently decides routing from a fixed regex/name-table extractor (tool_signals.rs). This adds a second option: an LLM judge that watches each turn's tool activity and discovers its own severity/category signals instead of matching hardcoded patterns — useful for agent harnesses the regex tables weren't tuned for.Both extractors produce the exact same
ToolSignalsshape, so the router's actual picking logic doesn't change at all — you just choose which one fills it in.Warm-up
Since the judge builds its understanding turn by turn, a new
warmup_turnssetting holds routing on the default (efficient) tier for a session's first N turns while the judge still runs and calibrates in the background. Once warm-up elapses, routing decisions kick in for real.The judge's discovered vocabulary is also shared across every task in a benchmark run (not reset per task), so it keeps getting better calibrated the more it sees.
How to turn it on
Two new TOML fields on a
stage_routerroute:Status
This is an experimental prototype — validated so far on a handful of TB 2.1 tasks across Claude Code and Codex, not yet run at benchmark scale. Opening as a draft while that validation continues.