01 · Routing-rule evaluator
Rules are checked against an 8-profile edge-case battery (empty prompts, 34k-token contexts, 64-way bursts, malformed JSON, provider 429s, slow upstreams). Dead rules and schema violations are flagged.
Edge-case battery (reference dataset)
| Profile | tokensIn | concurrency | timeoutMs | malformed | 429 | ttftMs |
|---|---|---|---|---|---|---|
| empty-prompt | 0 | 1 | 5000 | no | no | — |
| tiny-prompt | 6 | 4 | 2000 | no | no | — |
| normal | 1200 | 8 | 8000 | no | no | — |
| long-context | 34000 | 2 | 30000 | no | no | — |
| burst | 900 | 64 | 10000 | no | no | — |
| slow-upstream | 500 | 16 | 4000 | no | no | 2300 |
| malformed | 300 | 2 | 3000 | yes | no | — |
| ratelimit | 2000 | 12 | 6000 | no | yes | — |
02 · Latency · throughput · cost tradeoff
Deterministic M/M/1-style queueing model swept across concurrency. Saturation (util ≥ 0.98) is shaded. Adjust endpoint parameters or load a preset's pricing.
03 · Protocol & schema compliance
Twelve-point checklist for an AI-gateway response envelope (JSON-RPC echo, error envelopes, SSE terminators, usage accounting, trace propagation). Score updates live.
04 · Spec receipt & export
Canonical JSON of the current evaluation is hashed with SHA-256 (pure JS, FIPS 180-4). Export the full receipt as JSON or the results table as CSV.