AI-generated illustrationOptimize Quality, Latency, and Cost with Evidence
Freeze a workload, pull one lever at a time, and write a falsifiable decision on quality, tail latency, and cost per verified pass from live receipts.
- Reading
- 31 min
- Workshop
- 90 min
- Stack
- TS, Node 22, Anthropic SDK
- Version
- 1.0.0
- Last verified
- Nov 23, 2026
01Outcomes
What you will build and be able to do
Each outcome has an observable criterion. The lab and the assessment check exactly these, nothing more and nothing less.
OBJ-001
Build a frozen optimization baseline
Count tokens before spending, interleave runs, separate infrastructure errors, report tail latency with its sample size, and compute effective USD per verified pass. Checked by pnpm test:lab1.
OBJ-002
Compare model and effort settings in repeated trials
Apply the thinking compatibility rules before runtime and account for thinking tokens without double counting. Checked by pnpm test:lab1 and pnpm check:faults.
OBJ-003
Configure and verify prompt caching
Diagnose silent skips, volatile-prefix busts, and effort-related invalidations, and decide whether a cache write pays back. Checked by pnpm test:lab2.
OBJ-004
Cut input tokens and round trips
Use selective context and parallel read tools, and route only latency-tolerant work to Message Batches. Checked by pnpm test:lab2.
OBJ-005
Decide with a Pareto frontier and a decision record
Select a slice-bounded optimization with cold-cache and price-cliff sensitivity, and write a record with automatic rollback triggers. Checked by pnpm test:lab3 and pnpm check:decision.
02Prerequisites and setup
Unpack optimization-labs.zip and run the offline checks ($0.00)
- TypeScript and Node.js 22, a terminal, and comfort reading JSON usage objects.Node.js downloads
- The Example Outfitters task suite, system-of-record grading, and pass^k. This guide reuses that outcome grading and extends it with latency and cost.Start with Guide 02
- Schema contracts for model output, which the cost ledger relies on.Read Guide 14
- Honest intervals and denominators for small samples.Read Guide 15
- For Claude Code token accounting on your own machine, see the model-tier routing guide. This guide covers the Messages API and custom agents only.Read Guide 07
- A runtime already chosen. This guide starts after the choice among an API loop, the Agent SDK, and Managed Agents.Read Guide 16
- No API key required. The labs run offline against a local double at $0.00.
unzip -q optimization-labs.zip -d optimization-labs-workcd optimization-labs-work/starter && pnpm install --frozen-lockfilepnpm preflightpnpm test # most tests fail at the start, and that is the plan03The system picture
A Pareto frontier of cost per verified pass against tail latency

Extended description
The horizontal axis is the worst interactive slice p95 divided by its cap, so a value above 1.0 means a latency cap was missed. The vertical axis is effective USD per verified pass.
The bloated Sonnet configurations C1 to C4 sit at the top near $0.046 per pass. Selective context, caching, and parallel reads move the points down, and the bounded policy S4 sits lowest at $0.0070.
04Lesson
Decide whether to run the loop at all
Optimization is a loop with a cost of its own, so start by deciding whether to run it. The loop rests on four locked controls: a workload contract, an environment contract, a dated cost model, and a gate written before the first live call. It tracks three coupled metrics: quality (task-level pass^k and safety violations), latency (p50, p95, and max with the sample size), and cost (effective USD per verified pass). Quality is a floor, not a trade. Once a candidate breaks the floor, no saving matters.
- No outcome grader yet. If you cannot tell a correct run from a plausible one, a cheaper configuration will look equally good. Build the grader first.
- Low traffic. Routing, caching, and batching add code, tests, and on-call surface. If a feature handles a few hundred requests a month, the savings can be smaller than one engineer-hour.
- No pre-registered floor. Without a quality and safety floor written down first, every tradeoff turns into an argument after the data arrives.
| Slice | Kind | Tasks | Rule in the gate |
|---|---|---|---|
| SLICE-LOOKUP | Interactive, read only | OPT-01, OPT-02 | p95 at or under 5,500 ms, no payouts |
| SLICE-REFUND | Interactive, writes to the desk | OPT-03 to OPT-06 | p95 at or under 11,000 ms, zero critical payout violations |
| SLICE-AUDIT | Overnight classification | OPT-07, OPT-08 | Eligible for Message Batches |
Measure honestly before you pull a lever
Token counting is a free pre-flight estimate. We counted three prompt shapes before spending anything: 2,701 tokens for the selective prompt with tool schemas, 4,711 for the bloated prompt that adds irrelevant warehouse text (2,010 extra tokens per turn), and 1,364 for the audit system prompt. All three sit above the 512-token minimum for caching. The count covers input only, so billing always uses the returned usage fields.
Each configuration ran 8 tasks three times, 24 runs, and those runs are clustered by task. For that reason we report pass^1, the share of runs that passed, and pass^3, the share of tasks where all three repeats passed. The gate uses pass^3. Perfect scores are not certainty either. After zero failures in n independent trials, the exact one-sided 95% upper bound on the true failure rate is 1 - 0.05^(1/n). Four task passes out of four leave a bound of 52.7%, and twelve trial passes out of twelve leave 22.1%. One run is 4.17 percentage points of a 24-run suite and one task is 12.5 points, so a gap smaller than one run is noise.
Percentiles use nearest rank with no interpolation, and the sample size is printed beside every one. With fewer than 20 samples, p95 is the maximum, so a single slow run decides the verdict.
| Model | Input | Output | Notes |
|---|---|---|---|
| claude-opus-5-5 | $4 | $20 | Reference arm only |
| claude-sonnet-5-5 | $2 | $10 | Main interactive model |
| claude-haiku-5-5 | $0.1 | $0.5 | Up to 100,000 prompt tokens |
| Haiku over 100,000 tokens | $0.5 | $2.5 | A 5x step, counting cache reads and writes |
Verified rejections
We probed the API before building anything, and 8 of 8 probes matched the documented rules.
- Thinking disabled returns HTTP 400 on Opus 5.5 and on Sonnet 5.5. The Sonnet error message tells you to send between_tools instead.
- The between_tools mode works on Sonnet 5.5 at medium effort and returns HTTP 400 at xhigh. Disabled works on Haiku 5.5 at low effort and returns HTTP 400 at xhigh.
- A temperature value returns HTTP 400 on API version 2026-10-21, even at the default.
- Thinking counts toward max_tokens even when it is not returned. A starved response comes back as HTTP 200 with a max_tokens stop reason, so it passes a status check and fails the customer.

Extended description
Rows list the three models and columns list effort levels. Each cell shows whether adaptive thinking, between_tools, or disabled returned HTTP 200 or HTTP 400 in the probes.
Effort is a behavioral signal and not a strict token budget, so we measured it. Configurations C1 to C3 varied effort on Sonnet 5.5 with everything else fixed. Cost per verified pass moved by only 1.4% from C1 to C2 and 2.0% from C1 to C3. Each run sent about 20,688 prompt tokens across 4.0 turns, while all thinking in C1 added up to 409 of 12,160 output tokens (3.36%). Prompt prefill dominates a multi-turn tool agent, so thinking effort has little to save.
C3 also introduced a quality problem. In one repeat block a task skipped the required lookup_policy call, so pass^3 fell to 0.875 and cost per pass rose to $0.0474. The Opus 5.5 reference slice (C7, refund slice only, 12 runs) passed 12 of 12 at $0.0838 per pass, about 1.8 times the Sonnet baseline. One reference slice is a data point and not a ranking of the models.
Prompt caching: verify the hit, then price the write

Extended description
Tools come first, then the system prompt, then messages. A cache breakpoint after the system prompt stores that prefix. A 5 minute write costs 1.25 times the input rate, a 1 hour write costs 2.0 times, and a read costs 0.05 times on Sonnet 5.5 and Opus 5.5 but 0.10 times on Haiku 5.5.
A write pays back after a fraction of a read. The break-even number of reads is the write rate minus the input rate, divided by the input rate minus the read rate.
| Cache write | Model | Break-even reads |
|---|---|---|
| 5 minute | Sonnet 5.5 | 0.263 |
| 1 hour | Sonnet 5.5 | 1.053 |
| 1 hour | Haiku 5.5 | 1.111 |
One read inside the window therefore repays a 5 minute write on Sonnet. A 1 hour write needs a bit more than one read, and a rolling read ratio that falls under the plan is the signal to stop paying for it.
- Below the minimum: a prompt shorter than 512 tokens is processed without caching and without an error. Our probe sent 60 input tokens with a cache marker and got HTTP 200 with 0 written and 0 read. That is a silent skip.
- Warm path (P1): with an explicit cache_control block on the system prompt, the first request wrote 2,617 tokens and the next 5 requests read 2,617, 2,617, 2,617, 2,617, 2,617 tokens.
- Volatile bust (P2): a UTC timestamp at the top of the system prompt gave cache reads of 0, 0, 0, 0 for the 4 requests, and Cache Diagnostics reported system_changed with 2,446 missed tokens. A timestamp above the breakpoint rewrites the whole prefix every time.
Extended description
The six-second loop shows a request that reads the stored prefix, then a request whose system prompt starts with a new timestamp and rewrites the prefix, with the system_changed reason shown beside it.
A new top-level effort value on the next request can invalidate part of the cache, while a per-message effort change keeps it. In P3, the top-level flip read 2,731 cached tokens and rewrote 181, while the per-message beta read 2,912 and wrote 0. Sending previous_message_id for diagnostics with only automatic top-level cache_control returned previous_message_not_found, while explicit block-level cache_control tracked the previous message correctly. If your diagnostics say the previous message was not found, check where your breakpoint lives before blaming the cache.
Selective context, parallel reads, and Message Batches

Extended description
The waterfall starts at the C4 baseline of $0.0471 per pass and steps down through selective context (S1), a 5 minute cache (S2), and parallel read tools (S3).
- Selective context (S1): removing the irrelevant warehouse text cut mean prompt tokens per run to 12,786, and cost per pass went from $0.0471 to $0.0310, a change of -34.0%. Quality held at 24 of 24.
- 5 minute cache (S2): cost per pass fell to $0.0089, which is -71.4% against S1 and -80.9% against the C1 baseline. The run read 285,934 cached tokens and wrote 20,925.
- Parallel read tools (S3): independent reads go out in one model turn. Mean turns fell from 4.00 to 2.71. Lookup p95 fell from 6,290 ms to 4,802 ms, and refund p95 fell from 14,835 ms to 11,488 ms. Both are maxima of n=6 and n=12, so read them as direction and size and not as production percentiles.
Caching beat everything else on cost, and parallel reads beat everything else on latency. The low-effort between_tools baseline C4 also had the worst tail of all configurations: its refund maximum was 25,632 ms against 12,494 ms for C1. A cheaper-looking thinking setting is not automatically faster.
Extended description
The six-second loop steps through the same waterfall: baseline, selective context, a 5 minute cache, and parallel read tools, with the cost per verified pass shown at each step.
The Message Batches API runs requests asynchronously at a 50% discount, with most batches finishing within an hour and a 24-hour expiry. Batch is eligible only for the overnight audit slice. In our live run, six audit requests (two tasks, three repeats) finished in about 92 seconds at $0.000126 per audit, and all six passed. We then deleted the batch and confirmed that zero batches remained. An earlier probe with 2 requests took about 71 seconds. Those are two observed waits and not a guarantee. The documented ceiling is 24 hours.

Extended description
Three lanes show the lookup slice and the refund slice routed to the interactive API with a latency cap, and the audit slice routed to Message Batches with a 24-hour window.
Choose with a Pareto frontier and read the offline double carefully
| Arm | Passed | pass^3 | USD per pass | Lookup p95 | Refund p95 |
|---|---|---|---|---|---|
| C1, Sonnet 5.5, high effort, adaptive, bloated context | 24/24 | 1.000 | $0.046442 | 8,366 ms | 12,494 ms |
| C2, Sonnet 5.5, medium effort, adaptive, bloated context | 24/24 | 1.000 | $0.045774 | 8,296 ms | 12,919 ms |
| C3, Sonnet 5.5, low effort, adaptive, bloated context | 23/24 | 0.875 | $0.047374 | 8,059 ms | 11,914 ms |
| C4, Sonnet 5.5, low effort, between_tools, bloated context | 24/24 | 1.000 | $0.047062 | 9,304 ms | 25,632 ms |
| C5, Haiku 5.5, low effort, adaptive, bloated context | 24/24 | 1.000 | $0.002385 | 4,427 ms | 8,785 ms |
| C6, Haiku 5.5, low effort, thinking disabled, bloated context | 24/24 | 1.000 | $0.002295 | 4,050 ms | 7,409 ms |
| S1, C4 plus selective context | 24/24 | 1.000 | $0.031049 | 6,012 ms | 14,359 ms |
| S2, S1 plus 5 minute prompt cache | 24/24 | 1.000 | $0.008875 | 6,290 ms | 14,835 ms |
| S3, S2 plus parallel read tools | 24/24 | 1.000 | $0.008440 | 4,802 ms | 11,488 ms |
| S4, Haiku lookup, Sonnet refund, Batch audit | 24/24 | 1.000 | $0.006965 | 3,399 ms | 12,359 ms |
| C7, Opus 5.5 reference, refund slice only | 12/12 | 1.000 | $0.083832 | not run | 15,291 ms |
Every p95 in this table is the maximum of its slice, because n is 6 for lookup and 12 for refund. Cost per pass is total billed USD divided by verified passes, taken from the returned usage fields.
The offline lab uses a local double that mimics the API and produced a 240-run ledger. Its latency is simulated and its cost is computed from token usage and the dated price table, so it is a rehearsal and not a measurement. In the double, the bounded policy S4 wins at $0.0037 per pass against $0.0385 for C1, which is 90.5% lower. Live, S4 wins at $0.0070 per pass, -85.0% against C1.
Read the refund slice for S4 carefully. With n=12, nearest-rank p95 equals the maximum, so one slow five-turn run decides the verdict. Live, all 12 S4 refund runs passed: 11 of 12 finished at or under the 11,000 ms cap (max 10,894 ms), and one five-turn run took 12,359 ms (n=12, sample max), over the cap. The honest statement is that S4 meets the cap on the lookup slice (n=6, sample max) and misses it on the refund slice (n=12, sample max) by one run in this sample. We do not hide that run in a median, and we do not claim it proves a production problem either. It tells you the sample is too small to promise the cap.
The Haiku result needs equal care. The offline double plants failures on C5 and C6 on purpose, so learners practice rejecting a cheap candidate that breaks a refund invariant. Live, C5 passed 24 of 24 runs and C6 passed 24 of 24. That is real data, and it is also 4 refund tasks: zero failures in 4 tasks leave a one-sided 95% Clopper-Pearson upper bound of 52.7% on the true task failure rate, which governs over the 22.1% trial-level bound across 12 correlated repeats. Before a Haiku route writes money, run it in shadow mode against the current route, compare its payouts to the system of record, and promote it only after that audit says so.
A saving that only holds in a warm cache is a weak saving, so the lab sweeps cache hit rate from 0.0 to 0.9 and requests per 5 minute window from 1 to 20. In the offline double the cold-start case still reduced cost per pass by 75.3%, because selective context and routing cut cost without any cache reads. The Haiku step needs its own row: at 100,000 prompt tokens the lab prices a request at $0.0100, and at 100,001 tokens it prices the same request at $0.0500, because every token class bills at 5x once the prompt passes the threshold.
Write the optimization decision record
A decision record answers four questions in numbers: what we changed, what evidence supports it, what would make us undo it, and what we cannot claim. In the lab it is the optimization-record.json file in the decision folder, and pnpm check:decision rejects records that hide a slice regression, adopt a slice below its floor, claim savings that the ledger does not reproduce, assume a 1 hour cache write pays back with no reads, omit the cold-start figure, cite a provider benchmark as evidence, send an interactive slice to Batch, or leave out a rollback trigger or its threshold.
| Trigger | Threshold | Window | Action |
|---|---|---|---|
| critical invariant violation | 1 | any single run | route all slices back to C1-sonnet-high-adaptive |
| cache read ratio below | 0.5 | rolling 1 hour | investigate prefix drift; fall back to uncached routes if it persists |
| p95 latency over sla | 1 | 1 hour of interactive traffic, ratio of p95 to cap | shift the slice to the next faster qualifying route |
| infra error rate over | 0.02 | rolling 15 minutes | pause rollout and page the on-call owner |
Also list the events that force a re-evaluation, and state the limits of the evidence.
- Model or pricing change
- Policy manual edit that changes the static prefix
- Traffic below 5 requests per cache window
- Any new critical slice
- The workload is synthetic, with 8 tasks and 3 repeats. It shows a method and does not predict your numbers.
- Every live p95 is a maximum of 6 or 12 runs, and live results are one day of provider behavior. Rerun them before a decision that matters.
- During the initial Block-1 check, task OPT-01's prose check was amended once (v1 to v1.1) to accept November 12 alongside 2026-11-12 across all arms; the 12 superseded runs stay in the run archive, and the S1 to S4 cost and latency ordering is unchanged.
- Both live Message Batches (one 3-request probe batch and one 6-request audit batch) were deleted after completion and confirmed at 0 active batches.
- We did not test fast mode, task budgets, or compaction, and we did not test the 1 hour cache write live. Those claims come from documentation.
- Provider prices and rules change, so re-price after any change.
05Hands-on lab
Lab 1: Measure honestly
Fix a cost function that double counts thinking tokens, implement nearest-rank percentiles and task-level pass^k, and make an audit find five flaws in a colleague memo.
Acceptance checks
- All 13 Lab 1 tests pass: thinking tokens are billed once, cache writes and reads use their own rates, Message Batches bill at half price, and the Haiku long-prompt step counts cache tokens.
- The baseline audit reports five findings on the flawed colleague memo and none on the clean one.
Run the Lab 1 tests
$ pnpm test:lab1 | grep -E '^(ok|not ok|# (tests|pass|fail))'Initial: Initial (before you edit any file)
ok 1 - harness: a fresh local double reproduces the frozen ledger for one config ok 2 - harness: the ledger covers 10 configs, 8 tasks and 3 trials not ok 3 - percentile: nearest rank, no interpolation not ok 4 - wilson: 6 of 6 is not certainty not ok 5 - cost: thinking tokens are inside output_tokens and are not billed twice not ok 6 - cost: cache writes and reads use their own rates not ok 7 - cost: batch is half price not ok 8 - cost: the Haiku cliff counts cache tokens toward the 100,000 threshold not ok 9 - stats: infrastructure errors and harness defects are excluded and counted not ok 10 - stats: quality is task-level pass^k and safety violations are counted ok 11 - stats: tail latency reports its sample size not ok 12 - cost: effective USD per pass divides total spend, failures included, by verified passes not ok 13 - audit: the flawed report shows exactly five flaws and the clean report none # tests 13 # pass 3 # fail 10Final: Final (after every Lab 1 check passes)
# tests 13 # pass 13 # fail 0Audit the colleague reports
$ pnpm audit:baselineInitial: Initial (the audit stub finds nothing)
$ node src/cli.ts audit-baseline Synthetic training data (Example Outfitters) == audit-baseline: colleague reports == COLLEAGUE-WIN-001: 0 finding(s) COLLEAGUE-CLEAN-002: 0 finding(s) [exit 0]Final: Final (five findings on the flawed memo, none on the clean one)
Synthetic training data (Example Outfitters) == audit-baseline: colleague reports == COLLEAGUE-WIN-001: 5 finding(s) CONFOUNDED_DIFF: changed together: model, prompt, max_tokens SLICE_REGRESSION_MASKED_BY_MEAN: overall 0.85 to 0.85, but dropped: SLICE-REFUND MEAN_LATENCY_HIDES_TAIL: mean 2100 to 1750 ms, p95 4100 to 9400 ms THINKING_TOKENS_DOUBLE_COUNTED: baseline: reported 0.74 USD, recomputed 0.4400 USD SUB_NOISE_CLAIM_AS_WIN: 2 points on 24 runs; one run is 4.17 points COLLEAGUE-CLEAN-002: 0 finding(s) [exit 0]Show the solution discussion
Bill thinking tokens once, because they are already inside output_tokens, and give cache writes, cache reads, batch calls, and the Haiku long-prompt step their own rates.
Use nearest-rank percentiles with the sample size printed beside each one, and report pass^k per task so repeats of one task do not count as independent draws.
Make auditReport name five flaws: a confounded diff, a hidden slice regression, a mean that hides the tail, double-counted thinking tokens, and a gain smaller than one run.
More labs in this guide
Lab 2: Find faults, pull levers
Write eight detectors for the planted faults, compute when a 1-hour cache write pays back, route only the overnight slice to Message Batches, and compare configurations that differ by one lever.
Lab 3: Decide with evidence
Apply the gate, compute the Pareto frontier with cold-cache and price-cliff sensitivity, and repair a flawed optimization decision record until the checker accepts it.
06Failure gallery
Eight ways this breaks, and how you will know
Every failure here is reproducible in the lab with a flag. Learn the symptom first; it is what you will actually see.
- F-01
pnpm check:faultsReproducibleInvalid effort and thinking combination
- Symptom
- The API returns HTTP 400 for disabled thinking on Opus or Sonnet, or for xhigh effort combined with between_tools.
- Diagnosis
- The configuration was copied from an older model or never validated against the compatibility rules.
- Fix
- Validate every effort and thinking pair against a compatibility matrix before runtime, and treat an unverified pair as a warning.
- Verify
- Run pnpm check:faults and confirm F-01 returns INVALID_EFFORT_THINKING_COMBO.
- F-02
pnpm check:faultsReproducibleVolatile prefix busts the cache
- Symptom
- Cache reads stay at 0 and cost per request does not fall after caching is enabled.
- Diagnosis
- A timestamp or request ID sits above the cache breakpoint, so the prefix changes on every request.
- Fix
- Move volatile values below the breakpoint and keep tools and system text byte-stable.
- Verify
- Compare against P2, where 0 reads and a system_changed reason appeared, then run pnpm check:faults.
- F-03
pnpm check:faultsReproduciblePrefix under the cache minimum is skipped silently
- Symptom
- A cache marker returns HTTP 200 with 0 tokens written and 0 read.
- Diagnosis
- The prefix is shorter than the 512-token minimum, so the request is processed without caching and without an error.
- Fix
- Count tokens before enabling the cache and log written and read tokens on every response.
- Verify
- Run pnpm check:faults and confirm F-03 returns SUB_MIN_CACHE_SILENT_SKIP.
- F-04
pnpm test:lab2ReproducibleA 1 hour cache write that never pays back
- Symptom
- Cache spend rises while reads per write stay below the break-even.
- Diagnosis
- A 1 hour write costs 2.0 times the input rate and needs about 1.05 reads on Sonnet 5.5 to repay.
- Fix
- Compute break-even reads from the dated price table and keep a rolling read ratio alarm.
- Verify
- Run pnpm test:lab2 and confirm the break-even test passes.
- F-05
pnpm check:faultsReproducibleBatch routed to an interactive slice
- Symptom
- Customers wait for results that arrive minutes or hours after the request.
- Diagnosis
- Message Batches were chosen for a slice with a latency cap, and batch completion can take up to 24 hours.
- Fix
- Allow Batch only for slices the gate marks as overnight.
- Verify
- Run pnpm check:faults and confirm F-05 returns BATCH_ROUTED_INTERACTIVE_SLA.
- F-06
pnpm sensitivityReproducibleHaiku long-context price cliff
- Symptom
- Cost per request jumps fivefold when a prompt grows past 100,000 tokens.
- Diagnosis
- Every token class bills at 5x above the threshold, and cache reads and writes count toward the prompt length.
- Fix
- Cap prompt length for Haiku routes or price the step into the sensitivity table.
- Verify
- Check the sensitivity grid: $0.0100 at 100,000 tokens and $0.0500 at 100,001.
- F-07
pnpm check:faultsReproducibleBloated context and serial reads
- Symptom
- Each run spends extra turns and extra prompt tokens on text the task does not need.
- Diagnosis
- Irrelevant context adds 2,010 tokens per turn, and independent reads are issued one turn at a time.
- Fix
- Select context per task and send independent read tools in one model turn.
- Verify
- Compare S1 and S3 against their baselines: -34.0% cost and 4.00 to 2.71 mean turns.
- F-08
pnpm check:faultsReproduciblemax_tokens consumed by thinking
- Symptom
- A response arrives with HTTP 200, a max_tokens stop reason, and no visible text.
- Diagnosis
- Thinking counts toward max_tokens, and a small limit can be spent entirely on thinking tokens. One probe spent 48 of 48 output tokens on thinking.
- Fix
- Set max_tokens with headroom for thinking and treat a max_tokens stop with empty text as a failure.
- Verify
- Run pnpm check:faults and confirm F-08 returns MAX_TOKENS_THINKING_STARVATION.
07Assessment
Transfer task and rubric
Audit a flawed optimization proposal, recompute quality, latency, and cost from a raw run ledger, and write a falsifiable decision record on a workload you have not seen.
| Criterion | 0 · Emerging | 1 · Developing | 2 · Proficient | 3 · Exemplary |
|---|---|---|---|---|
| C1 Audit | Finds few of the real defects or lists many false findings. | Finds most defects but points at the wrong field in some. | Finds nearly all defects, each at the right field, with at most one false finding. | Finds every defect at the right field with no false findings. |
| C2 Quality and latency | Many recomputed fields do not match the ledger. | Most fields match but sample sizes are missing. | Nearly all fields match, with explicit sample sizes. | All fields match and clustered trials are handled by task. |
| C3 Cost recomputation | Many costs are off by more than one percent. | Most costs are within one percent but thinking or cache tokens are mishandled. | Nearly all costs are within one percent. | All costs are within one percent, including cold-cache and price-step cases. |
| C4 Gate and frontier | Admits an arm that breaks a hard gate. | Judges most arms correctly but the frontier is wrong. | Judges nearly all arms correctly with the exact frontier. | Judges every arm correctly with exact violation sets and frontier. |
| C5 Sensitivity | Omits volume or break-even work. | Covers one volume scenario and some break-evens. | Covers both volume scenarios and most break-evens. | Covers every scenario and explains the cold-cache behavior. |
| C6 Decision record | Fails most record checks or claims certainty. | Passes some record checks but omits bounds or triggers. | Passes nearly all record checks with numeric rollback triggers. | Passes every record check and states what the sample cannot show. |
Proficiency standard: Proficient or higher on every criterion. Proposed local standard, not an official certification.
The full brief
You receive a synthetic benchmark ledger for an unfamiliar support workload and a draft proposal from a colleague. The workload has interactive slices with latency budgets, one critical slice with a safety floor, and one slice that tolerates a 24-hour window.
Deliver three parts: an audit that points at the exact defective field of the proposal, a recomputation of quality, tail latency, and cost with explicit sample sizes plus the admissible arms and their frontier, and a decision record with per-slice limits, rejection reasons, and rollback triggers.
The work is offline and costs $0.00. Passing requires Proficient or Exemplary on all six criteria and zero critical failures. Completion confirms mastery within this course only and is not an external certification.
08Instructor kit
Teach it to a room
Timed facilitation plan
A 90-minute run of show with a hint ladder, a mid-workshop check, and troubleshooting for rooms without API keys.
Cohort and enterprise rollout notes
Pre-flight checks, calibration across sample submissions, and critical-failure pre-screening before scoring.
Dry-run observation rubric
A classroom observation rubric paired with live diagnosis of seeded broken repairs.
Pending instructor clearance record
A blank clearance record that stays pending until an authorized observer scores a live dry run.
Pass-rate report template
Reports per-attending and per-assessed pass rates with intervals and suppresses cells below 10 learners.
10Sources and verification
- [1]Claude pricing documentation · platform.claude.comchecked Nov 23, 2026
- [2]Claude effort documentation · platform.claude.comchecked Nov 23, 2026
- [3]Claude per-message effort guide (beta) · platform.claude.comchecked Nov 23, 2026
- [4]Claude prompt caching documentation · platform.claude.comchecked Nov 23, 2026
- [5]Claude Cache Diagnostics documentation · platform.claude.comchecked Nov 23, 2026
- [6]Claude Message Batches documentation · platform.claude.comchecked Nov 23, 2026
- [7]Claude token counting documentation · platform.claude.comchecked Nov 23, 2026
- [8]Claude API migration guide for 2026-10-21 · platform.claude.comchecked Nov 23, 2026
- [9]Claude API features overview · platform.claude.comchecked Nov 23, 2026
- [10]Quantifying infrastructure noise in agentic coding evals · anthropic.comchecked Nov 23, 2026
- [11]Demystifying evals for AI agents · anthropic.comchecked Nov 23, 2026
- [12]Interval Estimation for a Binomial Proportion · projecteuclid.orgchecked Nov 23, 2026
- [13]@anthropic-ai/sdk 1.12.0 on npm · npmjs.comchecked Nov 23, 2026
Independent work. Not affiliated with or endorsed by any vendor named in this guide.



