# Check yourself (/building-ai-workers/model-selection-and-cost/check-yourself)

---
type: Document
title: "Check yourself"
description: "Questions with outlines for the whole chapter, the flashcards, and a final quiz round."
status: stable
order: 329.95
ksor:
  owner: team:panaversity
  audience:
    - public
  approval:
    by: process:panaversity
    at: 2026-11-30T10:58:07Z
chapter: '29'
part: III
chapter_quiz: true
expert_status: manager
concepts: []
last_verified: '2026-11-30'
generated:
  at: 2026-11-30T10:58:07Z
  by: esl-rewrite/1.2.0+ksor.1
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

Answer each question in a few lines, then compare with the outline below it.

1. *29.1.* The same extraction request passes the three gates on Monday and fails on Tuesday, with nothing changed. Why, and what does that mean for how you measure a step?
   *Outline:* a model samples its output, so the same request can give a different answer, even at the lowest setting. Current models no longer let you change the sampling settings. So a step's acceptance is a rate over trials, never one run. The token count of the same text also changes with the model, so you recount on each model before you compare costs.
2. *29.2.* You want the extraction to cost less, and it thinks a lot on each invoice. What do you change first, and how do you check it?
   *Outline:* lower effort, which is a change to the output. So run the step's suite cases, three trials on the current setting and the new one, and apply the keep rule. Effort is soft guidance. `max_tokens` is the hard cap, and lowering it saves nothing: it cuts answers off, and Chapter 25's stop-reason gate sends them to Ana. How much a prompt says is set the same way, by evaluation, not habit.
3. *29.3.* How do you compare Sonnet 5.5 and Haiku 5.5 for one step?
   *Outline:* on that step's suite cases, three trials each, in one batch. Set effort and `max_tokens` the same on both, so the model is the only change. Compare cost per accepted result, not price per token, with latency as its own column. The candidate is kept only if its lowest trial passes at least as many cases as the current model's lowest, and next week's gate counts confirm it. Try effort before a tier.
4. *29.4.* What is a step's binding constraint, and how do you write the choice?
   *Outline:* the one requirement the cheaper choice must still meet. For the extraction it is quality: its 16 suite cases and the gate counts. For a batch it is the deadline, with results by 7:10. For the triage it is its $0.50 budget. Write the choice as one line per step in the "Model choices" table. Give the model and its settings, the constraint, the evidence that it holds, and the prices with their date.
5. *29.5.* A new model id comes out. What do you do before any step uses it?
   *Outline:* keep the current id pinned. Run each step's suite cases and one recorded day on the new id, and compare step by step on cost per accepted result. Switch one step at a time, and keep the old id for rollback. Run the suite on a schedule as well, because serving changes can make minor differences on a pinned id.
6. *29.6.* Dave asks what one invoice cost. Why can the Console not answer, and what do you build?
   *Outline:* the Console groups by model, workspace or key, never by step or company. So each step's code writes one line per model call to a usage log, with its step, company, model and usage. Reconcile the log's total with the Console's and name the difference. Set Cedar Ridge's lines apart. Divide each step's spend by the results its checks accepted. The largest step is the dominant cost, and its usage points to its lever.
7. *29.7.* Where do the breakpoints go on the extraction's two requests, and how do you check them?
   *Outline:* by how often content changes. One after the tools and shared rules, which change only with a prompt version. One at the end of the first request, so the second request reads it. The run date stays after the last breakpoint. A breakpoint changes the price, never the output, so it is checked by the cache share, not the suite.
8. *29.8.* The night's extractions run as a batch. How do you make sure the triage still has them at 7:10?
   *Outline:* an extraction is two requests, so it runs as two rounds. Round 2 goes when round 1 ends. Match every result by `custom_id`, because results come back in any order. At 6:45 the code cancels any batch that has not ended, keeps what succeeded, and runs the canceled, expired and passing errors in realtime. Any other errored request goes to `needs_review`. The check is the deadline.
9. *29.9.* Name the three budgets, and say how you write a saving.
   *Outline:* `max_tokens` on each request (hard), the task budget for an agentic turn (a soft hint), and a hosted session's dollar budget (hard). A saving is one line per change. It gives the cost per invoice before and after, times the week's invoice count, and the token counts. It also gives the prices and their date, the check it passed, and any delay. Savings are never added up, because two changes to the same requests overlap, so the combined setup is measured as a run of its own.
10. *29.10.* You price last week on another vendor at the same list price. Why might the week cost a different amount, and what is still missing?
    *Outline:* the token counts differ by tokenizer, and caching works differently (OpenAI caches by default). The effort defaults differ too, so set effort yourself on both. What is missing is the accepted count: a price per token is not a cost per accepted result until that vendor's model passes the same cases.

<!-- OPEN: this section follows Chapters 26 and 27's Check yourself: one open question with an outline for each concept, and the flashcards attached to the page. Outlines 1 to 9 were written from the chapter's spec, because other agents drafted 29.1 to 29.9 at the same time. Review round 1 read each against its section and changed outlines 4 and 9 to match -->
