Overview
The shortest accurate explanation of how role-model turns a configured endpoint set into an explainable routed choice.
The Router layer is where role-model turns a role-aware request and a configured endpoint set into an explainable decision.
What Router is responsible for
Router answers four questions:
- which endpoints are even allowed to compete
- which endpoints are excluded and why
- how the remaining candidates compare
- why the final winner and fallback order were chosen
The baseline flow
The current baseline does this in order:
- normalize request intent into the effective policy snapshot
- narrow the set through role, task, and policy compatibility
- apply hard eligibility checks
- score the eligible endpoints using the saved routing strategy
- break near-ties deterministically
- emit a
RouterDecision
Strategy is part of the comparison stage
The docs now distinguish between two different layers that were previously easy to blur together:
- scoring strategy such as
balanced,quality,latency, orcost - runtime routing mode such as
baseline,controller,difficulty, orhybrid
The saved scoring strategy is the policy mode that changes what Router optimizes for once the eligible set is clean.
The four baseline modes are:
balancedqualitylatencycost
They all score the same eligible candidates, but they weight quality, latency, throughput, cost, reliability, and preference differently.
Read Scoring strategies and tradeoffs for the weighting guide and Routing modes, locality, and execution for the runtime-mode and local/remote scope guide.
What makes the result useful
Router is not only trying to produce a winner. It is trying to leave behind enough evidence that an operator can inspect the decision later and understand:
- what policy was in force
- what got excluded
- what got ranked
- which measured or declared signals mattered
Read next
Routing controls and decision review
Save the routing strategy after benchmarking, then inspect Router and Observe to verify that live decisions match the evidence.
Routing modes, locality, and execution
How baseline, controller, difficulty, and hybrid routing modes differ from scoring strategies, and how local, remote, and hybrid execution scope affects what Router can actually do.