shadowgate report: opus-serve
Summary
The fast tier (haiku) answered 80% of 1,680 tasks without escalating. On those, it disagrees with opus on an estimated 5.1% (95% CI 3.1–7.8%, 462 audits, n_eff 378). Against reference answers, the skipped cases are wrong on 9.3% (95% CI 7.9–11.0%, 1,344 graded). That is about 125 wrong answers among the 1,344 skipped cases (106–147).
- Answered by fast tier
- 80.0%
- 1,344 of 1,680 tasks
- Escalation rate
- 20.0%
- 95% CI 18.2–22.0%
- Served accuracy
- 88.1%
- 95% CI 86.5–89.6%, 1,680 graded
- Cost per task
- $0.0049
- Savings vs always opus
- 72.0%
- 95% CI 71.4–72.5%; always opus: $0.018/task
- Audit overhead
- 96.2%
- $7.99 audit spend
- Expected wrong skipped cases
- 125
- 95% CI 106–147
Audit by confidence bin
| Confidence bin | Skipped | Audited | Disagreement (CI) | Error vs references (CI) |
|---|---|---|---|---|
| [0.00, 0.50) | 0 | 0 | — | — |
| [0.50, 0.70) | 0 | 0 | — | — |
| [0.70, 0.80) | 0 | 0 | — | — |
| [0.80, 0.90) | 337 | 172 | 13.4% (8.7–19.4%) | 21.4% (17.3–26.1%) |
| [0.90, 0.95) | 283 | 140 | 5.0% (2.0–10.0%) | 9.5% (6.6–13.5%) |
| [0.95, 1.00] | 724 | 150 | 1.3% (0.2–4.7%) | 3.6% (2.5–5.2%) |
Highlighted bins have a disagreement interval entirely above the tolerance.
Tier usage and costs
| Tier | Role | Served | Share |
|---|---|---|---|
| haiku | fast | 1,344 | 80.0% |
| opus | final, reference | 336 | 20.0% |
| Quantity | Count |
|---|---|
| Skipped | 1,344 |
| Audited | 462 |
| Not selected for audit | 882 |
| Audit pending | 0 |
| Audit errors | 0 |
| Undecided (judge could not decide) | 0 |
| No audit record | 0 |
| Graded against references | 1,344 |
| Unweighted disagreement (biased) | 6.9% (4.9–9.6%) |
| Audit tier (opus) error vs references | 4.4% (2.6–7.0%) |
| Quantity | Value |
|---|---|
| Serving cost (total) | $8.31 |
| Audit cost (total) | $7.99 |
| Cost per task | $0.0049 |
| Est. cost per task, always opus | $0.018 ($0.017–$0.018) |
| Estimated savings | 72.0% (71.4–72.5%) |
| Audit overhead (audit / serving) | 96.2% |
| Decisions with unknown serving cost | 0 |
| Decisions with unknown audit cost | 0 |
Threshold sweep
Offline threshold sweep over 1,680 eval-mode tasks (32 threshold settings); accuracy is measured against reference answers.
Recommendation
- Objective
- max-savings
- Thresholds
- haiku ≥ 0.88
- Selection accuracy (1,176 tasks)
- 90.1% (95% CI 88.2–91.6%)
- Selection cost per task
- $0.0090
- Selection escalation rate
- 41.5%
- Held-out accuracy (504 tasks)
- 90.3% (95% CI 87.4–92.6%)
- Held-out cost per task
- $0.0077
- Held-out escalation rate
- 34.7%
- Accuracy vs always opus
- -1.8 pp (95% CI -3.4 to -0.4 pp)
cheapest thresholds with accuracy >= 0.8990 (best single tier 'opus' at 0.9090 minus 0.01) on the selection split; validated on 504 held-out decisions (seed 0)
| Router | Accuracy (CI) | Cost / task | Escalation | Tier share |
|---|---|---|---|---|
| always haiku | 83.0% (81.2–84.8%) | $0.00058 | 0% | haiku 100%, opus 0% |
| always opus | 91.2% (89.8–92.5%) | $0.018 | 0% | haiku 0%, opus 100% |
| oracle (lower bound) | 92.8% (91.5–93.9%) | $0.0026 | 9.8% | haiku 90%, opus 10% |
| recommended (all data) | 90.1% (88.6–91.5%) | $0.0086 | 39.5% | haiku 61%, opus 39% |
The oracle serves from the cheapest correct tier without paying for the tiers it skips; no real router can reach it.
| Thresholds | Accuracy (CI) | Cost / task | Escalation | Skipped error (CI) | |
|---|---|---|---|---|---|
| haiku ≥ 0 | 83.0% (81.2–84.8%) | $0.00058 | 0% | 17.0% (15.2–18.8%) | |
| haiku ≥ 0.15 | 83.2% (81.4–84.9%) | $0.00066 | 0.24% | 16.8% (15.1–18.6%) | |
| haiku ≥ 0.25 | 83.3% (81.4–85.0%) | $0.00072 | 0.42% | 16.6% (14.9–18.5%) | |
| haiku ≥ 0.35 | 83.8% (82.0–85.5%) | $0.00099 | 1.4% | 16.0% (14.3–17.8%) | |
| haiku ≥ 0.45 | 84.2% (82.3–85.8%) | $0.0014 | 2.9% | 15.4% (13.7–17.2%) | |
| haiku ≥ 0.5 | 84.4% (82.6–86.1%) | $0.0016 | 3.8% | 15.0% (13.4–16.9%) | |
| haiku ≥ 0.6 | 84.9% (83.2–86.6%) | $0.0022 | 6.2% | 13.9% (12.3–15.7%) | |
| haiku ≥ 0.7 | 87.0% (85.3–88.5%) | $0.0041 | 15.5% | 10.6% (9.1–12.3%) | |
| haiku ≥ 0.72 | 87.8% (86.1–89.3%) | $0.0045 | 17.8% | 9.7% (8.3–11.4%) | |
| haiku ≥ 0.78 | 88.1% (86.5–89.6%) | $0.0049 | 19.9% | 9.3% (7.9–11.0%) | |
| haiku ≥ 0.82 | 88.9% (87.3–90.3%) | $0.0063 | 27.1% | 8.0% (6.6–9.7%) | |
| haiku ≥ 0.88 | 90.1% (88.6–91.5%) | $0.0086 | 39.5% | 5.3% (4.1–6.9%) | recommended |
| haiku ≥ 0.93 | 90.6% (89.1–91.9%) | $0.011 | 50.8% | 4.1% (3.0–5.7%) | |
| haiku ≥ 0.95 | 90.8% (89.4–92.1%) | $0.012 | 56.9% | 3.6% (2.5–5.2%) | |
| haiku ≥ 0.98 | 91.2% (89.8–92.5%) | $0.017 | 89.3% | 0.56% (0.1–3.1%) |
Calibration
| Tier | Scored | ECE | Brier | AUROC | AURC | Missing scores |
|---|---|---|---|---|---|---|
| haiku | 1,680 | 0.024 | 0.110 | 0.819 | 0.062 | 0 |
ECE and Brier: lower is better. AUROC: how well the score separates right from wrong answers (0.5 = chance). AURC: area under the risk-coverage curve, lower is better.
Caveats
- est_savings treats serving cost per task as exact; its interval reflects only the uncertainty in the always-opus cost estimate, and excludes audit cost.
Methodology
Disagreement is the share of skipped cases (answered by a non-final tier without escalating) whose answer differs from the final (audit) tier's answer to the same task, as decided by the configured comparator or judge. In serve mode only a random sample of skipped cases is shadow-audited; each audited case is weighted by 1/π, the inverse of its known inclusion probability (a Hajek inverse-probability-weighted estimator), so the estimate describes all skipped cases rather than only the audited ones. In eval mode every tier answers every task, so every skipped case is observed (π = 1). The audit tier is a proxy, not ground truth: disagreement counts differences from its answers, not verified errors, unless reference answers exist, in which case the error rate against them is reported as well. Audits that are pending, failed or undecided are treated as nonresponse: within each inclusion-probability stratum, completed audits are up-weighted by the inverse of the stratum's response rate, which assumes audits are missing at random within their stratum; strata without any completed audit cannot be represented and are excluded from the estimate (a caveat says so). Intervals are Wilson score intervals for unweighted proportions and Korn-Graubard intervals (Clopper-Pearson at the effective sample size n_eff) for weighted ones; when a stratum holding at least 10% of the skipped cases has fewer than 10 completed audits, the status is never reported as ok. The status uses a fixed-sample interval: checking it repeatedly as audits accumulate and stopping at the first ok inflates the chance of a false ok, so fix the number of audits in advance or use a stricter confidence level for repeated checks. The savings interval reflects only the uncertainty in the cost of always using the final tier. Sweep accuracies are Wilson intervals; recommended thresholds are chosen on a selection split and re-evaluated on a held-out split.