feat(stage_router): corroborative tanh-scored routing with windowed self-clearing signals#68
feat(stage_router): corroborative tanh-scored routing with windowed self-clearing signals#68sabhatinas wants to merge 6 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (6)
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 |
c43105a to
8c8c303
Compare
…elf-clearing signals
…ring signals; window=5
0279579 to
220c474
Compare
Summary
Reworks the Python
stage_routerscorer/picker so the confidence dial is well-behaved and the signals are honest. No behavior is hard-coded to a single dominant axis anymore — decisions are corroborative, signals self-clear, and the score spreads smoothly across the range.What changed
stuck_exploringmoved off cumulative counts (which latched on forever) to the recent window;no_progressre-differentiated so it's a distinct whole-task dead-end rather than a duplicate ofstuck_exploring.capable_first/efficient_firstdiffer only in the low-confidence fall-open.confidence_thresholdbecomes the real dial (signals-to-clear = threshold / unit).tanhspread — the raw weighted sum is squashed across(-1, 1)so a symmetric positive threshold sweeps the routing split smoothly instead of piling scores at the extremes.tests_passedshort-circuit — a settled run (recent test-pass + recent edit) routes to EFFICIENT decisively, instead of a fixed weight.Validation
stage_routerunit tests pass (scorer, pickers, dimensions, request processor);ruffclean.Out of scope (follow-up)
stage_routerprofile (crates/switchyard-components-v2/src/profiles/stage_router.rs) is a parallel implementation with the old weights and now diverges from Python. Porting these changes for parity is intentionally left as a separate follow-up.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes