AI Product Management
PM-02
Write the AI product spec
What you'll produce: Spec with acceptance evals
Definition
An AI product spec is a one- to two-page document that names the decision a feature improves and who owns it, defines correct behaviour through acceptance evals (labelled cases with expected outcomes, including refusals and escalations), lists the never-rules, and sets a release gate as a measured result on cases the builder has not tuned against. It is written before any prompt, and it changes first when behaviour needs to change.
TL;DR
- Start from one decision and one owner, not from a model or a chat surface.
- Define correct with cases an operator has labelled. Adjectives such as accurate or helpful cannot be tested.
- Include the cases where the right behaviour is to refuse or hand off to a person.
- Write the never-rules and name who can stop the system before the first prototype.
- State the release gate as a number on held-out cases, with any blocker that fails the release outright.
Why the spec comes before the prototype
A prototype answers the question "can the model do this?" A spec answers a harder one: "how will we know it did the right thing?" Teams that skip the second question usually meet it in review, after the demo has set expectations nobody can now test.
Ordinary software specs describe behaviour that is the same on every run. A feature with a model in it behaves differently from run to run and from input to input, so a list of requirements is not enough. The spec has to carry its own tests. Eugene Yan calls this eval-driven development and compares it to test-driven development: define the success criteria as evals first, then build something that passes them. We made the same argument in our note on eval design. The eval is the product spec, and the model, prompt, and tools are details underneath it.
Anthropic's guidance on agents adds a practical reason. It recommends starting with the simplest setup and adding complexity only when results improve. That advice needs a measure. Without acceptance evals, nobody can say whether a more elaborate design earned its cost.
What goes on the page
| Field |
The question it answers |
| Decision, owner, version |
Who decides what, from which inputs, and does the system suggest, draft, or act? |
| Baseline |
What does the current process cost, and how often does it fail? |
| Inputs and sources of truth |
What may the system read, how fresh must it be, and what happens when it is missing? |
| Acceptance evals |
What does a right answer look like, and what must be refused or handed off? |
| Never-rules |
What may the system never read, send, or do? |
| Stop control |
Who can halt it, and what stops immediately? |
| Release gate |
What measured result lets us ship, and what blocks release outright? |
Each field is short. The discipline is in refusing to leave one blank. A blank baseline means the team will not be able to show improvement. A blank never-list means the limits will be discovered in production.
Write acceptance evals as cases
"Accurate" and "helpful" cannot be tested. A labelled case can. For each case, record the input, the expected outcome, the evidence the answer must cite, the actions that are allowed, and the actions that are prohibited.
Five kinds of case make a spec honest:
- A clear pass. The ordinary case, done right, with the right source cited.
- A close-but-wrong answer. It looks right and fails on a second look. This is the case a demo never shows.
- A missing-source refusal. The correct behaviour is to say the source is not there.
- A risky action that needs a person. The system should stop and route it.
- A correct answer with weak evidence. The answer is right but the support is thin or stale, and the system should flag it.
Pull the cases from history where you can. Reganti and Badam, writing in Lenny's Newsletter, suggest gathering a reference set of roughly 20 to 100 examples before building, drawn from past logs or written from how the product is expected to behave. Have one experienced operator label them. Then split the set, and keep a holdout the builder does not see until the release check.
Set the gate as a measurement
A release gate has four parts: the metric and exactly how it is calculated, the threshold, the cases it is measured on, and the blockers.
Blockers matter most. Some failures are not averaged away by good performance elsewhere. If the system may send messages or change records, the gate should say that a single prohibited action on the holdout fails the release, whatever the pass rate. Write it as a count, for example zero prohibited actions in 40 holdout cases. A sentence such as "safety passed" tells a reader nothing.
Decide also which error costs more. A system that refuses too often wastes time. One that answers when it should have refused damages trust. The owner makes that call, and the threshold follows from it.
A worked example
This example is fictional. Northgate Supply, an invented parts distributor, selected order-status email replies from its scorecard. Here is the spec in summary.
- Decision: a customer service agent decides what to tell a customer who asks where an order is, about 1,400 times a month, from the order record and the carrier tracking feed. Owner: the customer service manager. Version 1 drafts a reply, and an agent sends it.
- Baseline: median handling time of six minutes. About one reply in twenty needs a follow-up correction.
- Sources: order system and carrier feed only. Tracking data older than 24 hours counts as missing.
- Acceptance evals: 45 past emails labelled by a senior agent. They include split shipments (close-but-wrong when only the first parcel is reported), orders with no tracking yet (refusal with a handoff), requests to change a delivery address (must go to a person), and stale tracking (flag it).
- Never-rules: never state a delivery date the carrier has not given, never offer a refund or credit, never include another customer's details.
- Stop control: the customer service manager, with the operations lead as deputy. Stopping returns all emails to the manual queue.
- Release gate: at least 90 percent of drafts on 15 held-out cases sendable without edits, as judged by the senior agent, and zero never-rule violations.
The spec fit on a page and a half. Writing it surfaced one thing nobody had planned for, the address-change request, which now routes to a person.
Common failure modes
- Writing the spec after the prototype. The cases get chosen to match what the prototype already does.
- Only happy-path cases. A set with no refusals and no escalations tests half the behaviour.
- Adjectives in the gate. "High quality" is not a threshold.
- No holdout. If the builder tunes against every case, the gate measures memorisation.
- A spec that is written once. Spec-driven development, as GitHub's Spec Kit describes it, treats the specification as the primary artifact and the code as its expression. Birgitta Böckeler, writing on martinfowler.com, separates spec-first use from specs that are kept and maintained afterwards. For an AI feature, keep it. Change the page first, then the system, then re-run the cases.
- No owner signature. An unsigned threshold gets renegotiated the week of launch.
How it connects to the other pillars
Upstream, the spec takes its decision and version from the use-case scorecard. Downstream in this pillar, the acceptance cases grow into the eval rubric and golden set, and the never-rules feed the review-gate map.
In AI development, the acceptance cases are the first contents of the eval harness, and the release gate becomes the check that runs on every change.
In the factory pillar, the spec is the source for work orders. An agent given a spec with cases can verify its own work against them. An agent given a paragraph of intent cannot.
Run it yourself
Time: ~90 min to draft, plus case labelling
- Name the decision, the owner, and the version — You need: One workflow, one accountable person, and the level of autonomy for this version. You get: A sentence of the form: who decides what, when, from which inputs, and whether the system suggests, drafts, or acts. If two people claim the decision, the scope is too wide. Split it.
- Record the baseline — You need: Monthly volume, median and slow-case cycle time, touch time, error or rework rate. You get: A baseline table the release gate will be compared against.
- List inputs and sources of truth — You need: The systems and documents a person uses to make this decision today. You get: A list of permitted sources, a freshness limit for each, and what the system does when a source is missing.
- Write the acceptance evals — You need: 20 to 60 real, permissioned cases from history and an experienced operator. You get: Labelled cases with expected outcome, required evidence, allowed actions, and prohibited actions. Cover a clear pass, a close-but-wrong answer, a missing-source refusal, a risky action that must go to a person, and a correct answer with weak evidence.
- Write the never-rules and the stop control — You need: The risk approver and a list of prohibited data, destinations, and actions. You get: A short never-list, a named person who can stop the system, and a deputy.
- Set the release gate and freeze a holdout — You need: The baseline, the labelled cases, and agreement on which error is more costly. You get: A pass threshold, a list of blockers that fail the release regardless of the average, and a holdout the builder does not see.
- Sign and store it next to the work — You need: The owner, the risk approver, and the builder. You get: A versioned spec in the same place as the code and the cases.
Do it with AI
You are helping me write an AI product spec with acceptance evals. Interview me one question at a time. Do not propose a model, a prompt, or an architecture.
The workflow: [ONE SENTENCE: WHO DECIDES WHAT, HOW OFTEN, FROM WHICH INPUTS]
The version: [SUGGEST ONLY / DRAFT FOR HUMAN REVIEW / ACT WITH HUMAN FALLBACK]
Fill these fields in order, and tell me when an answer is vague or cannot be tested:
1. Decision, workflow owner, risk approver.
2. Baseline: monthly volume, median cycle time, error or rework rate. If I do not know a number, record it as "to measure" with an owner.
3. Inputs and sources of truth, a freshness limit for each, and the behaviour when a source is missing.
4. Acceptance evals: ask me for real past cases until we have at least one of each kind: a clear pass; a close-but-wrong answer; a case that must be refused for lack of source; a risky action that must go to a person; a correct answer with weak evidence. For each case record input, expected outcome, required evidence, allowed actions, prohibited actions.
5. Never-rules: data the system may not read, places it may not send to, actions it may not take.
6. Stop control: who can halt the system, their deputy, and what stops immediately.
7. Release gate: the metric, its exact calculation, the pass threshold on held-out cases, and any blocker that fails the release regardless of the average.
When every field is filled, output the spec as plain text with one section per field, then a table of the acceptance cases, then a list of open questions with an owner for each.
Chain it
- Interviewer — Asks for each spec field one question at a time and flags answers that cannot be tested; The scorecard entry for the workflow and the owner's notes → A draft spec with open questions marked
- Case miner — Pulls candidate cases from history, removes personal data, and sorts them into the five case kinds; The draft spec and read-only access to past tickets or records → 20 to 60 candidate cases with a proposed expected outcome for each; gate: An experienced operator corrects every label before it is used
- Spec critic — Checks the spec for untestable statements, missing refusals, and risks with no owner; The draft spec and the labelled cases → A list of gaps ranked by consequence
- Gate drafter — Proposes the metric definition, threshold, and blockers, and splits the cases into working and holdout sets; The baseline, the labelled cases, and the critic's gaps → A release gate section and a frozen holdout file; gate: The risk approver signs the never-rules and the owner signs the threshold
How AI changes this
Automate
- Interviewing the owner and drafting each field
- Finding and de-identifying candidate cases from history
- Proposing expected outcomes for a human to correct
- Checking the spec for vague or untestable statements
- Re-running the acceptance cases after every change
Keep human
- Choosing the decision and the level of autonomy for this version
- Labelling the holdout cases
- Setting the never-rules and naming who can stop the system
- Agreeing the threshold and which error is more costly
- Deciding whether the evidence is enough to release
Stage
- Entry: A selected workflow with a named owner, from a use-case scorecard or an equivalent decision.
- Exit: A spec signed by the workflow owner, the risk approver, and the builder, with acceptance cases attached and a holdout set frozen.
FAQ
How long should an AI product spec be?
One to two pages, plus the case table. If it needs more, the scope covers more than one decision. Split the workflow and write one spec for each.
Do I need a model or a prompt before I write the spec?
No. The spec comes first because it defines what the prototype is tested against. Choosing a model before defining correct makes the choice impossible to check.
How many acceptance cases do I need?
Start with 20 to 60 real cases. Published guidance for a first reference set ranges from about 20 to 100 examples. Treat the range as a starting heuristic, not a statistical standard, and raise it with the risk of the workflow.
How is this different from a PRD?
A PRD describes features and user flows. An AI product spec adds what a PRD usually leaves out, which is a testable definition of correct for behaviour that varies from run to run, the cases where the system must refuse, and a release gate stated as a measurement.
Who signs the spec?
The workflow owner signs the decision, the baseline, and the threshold. The risk approver signs the never-rules. The builder signs that every acceptance case can be run and scored.
Sources
Related