Benchmark

Four policies. Same gold set. Cost and quality on the same rows.

The task file is versioned at apps/api/app/data/benchmark.json.

Mix

BandCountExamples
Easy L1–L25France, HTTP, 17×24, REST
Medium L35Merge lists, TCP vs UDP, coin flips
Hard L4–L551M QPS limiter, Euclid, Go race, peeked A/B

Policies

PolicyWhat it is
always_frontierBaseline. Every row on the expensive model
difficultyNaive: complexity < 3 cheap, else expensive. No escalation
qualityP(quality|small) plus the guard
quality_cacheThe product: quality-aware plus prefix cache

What to read

FieldGood look
saved_pctHigh because easy work left economy
avg_quality / worst_qualityClose to frontier, worst case does not collapse
quality_deltaNear 0
routing_saved vs cache_savedTwo independent mechanisms
escalation_rateSome hard rows recovered after a cheap miss