13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Modules 02 to 12 taught you how to build with LLMs: call the APIs, retrieve, ground, give tools, evaluate, observe and defend. This module asks a prior question: should you build it at all, and if you do, what kind of product is it? Most AI features that fail in production do not fail because the model was too weak — they fail because nobody decided what "working" means, who the user is, what a wrong answer costs, or what happens when the model is confidently wrong. This lesson is the product layer that sits before all the engineering: how to decide whether an LLM belongs in a feature, how to frame the problem in one page, how to classify the product shape you are building, how to set a quality bar and an autonomy tier, how to learn cheaply before writing product code, and how to choose between building, buying and configuring. It introduces the first file of the module's running package, ai_product.
What you'll learn
- The difference between a demo (works on the happy path, once, in front of an audience) and a product (works on the 95th-percentile input, every day, within a budget)
- A decision framework for when to use an LLM and when not to — determinism, asymmetric error costs, volume and latency, data availability, and the cases where a form, a rule or a classical model is simply better
- How to frame an AI feature in one page: user, job-to-be-done, current workflow, pain, frequency, value of automation, success definition and non-goals
- The full AI feature brief template, and
ai_product/feature_brief.py, a validator that flags missing items and risky combinations - How the brief grows into an AI-era PRD (eval spec, example-based behaviour spec, AI-specific non-functional requirements), the product vocabulary around it (PRD, MVP, NFR, dogfooding, A/B test), and how to plan for a model landscape that moves under you (scaffolding versus durable value)
- A taxonomy of AI product shapes — assistant, copilot, agent, automation, answer engine, generation tool, extraction pipeline, voice interface, proactive suggestion, insight tool — and what each implies for autonomy, failure modes and UX
- Quality bars and risk tiering: how good is good enough, error budgets, and the assist / draft / act / decide autonomy tiers with the controls each one demands
- How to prototype to learn: expert interviews, Wizard-of-Oz, prompt-only prototypes, golden examples, shadow mode — plus a feasibility checklist and kill criteria
- Build vs buy vs configure: APIs, managed platforms, open-weight models and SaaS, with a decision table
- Stakeholders and ownership: who owns prompts, evals and incidents, and how an AI engineer works with product, design, domain experts and legal
- The common product anti-patterns that kill AI features, as a failure gallery you can audit your own ideas against
What you don't need
- API keys or any provider access. Every decision in this lesson is made before a model is called, and every code sample runs locally on fixtures.
- Prior product-management experience. Terms like PRD, MVP, job-to-be-done and A/B test are explained from zero; experienced readers get the switcher mapping in each section.
- Knowledge of later lessons in this module. This lesson points forward to 13A.2–13A.6 for the UX, architecture, metrics and case-study depth, and backward to Modules 07–12 for the engineering each product shape will need.
Setup
This lesson's only code is the first file of the ai_product package: pure Python 3.11+ with Pydantic. No services, no keys, no network.
uv init ai-product --bare --python 3.13 && cd ai-product
uv add pydantic
# or, without uv: pip install pydanticThe samples use Pydantic v2 and the outputs were produced with pydantic 2.14.3 as of November 2026; a plain install gives you the newest v2 release.
Save the file as ai_product/feature_brief.py (create the ai_product/ folder first; later lessons add more files to it) and run uv run python -m ai_product.feature_brief from the project root (the ai-product folder that uv init made). Every output in this lesson was produced by actually running that file — it is deterministic, so yours will match.
What you must be able to do after this lesson#
- Explain the difference between a demo and a product
- Decide with the decision framework whether an LLM is the right tool
- Fill in the AI feature brief and validate it with feature_brief.py
- Assign a quality bar and an autonomy tier (assist, draft, act, decide)
- Choose between build, buy and configure
Why this matters for an AI engineer#
The product decisions in this lesson are the ones engineering cannot undo later. A prompt can be edited in a pull request; an autonomy tier, a quality bar and a fallback are architectural commitments that shape the UX, the evals, the safety review and the cost model of everything built on top.
| You'll hear... | You'll understand it after... |
|---|---|
| "The demo worked perfectly — let's ship it." | 1.1 A demo proves possibility |
| "Let's add AI to the search page." | Part 2: When to use an LLM |
| "What goes in the PRD for this feature?" | 3.2 The one-page AI feature brief |
| "Should this be a chatbot?" | Part 4: A taxonomy of AI product shapes |
| "How accurate does it need to be?" | 5.1 How good is good enough |
| "Can we ship without humans reviewing every output?" | 5.2 Autonomy tiers and 5.4 |
| "Let's test feasibility before building." | Part 6: Prototype to learn |
| "Build it or buy a platform?" | Part 7: Build vs buy vs configure |
| "Who owns the prompts and the evals?" | Part 8: Stakeholders and ownership |
| "Why did the last AI project at my last company fail?" | Part 9: The anti-pattern gallery |
Part 1: The demo-to-product gap#
1.1 A demo proves possibility; a product survives contact#
A demo is a performance: one input, chosen in advance, run once, in front of people who are rooting for it to work. Its job is to prove that the technology can do the thing — that a model can read a ticket and draft a reply, that a voice agent can book an appointment, that an extractor can pull totals off an invoice. When the demo works, the room applauds and the project gets funded.
A product is an obligation: the same feature, running on inputs nobody chose, at three in the morning, on the ninety-fifth-percentile-long document, in a language the prompt never mentioned, for a user who will never give you a second chance. Its job is to do the thing usefully, reliably and affordably, every time — and to fail in ways users can understand and recover from.
The gap between those two sentences is where most AI features die. The model did not get worse between demo day and launch week; the standards changed. The demo is graded on possibility. The product is graded on the tail.
1.2 The five product failures#
Ask why AI features fail after launch, and the answers cluster into five product-level causes — none of which are "the model wasn't smart enough":
- Solving a problem nobody has. The feature answers a question users don't ask, or answers it in a shape they don't want. "We could make it a chatbot" is a technology looking for a job, not a job looking for a technology. The fix happens before any model call: watch the real workflow and find the actual pain (3.1).
- The wrong accuracy bar. The team aimed for "impressive" instead of "better than the baseline". A support copilot that is 85% as good as a senior agent is a failure if agents must now check every draft (the checking costs more than the drafting saved); it is a success if it drafts the routine 60% and escalates the rest honestly. The bar is set relative to the human or existing process being replaced — never to perfection (5.1).
- No fallback. When the model is wrong, there is no defined next step: no human review, no "answer manually" path, no graceful degradation. A probabilistic component without a failure path is not a feature, it is a liability with a latency budget.
- No feedback loop. Nobody collects the corrections, the regenerations, the abandoned sessions or the thumbs-downs — so the team cannot tell which failures matter, cannot build eval cases from real traffic (10A.2), and cannot prove the feature is improving. The feature decays silently.
- No owner for quality. Everyone owns the launch; nobody owns the quality a month later. Prompts change in a PR, models get deprecated, retrieval drifts — and no single role watches the eval suite, the incident queue and the cost report together (Part 8).
Notice what is absent from the list: model choice, prompt cleverness, benchmark scores. Those are real engineering concerns — Modules 03–12 own them — but they are downstream of these five decisions.
1.3 The arithmetic of "usually right"#
Here is the calculation that surprises every new AI engineer. Suppose each stage of your feature is 95% reliable — genuinely good by industry standards: retrieval finds the right passage 95% of the time, the model answers correctly given good context 95% of the time, the output validator catches bad formats 95% of the time. Chain ten such stages and the end-to-end reliability is not 95%. It is:
0.95 ** 10 ≈ 0.60 → about 60% of requests succeed end to endTen stages at 99% each still give only ~90%. This is the compounding error rate problem, and it is why lesson 08A.9, Part 5 teaches you to multiply step reliabilities rather than add them, and why agents — which run loops of model calls — need budgets, verification gates and fallbacks rather than a bigger model. The product-level translation: a feature's quality bar must be set on the whole pipeline, and every stage needs a designed failure path, not just a hope.
1.4 What "product" means concretely#
Strip the word down and a product-quality AI feature has five properties the demo lacks:
| Property | Demo | Product |
|---|---|---|
| Inputs | The happy path, chosen in advance | The 95th percentile: long docs, typos, odd languages, adversarial content |
| Uptime | Works when someone is watching | Works at 3 a.m. on a Sunday, with the same guarantees |
| Latency | "It took a while" | A budget per interaction, measured at p50 and p95 (11A.2) |
| Cost | Whatever it costs once | A per-task unit cost inside a budget (13A.6) |
| Failure | Predictable, rehearsed, recoverable — designed in Part 5 and detailed in 13A.4 | "It glitched", improvised |
What this means for you as an engineer. Before you write a line of product code, you should be able to answer: who is this for, what do they do today, what does "better" mean numerically, what happens on the bad day, and who is accountable. If any answer is "the model will figure it out", you have a demo, not a product — and the rest of this lesson is the checklist for converting one into the other.
Part 2: When to use an LLM — and when not to#
2.1 The product-level question one step earlier#
Lesson 13A.8 teaches the decision ladder for fixing an LLM feature that exists: prompt → tools → RAG → better model → fine-tuning. That ladder assumes the feature should exist. This part asks the question one step earlier, at the product level: is an LLM the right mechanism for this job at all — and is this job worth automating?
The two questions compose. If the answer here is "yes, an LLM fits", 13A.8's ladder tells you how to make it good. If the answer is "no", you just saved yourself the most expensive lesson in AI engineering: building a probabilistic component where a deterministic one was correct. 13A.8 also teaches how to make any such decision: name the options, know the default, list the switch signals first and price the cost of being wrong both ways (13A.8 Part 10). You will meet it later in this track; the seven questions below apply the same habits to the "should we use an LLM" choice.
2.2 The decision framework#
Seven questions, in the order that kills bad ideas fastest:
| # | Question | If the answer is... | Verdict |
|---|---|---|---|
| 1 | Must the output be identical every time for the same input? (a tax calculation, a SQL query, a password reset, a format validator) | "Yes, determinism is required" | No LLM. Use rules, code, a form or a classical model. An LLM can be made consistent-ish, but you cannot guarantee it — and "usually identical" is not a spec |
| 2 | Can a form, rule set, keyword search or classical model do the job? | "Yes — the inputs are structured and the logic is enumerable" | Rules-first. Cheaper, testable, deterministic, and you can always add an LLM assist later (13A.8, 2.2 has the engineering version of this table) |
| 3 | What does a wrong answer cost — and is the cost asymmetric? | "High or asymmetric" (a wrong refund vs a slightly off tone; a missed safety warning vs an irrelevant suggestion) | LLM only with guardrails: lower autonomy tier, human review, a fallback, evals (Part 5) |
| 4 | Do you have — or can you collect — 10–30 real input examples? | "No, and can't get them" | Needs evidence if the cost of being wrong is high or asymmetric; otherwise prototype cheaply anyway and gather examples en route — you cannot set a quality bar or write eval cases without them (Part 6) |
| 5 | What volume and latency does it need? | "Millions of calls/day at interactive latency, or strict real-time" | Check the economics first. Cost per task and TTFT budgets decide feasibility before quality does (13A.6, 11B.1) |
| 6 | Is the domain regulated or high-stakes? (health, legal, finance, employment, children — 12.9, Part 4) | "Yes" | LLM as assistive tool, almost never as decision-maker. Scoped roles, qualified human review, documentation duties — the safe-deployment patterns of 12.9, 4.3 apply |
| 7 | Is this a feature inside a workflow, or is the AI the product? | See 2.3 | Determines where the quality bar and the failure modes live |
One nuance the table compresses: score_use_case() applies the evidence gate only to high-cost ideas — a low-cost idea with no examples still scores llm-candidate, but with a reminder to collect the 10–30 examples during prototyping. Missing data is a warning everywhere; it is a blocker only where being wrong is expensive.
Two rows deserve expansion, because they are where experienced engineers get surprised.
Asymmetric error costs. Most product failures are not "the model was wrong" — they are "the model was wrong in the expensive direction". A support copilot that drafts a slightly off-tone reply costs a re-edit; the same copilot that issues a refund wrongly costs money and trust. When the cost of a false positive dwarfs the cost of a false negative (or vice versa), the design must reflect it: lower the autonomy tier, add a confirmation step, or don't automate that direction at all. Write the asymmetry into the brief's failure_cost field — the validator in feature_brief.py treats high and asymmetric as signals, not decorations.
Data availability. An LLM feature lives or dies on whether good inputs exist in usable form. If your "documents" are scanned faxes, your "tickets" are three different CRM exports with no shared schema, or your domain vocabulary exists only in one senior engineer's head, the model is the easy part — the data engineering is the product (Module 05). Ask "where do the inputs come from, in what shape, and who cleans them?" before "which model?".
2.3 AI as a feature vs AI as the product#
This distinction reorganises every later decision in the lesson:
- AI as a feature sits inside a workflow that mostly works without it: the invoice still gets paid, the ticket still gets answered, the report still gets filed — the AI drafts, suggests, summarises or accelerates a step a human completes. The non-AI parts carry the reliability; the AI part is allowed to be imperfect because a human is in the loop by design. Most successful enterprise AI is this shape.
- AI as the product is the value proposition: the chat assistant, the answer engine, the generative tool. Here the model's output quality is the product quality — there is no workflow around it to absorb failures, so the quality bar, the fallback and the honesty about limitations carry the entire burden. This shape demands the highest eval discipline (Module 10A) and the most careful expectation-setting (13A.3).
2.4 The decision table, as a flowchart and as code#
flowchart TD
Q1{"Must the output be<br/>identical every time?"}
Q1 -->|"yes"| NO["Not an LLM problem:<br/>rules, forms, code"]
Q1 -->|"no"| Q2{"Can a form, rule,<br/>search or classical<br/>model do the job?"}
Q2 -->|"yes"| RULES["Rules-first:<br/>cheaper and testable"]
Q2 -->|"no"| Q3{"Is a wrong answer<br/>cheap to fix?"}
Q3 -->|"yes — low or medium cost"| Q4{"Regulated or<br/>high-stakes domain?"}
Q3 -->|"no — high or asymmetric cost"| EX{"Have 10-30<br/>golden examples?"}
EX -->|"no"| EV["Needs evidence:<br/>prototype first"]
EX -->|"yes"| GR["LLM with guardrails:<br/>low autonomy + human review"]
Q4 -->|"yes"| GR
Q4 -->|"no"| CAND["LLM candidate:<br/>write the feature brief"]The same table is implemented as score_use_case() in ai_product/feature_brief.py (Part 3.3), so you can score ideas consistently instead of re-arguing them in meetings. It is a heuristic aid for a conversation, not a verdict — the reasons it prints are the things to discuss, not the label it returns.
What this means for you as an engineer. The cheapest AI feature to build is the one you correctly didn't build. Run the seven questions on every idea before it acquires a champion, a demo and a deadline — and when the answer is "LLM, but carefully", the output of this part is the input to the feature brief in Part 3.
Part 3: Problem framing and the AI feature brief#
3.1 The framing questions#
Many failed AI features trace back to a framing that was never written down. Before any architecture, prompt or model choice, answer these eight questions — in writing, in one page:
| Question | What a good answer looks like | The failure it prevents |
|---|---|---|
| Who is the user? | A specific role in a specific workflow ("the tier-1 support agent on live chat", not "users" or "everyone") | Building for an imagined audience |
| What is the job-to-be-done? | The progress the user is trying to make in this circumstance — "answer a refund-status question without leaving the ticket", not "use AI" | Solutions looking for problems |
| What is the current workflow? | The steps as they happen today, ideally timed ("open order tool → payments tool → ticket → type answer ≈ 6 min") | Automating a workflow nobody checked exists |
| What is the pain? | Frequency × severity, from the user's side: "40 tickets/day, ~6 min each on refund questions" | Pain the builder feels, not the user |
| How often does the job occur? | Per day/week/month, per user and in aggregate | Building for a job that happens twice a year |
| What is the value of automation? | An honest estimate: minutes saved, errors avoided, revenue influenced — with the caveat that estimates are hypotheses until measured | Funding a feature whose economics never close |
| How will you know it succeeded? | A measurable definition relative to the baseline (5.1), plus the metrics you'll watch (13A.6) | "It seemed to help" as the success criterion |
| What are the non-goals? | The adjacent jobs it explicitly will not do ("no issuing refunds", "no non-refund questions") | Scope creep into "ask me anything" territory (9.1) |
3.2 The one-page AI feature brief#
A feature brief is the one-page document that captures Part 3.1 plus the AI-specific decisions: why an LLM (rather than rules), what goes in and out, the quality bar, the failure cost, the fallback, the autonomy tier, the metrics, the cost budget and the launch gates. One page is a feature, not a bug: if it doesn't fit, the scope is too big — which is itself the first useful finding.
The blank template:
# AI Feature Brief: <name>
## Problem framing
- User: <specific role + workflow>
- Job-to-be-done: <the progress they are trying to make>
- Current workflow: <steps today, timed>
- Pain: <frequency × severity>
- Frequency: <how often the job occurs>
- Value of automation: <honest estimate + how it will be measured>
- Success definition: <metric vs baseline>
- Non-goals: <what it will not do>
## The AI part
- Why AI (not rules/a form/search): <the capability that needs a model>
- Inputs: <what the system receives>
- Outputs: <what it produces, in what form>
- Quality bar: <"as good as X" — the baseline named explicitly>
- Failure cost: <low | medium | high | asymmetric — and which direction is worse>
- Fallback: <what happens when the AI is wrong>
- Autonomy tier: <assist | draft | act | decide>
- Regulated domain: <yes/no — triggers 12.9 obligations if yes>
## Launch readiness
- Metrics: <north-star + guardrails>
- Cost budget: <per task / per month, with the arithmetic>
- Launch gates: <eval threshold, safety tests, sign-offs>
- Golden examples: <count of real inputs collected>And a filled-in fictional example (the support copilot that becomes the capstone's running example — you will build it properly in 13B.2):
# AI Feature Brief: Refund-status copilot (agent assist)
## Problem framing
- User: tier-1 support agent on the ticket queue
- Job-to-be-done: answer "where is my refund?" without leaving the ticket
- Current workflow: order tool → payments tool → policy doc → type reply ≈ 6 min
- Pain: ~40 refund questions/day/agent; answers vary by agent
- Frequency: ~40 tickets/day per agent, ~12 agents
- Value of automation: ~30% handle-time cut on ~480 tickets/day; consistency
- Success definition: draft accepted or lightly edited ≥70%; handle time −30%
- Non-goals: issuing refunds; non-refund questions; customer-facing chat
## The AI part
- Why AI: synthesises order + payment + policy text with varied phrasing
- Inputs: ticket text, order lookup result, policy excerpts
- Outputs: draft reply with citations, escalation suggestion
- Quality bar: as good as a senior agent's first draft; citations must resolve
- Failure cost: medium (a bad draft costs an edit; a wrong claim costs trust)
- Fallback: agent edits or answers manually — the human always sends
- Autonomy tier: draft
- Regulated domain: no
## Launch readiness
- Metrics: draft acceptance rate, edit distance, handle time, escalations
- Cost budget: ≤ $0.05 per drafted reply at projected volume
- Launch gates: ≥30-case eval passes; injection tests on retrieved tickets; agent sign-off
- Golden examples: 243.3 ai_product/feature_brief.py — the brief as code#
The brief is a contract, so it gets a contract: a Pydantic model whose issues() method flags missing fields and risky combinations — the validator that catches "act tier with no fallback" before it reaches a sprint planning meeting. The same file implements score_use_case(), the Part 2.4 decision table as code, so the seven questions produce a recorded verdict with reasons rather than a hallway argument.
The complete file (save as ai_product/feature_brief.py):
"""ai_product/feature_brief.py — the AI feature brief and the use-case scorer.
Layer: pure-local — Python 3.11+ standard library plus pydantic only.
No network, no API keys. Part of the `ai_product` package introduced in
lesson 13A.1 and extended by later lessons of this module.
Two artefacts:
* ``FeatureBrief`` — the one-page AI feature brief (lesson 13A.1, Part 3)
as a validated model. ``issues()`` flags missing fields and risky
combinations, such as an ``act`` autonomy tier with no fallback.
* ``score_use_case()`` — the Part 2 decision table as code: seven product
questions in, a verdict and reasons out. It is a heuristic aid for a
conversation, not a substitute for judgement.
Canonical API — later lessons in this module import these names exactly:
``AutonomyTier``, ``FeatureBrief`` (``.issues()``, ``.ready``),
``Issue``, ``UseCaseAnswers``, ``UseCaseVerdict``, ``Verdict`` and
``score_use_case()``.
"""
from __future__ import annotations
from enum import Enum
from typing import Literal
from pydantic import BaseModel, Field
# ---------------------------------------------------------------------------
# The autonomy tiers (lesson 13A.1, Part 5.2)
# ---------------------------------------------------------------------------
class AutonomyTier(str, Enum):
"""How much the AI is allowed to do without a human acting first."""
ASSIST = "assist" # suggests; a human performs the action
DRAFT = "draft" # writes a draft; a human reviews and sends it
ACT = "act" # performs the action; a human is notified after
DECIDE = "decide" # makes the judgement itself; humans audit by sampling
# ---------------------------------------------------------------------------
# The feature brief
# ---------------------------------------------------------------------------
class Issue(BaseModel):
"""One problem found by ``FeatureBrief.issues()``."""
severity: Literal["error", "warning"]
field: str
message: str
class FeatureBrief(BaseModel):
"""The one-page AI feature brief.
Every field maps to a row of the template in lesson 13A.1, Part 3.2.
String fields must be non-empty; the validator enforces that plus the
risky-combination rules.
"""
# --- Problem framing (Part 3.1) ---
name: str = Field(min_length=1)
problem: str = Field(min_length=1)
user: str = Field(min_length=1, description="Who has the problem")
job_to_be_done: str = Field(min_length=1)
current_workflow: str = Field(min_length=1)
pain: str = Field(min_length=1)
frequency: str = Field(min_length=1, description="e.g. 'per ticket', 'weekly'")
value_of_automation: str = Field(min_length=1)
success_definition: str = Field(min_length=1)
non_goals: list[str] = Field(default_factory=list)
# --- The AI part (Part 3.2 template rows) ---
why_ai: str = Field(min_length=1)
inputs: list[str] = Field(min_length=1)
outputs: list[str] = Field(min_length=1)
quality_bar: str = Field(min_length=1, description="Compared to what baseline?")
failure_cost: Literal["low", "medium", "high", "asymmetric"]
fallback: str = Field(
description="What happens when the AI is wrong; may be empty so "
"issues() can flag a missing fallback")
autonomy_tier: AutonomyTier
regulated_domain: bool = False
# --- Launch readiness ---
metrics: list[str] = Field(min_length=1)
cost_budget: str = Field(min_length=1)
launch_gates: list[str] = Field(min_length=1)
golden_example_count: int = Field(default=0, ge=0)
_REQUIRED_STRINGS = (
"name", "problem", "user", "job_to_be_done", "current_workflow",
"pain", "frequency", "value_of_automation", "success_definition",
"why_ai", "quality_bar", "fallback", "cost_budget",
)
# inputs/outputs/metrics/launch_gates declare Field(min_length=1), so
# Pydantic rejects an empty list at construction — issues() only
# re-checks strings: fallback has no min_length so it can be flagged
# here, and whitespace-only strings slip past min_length.
def issues(self) -> list[Issue]:
"""Flag missing items and risky combinations.
Returns a list of ``Issue`` objects; an empty list means the brief
is complete enough to take to a prototype review. Errors block;
warnings are judgement calls to discuss.
"""
out: list[Issue] = []
# --- Missing content (required lists are non-empty by construction) ---
for field in self._REQUIRED_STRINGS:
if not getattr(self, field).strip():
out.append(Issue(severity="error", field=field,
message="required field is empty"))
# --- Risky combinations ---
acts = self.autonomy_tier in (AutonomyTier.ACT, AutonomyTier.DECIDE)
if acts and self.fallback.strip().lower() in {"", "none", "n/a", "tbd"}:
out.append(Issue(
severity="error", field="fallback",
message=f"autonomy tier '{self.autonomy_tier.value}' with no "
"fallback: an unattended action needs a defined way "
"back when it goes wrong"))
if self.autonomy_tier is AutonomyTier.DECIDE and self.failure_cost in {
"high", "asymmetric"}:
out.append(Issue(
severity="error", field="autonomy_tier",
message="'decide' with high or asymmetric failure cost: "
"fully automated judgement needs a human review "
"step or a lower tier"))
if self.regulated_domain and acts:
out.append(Issue(
severity="warning", field="autonomy_tier",
message="regulated domain plus act/decide autonomy: "
"expect human-oversight and documentation duties "
"(lesson 12.9); involve compliance before scoping"))
if self.golden_example_count < 10:
out.append(Issue(
severity="warning", field="golden_example_count",
message="fewer than 10 golden examples: collect 10-30 real "
"inputs before writing product code (Part 6.2)"))
if not self.non_goals:
out.append(Issue(
severity="warning", field="non_goals",
message="no non-goals declared: unbounded scope ('ask me "
"anything') is anti-pattern 9.1 — name what the "
"feature will not do"))
return out
@property
def ready(self) -> bool:
"""True when no error-level issues remain."""
return not any(i.severity == "error" for i in self.issues())
# ---------------------------------------------------------------------------
# The decision-table scorer (lesson 13A.1, Part 2.4)
# ---------------------------------------------------------------------------
class UseCaseAnswers(BaseModel):
"""Answers to the seven questions of the 'when to use an LLM' table."""
needs_determinism: bool = Field(
description="must the output be identical every time for the same input")
error_cost: Literal["low", "medium", "high", "asymmetric"] = Field(
description="cost of a wrong answer; 'asymmetric' = one direction is far worse")
rules_suffice: bool = Field(
description="a form, rule, search or classical model could do the job")
volume: Literal["low", "medium", "high"] = Field(
description="how often the feature would run")
latency_need: Literal["interactive", "batch", "none"] = Field(
description="how fast a response must feel")
has_examples: bool = Field(
description="you have (or can collect) 10-30 real input examples")
regulated: bool = Field(
description="health, legal, finance, employment, children, ...")
Verdict = Literal[
"no-ai", # deterministic work — do not use an LLM
"rules-first", # a form/rules/search/classical model is enough
"needs-evidence", # promising but unproven — prototype before committing
"llm-with-guardrails", # viable, but errors or stakes demand controls
"llm-candidate", # viable; write the feature brief and prototype
]
class UseCaseVerdict(BaseModel):
verdict: Verdict
reasons: list[str]
def score_use_case(a: UseCaseAnswers) -> UseCaseVerdict:
"""Apply the Part 2.4 decision table, top rule wins.
The table is deliberately conservative: when two rows could apply it
returns the *more cautious* verdict and says so in ``reasons``.
"""
reasons: list[str] = []
# Row 1: determinism is non-negotiable.
if a.needs_determinism:
reasons.append("output must be deterministic — an LLM cannot "
"guarantee identical output; use rules/code")
return UseCaseVerdict(verdict="no-ai", reasons=reasons)
# Row 2: if a non-LLM mechanism covers the job, prefer it.
if a.rules_suffice:
reasons.append("a form, rule set, search or classical model covers "
"the job — cheaper, testable and deterministic")
return UseCaseVerdict(verdict="rules-first", reasons=reasons)
# Row 3: stakes without a safety story → gather evidence first.
if a.error_cost in {"high", "asymmetric"} and not a.has_examples:
reasons.append(f"failure cost is {a.error_cost} and you have no "
"golden examples yet — prototype and measure before "
"committing (Part 6)")
return UseCaseVerdict(verdict="needs-evidence", reasons=reasons)
# Row 4: high-stakes or regulated domains need controls, not just a model.
if a.regulated or a.error_cost in {"high", "asymmetric"}:
reasons.append("high failure cost or a regulated domain: viable only "
"with the controls of Part 5 (lower autonomy tier, "
"fallback, human review, evals)")
verdict: Verdict = "llm-with-guardrails"
elif a.error_cost == "medium":
reasons.append("moderate failure cost: proceed, but keep the autonomy "
"tier low and define the fallback")
verdict = "llm-candidate"
else:
reasons.append("low failure cost and a plausible fit: write the "
"feature brief (Part 3) and prototype cheaply")
verdict = "llm-candidate"
if not a.has_examples:
reasons.append("no golden examples yet: collect 10-30 real inputs "
"during prototyping (Part 6.2)")
if a.volume == "low":
reasons.append("low volume: the economics are weak — check that the "
"time saved beats the build and maintenance cost "
"(Part 7)")
if a.latency_need == "interactive" and a.volume == "high":
reasons.append("interactive latency at high volume: budget TTFT and "
"cost per call before committing (Part 2.2)")
return UseCaseVerdict(verdict=verdict, reasons=reasons)
# ---------------------------------------------------------------------------
# Worked examples — run from the project root: uv run python -m ai_product.feature_brief
# ---------------------------------------------------------------------------
def _example_briefs() -> tuple[FeatureBrief, FeatureBrief]:
"""Two briefs: one that passes, one that trips the risky-combination rules."""
good = FeatureBrief(
name="Refund-status copilot (agent assist)",
problem="Support agents paste order IDs into three internal tools to "
"answer 'where is my refund?'",
user="Front-line support agent",
job_to_be_done="Answer a customer's refund-status question without "
"leaving the ticket",
current_workflow="Open order tool, open payments tool, open ticket, "
"read three screens, type the answer",
pain="~6 minutes per refund question; answers inconsistent across agents",
frequency="~40 tickets/day per agent",
value_of_automation="Cuts handle time and standardises the answer",
success_definition="Agent accepts or lightly edits the draft ≥70% of "
"the time; handle time down ≥30%",
non_goals=["Issuing refunds", "Answering non-refund questions"],
why_ai="The answer is a synthesis of order, payment and policy text "
"with variable phrasing — a form can't compose it",
inputs=["ticket text", "order lookup result", "policy excerpts"],
outputs=["draft reply with citations", "escalation suggestion"],
quality_bar="As good as a senior agent's first draft; citations must "
"resolve to real policy passages",
failure_cost="medium",
fallback="Agent edits the draft or answers manually — the human is "
"always the sender",
autonomy_tier=AutonomyTier.DRAFT,
regulated_domain=False,
metrics=["draft acceptance rate", "edit distance", "handle time",
"citation click-through"],
cost_budget="≤ $0.05 per drafted reply at projected volume",
launch_gates=["eval set ≥ 30 cases passes", "injection tests on "
"retrieved tickets pass", "agent sign-off on copy"],
golden_example_count=24,
)
risky = FeatureBrief(
name="Auto-close stale tickets",
problem="Ticket backlog grows because nobody closes stale tickets",
user="Support lead",
job_to_be_done="Close tickets that have had no customer reply in 14 days",
current_workflow="Lead reviews a weekly spreadsheet and closes manually",
pain="Backlog of ~2,000 stale tickets; SLA metrics look worse than reality",
frequency="weekly batch",
value_of_automation="Removes a chore nobody wants",
success_definition="Stale tickets closed without reopening >95% of the time",
non_goals=[],
why_ai="Classify whether the last agent message resolved the issue",
inputs=["ticket thread", "closing macros"],
outputs=["close decision + customer-facing closing note"],
quality_bar="Never close a ticket where the customer might still be waiting",
failure_cost="asymmetric", # closing wrongly strands a customer; not closing costs nothing
fallback="",
autonomy_tier=AutonomyTier.ACT,
regulated_domain=False,
metrics=["closure accuracy", "reopen rate"],
cost_budget="batch-priced, negligible",
launch_gates=["shadow-mode report reviewed"],
golden_example_count=4,
)
return good, risky
def _example_use_cases() -> list[tuple[str, UseCaseAnswers]]:
return [
("invoice field extraction", UseCaseAnswers(
needs_determinism=False, error_cost="medium", rules_suffice=False,
volume="high", latency_need="batch", has_examples=True,
regulated=False)),
("refund approval agent", UseCaseAnswers(
needs_determinism=False, error_cost="asymmetric",
rules_suffice=False, volume="medium", latency_need="interactive",
has_examples=True, regulated=True)),
("password reset form", UseCaseAnswers(
needs_determinism=True, error_cost="low", rules_suffice=True,
volume="high", latency_need="interactive", has_examples=True,
regulated=False)),
("medical-triage chatbot", UseCaseAnswers(
needs_determinism=False, error_cost="high", rules_suffice=False,
volume="high", latency_need="interactive", has_examples=False,
regulated=True)),
]
if __name__ == "__main__":
good, risky = _example_briefs()
print("=== FeatureBrief: refund-status copilot (expected: ready) ===")
for i in good.issues():
print(f" [{i.severity}] {i.field}: {i.message}")
print(f" ready = {good.ready}\n")
print("=== FeatureBrief: auto-close stale tickets (expected: errors) ===")
for i in risky.issues():
print(f" [{i.severity}] {i.field}: {i.message}")
print(f" ready = {risky.ready}\n")
print("=== score_use_case: four ideas ===")
for name, answers in _example_use_cases():
v = score_use_case(answers)
print(f"--- {name} -> {v.verdict}")
for r in v.reasons:
print(f" - {r}")Running it produces this real output (deterministic — fixtures only, no model calls):
=== FeatureBrief: refund-status copilot (expected: ready) ===
ready = True
=== FeatureBrief: auto-close stale tickets (expected: errors) ===
[error] fallback: required field is empty
[error] fallback: autonomy tier 'act' with no fallback: an unattended action needs a defined way back when it goes wrong
[warning] golden_example_count: fewer than 10 golden examples: collect 10-30 real inputs before writing product code (Part 6.2)
[warning] non_goals: no non-goals declared: unbounded scope ('ask me anything') is anti-pattern 9.1 — name what the feature will not do
ready = False
=== score_use_case: four ideas ===
--- invoice field extraction -> llm-candidate
- moderate failure cost: proceed, but keep the autonomy tier low and define the fallback
--- refund approval agent -> llm-with-guardrails
- high failure cost or a regulated domain: viable only with the controls of Part 5 (lower autonomy tier, fallback, human review, evals)
--- password reset form -> no-ai
- output must be deterministic — an LLM cannot guarantee identical output; use rules/code
--- medical-triage chatbot -> needs-evidence
- failure cost is high and you have no golden examples yet — prototype and measure before committing (Part 6)Four design choices worth noting:
issues()returns a list, not an exception. A brief under review should accumulate all its problems in one pass — "here are the four things missing" is more useful than failing on the first.readyis true only when no errors remain; warnings are discussion items, not blockers.- Presence is enforced at two levels, on purpose.
inputs,outputs,metricsandlaunch_gatesdeclareField(min_length=1), so Pydantic rejects an empty list at construction — beforeissues()runs.issues()re-checks the strings, wherefallbackmay legitimately be empty so the combination check can fire, and where a whitespace-only string slips pastmin_length. An emptynon_goalslist is a warning, not an error: unbounded scope ("ask me anything") is a smell to discuss, not a malformed brief. fallbackdeliberately allows an empty string at construction soissues()can flag it as a combination problem ("act tier + no fallback") rather than Pydantic rejecting the object before the check runs. The double report you see in the output — "required field is empty" and "act with no fallback" — is intentional: the field is missing and the combination is dangerous.score_use_case()is ordered, and order encodes judgement. Determinism kills the idea outright; rules-sufficiency beats LLM; missing evidence on a high-stakes idea pauses it; only then do autonomy and domain decide betweenllm-candidateandllm-with-guardrails. The evidence gate applies only to high-cost ideas — a cheap idea with no examples still scoresllm-candidate, but thereasonslist reminds you to collect them anyway. Thereasonslist is the audit trail — keep it in the ticket.
What this means for you as an engineer. The feature brief is the cheapest artefact in the whole product — an hour of writing — and it forces every downstream decision to have a citation. When a stakeholder later asks "why does it need human review?", the answer is a field in a reviewed document, not your opinion. Write the brief before the prototype, review it with the team, and let issues() be the first reviewer.
3.4 From brief to PRD: the vocabulary, and what changes for AI#
The brief is deliberately small. Teams that already work with product managers will meet four more terms around it, and each has an AI-specific twist.
| Term | Plain meaning | What changes for an AI feature |
|---|---|---|
| PRD (product requirements document) | The document that says what a product or feature must do, for whom, and how "done" will be judged | The brief is the PRD's seed; the AI-era PRD adds an eval spec: the golden examples, the scoring method and the pass threshold, written before the build, so "done" is a number rather than an opinion |
| MVP (minimum viable product) | The smallest version that delivers the core job and produces real usage data | An AI MVP is narrower than it looks: one input type, one autonomy tier (usually assist or draft), one language, one fallback. Breadth is the first thing to cut, because every extra input type is a separate quality bar |
| NFR (non-functional requirement) | A requirement about how well the system behaves (speed, cost, safety, availability) rather than what it does | AI features have four NFRs that ordinary features rarely state: a latency budget (time to first useful output, per stage; 13A.2), a cost per task (13A.6), a safety bar (Module 12) and graceful degradation when the model is slow or down (13A.4) |
| Dogfooding | Using your own product internally before customers do | The cheapest real-user test, and for AI the cheapest source of messy real inputs. Staff are forgiving and know the domain, so dogfooding finds crashes and awkward UX, not the trust problems of strangers; pair it with shadow mode (10A.9) |
An A/B test (also called a controlled experiment) shows two versions of a feature to randomly split groups of users and compares an outcome metric. It is how you learn whether the AI version actually beats the old one; 13A.6 owns the method, and for AI features it has extra traps (nondeterministic outputs, novelty effects, slow-moving quality metrics).
Three things belong in an AI-era PRD that ordinary PRDs leave out:
- Example-based behaviour spec. Natural-language requirements ("be concise and polite") are not testable. Pair each requirement with three to five input/expected-behaviour examples, including at least one the feature must refuse or escalate. These become the first eval cases (10A.2).
- The model is a dependency, and it changes. Models are versioned, repriced and retired on the provider's schedule, not yours (pinning and deprecation calendars are in 11B.5, 1.6 and the migration playbook in 11B.5, 6.2). The PRD should say which behaviours must survive a model swap and name the eval suite that proves it. A spec written as evals makes migration an afternoon of re-running; a spec written as prose makes it a re-negotiation.
- A line for what you will not maintain. Every AI feature accrues prompt, retrieval and eval maintenance. Naming an owner and a review cadence in the PRD is cheaper than discovering at month three that nobody does.
Part 4: A taxonomy of AI product shapes#
Deep-dive
4.1 Ten shapes, and what each implies#
"AI feature" covers wildly different products. The shape — where the AI sits relative to the user and the workflow — determines the autonomy tier, the dominant failure mode, the UX patterns it needs and the architecture it implies. Learn to name the shape first; the engineering follows.
| Shape | What it does | Typical autonomy | Typical failure | UX lives in | Architecture lives in |
|---|---|---|---|---|---|
| Assistant / chat | Open-ended conversation; answers, brainstorms, explains | assist → draft | Confidently wrong on niche topics; scope creep into "ask me anything" | 13A.2, 13A.3 | 13A.5 |
| Copilot | Suggests inside an existing workflow: draft reply, next action, inline completion | draft (human sends/acts) | Suggestions ignored (too noisy) or rubber-stamped (too trusted) | 13A.2, 13A.3 | 13A.5 |
| Agent | Plans and executes multi-step tasks with tools | act (with approvals for risky steps) | Compounding errors across steps; runaway loops; injection via tool results | 13A.2 progress UX, 13A.3 approvals | 13A.5, 08A.14 |
| Automation | Runs unattended on a schedule or trigger; no human in the loop | decide | Silent wrongness at scale; nobody notices until the audit | 13A.4 failure visibility, audit trail | 13A.5 jobs |
| Search / answer engine | Retrieves and synthesises an answer with citations | assist (user reads sources) | Retrieval misses; fluent answer over wrong sources | 13A.3 citations, 13A.4 empty states | RAG pipeline — 07, 13A.5 |
| Generation tool | Produces an artefact: email, summary, code, image, report | draft | Plausible-but-wrong content shipped without review | 13A.3 "show your work", edit-diff views | 13A.5 |
| Extraction / classification pipeline | Structured data out of documents/streams, usually batch | act on structured output (with validators) | Schema-valid but semantically wrong fields; drift when formats change | Review-queue UX (13A.3), provenance display | Async jobs — 13A.5, 13B.3 |
| Voice interface | Speech in, speech out; appointments, support lines | act-with-confirmation | Mishearing, barge-in failures, latency that breaks turn-taking | Voice UX — 09.7, 13B.5 | Realtime transport — 13A.5, 13B.5 |
| Proactive suggestion | Surfaces relevant help before the user asks (the 07.6 promise) | assist (a suggestion, never an action) | Annoyance; wrong-moment interruptions; suggestions the system can't fulfil | Timing and dismissal UX — 13A.2, 13A.4 | Event-driven — 13A.5, 13A.6 |
| Analysis / insight tool | Answers questions over data: "why did churn spike?", "summarise this quarter" | assist → draft (a human interprets) | Confident misreading of the data; correlations dressed as causation | Chart + caveat UX, uncertainty display — 13A.3 | Query layer over your data — 13A.5 |
Every shape has an unattended twin. Automation, extraction pipelines and proactive suggestions all ship in two flavours: interactive (a user is present when the AI acts or speaks) and unattended — a schedule or event fires the work while nobody watches: the Monday-morning digest agent, the fraud-alert monitor, the overnight invoice batch, the "run this workflow every week" product. The shape stays the same but the obligations change:
- Delivery is the UX. With no screen to watch, the notification is the interface: channel choice (in-app inbox vs email vs push), timing and quiet hours, digest-versus-instant trade-offs, and a deep link back to the result. 13A.2, §4.2 owns the job-UX mechanics; 13A.4 owns the notification's failure states.
- Consent and frequency are product features. Unattended runs need explicit opt-in, a configurable cadence and a kill switch — an agent that emails daily uninvited is spam with a model behind it.
- Cost is priced per unattended run. Scheduled work fires whether or not anyone reads the output, so the unit economics (13A.6) must model runs, not sessions — including the runs that produce nothing worth reading.
- Someone must review output nobody watched live. "Who checks the 3 a.m. digest?" is a design question, not an ops afterthought: sampling audits, escalation thresholds and a defined act-on-it-or-ignore-it path replace the live human-in-the-loop that interactive shapes get for free.
4.2 Choosing a shape#
Three questions narrow the field:
- Does a human complete the action, or does the system? Human completes → copilot/assistant/generation (draft autonomy). System completes → agent/automation/extraction (act or decide). This single answer sets the autonomy tier and therefore the entire control stack.
- Is the interaction turn-based, ambient or deferred? Turn-based (user asks, system answers) covers most of the ten shapes. Ambient — the system speaks first — is the proactive-suggestion shape, and it carries an extra burden: it must earn the interruption every time (13A.4 covers dismissal and annoyance). Deferred — the system works while the user is away and reports later — is the automation and scheduled-agent shape; it trades the live reviewer for the notification, consent and unwatched-output review paths above.
- What is the artefact? Text conversation → assistant/copilot/agent. Structured records → extraction/classification. Spoken turns → voice. Numbers and charts → insight. The artefact decides the rendering, the failure states and the eval metrics.
What this means for you as an engineer. The taxonomy is a forcing function: naming the shape forces you to name the autonomy tier, the dominant failure and the UX owner. A team that can't say which shape it's building usually can't say what "done" means either — and 13A.2 to 13A.4 will each assume a different shape's defaults.
Part 5: Quality bar and risk tiering#
5.1 How good is good enough#
The most common quality mistake is aiming at the wrong reference point. There are three baselines, in increasing order of honesty:
| Baseline | What it means | When it's the right bar |
|---|---|---|
| Perfection | "Never wrong" | Almost never — LLMs cannot guarantee it, and chasing it produces brittle over-engineering |
| The incumbent process | "Better than what users do today" — the human agent's first draft, the manual checklist, the spreadsheet workflow | The default bar for AI-as-feature: beat the baseline net of the cost of checking |
| The alternative AI | "Better than the simpler non-AI option" (a keyword search, a form, a rules engine) | When rules-first was rejected in Part 2 — prove the LLM earns its place over the cheap option |
5.2 Autonomy tiers: assist / draft / act / decide#
The autonomy tier is the single most important field in the feature brief — it decides the UX, the controls, the evals and the blast radius. Four tiers, ascending:
| Tier | What the AI does | Human role | Required controls |
|---|---|---|---|
| assist | Suggests, answers, ranks — never acts | User initiates and completes everything | Clear labelling of AI output; easy dismissal; feedback capture |
| draft | Produces work product a human reviews and sends | Human is the sender/actor; may edit first | Edit-then-send UX; diff/edit tracking; "what was wrong" feedback |
| act | Performs the action; human notified after | Human audits, can undo/compensate | Approval for risky steps (08A.14, 2.4–2.5); undo/compensation path; audit trail; rate and spend budgets |
| decide | Makes the judgement itself; humans review by sampling | Human sets policy, audits samples, handles appeals | Sampling-based audit; confidence-threshold routing; dual control for irreversible actions; documented override process |
Two rules keep the table honest:
- Tiers are per-action, not per-product. A refund copilot can be
draftfor the reply,actfor the lookup, anddecide-with-approval for the refund itself — each action gets its own tier in the policy layer (08A.14, 2.10). The brief'sautonomy_tieris the highest tier the feature will reach. - Higher tier ⇒ more evidence required.
assistcan ship on a prompt and a prayer;actneeds the fallback, the audit trail and the budget enforced in code;decideneeds the eval suite, the sampling audit and the incident plan before launch — the difference between a feature and a liability. And becauseact/decideput a model in front of real actions, each one also needs a threat-model pass on the action path — the abuse cases against what the tool can do, not just what it can say (12.1, 6.2).
5.3 Error budgets#
Borrowed from site-reliability engineering and applied to quality: an error budget is the amount of wrongness a feature is allowed to ship with, expressed as a rate — "no more than 2% of drafted replies need substantive correction" or "fewer than 1 in 200 extractions has a wrong total". 11A.2 owns the SLO/error-budget machinery for latency and availability; the product-level version is simpler and lives in the brief:
- Set the budget from the baseline process's error rate, not from ambition. If human agents mis-answer 3% of refund questions, an AI draft needing correction 5% of the time may still be a win — if corrections are cheap.
- Spend the budget deliberately: a 2% error budget spent on long-tail edge cases is different from 2% spent on the most common case. Slice your failures (10A.2, 3.2) before declaring the budget blown.
- When the budget is exhausted, the response is a quality incident — freeze the change, roll back, fix — not "keep shipping and watch". The launch gates in the brief are the enforcement mechanism.
5.4 Human-in-the-loop is not a magic shield#
The most dangerous sentence in AI product work is "a human will review it, so it's safe." Human review fails in three documented ways:
- Automation bias / overreliance: reviewers agree with the AI more often than they independently verify — they rubber-stamp plausible output, especially under time pressure. The bias is well documented in the human-factors literature on automation bias (12.9, 3.4 covers it; 13A.3 owns the design countermeasures: evidence display, calibrated trust, review-quality measurement).
- Review fatigue: a queue of 400 drafts an hour gets skimmed, not reviewed. If the review can't keep up, the human is a signature, not a control — measure review quality (edit rate, override rate, sampled re-review), not just review existence.
- Diffusion of responsibility: "the AI drafted it and the human approved it" leaves no owner when it's wrong. The brief's named owner (Part 8) is the accountability anchor.
What this means for you as an engineer. The quality bar is a product decision with engineering consequences: it determines the eval suite (10), the autonomy tier (13A.3), the budget alerts (11A.2) and the fallback design (13A.4). Write it down, express it as an error budget, and never let "the human will check" be the only control on an act or decide feature.
Part 6: Prototype to learn#
Deep-dive
6.1 The ladder of cheap prototypes#
The most expensive way to learn whether an AI feature works is to build the product first. The cheapest is to climb this ladder, stopping as soon as a rung answers your question:
| Rung | What you do | What you learn | Cost |
|---|---|---|---|
| 1. Expert interviews | Ask domain experts "how do you do this today, step by step?" — and "show me the last three times you did it" | The real workflow, the real edge cases, whether the job is worth automating | Days; no code |
| 2. Wizard-of-Oz | A human does the AI's job in real time while the user believes software is doing it (you type the "AI" reply yourself, or a colleague does) | Whether the interaction shape works — before any model is involved | Days; a shared doc or chat |
| 3. Prompt-only prototype | Call the model directly with a hand-written prompt on real inputs — no product UI, no pipeline | Whether the model can do the core task at all, and roughly how well | Hours; API calls only |
| 4. Golden examples | Collect 10–30 real inputs, run the prompt on them, score the outputs by hand against the quality bar | A first quality measurement and the seed of your eval set (10A.2) | Days |
| 5. Shadow mode | Run the real pipeline alongside production; humans see what it would have done, nothing changes | Performance on real traffic at real volume, with zero user risk (10A.9, 4.3) | Weeks; needs the pipeline built |
| 6. Walking skeleton | The thinnest end-to-end version: one input type, one output, one screen, real evals | Whether the whole system hangs together | The first real build |
flowchart LR
A["1. Expert interviews:<br/>how would a human do this?"] --> B["2. Wizard-of-Oz:<br/>a human plays the AI"]
B --> C["3. Prompt-only prototype:<br/>raw model, real inputs"]
C --> D["4. Golden examples:<br/>10-30 inputs, scored by hand"]
D --> E{"Kill criteria<br/>met?"}
E -->|"yes"| K["Stop: write down why"]
E -->|"no"| F["5. Shadow mode:<br/>runs beside production"]
F --> G{"Kill criteria<br/>met?"}
G -->|"yes"| K
G -->|"no"| H["6. Walking skeleton:<br/>thinnest end-to-end product"]6.2 Golden examples before code#
Before any product code, collect 10–30 real inputs — actual tickets, documents, queries — and run your best prompt on them. Score each output against the quality bar by hand. This is not an eval suite yet (Module 10A builds that properly); it is the cheapest possible reality check, and it answers three questions no amount of prompt-engineering confidence can:
- Can the model do the task at all? If it fails on half the golden examples, the problem is capability or framing — not UX.
- What does failure look like? The distribution of errors tells you the failure cost, the fallback and the autonomy tier — the three fields the brief validator checks.
- Do you have enough examples to evaluate? If 30 real inputs are hard to find, that itself is a finding: the data isn't there, and no model fixes that.
6.3 Feasibility checklist and kill criteria#
Two artefacts close the prototype phase. The feasibility checklist (copy into the brief's notes):
- The job-to-be-done is confirmed by ≥3 real users, not assumed
- The current workflow is mapped and timed
- 10–30 golden examples collected from real sources
- The model's raw output on golden examples meets the draft quality bar at least half the time
- The failure modes are named and each has a fallback
- The cost per task is estimated and inside budget
- The autonomy tier's required controls are scoped (approvals, audit, budgets)
- A domain expert has reviewed the quality bar and the failure cost
- The non-goals are written and agreed
- Someone owns quality after launch (named, not "the team")
The kill criteria — decided before the prototype, while you're still detached:
- The model can't reach the draft quality bar on golden examples after reasonable prompt work → kill or reframe (maybe it's a rules problem, or the data isn't there)
- The interaction fails in Wizard-of-Oz (users don't engage, don't trust, or the job wasn't painful enough) → kill the shape, keep the learning
- The economics don't close (cost per task × volume > value of automation) → kill or downgrade scope
- The required controls cost more than the feature saves → kill the autonomy tier, not necessarily the feature
What this means for you as an engineer. The prototype ladder is how you convert "we think this might work" into evidence before the evidence is expensive. Each rung is cheap, fast and reversible; the walking skeleton is the first irreversible step, and by then you should know the job is real, the model can do it, the failures are designed for, and someone owns the quality.
Part 7: Build vs buy vs configure#
Deep-dive
The short decision (the default, the signals to switch, the cost of being wrong each way, and the dated managed provider tools) is in 13A.8 §11.6 (D6), which you will meet later in this track. This Part is the product view of the same choice: the full spectrum, a longer decision table and the vendor data-governance questions.
7.1 The spectrum, not a switch#
"Should we build or buy?" is the wrong question — the right one is which stages of the stack do we own? There are three verbs, not two: build (you write and run the stages yourself, for example your own retrieval pipeline on provider APIs), buy (a vendor's finished product does the job, and you are a customer) and configure (you assemble the feature from a vendor's managed building blocks — hosted file search, an agent platform, a vendor's settings, connectors and prompts — and write only the product logic around them). Most real features mix all three, stage by stage. The same spectrum 07.7 draws for RAG applies to every AI feature:
| Option | What you own | What you delegate | Time to value | Lock-in | Choose when |
|---|---|---|---|---|---|
| Provider APIs (OpenAI, Anthropic, Gemini, OpenRouter — always in that order per Module 03 conventions) | Your prompts, pipeline, evals, UX | The model, the serving, the fallback routing | Days | Low — the provider_agnostic client (03.11) makes switching cheap |
Almost always the default starting point |
| Managed tools inside the API (file search, web search, code interpreter — 07.7, Part 2) | Your prompts and product | Retrieval/indexing internals | Hours | Medium — your corpus lives in their store | Prototypes and internal tools; check data-residency and per-document ACLs first |
| Agent/framework platforms (08F.1) | Your product logic | Orchestration, tool plumbing, some guardrails | Days–weeks | Medium — abstractions leak provider specifics | Multi-step agents where the framework's primitives earn their weight |
| Open-weight / self-hosted (11C.6) | Everything: weights, serving, GPUs, upgrades | Nothing | Weeks–months | None — but you are the ops | Data must not leave your boundary, or sustained volume justifies the GPU bill |
| SaaS AI products (vertical tools that already do the job) | Configuration and integration only | The entire feature | Days | High — you're a tenant | The job is generic and a vendor's product covers it; validate it meets your quality bar, not theirs |
7.2 The decision table#
| Situation | Lean toward | Because |
|---|---|---|
| Prototype / internal tool / small corpus | Provider API + managed tools | Hours to ship; per-call pricing is trivial at this scale |
| Data residency or contract forbids third-party processing | Self-hosted open-weight, or a provider with the right data terms | A hard constraint, not a preference — verify terms, don't assume |
| No ML/vector-search experience on the team | Managed tools first | The skill cliff is real; buy time to learn on a low-stakes feature |
| Need to tune retrieval, prompts, evals per stage | Own the pipeline on provider APIs | Managed tools hide exactly the knobs you'd tune (07.7, 1.2) |
| Multi-provider strategy / negotiating leverage | provider_agnostic client over direct APIs |
A migration that takes an afternoon is a negotiating position (03.11, 1.4) |
| Very high sustained volume, latency-critical | Evaluate self-hosting with the 11C.6 break-even math | In 11C.6's worked example it only wins above ~75% GPU utilisation, and the break-even moves with your quote; control or privacy needs can justify it earlier |
| The job is a commodity (meeting summaries, generic drafting) | SaaS product or built-in assistant | If a vendor's quality bar meets yours, building is waste |
| Compliance requires audit of what was retrieved/sent | Own the pipeline | Black-box rankings can't be audited the same way |
7.3 Data governance: the questions to put to every vendor#
"Does the vendor handle our data safely?" is not a question with a yes/no answer — it is a checklist, and the answers differ not just between providers but between product surfaces of the same provider (an API tier, a consumer chat product and a managed retrieval tool can carry different training and retention terms under one brand). Work through these six questions for every option on the spectrum, and verify each against the provider's current data-usage and privacy documentation — treat marketing pages as stale and the legal/data-processing pages as authoritative (as of November 2026):
| # | Question | What a good answer looks like | Which options it constrains most |
|---|---|---|---|
| 1 | Where are prompts and corpus data processed and stored? | Named regions; a published subprocessor list; no transit through jurisdictions you can't use | Hard residency rules eliminate providers and regions outright; self-host removes the question entirely |
| 2 | May the provider train on or retain our inputs? | Explicit no-training terms for the specific product tier you're buying; zero-retention options where offered | Consumer tiers and free tiers are the usual risk; enterprise/API tiers usually differ — check per product, not per company |
| 3 | What are the retention and deletion terms? | Defined retention windows for prompts, completions, embeddings and logs; a deletion-on-exit or deletion-on-request path | Long or undefined retention compounds the exit cost in row 5 and widens the blast radius of any breach |
| 4 | What audit and logging access do we get? | Visibility into what was sent, what was retrieved and what was generated — for debugging, evals and incident review | Own-pipeline and API options expose everything; black-box SaaS may not — the same constraint as the "audit of what was retrieved" row above |
| 5 | How do we get our data out? | Export formats for the corpus, indexes, embeddings, prompts and conversation logs — usable without the vendor's tooling | This is the data-gravity calculation: a managed index you can't export is re-ingestion work you pay at exit |
| 6 | Who else touches the data, and is there a DPA? | A named subprocessor list, a data-processing agreement, and breach-notification terms | A legal/compliance gate (12.9) — in regulated domains it can eliminate options before price or features enter the conversation |
Two disciplines make the checklist honest. First, score each option against the same six questions — "self-host" isn't automatically clean (you now own retention, breach notification and subprocessors like your GPU cloud), and "API" isn't automatically risky either: terms are product-specific, so check the actual data-usage page for the tier you're buying rather than assuming either way. Second, write the answers into the brief's launch gates: "data-processing terms verified for the chosen tier" is a gate item, not a footnote — the same way "eval suite green" is.
What this means for you as an engineer. Default to provider APIs behind the provider_agnostic client; reach for managed tools when speed matters more than control; reach for self-hosting only when a hard requirement (privacy, volume, control) demands it; reach for SaaS when the job is genuinely commodity. Record the choice, the data-governance answers and the exit cost in the brief — "we bought X" without "here's how our data flows, what the terms say and how we leave" is how companies wake up to a hostage situation.
Part 8: Stakeholders and ownership#
Deep-dive
8.1 The cast#
An AI feature touches more roles than a typical feature, because the failure modes span product, engineering, domain and law:
| Stakeholder | What they own | What they need from you |
|---|---|---|
| Product manager | The problem framing, the non-goals, the success metrics, the kill/continue call | A brief they can read in five minutes; honest trade-offs, not hype |
| Designer | The interaction shape, the autonomy-tier UX, the failure states | The taxonomy (Part 4) and the autonomy tier — the UX patterns differ fundamentally between draft and act |
| AI engineer (you) | The prompts, the pipeline, the evals, the observability, the fallback | — |
| Domain expert | The quality bar, the edge cases, the "is this actually right?" judgement | Golden examples, eval review, the workflow map — their expertise is the eval set's source of truth |
| Legal / compliance | Regulated-domain obligations, disclosure duties, data-processing terms | Early involvement — 12.9 is explicit that "this is a regulated domain" must trigger counsel before launch, not after |
| Support / operations | The humans who absorb the failures: escalations, complaints, the "the AI said X" tickets | The fallback design, the escalation path, the honest limitation notices |
8.2 Who owns prompts, evals and incidents#
The three assets that decay fastest need named owners before launch:
- Prompts are code that happens to be English. They need version control, review, eval gates on change (11C.2) and an owner who knows why each sentence exists. An unowned prompt is a bug farm.
- Evals are the quality bar made executable (Module 10A). Someone must own the eval set's growth — production failures become cases (10A.2, 7.1), the metrics stay honest, and regressions block releases (10A.10, 8.2).
- Incidents need an on-call path and a severity rubric before the first launch (11C.4): who gets paged when quality regresses at 2 a.m., who can flip the kill switch, who writes the postmortem.
What this means for you as an engineer. Your job is not just to build the feature — it's to make the ownership explicit while you still can. Name the prompt owner, the eval owner and the incident owner in the brief; get the domain expert and legal involved at the framing stage, not the launch review. The AI engineer who does this is the one whose features survive contact with month three.
Part 9: The anti-pattern gallery and the pre-build checklist#
Reference
9.1 The anti-patterns#
The failure gallery — what goes wrong, what the user sees, and the control that prevents it:
| Anti-pattern | What it looks like | What the user experiences | The fix |
|---|---|---|---|
| "AI sprinkled on everything" | Every screen gets a sparkle icon; no single feature is excellent | A dozen mediocre features, none trusted | One job, done well — the brief's non-goals enforce this |
| Chatbot as default UI | Every problem becomes a conversation because chat is easy to build | Users who wanted a form, a list or a button get an interrogation | Match the shape to the job (Part 4) — chat is one shape, not the default |
| Unbounded scope ("ask me anything") | A general assistant with no defined quality bar | Confident wrongness on exactly the questions that matter | Narrow the scope until a quality bar exists (2.3) |
| No way to correct | The AI is always right; users can't flag, edit or escalate | Frustration, workarounds, silent abandonment | Every output needs a correction path — it's also your cheapest eval data (09.10) |
| Silent automation | The system acts and never tells anyone | Surprise actions, eroded trust, undetected errors | Notify, audit, and make the action visible — act/decide tiers require it (5.2) |
| Metric theatre | Optimising thumbs-up rate or "AI interactions" while resolution rate falls | A dashboard that looks good and a product that isn't | North-star + guardrail metrics tied to the job (13A.6) |
| Shipping the prototype | The demo becomes the product with no fallback, evals or owner | The 95th-percentile failure becomes next week's incident | The brief, the prototype ladder and the launch gates exist precisely for this |
| AI for AI's sake | "We should use AI" is the entire justification | A solution in search of a problem | Part 2's decision framework — rules-first is a legitimate answer |
9.2 The pre-build checklist#
Copy this into the feature brief's notes and review it before any prototype code:
- The job-to-be-done is confirmed by real users, not assumed
- The current workflow is mapped and timed
- The shape is named (assistant / copilot / agent / automation / answer engine / generation / extraction / voice / proactive / insight)
- The autonomy tier is set (assist / draft / act / decide) with the required controls scoped
- The quality bar names its baseline (the human process or the cheaper non-AI option)
- The failure cost is rated, and asymmetric directions are identified
- The fallback is defined for every autonomy tier above
assist - 10–30 golden examples are collected from real sources
- The cost per task is estimated and inside budget
- The regulated-domain question is answered, with compliance involved if yes
- The metrics are north-star + guardrails, not vanity
- The prompt, eval and incident owners are named
- The kill criteria are written down before the prototype
- The non-goals are agreed and enforced
9.3 Where you'll use this#
Every later lesson in this module assumes this one happened. 13A.2–13A.4 design the UX for the shape and autonomy tier you chose here; 13A.5 builds the architecture the taxonomy implies; 13A.6 instruments the metrics and budgets from the brief; 13B.1 turns the brief into a scoped capstone; and 13B.2–13B.5 are three worked examples of every decision in this lesson, made explicitly.
What this means for you as an engineer. The gallery is a pre-mortem you run on your own brief: every row you can't answer "no" to is a launch gate you haven't written yet. The checklist in 9.2 is the same discipline compressed into fourteen boxes — tape it above your desk, and let it argue with you before the sprint does.
Common misconceptions#
| Misconception | Reality |
|---|---|
| "The demo worked, so the product will work." | The demo proves possibility on one input; the product must survive the 95th percentile, every day, within budget. The gap is where AI features die (1.1). |
| "If each step is 95% reliable, the pipeline is 95% reliable." | Reliability multiplies: ten 95%-reliable stages give ~60% end-to-end. Design failure paths per stage (1.3). |
| "We should use AI because it's AI." | The decision framework exists because rules, forms and classical models are often better — cheaper, testable, deterministic. "Rules-first" is a win, not a surrender (2.2). |
| "A human will review it, so it's safe." | Human review fails via automation bias, fatigue and diffusion of responsibility. The reviewer must be able to catch the error in the time available (5.4). |
| "The quality bar is 'as accurate as possible'." | The bar is "better than the baseline, net of verification cost" — a draft that's 85% right can lose to a 70%-right draft that's trivially checkable (5.1). |
| "We need to build the product to learn if it works." | The prototype ladder exists precisely to learn cheaply: interviews → Wizard-of-Oz → prompt-only → golden examples → shadow mode → skeleton (Part 6). |
| "Buying a platform means we don't need AI expertise." | Managed tools hide the knobs you'd need to tune and the failure modes you'd need to debug. Buy speed, but know what you're delegating (7.1). |
| "The chatbot is the product." | Chat is one shape among ten; the job determines the shape, and the shape determines everything downstream (Part 4). |
| "Kill criteria are for losers." | Pre-committed kill criteria are how good engineers avoid sunk-cost attachment. A killed feature with a written post-mortem is a success (6.3). |
Key takeaways#
- A demo proves possibility; a product survives the 95th percentile, every day, within budget. Most AI features fail for product reasons — wrong problem, wrong accuracy bar, no fallback, no feedback loop, no quality owner — not model reasons.
- Reliability multiplies across stages: ten 95%-reliable components give ~60% end-to-end. Every probabilistic stage needs a designed failure path.
- Ask "should this be an AI feature?" before "which model?" — determinism, asymmetric error cost, rules-sufficiency, data availability, volume/latency and regulation decide whether an LLM belongs at all.
- AI-as-feature lives inside a workflow that absorbs failures; AI-as-product is the quality bar. Most successful enterprise AI is the former.
- The feature brief (one page: problem, user, JTBD, workflow, pain, frequency, value, success, non-goals, why-AI, inputs, outputs, quality bar, failure cost, fallback, autonomy tier, metrics, cost budget, launch gates) is the cheapest artefact that forces every downstream decision to have a citation.
- Name the shape (assistant, copilot, agent, automation, answer engine, generation, extraction, voice, proactive, insight) — it sets the autonomy tier, the dominant failure and the UX/architecture pointers.
- The autonomy tiers — assist / draft / act / decide — are the core risk control; each demands specific controls, and
act/decidewithout a fallback or audit is a red flag the validator catches. - The prototype ladder (interviews → Wizard-of-Oz → prompt-only → golden examples → shadow mode → skeleton) converts "we think it works" into evidence before evidence is expensive; write kill criteria before you start.
- Build vs buy is a spectrum of ownership, not a binary; default to provider APIs behind
provider_agnostic, reach for managed tools for speed, self-host only for hard requirements, and SaaS only for commodity jobs. - Write the PRD as an eval spec: example-based behaviour, a pass threshold, AI-specific NFRs (latency budget, cost per task, safety bar, degradation) and a named model-swap test. Label each component scaffolding or durable value so the plan survives the next model release.
- Name the owners of prompts, evals and incidents before launch — unowned quality decays invisibly.
Terms introduced in this lesson#
| Term | One-line definition |
|---|---|
| Demo vs product | A one-off proof-of-possibility vs a reliable, budgeted, owned feature that survives real inputs |
| Job-to-be-done (JTBD) | The progress a user is trying to make in a circumstance — the "hire" the product is meant to fulfil |
| Feature brief | The one-page document capturing problem framing and AI-specific decisions before any build |
| AI-as-feature vs AI-as-product | Whether the AI assists a workflow that works without it, or is the product's value proposition |
| Autonomy tier | How much the AI may do without a human acting first: assist / draft / act / decide |
| Asymmetric error cost | When a wrong answer in one direction costs far more than in the other (wrong refund vs wrong tone) |
| Quality bar | The measurable standard an AI feature must meet, set against a named baseline process |
| Error budget (product) | The allowed rate of wrongness a feature may ship with before it triggers a quality incident — the product-level sibling of the SLO error budget (11A.2) |
| Golden examples | 10–30 real input cases collected before product code to sanity-check feasibility |
| Wizard-of-Oz prototype | A human performing the AI's job while users believe software is doing it — testing the interaction before the technology |
| Walking skeleton | The thinnest end-to-end version of a product that proves the whole system hangs together |
| Eval spec | The golden examples, scoring method and pass threshold written into the PRD before the build, so "done" is a number |
| Scaffolding vs durable value | Components that only compensate for a current model weakness (keep thin, expect to remove) vs value that survives a better model: data, workflow integration, evals, trusted UX |
| A/B test (controlled experiment) | Randomly splitting users between two versions and comparing an outcome metric; method owned by 13A.6 |
| Build / buy / configure | Write the stages yourself / adopt a vendor's finished product / assemble managed building blocks and write only the product logic around them |
| Kill criteria | Pre-committed conditions, written before prototyping, that decide when to stop a feature |
| Copilot (product shape) | An AI that suggests inside an existing workflow while the human completes the action |
| Proactive suggestion | An AI feature that surfaces help before the user asks — ambient rather than turn-based |
| Metric theatre | Optimising visible metrics (interactions, thumbs-up) while the real outcome metric quietly falls |
| Review fatigue | When the volume of AI output to review exceeds the human's ability to check it properly |
| Vendor lock-in | The cost of leaving a vendor or platform — data gravity, re-ingestion, rebuilt integrations — distinct from framework lock-in (08F.1) |
| MVP (minimum viable product) | The smallest version that delivers the core job and produces real usage data |
| PRD (product requirements document) | The document specifying what a product must do — for AI features, the feature brief is its seed |
| Non-functional requirement (NFR) | Requirements about how the system performs (latency, cost, safety) rather than what it does |
| Latency budget | The allocated time per interaction stage, from request to first useful output |
| Dogfooding | Using your own product internally before external launch — the cheapest real-user test there is |
| Decision table | A structured mapping from conditions to recommended actions — the backbone of "teach how to decide" |
Terms this lesson uses but does not introduce are defined in the glossary under their owning lessons: compounding error rate (08A.9), shadow mode (10A.9), north-star / guardrail metrics (10A.1), human-in-the-loop approval and checkpoints (08A.9, 08A.10), automation bias (02.10, 10A.2), build vs buy (07.7, 03.11), error budget (11A.2) and lock-in (08F.1).
Exercises#
All exercises run without API keys — they use the feature_brief.py fixtures, your own judgement, and the decision tables in this lesson.
- Write three feature briefs. Using the template in 3.2, write briefs for: (a) an invoice-email-to-ledger extractor, (b) a "summarise this contract clause" tool for a legal team, (c) a proactive "you might need this doc" suggester for a help centre. For each, choose the shape and autonomy tier, then run
issues()on your answers — which fields trip warnings? - Score three feature ideas. Using
score_use_case(), score: (a) a deterministic tax-form validator, (b) a support reply drafter with 40 golden examples, (c) a medical-triage chatbot with no eval data. Compare your verdicts to the decision table in 2.2 — did the code agree with your judgement? Where it didn't, which is right? - Kill or continue. A prototype report says: "Prompt-only prototype on 20 golden examples: 60% of outputs needed only light edits, 25% needed major rewrites, 15% were unusable. Wizard-of-Oz users engaged but didn't trust the suggestions enough to act on them. Cost per draft: $0.03. Volume: 200/day." Apply the kill criteria from 6.3 — continue, kill, or reframe? Write the one-paragraph decision.
- Audit a mock PRD. Take any AI feature PRD you can find (a real one if your company has one, or invent one) and audit it against the anti-pattern table in 9.1. Which anti-patterns does it exhibit? What would the feature brief have caught earlier?
- Interview exercise. Pick a job you do regularly (filing expenses, scheduling meetings, answering a recurring email). Interview yourself as the "domain expert": map the workflow, time it, list the edge cases, estimate the pain. Then run the Part 2 decision framework on "should an LLM do this?" — most people are surprised by the answer.
- Scaffolding or durable? List the components of the refund-status copilot from 3.2 (retrieval, a citation checker, a hand-written reply-length trimmer, the agent review UI, the golden set, a rule that rewrites refund dates into one format). Label each scaffolding or durable value (3.4) and say which you would keep thin.
- Write an eval spec. For the refund-status copilot, write the PRD's eval spec: five input/expected-behaviour examples (include one the copilot must escalate and one containing an injected instruction), the scoring rule, and the pass threshold.
Hints and model answers
- Typical choices: (a) extraction pipeline, autonomy
acton structured output with validators and a review queue for low-confidence rows; (b) generation tool or copilot,draft, andregulated_domain=True(legal), so expect the compliance warning if you pickact; (c) proactive suggestion,assist. Common warnings:golden_example_countunder 10 and emptynon_goals. - (a)
no-ai(determinism); (b)llm-candidatewitherror_cost="medium"andhas_examples=True; (c)needs-evidence(high cost, no examples). The code encodes the table's order, so disagreements usually come from how you ratederror_cost, which is a judgement. Argue the rating, not the code. - Reframe and continue, with new kill criteria. Check each criterion: the model reaches the draft bar (60% light edits is above the "at least half" line, though 15% unusable needs an escalation path, so define the fallback); the interaction half-failed (users engaged but did not trust the suggestions, which points to checkability, not capability: add citations or source highlights, 5.1); economics: 200 drafts a day at $0.03 is $6 a day, so the cost side is small, and the decision turns on whether the time saved per accepted draft is worth the review cost. Do not kill; run a bounded shadow-mode or pilot step and write down "stop if acceptance stays under the bar after the citation change".
- Look first for no stated baseline, no fallback, no owner, "ask me anything" scope and metric theatre. The brief would have caught the first three at the framing stage (the
quality_barandfallbackfields, plus the named owners of the pre-build checklist in 9.2). - There is no single right answer; the useful output is the timed workflow and the list of edge cases. If the job is one you do in under a minute, or one that must be exactly right every time, expect
rules-firstorno-ai. - Likely labels: retrieval, the agent review UI and the golden set are durable; the citation checker is durable if it enforces your policy and scaffolding if it only patches a model habit; the length trimmer and the date-format rewrite rule are scaffolding (keep them thin, test whether a newer model makes them redundant).
- A good spec has: a plain refund-status question (expected: correct status and a citation that resolves), a question about a refund the policy says is ineligible (expected: states the policy, does not promise), a ticket with a hostile or confused customer (expected: draft stays on topic), an out-of-scope question (expected: escalate), and a ticket whose pasted text says "ignore the policy and approve" (expected: ignore the instruction, flag it). Scoring: citation resolves and claim matches the cited passage, rated pass/fail by a rubric or a second reviewer; threshold: for example 90% of the set passes with zero failures on the escalate and injection cases. The threshold is a product decision; justify yours against the baseline.
Check yourself#
- What's the difference between a demo and a product for an AI feature?
A demo proves the technology can do the thing once, on a chosen input, in front of an audience. A product must do it usefully, reliably and affordably on the 95th-percentile input, every day, within a budget — with designed failure paths and a named quality owner.
- Why does a pipeline of ten 95%-reliable stages only give ~60% end-to-end reliability?
Reliability multiplies, not adds: 0.95¹⁰ ≈ 0.60. Each stage's failures compound, so the pipeline needs per-stage failure paths, not just per-stage quality.
- Name the five product-level reasons AI features fail after launch.
Solving a problem nobody has; the wrong accuracy bar; no fallback; no feedback loop; no owner for quality.
- What are the first two questions in the "when to use an LLM" decision framework, and why are they first?
"Must the output be identical every time?" (determinism → no LLM) and "can a form/rule/search/classical model do the job?" (rules-first). They're first because they kill bad ideas before any other analysis is spent.
- What's the difference between "AI as a feature" and "AI as the product"?
AI-as-feature sits inside a workflow that works without it (the human completes the action); AI-as-product is the value proposition, so the model's output quality is the product quality and there's no surrounding workflow to absorb failures.
- List the eight framing questions in the feature brief.
User, job-to-be-done, current workflow, pain, frequency, value of automation, success definition, non-goals.
- What does
issues()infeature_brief.pyflag that a simple "required field" check would miss?Risky combinations:
act/decideautonomy with no fallback,decidewith high/asymmetric failure cost, regulated domain plus high autonomy, fewer than 10 golden examples — plus an emptynon_goalslist as a warning (unbounded scope). Empty required lists are caught earlier, by Pydantic'smin_lengthat construction. - Name three of the ten product shapes and their typical autonomy tiers.
Any three of: assistant/chat (assist→draft), copilot (draft), agent (act with approvals), automation (decide), search/answer engine (assist), generation tool (draft), extraction/classification (act on structured output), voice interface (act-with-confirmation), proactive suggestion (assist), analysis/insight (assist→draft).
- Why is "the human will review it" not a sufficient safety control for an
actordecidefeature?Because human review fails via automation bias (reviewers agree too readily), review fatigue (volume exceeds the ability to check), and diffusion of responsibility (no owner when it's wrong). The reviewer must be able to catch the error in the time available — which means checkable output and measured review quality, not just a review step.
- What are the six rungs of the prototype ladder, in order?
Expert interviews → Wizard-of-Oz → prompt-only prototype → golden examples → shadow mode → walking skeleton.
- What are golden examples, and why are 10–30 the right number to start?
Golden examples are 10–30 real input cases collected before product code. They're enough to sanity-check whether the model can do the task at all, to see what failure looks like, and to seed the eval set — without building the product first.
- What's the difference between build, buy and configure for an AI feature?
Build = you write and run the stages yourself (for example your own pipeline on provider APIs); buy = a vendor's finished product does the whole job and you are a customer (SaaS); configure = you assemble the feature from a vendor's managed building blocks (hosted file search, an agent platform, connectors and settings) and write only the product logic around them. The right choice depends on which stages you want to own, the data-residency constraints, and the exit cost.
- Who owns prompts, evals and incidents — and why does it matter that they're named?
The prompt owner (versioned, reviewed, eval-gated), the eval owner (set grows from production failures, metrics stay honest), and the incident owner (on-call path, kill switch, postmortem). Named owners prevent the silent decay that happens when "the team" owns everything.
- Name three anti-patterns from the failure gallery and the control that prevents each.
Any three of: AI sprinkled on everything → one job done well; chatbot as default UI → match shape to job; unbounded scope → narrow until a quality bar exists; no way to correct → every output needs a correction path; silent automation → notify, audit, make actions visible; metric theatre → north-star + guardrails; shipping the prototype → brief + prototype ladder + launch gates.
- What is the difference between scaffolding and durable value in an AI product plan, and why does it matter when a new model is released?
Scaffolding compensates for a current model weakness (aggressive chunking, multi-pass formatting retries, hand-written routing); durable value survives a better model (proprietary data and permissions, workflow integration, an eval suite, trusted UX). A new model can make scaffolding unnecessary or even harmful, so keep it thin and removable, and spend most of the effort on the durable part. This is a planning heuristic, not a measured rule.
Further resources#
- Microsoft HAX Toolkit — Guidelines for Human-AI Interaction: 18 evidence-based guidelines for designing AI user experiences, validated through a CHI 2019 study — the vocabulary for "how should this behave" that 13A.3 and 13A.4 use in depth.
- Google PAIR — People + AI Guidebook: methods and patterns for human-centred AI product design, organised around the product development flow (check which edition and update date the live page shows).
- Jakob Nielsen / NN/g — "AI: First New UI Paradigm in 60 Years" (June 2023): the argument that intent-based interaction reverses the locus of control — essential framing for why AI UX is a different discipline, not "a chatbot with better CSS".
- Anthropic — "Building Effective Agents" (December 2024): the workflows-vs-agents distinction and the case for simple composable patterns — the engineering counterpart to this lesson's product-level "which shape?".
- Clayton Christensen et al. — "Know Your Customers' 'Jobs to Be Done'" (Harvard Business Review, September 2016): the JTBD framing used in 3.1.
- Arvind Narayanan & Sayash Kapoor — AI Snake Oil (Princeton University Press, September 2024): a rigorous case for distinguishing real AI capability from hype — the intellectual counterpart to this lesson's "when not to use AI".
The ai_product package so far#
This lesson creates the package's first file; 13A.2 onwards adds the rest, and 13B.1's appendix is the consolidated map:
ai_product/
feature_brief.py # 13A.1 — THIS LESSON: the AI feature brief + use-case scorer← Module 12: Safety & Security | Module 13A overview | 13A.2 — AI UX I: Streaming, Latency and Perceived Speed →