# Check yourself (/affordable-self-improving-ai-workers/building-a-durable-ai-worker/check-yourself)

---
type: Document
title: "Check yourself"
description: "Recall and practice for the whole chapter: the flashcards, and nine questions with outline answers."
status: stable
order: 433.95
ksor:
  owner: team:panaversity
  audience: [ public ]
  approval:
    by: process:panaversity
    at: 2026-11-30T08:18:55Z
chapter: "33"
part: IV
expert_status: manager
concepts: [ "33.1", "33.2", "33.3", "33.4", "33.5", "33.6", "33.7", "33.8", "33.9" ]
last_verified: 2026-11-29
generated:
  at: 2026-11-30T08:18:55Z
  by: human:zia
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

Each question is tagged with the section it tests. An outline answer follows each one.

1. **\[[33.1](the-ideas-first.md)\]** What do the loop, the checkpoint, the safe replay and the wait mean? *The harness calls the model and runs its tools. Each step is saved before the next one starts. A step with side effects can run twice without harm, because its key was saved. A waiting worker is saved and asleep, and costs nothing.*
2. **\[[33.2](write-the-spec.md)\]** What goes in the spec for a durable worker, and why must each line be there? *The tools, which ones change the outside, which are safe to replay and with what key, the approval and who may give it, rejection as a normal result, no model name in tool code, and the budget. If the spec does not say it, no test checks it and no review catches it.*
3. **\[[33.3](build-it-step-by-step.md)\]** In what order do you build the worker with Claude Code, and what do you check at each step? *Scaffold the Worker and check the pinned versions. Host Pi Durable in a Durable Object and check that the registry is a field of the object. Add the tools and check that the key is saved with `api.memo()` before the ledger call.*
4. **\[[33.4](one-object-per-conversation.md)\]** Why does each conversation get its own object, and where does the worker's identity live? *So conversations are isolated, run one message at a time, and accept each `operationId` once. The identity, role contract and release live in Postgres, where auditors and the platform can read them.*
5. **\[[33.5](waiting-for-a-person.md)\]** How does a worker wait days for a person without paying, and what four rules make an approval safe? *The tool returns a waiting status and the object hibernates until a signal or a deadline wakes it. Only the holder of the named reviewer's link can approve, a link works once, a rejection is a result, and approving twice never pays twice.*
6. **\[[33.6](test-it-the-hard-way.md)\]** Which moment do the hard tests aim at, and why do recorded answers make tests free? *The moment between acting and saving, such as a crash right after the ledger call. Recorded answers replace the live model, so the tests need no API key, give the same result every time and run in seconds.*
7. **\[[33.7](deploy-and-read-the-bill.md)\]** How do you turn 50 invoices of measured usage into a cost per invoice? *Multiply the measured input and output tokens by the model's prices, add active object time, count waits as zero, and divide by 50. With the paper's medium-invoice numbers that is about $0.017 per invoice; the lab's recorded run gives $0.0049. Either way, almost all of it is model tokens.*
8. **\[[33.8](when-claude-code-gets-it-wrong.md)\]** What five mistakes do you look for first when you review a durable worker? *Invented Pi APIs, a side effect in a tool marked safe, waiting code that keeps the object awake, trusting a signal's sender, and state shared at module scope.*
9. **\[[33.9](limits-and-todays-tools.md)\]** What are the limits of this stack, and what do you check before you upgrade Pi? *It is experimental and pinned, rollback is not free, a conversation cannot be deleted by a Pi call, worker-wide rules need something shared, and there are no subagents. Check that `agents` supports the new Pi version, and test the upgrade on a copy like a database migration.*
