fix(dispatch,router): wire grob_hint + doc drift (#5 #6 #14)#245
Merged
Destynova2 merged 2 commits intomainfrom Apr 21, 2026
Merged
fix(dispatch,router): wire grob_hint + doc drift (#5 #6 #14)#245Destynova2 merged 2 commits intomainfrom
Destynova2 merged 2 commits intomainfrom
Conversation
The MCP complexity hint (`X-Grob-Hint` header, `metadata.grob_hint` body field, or one-shot MCP tool slot) was resolved and then dropped via `let _ = grob_hint`. It now overrides `RouteDecision.complexity_tier` right after routing, so clients that know their task is trivial can opt out of `[[tiers]]` fan-out for a single request. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two drift fixes caught by Tier 2 audit (items #6, #14): - `src/routing/classify/mod.rs`: the `route()` doc-comment listed only 6 priority levels while the actual code has 9 (auto-map, declarative tier match, and algorithmic scoring were missing). The inline numbering also had a gap (skipping #7 and duplicating #9) — renumbered to match. - `docs/explanation/architecture.md`: the request-flow mermaid still showed the pre-T-VS `router` subgraph and a single generic "Circuit Breaker" box. Updated to reflect the `routing/` parent module (classify + circuit_breaker + health_check) and the RE-1a / RE-1b split from ADR-0018, including the `is_endpoint_healthy` AND-gate and the security-layer global CB that runs after it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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.
Summary
Two quick wins from the Tier 2 audit, bundled because they share the dispatch/routing scope.
DD-1 — audit #5:
let _ = grob_hintin dispatchThe MCP complexity hint (
X-Grob-Hintheader,metadata.grob_hint, or one-shot MCP slot) was resolved and then silently dropped. It now overridesRouteDecision.complexity_tierright after routing, so a client that declaredtrivialopts out of[[tiers]]fan-out for that request.DD-2 — audit #6 + #14: doc drift
src/routing/classify/mod.rs: theroute()doc-comment listed only 6 priority levels while the actual code has 9 (auto-map, declarative tier match, and algorithmic scoring were missing). Inline numbering also had a// 7.gap and a duplicated// 9.— renumbered.docs/explanation/architecture.md: the request-flow Mermaid still showed the pre-T-VSroutersubgraph and a single generic "Circuit Breaker" box. Updated to the newrouting/parent (classify + circuit_breaker + health_check), the RE-1a / RE-1b split from ADR-0018, theis_endpoint_healthyAND-gate, and the security-layer global CB that runs after it.Test plan
cargo fmtcargo clippy --all-features -- -D warningscargo clippy --lib --no-default-features -- -D warnings(cfgmcpoff)cargo test --lib— 950 passed, 0 failedNote: pushed via GitHub Git Data API — local
git pushwas silently reset (seefeedback_commis_push_ghosting.md).