agentic

Smart Router

The component that picks one x402 service per planned step, scoring candidates by relevance, success rate, verification pass rate, latency, and cost.

For each planned step, the Smart Router queries the discovery layer for candidates that advertise the required capability, then scores each one on:

- 25% relevance (capability match weight, learned per mission_type), - 20% historical success rate, - 15% verification pass rate, - 10% freshness (recency of the last successful call), - 10% latency score (lower p95 wins), - 10% policy fit (1 − provider risk, scaled by certification), - 5% receipt trust (vendor signs receipts → boost), - −5% normalized cost (cheaper relative to peers wins a small premium).

The winner's score reasons are surfaced to the audit log and the UI: the route explanation enumerates "Acme Search chosen — certified provider; verification pass rate 94%; fast (p95 1200ms). Alternatives considered: Cheap Search (score 0.65, $0.04)."

Related
Where this term shows up