Repository navigation
feat(stage_router): corroborative tanh-scored routing with windowed self-clearing signals - #68
Conversation
WalkthroughThe stage router now separates ChangesStage router behavior
Estimated code review effort: 3 (Moderate) | ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
0279579 to
220c474
Compare
03ffe96 to
b098dfd
Compare
|
|
@sabhatinas is the plan to refactor this to align with libsy design at a later date / does this take libsy into account? |
Yes, I plan to migrate to |
e0c9e7d to
eb5dc07
Compare
…elf-clearing signals Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…signal Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…indow Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…r pattern Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…ring signals; window=5 Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…scalation signal Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
… churn Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…fault, configurable) Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…ons were real loops; spurious Opus bias) Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
96be575 to
3076cf8
Compare
…jection Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…er; replace calibration scripts with scorer skill Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…ython calls it via bindings; drop dead prompt-classification path Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…rom the PR Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
Signed-off-by: Greg Clark <grclark@nvidia.com>
Signed-off-by: Greg Clark <grclark@nvidia.com>
…s, drop patterns test assertions Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…run→score_staged_run, stage_score_signal, escalate/de-escalate) Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
…d weights); trim verbose comments Signed-off-by: Sabhatina Selvam <sabhatinas@nvidia.com>
7cb8a7b to
96fc5e3
Compare
What this PR does
Reworks the stage_router scorer, picker, and signals into a cleaner, honestly-documented router — and moves the routing logic into one shared Rust core.
switchyard-components/stage_router.rs(a short priority ladder: escalate → de-escalate → scorer → fall-open). Python calls it via a binding (stage_pick_tier); the Rust profile calls it directly. One source of truth. The dead prompt-classification path is deleted. (SWITCH-1056)tanh, andconfidence = |score|.spinningandexploringare mutually exclusive. Droppedrepeated_cmd_ratiofrom scoring — it fired on nearly every shell command and never caught a real loop.Docs and tests updated; the old calibration scripts are replaced by the scorer skill.
Linear: SWITCH-1056 (Rust consolidation), SWITCH-939 (scorer), SWITCH-983 (compaction), SWITCH-982 (handoff notes).