What the 40-task simulation measured
One benchmark trace, 40 tasks, 97,841 tokens. When agent loops fire dozens of tasks in a sudden parallel burst, naive routers either blow provider tokens-per-minute ceilings or hand complex reasoning to underspecified small models. The dispatcher treats the whole burst as a discrete Potts Hamiltonian and relaxes the assignments through rapid Gibbs sampling — 36.3% lower operational model expenditure than naive high-capability routing, with zero TPM overage and a 4.65 ms typical solve.
The dashboard below runs a smaller demonstration burst — 10 tasks, 4 endpoints — under the same Hamiltonian, so you can watch the sampler work. The published 40-task figures stay as published in the table.
Simulated benchmark result, results may vary (not customer results).
A sweep re-offers every task in the burst to all four endpoints, drawn from the Gibbs distribution at the current temperature. Assign any task by hand in the matrix below and the manifold answers at once.
The quadratic barrier in H(x) charges every token above a ceiling — the sampler spreads the burst before a provider 429 ever fires.
| Strategy | SLA misses | Capability misses | TPM overage | Solve time |
|---|---|---|---|---|
| Naive high-capability | 20/40 | 22/40 | +43,689 tok | 0.01 ms |
| Greedy cheapest-first | 0/40 | 18/40 | +22,113 tok | 0.00 ms |
| Potts / Gibbs dispatcher | 3/40 | 0/40 | 0 tok | 4.65 ms |
TPM overage measures cumulative tokens exceeding an endpoint's provisioned rate ceiling within the benchmark file. The on-premise endpoint is designated Local-Ollama-RTX5080 as a reference simulation label. All three strategies run today as JAX simulations on ordinary computers; no special sampling hardware is required.
Simulated benchmark result, results may vary (not customer results).
- Cost minimization — balances lightweight against frontier model compute weight, task by task.
- Hard capability filter — penalizes assigning reasoning tasks to non-reasoning models; in the published run the Potts dispatcher recorded 0/40 capability misses.
- SLA latency bounds — enforces time-to-first-token ceilings for interactive calls.
- Quadratic barrier — smoothly dampens bursts before they hit provider 429 errors, charging the square of any TPM overage.
The demonstration burst above runs this same function with wcap = 400, wsla = 1.5 per ms, wtpm = 5×10−5 per tok². Its optimum — H* = 78.8 — was verified by exhaustive enumeration of all 410 = 1,048,576 assignments.
- Zero prompt exposure — a task record is an id, a complexity tier, an estimated token count, a latency limit, and a list of required capabilities. Prompt text is not a field on that record.
- Metadata-only scheduling — the router evaluates only token counts, latency requirements, priority tiers, and required tools.
- No external telemetry — runs completely within your private VPC or on-premise compute cluster, with zero outbound logging or vendor telemetry.
- Local GPU inference — Ollama / vLLM on RTX 5080 / A100 / H100
- Cloud foundation models — Claude · OpenAI · Gemini
- Specialized embedding & classification small models
- One burst, one Hamiltonian — the sampler arbitrates across all three tiers at once
Replay historical request logs offline to verify cost reductions and rate-limit headroom before switching routing in production:
$ python scripts/run_shadow_audit.py \ --log requests.jsonl \ --target-endpoint localhost:8000 \ --out audit_report.json
Calculates empirical rate-limit headroom, SLA compliance, and token expenditure improvements against naive routing — with zero impact on live services. Free shadow audit available for academic & foundry use, 8–12 weeks.