feat(router): log affected route hints when provider warmup fails#463
Merged
Conversation
Agent-Logs-Url: https://github.com/dallay/corvus/sessions/7d405cb5-52ef-418b-9046-45ace52b69e1 Co-authored-by: yacosta738 <33158051+yacosta738@users.noreply.github.com>
Deploying corvus with
|
| Latest commit: |
123703d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7a81f0d9.corvus-42x.pages.dev |
| Branch Preview URL: | https://copilot-define-operator-ux-d.corvus-42x.pages.dev |
…on time Agent-Logs-Url: https://github.com/dallay/corvus/sessions/7d405cb5-52ef-418b-9046-45ace52b69e1 Co-authored-by: yacosta738 <33158051+yacosta738@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Define operator UX and documentation for model routing and query classification
feat(router): log affected route hints when provider warmup fails
Apr 8, 2026
yacosta738
approved these changes
Apr 9, 2026
|
This was referenced Apr 9, 2026
Merged
Merged
Merged
This was referenced Apr 19, 2026
Closed
This was referenced Apr 28, 2026
Merged
8 tasks
8 tasks
8 tasks
This was referenced May 10, 2026
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 docs promised "runtime warning names the failed provider and the affected route hints" but
RouterProvider::warmup()only logged the provider name — leaving operators unable to correlate a warmup failure to whichhint:*selectors would stop working.Changes
clients/agent-runtime/src/providers/router.rsprovider_hints: HashMap<usize, Vec<String>>field built once at construction — a reverse map of provider index → sorted hint names. Avoids per-failure allocation and makes the index↔hints relationship explicit.warmup()now emitsaffected_hintsin the warning event:warmup_logs_affected_route_hints_on_failure— asserts provider name + all wired hint names appear in the warning.warmup_reports_no_affected_hints_when_provider_has_no_routes— asserts"none"is reported when no routes reference the failing provider.Related Issues
Closes the operator-facing diagnostics gap described in the model routing UX issue.
Summary
RouterProvider::warmupnow logs which route hints (hint:code,hint:reasoning, …) are impacted when a non-primary provider fails to initialise, matching the behaviour documented in the operator guide and troubleshooting table.Tested Information
All 19 router unit tests pass, including the 2 new regression tests. 26 doctor tests and 7 classifier tests unchanged and passing. Clippy
-D warningsclean.Documentation Impact
guides/model-routing.md) already described this warning behaviour — this change makes the runtime match the documented contract.Breaking Changes
None. Additive field on an internal struct; no public API changed.
Checklist