07. Checklists for Shipping AI Systems#
Level: Practitioner · Reading time: 20 min · Exercise: 45 min Prerequisites: None. Planning for Mistakes ends with two checklists that two of these extend.
In one sentence: After this chapter you have five checklists you can copy into a project, one for each stage from the first line of code to an incident, and every item links to the chapter that explains it.
Why this matters#
Every part of this course ends with a method that is easy to agree with and easy to skip under a deadline. Write the goal. Build the evaluator. Threat-model the system. Rehearse the rollback. A checklist turns "we should" into a box that is either ticked or empty.
Planning for Mistakes ends with two checklists of its own. This chapter gathers the discipline of all ten parts into five.
The core idea#
A checklist item earns its place when four things hold:
- It is one line, and it can be answered yes or no.
- It names an artifact: a page, a table, a number or a test. It does not name an intention.
- It links to the chapter that explains it.
- It has caught something, or it was added after something went wrong.
How to keep a checklist usable#
- Keep it short. Around ten items, and twelve at most after you cut. Nobody reads a checklist with sixty.
- Copy, then cut. Copy the five below into your project. Delete what does not apply, and write down why.
- A tick names a file. An item is done when the artifact exists in the repository.
- Someone else checks. The person who did the work does not tick the last box alone. Someone who knows the users reads the result (Planning for Mistakes).
- Fix, or decide. Some items end with "or a written decision to accept the risk". A decision recorded with its reason is a valid tick. Silence is not.
- Review it on a schedule. Repeat the analysis after every incident and before every release that changes the model (Planning for Mistakes).
- Remove dead items. An item that has never caught anything is taking space from one that would.
- Do not ask for a person at every step. A gate that fires on everything trains people to click approve (Defenses: Guardrails, Detection and Secure Design). An item that everyone ticks without looking is worse than no item.
How it works, step by step#
The five checklists follow the order of a project. Copy the ones you need.
1. Before the first line of code#
- The goal is written at four layers, organization, product, users and model, with one measure for each. (Goals and Requirements)
- "Good enough" is a number for this use and this data. It is not the word "correct". (From Models to Systems and Products)
- A written list names who is harmed by a wrong output, and how badly. (Planning for Mistakes)
- The simplest baseline, a rule or a keyword, is measured, and the cost of anything smarter is written down. (When to Use ML, and When Not To)
- Workflow or agent is chosen, and the page says why the steps do or do not vary. (The Anatomy of an Agent)
- The environment is defined: what the system may read and what it may change. Everything else is out of reach. (The Anatomy of an Agent)
- Every automated action is labeled automate, prompt or augment. (Planning for Mistakes)
- The data exists, you may use it, and its label quality is known. (Data Quality)
- Model work and system work are joined by an interface contract, with decision points set in advance. (Process Models: Planning and Iteration)
- Someone who knows the users read this page. (Planning for Mistakes)
2. Evaluation#
- Every task has its expected outcome written down before the first run. (A Minimal Evaluation Harness)
- A cheap oracle grades what a program can check. A judge calibrated against human labels grades the rest. (Evaluation Is the Product, LLM-as-a-Judge and Rubrics)
- Failed and passed attempts were read, to catch a grader that is too strict or too loose. (A Minimal Evaluation Harness)
- Every task runs several times, and pass^k is reported beside pass@k. (A Minimal Evaluation Harness)
- Scores carry standard errors, and two versions are compared on the same tasks, paired. (Statistics for Evals)
- A held-out set was never opened during development. (A Minimal Evaluation Harness)
- The set includes requests the agent must refuse, such as a refund for a missing order. (A Minimal Evaluation Harness)
- The report is sliced, and each slice has a decision: fix it, mitigate it, accept it with monitoring, or move it out of scope. (Slicing: Finding Where the Model Fails)
- Cost and latency are printed beside quality. (A Minimal Evaluation Harness)
- For an agent, the outcome and the route are graded separately, in an environment that resets. (Evaluating Agents: Trajectories and Environments)
- The evaluator itself was tested on cases with known verdicts. (the green agent case study)
- A gate blocks any change that makes a metric worse. (Evals in Production)
3. Security review#
- The threat model names the assets, the attackers and every trust boundary. (Threat Modeling LLM Applications and Agents)
- Every tool result and every fetched page is treated as untrusted input. (Threat Modeling LLM Applications and Agents)
- Every tool call passes a policy gate whose default is deny. (Defenses: Guardrails, Detection and Secure Design)
- Model output never reaches a shell, a database or a URL without validation. (Defenses: Guardrails, Detection and Secure Design)
- Each agent has at most two of the three properties in the Rule of Two. (Defenses: Guardrails, Detection and Secure Design)
- A sensitive action waits for a person who sees the real arguments. No answer means no action. (Defenses: Guardrails, Detection and Secure Design)
- Memory, retrieved documents and tool descriptions were reviewed for planted content. (Agent-Specific Attacks)
- The defenses are layered: prompt level, detector, and controls in code. (Defenses: Guardrails, Detection and Secure Design)
- An injection suite was run. The attack success rate and the utility are reported, with the number of runs. (Red-Teaming and Safety Evaluation)
- Each detector's false positive rate and false negative rate are measured. (Defenses: Guardrails, Detection and Secure Design)
- Every blocked call is logged with its arguments and the rule it broke. (Defenses: Guardrails, Detection and Secure Design)
- The model that ships, fine-tuned or not, was tested again. (Defenses: Guardrails, Detection and Secure Design)
4. Pre-deployment and rollout#
- A mistake analysis exists, with an FMEA table and a fault tree. No cut set of size one is left without a written acceptance. (Planning for Mistakes)
- Guardrails in plain code bound the damage of a wrong output, the fallback for a model that is down, slow or returning garbage is defined, and both are tested with a hostile stub of the model. (System Quality: End-to-End Tests and Guardrails, Planning for Mistakes)
- The end-to-end tests and the acceptance tests pass on the whole system. (System Quality: End-to-End Tests and Guardrails)
- Code, prompts, data, models and settings carry versions, and a decision record exists. (Responsible Engineering, Versioning and Reproducibility)
- Telemetry can tell whether the model was right in production. (Testing and Experimenting in Production)
- The pipeline re-runs with one command, and the evaluation gate runs in continuous integration. (Automating the Pipeline)
- Service-level objectives are written for the system and for the model component. (Planning for Operations)
- The rollout has levels: shadow, canary, then all users. Each level has a written stop condition. (Testing and Experimenting in Production, Policy, Governance and Standards)
- The rollback was rehearsed and timed, and the kill switch was tested. (Planning for Operations)
- Users can undo or appeal an automated decision. (Planning for Mistakes)
- The model card is written: intended use, supported inputs, accuracy and limits. (Deploying a Model)
- An incident response plan and an on-call rotation exist, with a runbook for each alert. (Planning for Operations)
5. Incident response#
- Contain first: the kill switch or the rollback. The rest of the system keeps running. (Planning for Operations)
- Record the versions of the model, the prompt, the data and the settings. The decision record shows what ran. (Responsible Engineering, Versioning and Reproducibility)
- Pull the traces of the affected attempts. Every attempt was traced. (Evals in Production)
- The blast radius is measured: which users, how many, and since when. (Planning for Operations)
- Name the failure: a component mistake or a system failure, and which FMEA row it belongs to. (Planning for Mistakes)
- If an attack is suspected, keep the blocked-call log and add the payload to the versioned adversarial data set. (Red-Teaming and Safety Evaluation)
- The affected people are told, and they have a way to appeal. (Planning for Mistakes, Security, Privacy, Transparency and Accountability)
- The failing inputs become evaluation tasks. (Evals in Production)
- The fix is kept only if the evaluation improves beyond the noise and nothing regresses. (Evaluation Is the Product)
- The fault tree and the checklists get an item, and the analysis is repeated. (Planning for Mistakes)
- A named stop condition sends the system back one rollout level. (Policy, Governance and Standards)
Worked example#
One item of checklist 4, in three states. The example is illustrative.
| State | What the box says | What it is worth |
|---|---|---|
| Intention | "We will rehearse the rollback before launch" | Nothing yet |
| Tick without evidence | "Done" in a meeting | Unknown |
| Tick with an artifact | docs/rollback-drill.md, with the date and the time from alert to the previous version |
A rehearsed rollback |
The third state is the only one the checklist accepts.
What the practitioners say#
- Two checklists come from the mistake analysis. Planning for Mistakes, which rests on Kästner's chapter 7, ends with one for every design review of a model-backed feature and one for each run of the analysis. Checklists 1 and 4 extend them to agents and LLMs.
- Test the evaluator. The Berkeley course staff end their checklist for the evaluating agent with test cases of known verdicts (the green agent case study). It is the eleventh item of checklist 2.
- A gate on everything is a rubber stamp. Dawn Song's three rules for a human approval gate (Defenses: Guardrails, Detection and Secure Design). The last rule of this chapter borrows it.
- A launch checklist exists in operations. Planning for Operations places it beside the rollback and the incident plan.
Pitfalls#
- A checklist nobody copies. Fix: paste it into the project on day one, and cut it to size.
- Items that are intentions. "Think about security" cannot be ticked. Fix: name the artifact.
- Ticking without a file. Fix: every tick names a path.
- The author checks alone. Fix: someone who knows the users reads the result.
- A checklist that never changes. Fix: add an item after each incident, and remove the dead ones.
- Used once, at launch. Fix: review after incidents and before releases that change the model.
- A checklist in place of a decision. "We ran the checklist" is not a reason. Fix: the written decisions are the output.
- Items without links. Fix: link the chapter, so that a new team member can learn what the item means.
Try it#
Copy checklist 1 into the repository of a project you are working on. Spend 30 minutes ticking it honestly.
Deliverable: the filled checklist, with a file name beside every tick and an owner and a date beside every empty box.
You are done when every tick names a file, and one line at the end names one item that changed what you were about to do, or says that none did.
Stretch goal: write the item you wish had been on the list after your last incident, and add it to the right checklist.
Key takeaways#
- A checklist turns a method into a box that is ticked or empty.
- An item earns its place by being one line, naming an artifact, linking its chapter, and having caught something.
- A tick names a file. A decision to accept a risk is a valid tick only when it is written down.
- Review the checklists after every incident and before every release that changes the model.
- Five checklists cover a project: before the code, evaluation, security, rollout, and incident response.
Self-check#
- What four properties must a checklist item have to earn its place?
- Why must a tick name a file?
- Which kind of item allows a written decision instead of a fix?
- When is a checklist reviewed?
- Why is an item that everyone ticks without looking worse than no item?
- Why does the evaluation checklist ask whether the evaluator itself was tested?
Show answers
1. It is one line with a yes-or-no answer. It names an artifact, not an intention. It links to the chapter that explains it. It has caught something, or it was added after something went wrong. 2. An item is done when the artifact exists in the repository. A tick without a file records an opinion, and nobody can check it later. 3. An item about a risk that cannot be removed now, such as a minimal cut set of size one. The decision is written down with its reason. Silence is not a tick. 4. After every incident, and before every release that changes the model. 5. It trains the team to tick without reading, and it takes the place of an item that would have caught something. 6. The evaluator is a program, and it can be wrong. Cases with known verdicts are the only way to know that its verdicts mean something.Sources#
- Planning for Mistakes, Planning for Operations, From Models to Systems and Products, When to Use ML, and When Not To, Goals and Requirements, Deploying a Model, Automating the Pipeline (part 07)
- The Anatomy of an Agent (part 02)
- Evaluation Is the Product, A Minimal Evaluation Harness, LLM-as-a-Judge and Rubrics, Evaluating Agents: Trajectories and Environments, Statistics for Evals, Evals in Production, the green agent case study (part 03)
- Threat Modeling LLM Applications and Agents, Agent-Specific Attacks, Defenses: Guardrails, Detection and Secure Design, Red-Teaming and Safety Evaluation, Policy, Governance and Standards (part 04)
- Measuring Model Quality, Slicing: Finding Where the Model Fails, Data Quality, Process Models: Planning and Iteration, System Quality: End-to-End Tests and Guardrails, Testing and Experimenting in Production, Responsible Engineering, Versioning and Reproducibility, Security, Privacy, Transparency and Accountability (part 08)
Next#
→ Staying Current, for what to follow after the course ends.