13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate

Ship & get hiredLesson 6 of 614,101 words6 parts
Module 13B · 0 of 5 lessons done
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6

Lessons 13B.1 to 13B.5 gave you a scoped capstone and three guided builds. This lesson is the last gate before it counts: turning something that works on your laptop into something you can launch, demo and keep operating. That means one consolidated go-live review instead of five separate checklists, a public demo that can't burn your budget or leak your data, a documentation set that ships with the product, a demo script that survives a live stage, and the operating cadence that keeps the thing alive after launch day — followed by an honest retrospective and the hand-off to Module 14B.

What you'll learn

  • The combined go-live review: how the checklists of lessons 08A.14, 10A.10, 11C.4 and 12.10 plus the product checklists of 13A.1 to 13A.6 consolidate into one launch review with owners, required evidence and go/no-go criteria — and ai_product/launch_review.py, which reads a YAML evidence file and reports the gaps
  • The required deliverables for every capstone (tests, an eval set, tracing, a cost report and a security checklist) as launch gates: what evidence the review asks for and which ones block a launch
  • How to make a capstone demoable and safe to share publicly: demo cost caps and quotas, rate limits, abuse protection, tenant and data isolation, synthetic data only, a tested kill switch, monitoring, and what to log — plus a neutral comparison of hosting options as of November 2026
  • The documentation set that ships with a product: README, architecture overview, eval report, a product-level system card (ai_product/system_card.py), runbook, changelog, ADR index, a setup-in-ten-minutes guide, LICENSE and third-party notices, a security policy, user-facing notices for a public demo and a security-review packet
  • The demo: choosing the story, a three-minute beat sheet, recording a fallback, showing evals and failure handling honestly, live-demo risk management, Q&A preparation and the one-page project summary — plus ai_product/demo_script.py
  • Post-launch operation: monitoring the first week, feedback triage, an incident drill, a model deprecation and upgrade plan, cost review, evaluation refresh, a maintenance cadence and responsible sunsetting
  • Retrospective and self-assessment: applying the 13B.1 rubric honestly, a retro template, mapping the capstone to the skills Module 14B will ask about

What you don't need

  • No API keys and no deployment. Every sample in this lesson runs locally against fixture files and prints real output. Hosting options are compared, never provisioned.
  • No prior production experience. Where the lesson relies on machinery built earlier — evals, tracing, guardrails, runbooks — it links to the owning lesson instead of re-teaching it.
  • A finished capstone is not required to learn the material, but the exercises are much easier with one. If you haven't built yours yet, follow lesson 13B.1 first; the support copilot from 13B.2 is the running example throughout.

Setup

This lesson adds three files to the ai_product package that lessons 13A.1 to 13B.1 built inside your capstone repo (uv project, Python 3.11+). If you are starting fresh, create the project once:

bash
uv init acme-copilot --bare --python 3.13 && cd acme-copilot
uv add pydantic

(launch_review.py and demo_script.py are standard-library only; system_card.py needs Pydantic, which your capstone already uses for schemas.) No .env file is needed — nothing in this lesson calls a model.


What you must be able to do after this lesson#

  • Run the combined go-live review and treat the five deliverables as launch gates
  • Make a demo safe to share with cost caps, rate limits and abuse protection
  • Write the documentation set: README, architecture overview, eval report and system card
  • Plan the first week after launch: monitoring, feedback triage and an incident drill
  • Self-assess your capstone honestly against the 13B.1 rubric and write a retrospective

Why this matters for an AI engineer#

You'll hear... You'll understand it after...
"Is it ready to launch?" Part 1: the combined go-live review
"Every checklist says yes, but nobody can say GO." 1.2 One gate, one record
"What evidence do you actually have?" 1.3 launch_review.py
"Someone will find the demo URL and burn our API credits." 2.3 Cost caps and quotas
"It's just a demo — do we need guardrails?" 2.2 The demo guardrail stack
"Where do we host the demo?" 2.6 Hosting a public demo
"What docs does an AI product actually ship?" Part 3: documentation that ships
"A system card — for our app, not the model?" 3.2 The system card for your product
"How do I demo this in three minutes without it falling over?" Part 4: the demo
"The model got deprecated two weeks after launch." 5.4 Model deprecation and upgrade plan
"What do I do in the first week after launch?" 5.1 The first week
"How do I write the retro without it being theatre?" Part 6: retrospective

Part 1: The combined go-live review#

1.1 Five checklists, one gate#

By now you have met at least five launch checklists in this path, each owned by a different lesson:

Checklist Owner lesson What it covers
Agent readiness checklist 08A.14 Budgets, policy layer, least privilege, idempotency, approvals, observability, evals, reliability, human oversight, operations
One-page evaluation checklist + launch criteria 10A.10 Dataset, metrics, task evals, CI gate, online loop, non-functional gates, report, culture; pre-registered launch criteria and sign-off
Production-readiness checklist + launch review 11C.4 Ten groups: product/UX, evaluation, safety, privacy, observability, reliability, cost, release, operations, documentation — scored by readiness.py
Safety & Security checklist 12.10 Threat model, injection surface, jailbreaks, PII, guardrails, tools/agents/MCP, supply chain, red team, monitoring, responsible AI, governance
Product checklists 13A.1–13A.6 Feature-brief gates, UX pattern checklists, architecture checklist, metric and experiment criteria

Each is correct in its own domain. The failure mode is that nobody owns the intersection. The security checklist is green, the eval checklist is green, the production checklist is green — and the demo URL is still serving last month's prompt because the release checklist lived in a different document. A solo capstone makes this worse, not better: you are the product owner, the eval owner, the on-call engineer and the security reviewer, which means nothing forces the five documents to be read together.

The combined go-live review fixes this by treating launch as a single decision with a single record. It does three things:

  1. Consolidates the five checklists into one catalogue of items, each tagged with the lesson it came from, so nothing is silently dropped.
  2. Requires evidence, not claims. Every item names the artefact that proves it — a file path, a dashboard link, a test log, a dated drill note. "Done" without evidence is open.
  3. Produces one verdict — GO, GO-WITH-CONDITIONS or NO-GO — with named owners and due dates on anything still open.

1.2 One gate, one record#

The unit of the review is the evidence item: a checklist line plus four fields.

Field Meaning
id Stable dotted identifier (eval.ci-gate, demo.kill-switch) so evidence files survive checklist edits
status done, open, or na
owner Who is responsible — a role in a team, a hat you wear in a solo capstone
evidence The artefact that proves the status: path, link, report, log
note Required when status is na — "not applicable" is a claim, and claims need reasons
due Required on open track items — the date the condition closes

Two rules carry over from 11C.4's readiness.py and are worth internalising because every serious launch process uses them:

  • Gate vs track. A gate item must be satisfied to launch — done, or na with a note. A track item may lag launch, but only with a named owner and a due date. The distinction is the difference between "we decided this doesn't apply" and "we'll get to it".
  • na is a claim, not an absence. na without a note fails exactly like open — on gates and tracks. "PIA not required — the feature handles no personal data" passes; a bare na does not. And a justified na closes a track item the same way it closes a gate: "doesn't apply, here's why" is a finished answer, not a lagging one, so it never appears in the conditions list. This single rule kills most checklist theatre.

The verdict has three states, not two:

Verdict Meaning
GO Every gate satisfied; no open track items
GO-WITH-CONDITIONS All gates pass; named track items remain, each with owner + due date. Launch proceeds and the conditions are part of the launch record
NO-GO At least one gate item unsatisfied. The review's job is now to say exactly which, to whom, and by when

A NO-GO is not a failure — it is the review working. The failure is a GO decided in a meeting with no record, because three weeks later nobody can reconstruct why it shipped or what was knowingly left open.

The whole flow, end to end:

flowchart LR
    subgraph inputs ["Evidence inputs"]
        E1["08A.14 agent checklist"]
        E2["10A.10 eval checklist"]
        E3["11C.4 readiness checklist"]
        E4["12.10 security checklist"]
        E5["13A.1–13A.6 product checklists"]
    end
    CAT["Consolidated catalogue<br/>78 items · 11 groups<br/>owner + evidence + gate/track"]
    EV["evidence.yaml<br/>status · owner · evidence · due · note"]
    TOOL["launch_review.py<br/>gap report"]
    VERDICT{"GO / GO-WITH-<br/>CONDITIONS / NO-GO"}
    RECORD["Launch record:<br/>checklist state + risks<br/>+ rollback criteria + owners"]
    E1 & E2 & E3 & E4 & E5 --> CAT
    CAT --> TOOL
    EV --> TOOL
    TOOL --> VERDICT
    VERDICT --> RECORD

1.3 launch_review.py: evidence file → gap report → verdict#

ai_product/launch_review.py is the runnable form of this review. It ships the consolidated catalogue — 78 items across eleven groups, each carrying its source lesson, suggested owner role, required evidence and gate/track flag — plus a scorer that reads your evidence file and reports the gaps.

The evidence file uses a deliberately small YAML subset (the same stdlib-only trick llm_guard_kit.responsible.mini_yaml_loads uses in 12.9): key: value scalars, # comments, and one block list of - key: value maps. If you want full YAML, install PyYAML and swap mini_yaml_loads for yaml.safe_load — the data shape is identical.

yaml
# evidence.yaml — excerpt for the Acme support copilot
product: acme-support-copilot
version: "1.0.0"
review_date: "2026-11-20"
decision: ""
items:
  - id: eval.ci-gate
    status: done
    owner: eval
    evidence: ".github/workflows/eval-gate.yml"
    due: ""
    note: ""
  - id: product.accessibility
    status: open
    owner: product
    evidence: ""
    due: "2026-12-11"
    note: ""
  - id: privacy.pia
    status: na
    owner: privacy
    evidence: ""
    due: ""
    note: "no personal data beyond ticket metadata; PII redacted pre-model"

The full worked-example file (78 items, for a fictional Acme support copilot — every path, owner and date in it is invented) is below; save it as evidence.yaml in your repo. --template prints a blank scaffold with all 78 items for your own project.

The complete worked-example evidence.yaml (78 items)
yaml
product: acme-support-copilot
version: "1.0.0"
review_date: "2026-11-20"
decision: ""
items:
  # ---- PRODUCT & UX ----
  - id: product.limitation-notice
    status: done
    owner: product
    evidence: "docs/ux/copy-deck.md#limitations"
    due: ""
    note: ""
  - id: product.degraded-mode
    status: done
    owner: product
    evidence: "docs/ux/degraded-mode.md"
    due: ""
    note: ""
  - id: product.feedback-loop
    status: open
    owner: product
    evidence: ""
    due: "2026-12-04"
    note: ""
  - id: product.human-handoff
    status: done
    owner: product
    evidence: "docs/ux/escalation-flow.md"
    due: ""
    note: ""
  - id: product.autonomy-dial
    status: done
    owner: product
    evidence: "docs/adr/0003-autonomy-tiers.md"
    due: ""
    note: ""
  - id: product.failure-state-map
    status: done
    owner: product
    evidence: "src/copilot/failure_ui.py"
    due: ""
    note: ""
  - id: product.accessibility
    status: open
    owner: product
    evidence: ""
    due: "2026-12-11"
    note: ""
  - id: product.disclosure
    status: done
    owner: product
    evidence: "docs/ux/disclosure-copy.md"
    due: ""
    note: ""
  # ---- EVALUATION ----
  - id: eval.dataset
    status: done
    owner: eval
    evidence: "evals/datasets/support-copilot-v3.jsonl"
    due: ""
    note: ""
  - id: eval.metrics
    status: done
    owner: eval
    evidence: "evals/reports/2026-11-18.md"
    due: ""
    note: ""
  - id: eval.task-specific
    status: done
    owner: eval
    evidence: "evals/suites/tool_use.jsonl"
    due: ""
    note: ""
  - id: eval.ci-gate
    status: done
    owner: eval
    evidence: ".github/workflows/eval-gate.yml"
    due: ""
    note: ""
  - id: eval.online-loop
    status: open
    owner: eval
    evidence: ""
    due: "2026-12-18"
    note: ""
  - id: eval.nonfunctional
    status: done
    owner: eval
    evidence: "evals/reports/nonfunctional-2026-11-15.md"
    due: ""
    note: ""
  - id: eval.report
    status: done
    owner: eval
    evidence: "evals/reports/2026-11-18.md"
    due: ""
    note: ""
  - id: eval.launch-criteria
    status: done
    owner: eval
    evidence: "evals/LAUNCH_CRITERIA.md"
    due: ""
    note: ""
  # ---- SAFETY & SECURITY ----
  - id: safety.threat-model
    status: done
    owner: security
    evidence: "docs/security/threat-model.md"
    due: ""
    note: ""
  - id: safety.injection-surface
    status: done
    owner: security
    evidence: "src/copilot/guards.py + canary list"
    due: ""
    note: ""
  - id: safety.content-policy
    status: done
    owner: security
    evidence: "evals/suites/refusal-overrefusal.jsonl"
    due: ""
    note: ""
  - id: safety.pii-controls
    status: done
    owner: security
    evidence: "src/copilot/pii.py"
    due: ""
    note: ""
  - id: safety.tenant-isolation
    status: na
    owner: security
    evidence: ""
    due: ""
    note: "single-tenant demo product; isolation N/A until multi-tenant"
  - id: safety.output-validation
    status: done
    owner: security
    evidence: "src/copilot/validators.py"
    due: ""
    note: ""
  - id: safety.tool-tiers
    status: done
    owner: security
    evidence: "src/copilot/policy.py"
    due: ""
    note: ""
  - id: safety.redteam
    status: done
    owner: security
    evidence: "docs/security/redteam-2026-11-14.md"
    due: ""
    note: ""
  - id: safety.security-events
    status: open
    owner: security
    evidence: ""
    due: "2026-12-02"
    note: ""
  - id: safety.disclosure-contact
    status: open
    owner: security
    evidence: ""
    due: "2026-12-08"
    note: "tracked as doc.security-policy"
  # ---- PRIVACY & COMPLIANCE ----
  - id: privacy.data-classification
    status: done
    owner: privacy
    evidence: "docs/privacy/data-classes.md"
    due: ""
    note: ""
  - id: privacy.vendor-file
    status: done
    owner: privacy
    evidence: "docs/privacy/vendor-file.md"
    due: ""
    note: ""
  - id: privacy.retention
    status: done
    owner: privacy
    evidence: "docs/privacy/retention.md"
    due: ""
    note: ""
  - id: privacy.deletion-runbook
    status: open
    owner: privacy
    evidence: ""
    due: "2026-12-09"
    note: ""
  - id: privacy.pia
    status: na
    owner: privacy
    evidence: ""
    due: ""
    note: "no personal data beyond ticket metadata; PII redacted pre-model"
  - id: privacy.residency
    status: done
    owner: privacy
    evidence: "us-east only; documented in vendor file"
    due: ""
    note: ""
  - id: privacy.demo-data
    status: done
    owner: privacy
    evidence: "corpus is synthetic handbook + fictional tickets"
    due: ""
    note: ""
  # ---- OBSERVABILITY ----
  - id: obs.tracing
    status: done
    owner: sre
    evidence: "traces in Langfuse project copilot-prod"
    due: ""
    note: ""
  - id: obs.dashboards
    status: done
    owner: sre
    evidence: "grafana/copilot-overview"
    due: ""
    note: ""
  - id: obs.alerts
    status: done
    owner: sre
    evidence: "alerts: error-rate, cost-per-hour, refusal-spike"
    due: ""
    note: ""
  - id: obs.synthetic-probes
    status: open
    owner: sre
    evidence: ""
    due: "2026-12-05"
    note: ""
  - id: obs.request-ids
    status: done
    owner: sre
    evidence: "X-Request-ID on every response + log line"
    due: ""
    note: ""
  # ---- RELIABILITY ----
  - id: rel.timeouts-retries
    status: done
    owner: sre
    evidence: "src/copilot/client.py retry policy"
    due: ""
    note: ""
  - id: rel.kill-switch
    status: done
    owner: sre
    evidence: "drill 2026-11-16: off→read-only→on in 40s"
    due: ""
    note: ""
  - id: rel.degraded-modes
    status: done
    owner: sre
    evidence: "docs/ops/degraded-modes.md"
    due: ""
    note: ""
  - id: rel.load-test
    status: open
    owner: sre
    evidence: ""
    due: "2026-11-27"
    note: ""
  - id: rel.dr
    status: na
    owner: sre
    evidence: ""
    due: ""
    note: "stateless service + managed Postgres PITR; RPO 24h accepted"
  - id: rel.idempotency
    status: done
    owner: sre
    evidence: "idempotency keys on create_ticket / issue_refund"
    due: ""
    note: ""
  # ---- COST ----
  - id: cost.budgets-caps
    status: done
    owner: cost
    evidence: "budgets: prod $50/mo hard cap; demo $5/day"
    due: ""
    note: ""
  - id: cost.attribution
    status: done
    owner: cost
    evidence: "cost per ticket on dashboard"
    due: ""
    note: ""
  - id: cost.forecast
    status: done
    owner: cost
    evidence: "docs/cost/unit-economics.md"
    due: ""
    note: ""
  - id: cost.cheap-path
    status: open
    owner: cost
    evidence: ""
    due: "2026-12-01"
    note: ""
  # ---- DEPLOYMENT & RELEASE ----
  - id: release.eval-gate
    status: done
    owner: release
    evidence: "eval gate green on release/1.0.0"
    due: ""
    note: ""
  - id: release.rollback
    status: done
    owner: release
    evidence: "rollback drill 2026-11-17"
    due: ""
    note: ""
  - id: release.feature-flags
    status: done
    owner: release
    evidence: "flags: copilot.enabled, copilot.voice_drafts"
    due: ""
    note: ""
  - id: release.model-pins
    status: done
    owner: release
    evidence: "pinned snapshot IDs in config/models.yaml"
    due: ""
    note: ""
  - id: release.release-unit
    status: done
    owner: release
    evidence: "release manifest v1.0.0 (prompt+tools+policy+model)"
    due: ""
    note: ""
  # ---- OPERATIONS ----
  - id: ops.runbooks
    status: done
    owner: ops
    evidence: "docs/runbook.md — 7 incident classes"
    due: ""
    note: ""
  - id: ops.oncall
    status: na
    owner: ops
    evidence: ""
    due: ""
    note: "solo capstone — owner is on-call; escalation = page the author"
  - id: ops.inventory
    status: done
    owner: ops
    evidence: "SERVICE_INVENTORY.md"
    due: ""
    note: ""
  - id: ops.audit-logging
    status: done
    owner: ops
    evidence: "audit_log table append-only"
    due: ""
    note: ""
  - id: ops.postmortem
    status: open
    owner: ops
    evidence: ""
    due: "2026-11-25"
    note: ""
  - id: ops.tabletop
    status: open
    owner: ops
    evidence: ""
    due: "2026-12-20"
    note: ""
  # ---- DOCUMENTATION ----
  - id: doc.readme
    status: done
    owner: docs
    evidence: "README.md — quickstart timed at 7 min on clean clone"
    due: ""
    note: ""
  - id: doc.architecture
    status: done
    owner: docs
    evidence: "docs/architecture.md + C4 container diagram"
    due: ""
    note: ""
  - id: doc.eval-report
    status: done
    owner: docs
    evidence: "evals/reports/2026-11-18.md"
    due: ""
    note: ""
  - id: doc.system-card
    status: done
    owner: docs
    evidence: "SYSTEM_CARD.md generated by ai_product/system_card.py"
    due: ""
    note: ""
  - id: doc.runbook
    status: done
    owner: docs
    evidence: "docs/runbook.md linked from README"
    due: ""
    note: ""
  - id: doc.changelog
    status: open
    owner: docs
    evidence: ""
    due: "2026-11-24"
    note: ""
  - id: doc.adr-index
    status: done
    owner: docs
    evidence: "docs/adr/ index with 6 ADRs"
    due: ""
    note: ""
  - id: doc.setup-guide
    status: done
    owner: docs
    evidence: "SETUP.md — 10-minute path verified"
    due: ""
    note: ""
  - id: doc.license-notices
    status: done
    owner: docs
    evidence: "LICENSE (MIT) + THIRD_PARTY_NOTICES.md"
    due: ""
    note: ""
  - id: doc.security-policy
    status: open
    owner: docs
    evidence: ""
    due: "2026-12-08"
    note: ""
  # ---- DEMO & LAUNCH ----
  - id: demo.cost-caps
    status: done
    owner: demo
    evidence: "demo keys capped $5/day app-side + provider hard limit"
    due: ""
    note: ""
  - id: demo.rate-limits
    status: done
    owner: demo
    evidence: "30 req/min per IP on /demo/*"
    due: ""
    note: ""
  - id: demo.kill-switch
    status: done
    owner: demo
    evidence: "demo mode flag tested 2026-11-19"
    due: ""
    note: ""
  - id: demo.no-secrets
    status: done
    owner: demo
    evidence: "gitleaks scan clean; demo key is restricted + rotatable"
    due: ""
    note: ""
  - id: demo.monitoring
    status: done
    owner: demo
    evidence: "demo dashboard: requests, $/hour, errors"
    due: ""
    note: ""
  - id: demo.recorded-fallback
    status: open
    owner: demo
    evidence: ""
    due: "2026-11-22"
    note: ""
  - id: demo.launch-review
    status: open
    owner: demo
    evidence: ""
    due: "2026-11-20"
    note: ""
  - id: demo.comms-plan
    status: open
    owner: demo
    evidence: ""
    due: "2026-11-21"
    note: ""
  - id: demo.hosting-decision
    status: open
    owner: demo
    evidence: ""
    due: "2026-11-26"
    note: ""

Here is the complete module — it is longer than most samples in this path because the catalogue is the lesson's content:

python
# ai_product/launch_review.py
"""Consolidated launch review for an AI product.

Reads a small YAML-subset evidence file and reports gaps against the
consolidated launch checklist. Stdlib only — same trick as
llm_guard_kit.responsible.mini_yaml_loads in lesson 12.9.
"""
from __future__ import annotations

import sys
from dataclasses import dataclass


def _scalar(text: str) -> str:
    text = text.strip()
    if len(text) >= 2 and text[0] == text[-1] and text[0] in "\"'":
        return text[1:-1]
    return text


def mini_yaml_loads(text: str) -> dict:
    """Parse the evidence-file subset: `key: scalar` at column 0, and one
    block `key:` followed by `- item` entries (bare scalar or `- key: value`
    map with deeper-indented `key: value` lines). `#` comments ignored.
    Anything richer raises ValueError — use PyYAML for full YAML."""
    root: dict = {}
    current_key: str | None = None
    current_map: dict | None = None
    for raw in text.splitlines():
        stripped = raw.strip()
        if not stripped or stripped.startswith("#"):
            continue
        indent = len(raw) - len(raw.lstrip(" "))
        if indent == 0:
            current_map = None
            key, sep, val = stripped.partition(":")
            if not sep:
                raise ValueError(f"not key: value: {stripped!r}")
            key, val = key.strip(), val.strip()
            current_key = key
            root[key] = _scalar(val) if val else []
            continue
        if stripped.startswith("- "):
            item = stripped[2:].strip()
            if current_key is None or not isinstance(root.get(current_key), list):
                raise ValueError(f"list item without a list key: {stripped!r}")
            if ":" in item:
                k, _, v = item.partition(":")
                m = {k.strip().strip("\"'"): _scalar(v)}
                root[current_key].append(m)
                current_map = m
            else:
                root[current_key].append(_scalar(item))
                current_map = None
            continue
        if current_map is not None and ":" in stripped:
            k, _, v = stripped.partition(":")
            current_map[k.strip().strip("\"'")] = _scalar(v)
            continue
        raise ValueError(f"unexpected line: {raw!r}")
    return root


@dataclass(frozen=True)
class Item:
    id: str
    group: str
    text: str
    gate: bool          # True = blocks launch; False = needs owner + due date
    owner: str          # suggested owner role
    evidence: str       # the artefact that proves the item is done
    source: str         # which checklist/lesson the item consolidates


C = Item
CHECKLIST: list[Item] = [
    # PRODUCT & UX — 11C.4 §7.1 + product checklists of 13A.1–13A.4
    C("product.limitation-notice", "PRODUCT & UX",
      "User-facing limitation notice where outputs can mislead", True,
      "product", "copy deck / UI spec", "11C.4 §7.1, 13A.1, 13A.3"),
    C("product.degraded-mode", "PRODUCT & UX",
      "Degraded-mode UX defined and labelled", True,
      "product", "degraded-mode spec", "11C.4 §7.1, 13A.4"),
    C("product.feedback-loop", "PRODUCT & UX",
      "Feedback mechanism wired to the eval pipeline", False,
      "product", "feedback endpoint + exporter", "11C.4 §7.1, 13A.3"),
    C("product.human-handoff", "PRODUCT & UX",
      "Human-handoff path for failures the model can't handle", True,
      "product", "escalation flow + copy", "11C.4 §7.1, 13A.3"),
    C("product.autonomy-dial", "PRODUCT & UX",
      "Autonomy level per action defined and enforced in code", True,
      "product", "autonomy table + approval gate config", "13A.3, 08A.14"),
    C("product.failure-state-map", "PRODUCT & UX",
      "Failure-state map covers the 13A.4 taxonomy", True,
      "product", "failure→message map", "13A.4"),
    C("product.accessibility", "PRODUCT & UX",
      "Accessibility checklist applied (WCAG 2.2 / ARIA live regions)", True,
      "product", "a11y checklist result", "13A.4"),
    C("product.disclosure", "PRODUCT & UX",
      "AI disclosure and capability statements written and placed", True,
      "product", "disclosure copy", "13A.3, 12.9 §3.1"),
    # EVALUATION — 10A.10 wrap-up checklist + §7.5
    C("eval.dataset", "EVALUATION",
      "Versioned eval dataset with provenance and dev/calibration/test splits", True,
      "eval", "dataset dir + versions", "10A.10 wrap-up, 10A.2"),
    C("eval.metrics", "EVALUATION",
      "Deterministic graders where possible; judges calibrated (κ reported)", True,
      "eval", "eval report metrics section", "10A.10 wrap-up, 10A.3–10A.5"),
    C("eval.task-specific", "EVALUATION",
      "Task-specific evals: RAG/agent/multimodal as applicable", True,
      "eval", "task eval suites", "10A.10 wrap-up, 10A.6–10A.7"),
    C("eval.ci-gate", "EVALUATION",
      "Eval suite runs in CI on prompt/model/data changes; thresholds pre-registered", True,
      "eval", "CI workflow + gate config", "10A.10 wrap-up, 10A.8"),
    C("eval.online-loop", "EVALUATION",
      "Online signals sampled; drift monitored; failures routed to dataset", False,
      "eval", "dashboard + triage log", "10A.10 wrap-up, 10A.9"),
    C("eval.nonfunctional", "EVALUATION",
      "Non-functional gates: fairness, robustness, privacy, safety suites", True,
      "eval", "non-functional gate results", "10A.10 §6, 12.9"),
    C("eval.report", "EVALUATION",
      "Eval report with setup, metrics+CI, slices, failures, decision", True,
      "eval", "evals/reports/<date>.md", "10A.10 §7.1"),
    C("eval.launch-criteria", "EVALUATION",
      "Launch criteria pre-registered (hard gates + named sign-off)", True,
      "eval", "launch criteria doc", "10A.10 §7.5"),
    # SAFETY & SECURITY — 12.10 §6.1, condensed
    C("safety.threat-model", "SAFETY & SECURITY",
      "Threat model completed; abuse cases listed", True,
      "security", "threat model doc", "12.10 §6.1, 12.1"),
    C("safety.injection-surface", "SAFETY & SECURITY",
      "Untrusted inputs identified; delimiting applied; canary tokens planted", True,
      "security", "injection defences + canary list", "12.10 §6.1, 12.2"),
    C("safety.content-policy", "SAFETY & SECURITY",
      "Content policy defined; refusal/over-refusal test set passes", True,
      "security", "policy doc + test results", "12.10 §6.1, 12.3"),
    C("safety.pii-controls", "SAFETY & SECURITY",
      "PII detection + redaction/vault in place", True,
      "security", "PII control config", "12.10 §6.1, 12.4"),
    C("safety.tenant-isolation", "SAFETY & SECURITY",
      "Tenant / demo-data isolation tested", True,
      "security", "isolation test results", "12.10 §6.1, 06.6"),
    C("safety.output-validation", "SAFETY & SECURITY",
      "Output schema-validated and sanitised before use", True,
      "security", "validators + sanitiser", "12.10 §6.1, 12.5"),
    C("safety.tool-tiers", "SAFETY & SECURITY",
      "Tool/agent risk tiers; high-risk requires approval; budgets enforced", True,
      "security", "policy layer config", "12.10 §6.1, 08A.14, 12.6"),
    C("safety.redteam", "SAFETY & SECURITY",
      "Red-team suite run; findings triaged; incidents have regression tests", True,
      "security", "red-team report", "12.10 §6.1, 12.8"),
    C("safety.security-events", "SAFETY & SECURITY",
      "Security event stream emitted; detection rules for top threats live", False,
      "security", "detection rules + alert test", "12.10 Part 1"),
    C("safety.disclosure-contact", "SAFETY & SECURITY",
      "security.txt + disclosure contact; acceptable-use policy published", False,
      "security", "security.txt + AUP", "12.10 Part 5"),
    # PRIVACY & COMPLIANCE — 11C.4 Parts 2–3
    C("privacy.data-classification", "PRIVACY & COMPLIANCE",
      "Data classification declared per feature and per store", True,
      "privacy", "data classification table", "11C.4 §2.6, 12.4"),
    C("privacy.vendor-file", "PRIVACY & COMPLIANCE",
      "Vendor file complete: DPA, subprocessors, retention, regions", True,
      "privacy", "vendor file", "11C.4 §2.7"),
    C("privacy.retention", "PRIVACY & COMPLIANCE",
      "Retention schedule covers logs, traces, caches, index, evals, backups", True,
      "privacy", "retention schedule", "11C.4 §3.2"),
    C("privacy.deletion-runbook", "PRIVACY & COMPLIANCE",
      "Deletion/erasure runbook tested or tabletop-exercised", False,
      "privacy", "deletion runbook + drill notes", "11C.4 §3.3"),
    C("privacy.pia", "PRIVACY & COMPLIANCE",
      "PIA/DPIA completed if handling sensitive data", True,
      "privacy", "PIA doc or N/A note", "11C.4 §3.5, 12.9"),
    C("privacy.residency", "PRIVACY & COMPLIANCE",
      "Residency requirements met for all stores and processing", True,
      "privacy", "region config evidence", "11C.4 §3.4"),
    C("privacy.demo-data", "PRIVACY & COMPLIANCE",
      "Public demo uses synthetic data only — no real tickets, PII or customer records", True,
      "privacy", "demo corpus + data-flow note", "this lesson §2.4, 10A.2"),
    # OBSERVABILITY — 11C.4 via 11A.1/11A.2
    C("obs.tracing", "OBSERVABILITY",
      "Tracing on all model calls with trace IDs", True,
      "sre", "traces dashboard link", "11C.4 §7.1, 11A.1"),
    C("obs.dashboards", "OBSERVABILITY",
      "Dashboards: health, latency, cost, quality per feature", True,
      "sre", "dashboard links", "11C.4 §7.1, 11A.2"),
    C("obs.alerts", "OBSERVABILITY",
      "Alerts defined for the 'what pages you' list", True,
      "sre", "alert rules", "11C.4 §1.2, §7.1"),
    C("obs.synthetic-probes", "OBSERVABILITY",
      "Synthetic probes / canaries scheduled", False,
      "sre", "probe schedule", "11C.4 §7.1"),
    C("obs.request-ids", "OBSERVABILITY",
      "Request IDs captured for vendor support tickets", False,
      "sre", "request-id field in logs", "11C.4 §7.1"),
    # RELIABILITY — 11C.4, 11C.3, 08A.14, 03.8
    C("rel.timeouts-retries", "RELIABILITY",
      "Timeouts, bounded retries and fallbacks configured", True,
      "sre", "config + fallback ladder", "11C.4 §7.1, 11C.3, 03.8"),
    C("rel.kill-switch", "RELIABILITY",
      "Kill switches exist AND tested for every feature flag", True,
      "sre", "kill-switch test log", "11C.4 §1.6, 08A.14 §7.2, 12.10 §4.4"),
    C("rel.degraded-modes", "RELIABILITY",
      "Degraded modes implemented and documented", True,
      "sre", "degraded-mode doc", "11C.4 §7.1, 11C.3"),
    C("rel.load-test", "RELIABILITY",
      "Load test at expected concurrency (including demo traffic)", False,
      "sre", "load-test report", "11C.4 §7.1"),
    C("rel.dr", "RELIABILITY",
      "RPO/RTO defined; restore path timed", False,
      "sre", "DR notes", "11C.4 §5.3"),
    C("rel.idempotency", "RELIABILITY",
      "Side-effecting operations idempotent; retries are safe", True,
      "sre", "idempotency keys in tools/jobs", "08A.14 §5.1, Module 01B"),
    # COST — 11C.4 §4.1, 11B.1/11B.5, 13A.6
    C("cost.budgets-caps", "COST",
      "Budgets + hard caps set per feature, tenant and demo key", True,
      "cost", "budget config + cap table", "11C.4 §4.1, 12.10, this lesson §2.3"),
    C("cost.attribution", "COST",
      "Cost attribution working — cost per request visible", True,
      "cost", "cost dashboard", "11C.4 §4.1, 11B.1"),
    C("cost.forecast", "COST",
      "Forecast fits budget at projected growth", True,
      "cost", "unit-economics sheet", "11C.4 §4.1, 13A.6"),
    C("cost.cheap-path", "COST",
      "Cheaper-model / fallback path evaluated", False,
      "cost", "routing decision note", "11C.4 §4.1, 11B.5"),
    # DEPLOYMENT & RELEASE — 11C.1, 11C.2, 08A.14 §7.1
    C("release.eval-gate", "DEPLOYMENT & RELEASE",
      "Deploy pipeline with eval gate green", True,
      "release", "CI run link", "11C.4 §7.1, 11C.2, 11C.1"),
    C("release.rollback", "DEPLOYMENT & RELEASE",
      "Rollback plan tested (prompt + code + index)", True,
      "release", "rollback drill notes", "11C.4 §7.1, 11C.2 §8"),
    C("release.feature-flags", "DEPLOYMENT & RELEASE",
      "Feature flags for risky changes", True,
      "release", "flag config", "11C.4 §7.1, 11C.1 §4.5"),
    C("release.model-pins", "DEPLOYMENT & RELEASE",
      "Model versions pinned — snapshots, not drifting aliases", True,
      "release", "model ID list in config/traces", "11C.2 §6.1, 02.9"),
    C("release.release-unit", "DEPLOYMENT & RELEASE",
      "Prompt + tools + policy + model versioned as one release", True,
      "release", "release manifest", "08A.14 §7.1, 11C.2 §1.1"),
    # OPERATIONS — 11C.4 Parts 1, 5, 6
    C("ops.runbooks", "OPERATIONS",
      "Runbooks written for the feature's incident classes", True,
      "ops", "runbook docs", "11C.4 §1.5, §7.1"),
    C("ops.oncall", "OPERATIONS",
      "On-call rotation staffed; escalation path tested", True,
      "ops", "on-call schedule + escalation test", "11C.4 §1.4, §6.2"),
    C("ops.inventory", "OPERATIONS",
      "Inventory entries complete with owners", True,
      "ops", "service inventory", "11C.4 §5.4, §6.1"),
    C("ops.audit-logging", "OPERATIONS",
      "Audit logging on for changes and sensitive-data access", True,
      "ops", "audit log config", "11C.4 §2.5, 08A.14 §7.4"),
    C("ops.postmortem", "OPERATIONS",
      "Postmortem template + archive ready", False,
      "ops", "postmortem template", "11C.4 §1.7"),
    C("ops.tabletop", "OPERATIONS",
      "Tabletop / incident drill scheduled within 30 days of launch", False,
      "ops", "drill calendar invite", "11C.4 §5.2, 12.10 §3.6"),
    # DOCUMENTATION — this lesson §3 + 14B.3
    C("doc.readme", "DOCUMENTATION",
      "README current; quickstart tested on a clean machine", True,
      "docs", "README.md", "this lesson §3, 14B.3"),
    C("doc.architecture", "DOCUMENTATION",
      "Architecture overview (C4 container) current", True,
      "docs", "architecture doc/diagram", "13A.5, 11C.4 §6.3"),
    C("doc.eval-report", "DOCUMENTATION",
      "Eval report published with the release", True,
      "docs", "eval report link", "10A.10 §7.1"),
    C("doc.system-card", "DOCUMENTATION",
      "System card written: what it does, data, limits, evals, risks, contact", True,
      "docs", "SYSTEM_CARD.md", "12.9 §7.6, this lesson §3.2"),
    C("doc.runbook", "DOCUMENTATION",
      "Runbook in repo, linked from README", True,
      "docs", "RUNBOOK.md", "11C.4 §1.5"),
    C("doc.changelog", "DOCUMENTATION",
      "Changelog maintained per release", False,
      "docs", "CHANGELOG.md", "this lesson §3.3"),
    C("doc.adr-index", "DOCUMENTATION",
      "ADR index current — one line per decision", False,
      "docs", "docs/adr/ index", "13B.1, 13A.5"),
    C("doc.setup-guide", "DOCUMENTATION",
      "Setup-in-ten-minutes guide (fresh clone → running)", True,
      "docs", "SETUP.md or README section", "this lesson §3.3, 14B.3"),
    C("doc.license-notices", "DOCUMENTATION",
      "LICENSE chosen; third-party notices included", True,
      "docs", "LICENSE + NOTICE/THIRD_PARTY.md", "this lesson §3.4"),
    C("doc.security-policy", "DOCUMENTATION",
      "Security policy / disclosure contact published", False,
      "docs", "SECURITY.md", "12.10 Part 5"),
    # DEMO & LAUNCH — this lesson Parts 1, 2, 4
    C("demo.cost-caps", "DEMO & LAUNCH",
      "Demo keys have spend caps; app-level token budget enforced", True,
      "demo", "cap config + provider spend-limit note", "this lesson §2.3"),
    C("demo.rate-limits", "DEMO & LAUNCH",
      "Rate limits + abuse controls on the public demo endpoint", True,
      "demo", "rate-limit config", "this lesson §2.2, 12.10 §2"),
    C("demo.kill-switch", "DEMO & LAUNCH",
      "Demo kill switch tested — normal / read-only / off positions", True,
      "demo", "kill-switch drill notes", "this lesson §2.5"),
    C("demo.no-secrets", "DEMO & LAUNCH",
      "No live keys in repo, images, logs or client bundle; demo uses restricted keys", True,
      "demo", "secret-scan result + key inventory", "this lesson §2.7"),
    C("demo.monitoring", "DEMO & LAUNCH",
      "Demo monitoring live: requests, cost/hour, error rate", True,
      "demo", "demo dashboard", "this lesson §2.5"),
    C("demo.recorded-fallback", "DEMO & LAUNCH",
      "Recorded fallback demo exists and is kept current", True,
      "demo", "fallback video/screen-capture link", "this lesson §4.4"),
    C("demo.launch-review", "DEMO & LAUNCH",
      "Launch review held; go/no-go recorded with owners and conditions", True,
      "demo", "this review's output + minutes", "this lesson §1"),
    C("demo.comms-plan", "DEMO & LAUNCH",
      "Launch communication plan: who tells users/support what, when", False,
      "demo", "comms plan", "11C.4 §7.2"),
    C("demo.hosting-decision", "DEMO & LAUNCH",
      "Hosting choice documented; platform limits re-checked", False,
      "demo", "hosting decision note", "this lesson §2.6, 11C.1"),
]

ORDER = ["PRODUCT & UX", "EVALUATION", "SAFETY & SECURITY",
         "PRIVACY & COMPLIANCE", "OBSERVABILITY", "RELIABILITY", "COST",
         "DEPLOYMENT & RELEASE", "OPERATIONS", "DOCUMENTATION",
         "DEMO & LAUNCH"]

BY_ID = {it.id: it for it in CHECKLIST}
VALID_STATUS = ("done", "open", "na")


def satisfied(status: str, note: str) -> bool:
    """An item passes when done, or na WITH a written reason — the same
    rule for gates and tracks: 'doesn't apply' is a finished answer."""
    return status == "done" or (status == "na" and bool(note.strip()))


def _group_order(rep: dict) -> list[str]:
    # CHECKLIST groups are all in ORDER today; the sorted tail is defensive
    # for a group added later without updating ORDER.
    return ORDER + sorted(set(rep["groups"]) - set(ORDER))


def review(evidence: dict) -> dict:
    """Compare an evidence file against CHECKLIST; return the report."""
    items = evidence.get("items") or []
    by_id, unknown, dupes, seen = {}, [], [], set()
    for ev in items:
        iid = ev.get("id", "")
        if iid in BY_ID:
            if iid in seen:
                dupes.append(iid)
            seen.add(iid)
            by_id[iid] = ev          # last entry wins; dupes are warned about
        else:
            unknown.append(iid or "(missing id)")

    groups: dict[str, dict] = {}
    for it in CHECKLIST:
        g = groups.setdefault(it.group, {"done": 0, "open": 0, "na": 0,
                                         "missing": 0, "gate_open": [],
                                         "track_open": []})
        ev = by_id.get(it.id)
        if ev is None:
            g["missing"] += 1
            status, note = "missing", ""
        else:
            status = str(ev.get("status", "open"))
            if status not in VALID_STATUS:
                status = "open"
            note = str(ev.get("note", ""))
            # each present item counts exactly once, in its own column;
            # an absent item counts only under "missing"
            if status == "done":
                g["done"] += 1
            elif status == "na":
                g["na"] += 1
            else:
                g["open"] += 1
        if it.gate:
            if not satisfied(status, note):
                g["gate_open"].append(it.id)
        elif not satisfied(status, note):
            g["track_open"].append({
                "id": it.id, "status": status,
                "owner": (ev or {}).get("owner", ""),
                "due": (ev or {}).get("due", "")})
    return {"groups": groups, "unknown": unknown, "dupes": dupes,
            "product": evidence.get("product", "?"),
            "version": evidence.get("version", "?"),
            "review_date": evidence.get("review_date", "?"),
            "decision": evidence.get("decision", "")}


def verdict(rep: dict) -> tuple[str, list[str], list[str]]:
    blockers, conditions = [], []
    for group in _group_order(rep):
        g = rep["groups"][group]
        blockers += [f"[{group}] {iid}" for iid in g["gate_open"]]
        for t in g["track_open"]:
            conditions.append(
                f"[{group}] {t['id']} ({t['status']}) — "
                f"{t['owner'] or 'NO OWNER'}, due {t['due'] or 'NO DATE'}")
    if blockers:
        return "NO-GO", blockers, conditions
    if conditions:
        return "GO-WITH-CONDITIONS", blockers, conditions
    return "GO", blockers, conditions


def render(rep: dict) -> str:
    out = [f"LAUNCH REVIEW — {rep['product']} v{rep['version']} — {rep['review_date']}",
           "=" * 72,
           f"{'group':<24} {'done':>5} {'open':>5} {'n/a':>4} {'miss':>5}  gate-open",
           "-" * 72]
    td = to = tn = tm = 0
    for group in _group_order(rep):
        g = rep["groups"][group]
        n_gate = len(g["gate_open"])
        out.append(f"{group:<24} {g['done']:>5} {g['open']:>5} {g['na']:>4} "
                   f"{g['missing']:>5}  {n_gate if n_gate else '-'}")
        td += g["done"]; to += g["open"]; tn += g["na"]; tm += g["missing"]
    out += ["-" * 72,
            f"{'TOTAL':<24} {td:>5} {to:>5} {tn:>4} {tm:>5}"]
    v, blockers, conditions = verdict(rep)
    out.append(f"\nitems: {td + to + tn + tm}   gate items open: {len(blockers)}   "
               f"track items open: {len(conditions)}")
    if rep["unknown"]:
        out.append(f"warning: unknown item id(s) in evidence file: {rep['unknown']} "
                   "— not in the consolidated checklist; check spelling.")
    if rep["dupes"]:
        out.append(f"warning: duplicate id(s) in evidence file: {rep['dupes']} "
                   "— last entry used.")
    if v == "GO":
        out.append("\nVERDICT: GO — every gate satisfied, no open track items")
    elif v == "GO-WITH-CONDITIONS":
        out.append("\nVERDICT: GO-WITH-CONDITIONS — gates pass; these track items "
                   "must close by their due dates:")
        out += [f"  - {c}" for c in conditions]
        unclean = sum(
            1 for g in rep["groups"].values() for t in g["track_open"]
            if t["status"] == "na" or not str(t["owner"]).strip()
            or not str(t["due"]).strip())
        if unclean:
            out.append(f"  note: {unclean} condition(s) lack owner, due date or a "
                       "written na reason — flagged above; not launch-clean")
    else:
        out.append("\nVERDICT: NO-GO — gate items still open:")
        out += [f"  - {b}" for b in blockers]
        if conditions:
            out.append("  open track items (also unresolved):")
            out += [f"    ~ {c}" for c in conditions]
    return "\n".join(out)


def template() -> str:
    """A blank evidence file scaffolded from the checklist."""
    lines = ["product: my-capstone", "version: \"0.1.0\"",
             "review_date: \"YYYY-MM-DD\"", "decision: \"\"", "items:"]
    last_group = None
    for it in CHECKLIST:
        if it.group != last_group:
            lines.append(f"  # ---- {it.group} ({it.source}) ----")
            last_group = it.group
        kind = "gate" if it.gate else "track"
        lines += [f"  # [{kind}] {it.text}",
                  f"  - id: {it.id}",
                  "    status: open",
                  f"    owner: \"{it.owner}\"",
                  "    evidence: \"\"",
                  "    due: \"\"",
                  "    note: \"\""]
    return "\n".join(lines) + "\n"


def main(argv: list[str]) -> int:
    """Exit status: 0 for GO / GO-WITH-CONDITIONS (and --template), 1 for NO-GO,
    so the review can also run as a CI step."""
    if len(argv) == 2 and argv[1] == "--template":
        sys.stdout.write(template())
        return 0
    if len(argv) != 2:
        sys.exit("usage: python3 launch_review.py <evidence.yaml>  |  --template")
    with open(argv[1], encoding="utf-8") as f:
        evidence = mini_yaml_loads(f.read())
    rep = review(evidence)
    print(render(rep))
    return 1 if verdict(rep)[0] == "NO-GO" else 0


if __name__ == "__main__":
    sys.exit(main(sys.argv))

Run it against the worked-example evidence.yaml (the file in the collapsed block above, saved into your repo):

bash
uv run python -m ai_product.launch_review evidence.yaml
Output · real — deterministic39 lines
LAUNCH REVIEW — acme-support-copilot v1.0.0 — 2026-11-20
========================================================================
group                     done  open  n/a  miss  gate-open
------------------------------------------------------------------------
PRODUCT & UX                 6     2    0     0  1
EVALUATION                   7     1    0     0  -
SAFETY & SECURITY            7     2    1     0  -
PRIVACY & COMPLIANCE         5     1    1     0  -
OBSERVABILITY                4     1    0     0  -
RELIABILITY                  4     1    1     0  -
COST                         3     1    0     0  -
DEPLOYMENT & RELEASE         5     0    0     0  -
OPERATIONS                   3     2    1     0  -
DOCUMENTATION                8     2    0     0  -
DEMO & LAUNCH                5     4    0     0  2
------------------------------------------------------------------------
TOTAL                       57    17    4     0

items: 78   gate items open: 3   track items open: 14

VERDICT: NO-GO — gate items still open:
  - [PRODUCT & UX] product.accessibility
  - [DEMO & LAUNCH] demo.recorded-fallback
  - [DEMO & LAUNCH] demo.launch-review
  open track items (also unresolved):
    ~ [PRODUCT & UX] product.feedback-loop (open) — product, due 2026-12-04
    ~ [EVALUATION] eval.online-loop (open) — eval, due 2026-12-18
    ~ [SAFETY & SECURITY] safety.security-events (open) — security, due 2026-12-02
    ~ [SAFETY & SECURITY] safety.disclosure-contact (open) — security, due 2026-12-08
    ~ [PRIVACY & COMPLIANCE] privacy.deletion-runbook (open) — privacy, due 2026-12-09
    ~ [OBSERVABILITY] obs.synthetic-probes (open) — sre, due 2026-12-05
    ~ [RELIABILITY] rel.load-test (open) — sre, due 2026-11-27
    ~ [COST] cost.cheap-path (open) — cost, due 2026-12-01
    ~ [OPERATIONS] ops.postmortem (open) — ops, due 2026-11-25
    ~ [OPERATIONS] ops.tabletop (open) — ops, due 2026-12-20
    ~ [DOCUMENTATION] doc.changelog (open) — docs, due 2026-11-24
    ~ [DOCUMENTATION] doc.security-policy (open) — docs, due 2026-12-08
    ~ [DEMO & LAUNCH] demo.comms-plan (open) — demo, due 2026-11-21
    ~ [DEMO & LAUNCH] demo.hosting-decision (open) — demo, due 2026-11-26

The script exits with status 1 on a NO-GO and 0 otherwise, so the same command can run as a CI step before a release tag. Read the verdict carefully — it is the whole design in one screen:

  • Three gate items block: product.accessibility is open; demo.recorded-fallback and demo.launch-review are open. Note that demo.launch-review is itself a gate — the review must exist as an artefact before it can pass, which is why the evidence file gets committed with decision: filled in at the meeting.
  • na is a claim that closes the item — on gates and tracks alike. safety.tenant-isolation, privacy.pia and ops.oncall are na with written reasons and count as satisfied. rel.dr is a track item marked na with a reason ("RPO 24h accepted") — it does not appear in the conditions list, because a justified na is a finished answer. An na without a note would surface exactly like open: it would block a gate and become a condition on a track.
  • Deferral is open + owner + due, not na. safety.disclosure-contact is open with due: 2026-12-08 — security.txt isn't published yet, but the item does apply, so it waits in the conditions list until doc.security-policy lands. Marking it na would have been a lie the tool can't catch but a reviewer can.
  • Missing counts once, in miss. A catalogue item absent from the evidence file increments miss and behaves as open for the verdict — but it is never double-counted, so every group row sums to the group's real size and items: always reads 78. You cannot shrink the checklist by omission.
  • Unknown and duplicate ids warn: eval.ci-gat (typo) is reported as an unknown id and the real eval.ci-gate stays missing — both problems surface. A repeated id warns too; the last entry wins.
  • Clean conditions need owner + due + honesty. Every condition above has an owner and a due date. A condition flagged NO OWNER or NO DATE — or one showing (na), which always means an unjustified na — is not launch-clean even when the verdict is GO-WITH-CONDITIONS; the launch record shouldn't sign off on it.

1.4 The worked example: Acme support copilot launch review#

Walk the report group by group, the way the review meeting would:

  • PRODUCT & UX — six of eight done. product.accessibility is the classic late discovery: the streaming UI was built before the 13A.4 checklist was applied, and aria-live politeness on streamed tokens was never verified. It is a gate because an inaccessible AI feature fails a whole class of users silently. product.feedback-loop is open but track — thumbs-down events exist, the exporter to evalkit cases is scheduled.
  • EVALUATION — the strongest group, because 13B.2 wired evals into the build plan from the start: the eval suite and CI gate landed at M5, before the ops milestones, not as an afterthought. eval.online-loop is the only gap: production signals aren't sampled yet because there is no production. Correctly a track item.
  • SAFETY & SECURITY — safety.tenant-isolation is na with a reason (single-tenant product); as a gate item the justified na satisfies it silently. safety.disclosure-contact is open with due: 2026-12-08 — security.txt isn't published yet, but the item does apply, so it's a tracked condition sharing its due date with doc.security-policy, the artefact that will close both. Deferral is open + owner + due; na is only for "doesn't apply".
  • PRIVACY & COMPLIANCE — privacy.pia is na with a real reason; privacy.deletion-runbook is open-track. For a product storing ticket metadata and 90-day feedback, the deletion path matters even pre-launch — it is scheduled.
  • RELIABILITY — rel.kill-switch is done because it was drilled (drill 2026-11-16: off→read-only→on in 40s). This is the difference between a kill switch that exists and one that works; 11C.4 §1.6 is explicit that an unfired kill switch is a hypothesis, not a control. rel.dr is na with a reason — stateless service, managed Postgres point-in-time recovery, accepted RPO — and because the reason is written, the track item closes the same way a gate na does: it never appears in the conditions list.
  • DEMO & LAUNCH — the newest group, and the one this lesson adds. demo.launch-review being open is the bootstrap paradox resolved honestly: you run the review, it reports NO-GO, you fix or schedule the three gates, you re-run, and then the evidence file records demo.launch-review: done with this report as its evidence.

After the meeting, the three gates close: accessibility gets its checklist run, the recorded fallback is captured, and the review itself is minuted. Re-running the script then yields GO-WITH-CONDITIONS — fourteen named track items, each with an owner and a due date inside 30 days. That output is the launch record: attach it to the release, and every post-launch review starts from it.

1.5 Go/no-go criteria that survive contact#

Three habits keep a launch review honest a month later:

  1. Pre-register the criteria. 10A.10 §7.5 owns this for evals; the same rule applies to the whole review. Write the hard gates before the review, not during it. Changing them after seeing results is allowed — but it is a decision, recorded with a name attached, not a tweak.
  2. Define rollback criteria in metrics, now. From 11C.4's launch review template: "we roll back if eval score < X, error rate > Y, cost/request > Z, or safety trigger rate > W." Vague rollback criteria become "we'll know it when we see it," which is never.
  3. The risk review uses the runbook classes as prompts. Top three ways this launch fails — for each: likelihood, impact, mitigation in place, detection if it fails. For an AI product the usual top three are: quality regression on a real traffic slice the eval set didn't cover; a cost spike from a retry loop or a popular prompt; and a safety trigger (injection, PII leak, abuse) the guardrails didn't catch. Each maps to a runbook you should already have from 11C.4 §1.5.

What this means for you as an engineer: the launch review is the first artefact in this module that is about judgement, not code. Its value is entirely in forcing five domains to be read together, with evidence, before a date. launch_review.py removes the excuse of "I forgot that checklist existed" — the catalogue is in the repo, the gaps are printed, and the verdict is reproducible. In a team you would wire this into CI or a launch tool; for a capstone, running it twice (once to find gaps, once to record the GO) is the professional version of the exercise.

1.6 Required deliverables for every capstone#

13B.1, 4.6 lists five deliverables every capstone ships. The launch review is where they are checked. Add them to the evidence file as gate items, so the verdict cannot be "go" without them.

Deliverable Launch criterion (write it before the review) Evidence to attach Blocks launch?
Tests The test command passes in CI with no key and no network A CI run link or the command output Yes
Eval set The eval gate passes at the pre-registered thresholds, was proven to fail once, and the case count is stated The gate output with the number of cases, and the failing run Yes
Tracing One full run is traceable end to end, spans carry ids, counts and outcomes, and a scan finds no secrets or customer text in them A saved trace and the scan result Yes for products that act on outside systems, otherwise a track item with an owner
Cost report Cost per task is computed from recorded usage, the price table has a date, and the number sits inside the cost budget of the PRD The report output and the pricing page date Track item with an owner and a due date
Security checklist Every row has a control and a proof, and prompt injection, least privilege and tool misuse (or the data and upload risks for non-agent builds) are covered The checklist file with a test or a trace per row Yes

How to wire it in:

  • Evidence file. Add one gate item per deliverable above, with an owner and an evidence artefact, using the same status words as the rest of the file (done, open, na with a note). A bare na still blocks, as in 1.3.
  • Pre-register the thresholds. The eval thresholds, the cost ceiling per task and the budget and step limits belong in the go/no-go criteria of 1.5, written before the review.
  • Controls from the build are evidence too. For a build with outside actions, the per-run budget, the kill switch and the approval step before writes (shown end to end in lesson 13B.4, Capstone Build D) each need a test, and the kill switch needs a drill, as in 2.5.
  • Eval tooling. DeepEval is the default framework for the eval set and the gate, evalkit is accepted, and Inspect AI is an optional extra. Keep a framework-neutral gate as well.

Part 2: Demoable and safe to share publicly#

2.1 The demo threat model#

A public demo URL is not a smaller version of production — it is production with zero trust assumptions. Within an hour of posting it, you will have:

  • Strangers pasting your demo into ChatGPT and asking it to "ignore your instructions" — prompt injection is not hypothetical on a public endpoint, it is the first thing hobbyists try.
  • Crawlers and scrapers harvesting whatever the demo returns.
  • Credit-card fraudsters and crypto miners who scan the internet for open endpoints that spend money on their behalf ("denial-of-wallet" — your API bill becomes their free compute).
  • People who will paste your demo key — or your real key, if you were careless — into their own scripts.

The good news: a demo has less to protect than production (synthetic data, no real users, no SLAs) and more exposure per dollar (unbounded public traffic on a metered API). The guardrail stack below is sized for exactly that.

2.2 The demo guardrail stack#

Think of the public demo as five concentric rings. Each ring is cheap; together they bound the worst case.

flowchart TD
    subgraph internet ["Public internet — anyone can reach this"]
        U["Strangers, crawlers,<br/>injection hobbyists"]
    end
    subgraph edge ["Ring 1 — edge & access"]
        RL["Rate limit per IP<br/>30 req/min"]
        AUTH["Demo key in URL/header<br/>not the provider key"]
    end
    subgraph app ["Ring 2 — application"]
        Q["Per-session quota<br/>10 questions/day"]
        IN["Input caps: length,<br/>attachments refused"]
        MODE["DEMO_MODE flag:<br/>synthetic corpus, no persistence"]
    end
    subgraph model ["Ring 3 — model gateway"]
        PIN["Pinned model + max_tokens cap"]
        TO["Timeout + bounded retries"]
        FB["Fallback: canned/cheaper path"]
    end
    subgraph spend ["Ring 4 — money"]
        SC["Provider hard spend limit<br/>+ app-side $/day counter"]
    end
    subgraph ops ["Ring 5 — operations"]
        KS["Kill switch: off / read-only"]
        MON["Dashboard: req/s, $/hr, errors"]
        LOG["Redacted logs; no keys,<br/>no PII"]
    end
    U --> RL --> AUTH --> Q --> IN --> MODE --> PIN --> TO --> FB --> SC
    SC -.-> KS
    KS -.-> MON
    MON -.-> LOG
Ring Control What it stops Owner lesson
Edge Per-IP rate limit; a bot challenge (for example Cloudflare Turnstile) before the first model call; demo key separate from provider key Scripted floods, anonymous bots, key confusion 12.10 §2 abuse layers
App Per-session/day quota; input length caps; DEMO_MODE flag Cost bleed, abuse of expensive features, real-data leakage this lesson; 13A.5 ports
Model Pinned model ID, max_tokens ceiling, timeout, fallback runaway generations, provider surprises 11C.2 §6.1, 03.8
Money Provider hard spend limit and app-side daily counter Denial-of-wallet — the single most important demo control this lesson §2.3; 12.10 denial-of-wallet
Ops Kill switch, live dashboard, redacted logging A demo that keeps burning money or embarrassing you after you've noticed 11C.4 §1.6, 08A.14 §7.2

Two rules make this stack honest:

  • The kill switch must be outside the thing it kills. An env var read at startup, a feature flag in your config, or a platform-level switch — not a code path the demo's own agent can disable. 08A.14 §7.2 is explicit: "an agent can't kill itself."
  • Demo mode is a data boundary, not a UI toggle. DEMO_MODE should swap the corpus to synthetic data and disable persistence, uploads and tool side-effects — enforced server-side, not hidden in the frontend.

2.3 Cost caps and quotas: the numbers that matter#

Cost control for a demo has two independent layers, because either alone has a hole:

Provider-side caps stop the bill at the source. As of November 2026, OpenAI lets you set a monthly spend limit per project or organization, but it only blocks traffic if you also turn on the Enforce a hard limit toggle: requests then fail with a 429 and the code project_spend_limit_exceeded (or organization_spend_limit_exceeded). Spend alerts notify without stopping anything, and the guide warns that enforcement is not instantaneous, so recorded spend can slightly exceed the cap (OpenAI spend-limits guide, opened 8 November 2026). Rate limits are set per organization and per project (RPM/TPM/TPD metrics), separate from the monthly usage limit of your tier. Anthropic and Google offer equivalent billing/budget controls; check each provider's billing page before launch, because the exact mechanism and granularity differ. The pattern to remember: cap at the provider and cap in your app — the provider cap is the last line of defence, the app cap is what gives you a graceful "demo is resting" message instead of a wall of 429s.

App-side caps shape the experience and bound spend per user. A demo budget worksheet:

text
Demo budget worksheet (fill in your own numbers)
  expected_demo_sessions_per_day      = 50
  avg_model_calls_per_session         = 4
  avg_cost_per_call                   = $0.004      (from your 13A.6 calculator)
  daily_model_cost                    = 50 × 4 × $0.004 = $0.80
  headroom for retries/abuse/virality = ×5           → $4.00/day
  provider hard cap (monthly)         = set to ~$10–15 for a demo-only key
  app-side per-session cap            = 10 questions OR $0.10, whichever first
  app-side per-IP rate limit          = 30 req/min

Set the provider cap at roughly 2–3× your expected daily spend, not at zero — a demo that dies at 2pm because it hit a $1 cap is a failed demo, and a cap that only bites at $500 is not a cap. The app-side per-session quota is what makes the demo feel bounded to a user ("you've used your demo questions — here's the repo link") rather than silently failing.

2.4 Demo data: synthetic only#

The single hardest rule: the public demo touches synthetic data only. No real support tickets, no real user emails, no production corpus — even "anonymised" real data leaks more than you think and creates privacy obligations you don't want.

  • Reuse the fictional corpus your capstone already built — the help-centre articles, handbook and tickets from Modules 05–08 and the 13B.2 build are synthetic by construction (10A.2 owns synthetic-data generation).
  • If your demo needs to look real, generate it: realistic-but-fake company names (Acme), fake order IDs (ORD-4821), fake but plausible questions. The 13B.3 document-intelligence build has a stdlib document generator you can adapt for fake invoices/contracts.
  • Tenant isolation still applies. If your demo shares infrastructure with anything real, the demo tenant gets its own namespace/filter — 06.6 owns the mechanics. For a solo capstone the honest version is: demo data lives in a separate corpus collection or database schema that a query cannot accidentally cross into.

2.5 The kill switch and monitoring for a demo#

A demo needs a tested kill switch more than production does, because you will actually need it — demos attract the exact traffic production guardrails were designed to absorb. Three positions, all reachable without a redeploy:

Position Behaviour Use when
normal Full demo Default
read-only / canned Answers from a fixed script or cached responses; no live model calls Provider outage, cost spike, or you need a guaranteed-working demo
off "Demo is resting" page + repo link Abuse, budget hit, or you're done demoing

Test it before you need it: flip to off, confirm the page, flip back. Thirty seconds, once, before launch — the same discipline 11C.4 §1.6 applies to production kill switches.

What to watch in the first 48 hours (the demo's "what pages you" list):

  • Request rate per IP — a single IP at 500 req/min is abuse, not interest.
  • Cost per hour vs your budget worksheet — the earliest sign of a runaway.
  • Error rate and refusal/block rate — a spike means either an attack or a prompt regression.
  • Top prompts (privacy-safe: store the prompt shape, not PII) — tells you what people actually try, including the injections.

Wire these to whatever dashboard your observability stack already has (11A.2); a demo doesn't need SLOs, but it needs eyes.

2.6 Hosting a public demo: compared as of November 2026#

You will not deploy anything in this lesson; you are choosing where a FastAPI + LLM demo could live. 11C.1 owns the deep comparison of request duration, SSE streaming and timeouts — read it before committing. This table adds the free-tier and demo-specific facts, re-read on each provider's official documentation or pricing page on 12 November 2026 (Vercel Hobby plan page, Render free-services page, Railway pricing, Fly.io pricing docs, Hugging Face Spaces overview, Cloud Run pricing, AWS Lambda pricing and limits pages); re-check before relying on a number.

Platform Free tier (as of Nov 2026) The limit that matters for an LLM demo Verdict for a demo
Vercel Hobby Free; non-commercial personal use only; 1M function invocations/mo; 100 GB transfer; functions max 300 s 300 s function cap + serverless cold starts; fine for short demos, risky for long streaming generations Good for a thin demo front-end; pair with a container backend for the LLM call
Render Free Free web service; spins down after 15 min idle, ~1 min cold start; 750 instance-hours/mo; ephemeral filesystem Cold start lands during your demo if traffic is sparse; no persistent disk Acceptable for async/batch demos; risky for a live-demo you need instantly
Railway $0 trial = $5 one-time credit, expiring after 30 days (railway.com/pricing FAQ); Free plan = $1/month usage credit, 1 vCPU/0.5 GB max Tiny free credit evaporates fast with an LLM proxy; metered per-second billing Good for a short-lived demo; watch the meter
Fly.io No free tier for new orgs; $1 trial credit / 7 days; smallest always-on machine $2.19/30 days Not free — but cheapest reliable always-on option; autostop/autostart Machines Best "real" demo if you'll pay ~$2–5/mo
Hugging Face Spaces Static Spaces free for everyone; Gradio/Docker need a paid plan (PRO), except up to 2 ZeroGPU Gradio Spaces for free accounts; default 2 vCPU/16 GB/50 GB disk Gradio is a different stack than your FastAPI app; Docker Spaces need PRO Easiest if you rebuild the demo in Gradio/Streamlit; awkward for your existing FastAPI
Google Cloud Run Free tier: first 240k vCPU-s + 450k GiB-s RAM/month (instance billing); pay per use Scale-to-zero cold starts; generous request timeout; SSE works Strong default for a containerised FastAPI demo at near-zero cost
AWS Lambda Free tier: 1M requests + 400k GB-s/month (Event Functions) Max 900 s timeout, but response streaming billed for full duration even on disconnect; Python needs a custom runtime for true streaming Possible but the most setup for an LLM stream; better as a thin proxy

The honest recommendation for a capstone demo: Cloud Run or Fly.io for a containerised FastAPI app (near-zero or ~$2/mo, real sockets, real timeouts), Vercel Hobby only if the demo is a thin front-end over a container backend, and HF Spaces only if you're willing to re-skin the demo in Gradio. Whatever you pick, write the choice and the limit that would break it into demo.hosting-decision — that is exactly what the launch-review item asks for.

2.7 Never publish a live key#

The demo's most common catastrophic mistake is not a clever attack — it is git push of a .env with a real provider key, or a key baked into a client-side bundle or a screenshot. The rules:

  • Demo keys are separate, restricted and rotatable. Create a dedicated provider key/project for the demo with its own spend cap — never reuse your development or production key. If it leaks, you rotate one demo key, not your whole setup.
  • .env is never committed. .env.example documents the names of variables, never values. Run a secret scanner (the demo.no-secrets evidence item expects a scan result — gitleaks is the common tool) before launch.
  • Keys live server-side only. The browser talks to your backend; the provider key never reaches the client. If your demo is a static page, it must call your API, not the provider directly.
  • Logs are redacted. Trace and log pipelines must strip keys, auth headers and PII before storage — 11C.4 §2.5 and 12.4 own the detail; a leaked key in a log is the same breach as a leaked key in git.
  • Treat the demo URL itself as untrusted input. Anyone can type anything into it — including prompt injections designed to make your model leak its system prompt or call tools. Your 12.x guardrails must hold on the demo path too; a demo is not exempt from being attacked.

What this means for you as an engineer: the demo guardrail stack is deliberately cheaper and simpler than production security — that's the point. You are not building a fortress; you are building a bounded box that makes the worst case "demo returns a canned apology" instead of "your card gets charged $400 overnight." Every control maps to a launch-review item (demo.*), so "we'll add guardrails later" shows up as a NO-GO, not a footnote.


Part 3: Documentation that ships with the product#

3.1 The documentation set#

A capstone's documentation is not a courtesy — for a portfolio piece it is part of the product, because the reviewer experiences your work through it before they ever run the code. The set below is what a shippable AI product carries; each row links to the lesson that owns the depth.

Artefact Audience Minimum content Owner
README Everyone, first What it is, who it's for, architecture in one diagram, quickstart, eval headline, links to docs 14B.3
Architecture overview Engineers C4 container diagram, the layers and why, data flows, the event contract 13A.5
Eval report Engineers, reviewers Setup, metrics + CIs, slices, failures, cost, decision 10A.10 §7.1
System card Users, auditors, reviewers What it does, data, limits, evals, risks, human oversight, contact 12.9 §7.6, §3.2 below
Runbook Whoever is on-call (you) Incident classes, detection signals, step-by-step response, escalation 11C.4 §1.5
Changelog Everyone One entry per release: what changed, why, eval impact this lesson §3.3
ADR index Engineers One line per decision → link to the full ADR 13B.1, 13A.5
Setup-in-ten-minutes A stranger with the repo Fresh clone → running, prerequisites explicit, timed this lesson §3.3, 14B.3 §2.3
LICENSE + third-party notices Legal-ish, reviewers A licence for your code; attribution for dependencies/models/datasets this lesson §3.4
Security policy Security researchers, users How to report a vulnerability, disclosure contact, scope 12.10 Part 5, §3.3
User-facing notices People who type into the live demo A privacy notice (what is processed, that text goes to the model providers, retention, "do not enter personal data"), short terms or acceptable-use text, and the AI disclosure from the copy deck 12.9 §3.1, 12.4, below
Security-review packet Enterprise procurement/security reviewers One-page architecture + data-flow diagram, threat-model summary, eval/safety results, penetration-test/red-team status, provider/subprocessor list, incident contact and breach-notification terms 13A.5 §7.4, 12.1, below

Three rules apply to all of them:

  • Docs are code. They live in the repo, are versioned, reviewed in the same PR as the change they describe, and carry dates on anything volatile ("as of November 2026"). A README that says "costs $0.01/ticket" without a date and a source is a liability, not documentation.
  • Every claim links to evidence. "Groundedness 0.91" links to the eval report; "approval gate on refunds" links to the ADR or code. The reviewer should be able to verify, not trust — that is the whole point of the eval-report and system-card formats.
  • The quickstart is tested, not assumed. Clone fresh, follow only the written steps, time it. If it takes 40 minutes, your "ten-minute guide" is a hypothesis. 14B.3 owns the README anatomy in depth; this lesson adds the AI-specific sections (evals, models, costs, system card) that a generic README template misses.

User-facing notices matter the moment a stranger can type into your demo. Keep them short and true: say what the demo does with what is typed (sent to the named model providers, logged in redacted form, deleted after a stated period), ask people not to enter personal or confidential data, say plainly that it is an AI system that can be wrong, and give a contact. Copy none of this from a template without checking it matches what your system actually does — the privacy notice is a claim your logging and retention code must back up. This is engineering awareness, not legal advice; if the demo ever handles real users' data, get proper review.

The security-review packet is the artefact enterprise procurement actually asks for — and the one a portfolio capstone can produce honestly. It is a short document (SECURITY_REVIEW.md) assembled from pieces you already have rather than written from scratch: a one-page architecture and data-flow diagram (the C4 container view from your architecture overview, annotated with where PII enters, where it is tokenised, and which subprocessors see what); a threat-model summary pointing at your 13A.5 §7.4 threat model and the 12.1 methodology behind it; your eval and safety results (the eval report's safety slice plus the red-team report from 12.8); an honest penetration-test status line — for a portfolio capstone, "self-assessment plus the Module 12.8 red-team exercise" is the truthful answer, and saying so beats a vague "audited" claim; the provider/subprocessor list (every model API, host and dataset the system touches, with regions and retention terms from their DPAs); and the incident contact plus breach-notification terms from your security policy. Write it for the reviewer deciding whether your system can touch their data: what you protect, what you don't, and where the residual risk sits.

3.2 The system card for your product#

A model card documents a model — and the provider already wrote it. A system card documents your deployed system: the model plus your app, your data, your safeguards, your evals, your known limits. 02.6 §9.4 explains why labs publish them; 12.9 §7.6 gives you a compliance-focused generator in llm_guard_kit.responsible.build_system_card. This lesson adds ai_product/system_card.py: the product-level card — the one that lives in your repo's root as SYSTEM_CARD.md, names your eval results and cost envelope, and is what a reviewer or user actually reads.

The design rule, borrowed from 12.9: an incomplete card is a finding, not a formatting issue. missing_fields() returns the required fields still empty, so you cannot ship a card that says "TODO" in the limitations section.

python
# ai_product/system_card.py
"""Render a product-level system card as Markdown from a Pydantic model."""
from __future__ import annotations

from typing import ClassVar

from pydantic import BaseModel, Field


class ProductSystemCard(BaseModel):
    product: str
    version: str
    owner: str
    review_date: str
    model_providers: list[str]
    intended_use: list[str]
    out_of_scope: list[str]
    data: list[str]
    evals: list[str]
    safety: list[str]
    human_oversight: list[str]
    limitations: list[str]
    contact: str
    cost_envelope: str = ""
    operations: list[str] = Field(default_factory=list)
    demo_url: str = ""

    REQUIRED: ClassVar[tuple[str, ...]] = (
        "product", "version", "owner", "review_date",
        "model_providers", "intended_use", "out_of_scope", "data",
        "evals", "safety", "human_oversight", "limitations", "contact",
    )

    _SECTIONS: ClassVar[list[tuple[str, str]]] = [
        ("model_providers", "Models and providers"),
        ("intended_use", "Intended use"),
        ("out_of_scope", "Out-of-scope uses"),
        ("data", "Data"),
        ("evals", "Evaluations"),
        ("safety", "Safety measures and red-team summary"),
        ("human_oversight", "Human oversight and recourse"),
        ("cost_envelope", "Cost envelope"),
        ("operations", "Operations (runbook, on-call, kill switch)"),
        ("limitations", "Known limitations"),
        ("demo_url", "Demo"),
        ("contact", "Contact"),
    ]

    def missing_fields(self) -> list[str]:
        missing = []
        for name in self.REQUIRED:
            v = getattr(self, name)
            if v is None or v == "" or v == []:
                missing.append(name)
        return missing

    def to_markdown(self) -> str:
        lines = [f"# System card: {self.product}", "",
                 f"- **Version:** {self.version}",
                 f"- **Owner:** {self.owner}",
                 f"- **Review date:** {self.review_date}", ""]
        for field_name, title in self._SECTIONS:
            value = getattr(self, field_name)
            if not value:
                continue
            items = value if isinstance(value, list) else [value]
            lines += [f"## {title}", ""] + [f"- {i}" for i in items] + [""]
        return "\n".join(lines).rstrip() + "\n"


# Filled-in example: the Acme support copilot from 13B.2.
SUPPORT_COPILOT = ProductSystemCard(
    product="Acme Support Copilot",
    version="1.0.0",
    owner="Support Platform team",
    review_date="2026-11-20",
    model_providers=[
        "OpenAI gpt-6-luna (pinned snapshot gpt-6-luna-2026-10-01)",
        "Fallback: Anthropic claude-haiku-5-5 via provider_agnostic client",
    ],
    intended_use=[
        "Draft reply suggestions for support agents, with handbook citations",
        "Look up order status and create tickets under agent approval",
        "Escalate to a human when confidence is low or policy requires it",
    ],
    out_of_scope=[
        "Sending replies to customers without an agent pressing send",
        "Issuing or promising a refund without a named human approval",
        "Legal, medical or financial advice of any kind",
    ],
    data=[
        "Public help-centre articles and the internal support handbook (RAG corpus)",
        "Ticket metadata: order ID, category, status — no payment card data",
        "Agent edits and thumbs feedback, retained 90 days for evals",
    ],
    evals=[
        "docs_qa golden set: 120 cases, groundedness 0.91 (CI 0.86–0.95)",
        "Tool-use suite: 40 scenarios, pass^3 = 0.88",
        "Injection suite (12.8): 60 adversarial retrieved docs, 0 leaks",
    ],
    safety=[
        "Prompt-injection defences on retrieved tickets (spotlighting + canaries)",
        "PII redaction on ticket text before it reaches the model",
        "Approval gate on create_ticket / issue_refund; audit log append-only",
        "Red-team pass 2026-11-14: 3 findings, all fixed and regression-tested",
    ],
    human_oversight=[
        "Every customer-facing reply is drafted, never sent autonomously",
        "Every refund is staged for a named human approver and audit-logged; none is issued autonomously",
        "Weekly sample audit: 20 drafts reviewed by a support lead",
    ],
    limitations=[
        "Answers can be wrong when retrieval misses the right article",
        "English only; other languages are out of scope until evaluated",
        "Order lookup covers the last 18 months only",
    ],
    contact="support-ai-review@acme.example",
    cost_envelope="<= $0.02 per agent-assisted ticket (13A.6 calculator)",
    operations=[
        "Runbook: docs/runbook.md — seven incident classes",
        "On-call: support platform rotation, escalation to #ai-incidents",
        "Kill switch: SUPPORT_COPILOT_MODE=off routes to plain search",
    ],
    demo_url="https://copilot-demo.acme.example",
)

if __name__ == "__main__":
    missing = SUPPORT_COPILOT.missing_fields()
    if missing:
        print(f"INCOMPLETE CARD — missing: {', '.join(missing)}\n")
    print(SUPPORT_COPILOT.to_markdown())

Run it (uv run python -m ai_product.system_card) — real output:

text
# System card: Acme Support Copilot

- **Version:** 1.0.0
- **Owner:** Support Platform team
- **Review date:** 2026-11-20

## Models and providers

- OpenAI gpt-6-luna (pinned snapshot gpt-6-luna-2026-10-01)
- Fallback: Anthropic claude-haiku-5-5 via provider_agnostic client

## Intended use

- Draft reply suggestions for support agents, with handbook citations
- Look up order status and create tickets under agent approval
- Escalate to a human when confidence is low or policy requires it

## Out-of-scope uses

- Sending replies to customers without an agent pressing send
- Issuing or promising a refund without a named human approval
- Legal, medical or financial advice of any kind

## Data

- Public help-centre articles and the internal support handbook (RAG corpus)
- Ticket metadata: order ID, category, status — no payment card data
- Agent edits and thumbs feedback, retained 90 days for evals

## Evaluations

- docs_qa golden set: 120 cases, groundedness 0.91 (CI 0.86–0.95)
- Tool-use suite: 40 scenarios, pass^3 = 0.88
- Injection suite (12.8): 60 adversarial retrieved docs, 0 leaks

## Safety measures and red-team summary

- Prompt-injection defences on retrieved tickets (spotlighting + canaries)
- PII redaction on ticket text before it reaches the model
- Approval gate on create_ticket / issue_refund; audit log append-only
- Red-team pass 2026-11-14: 3 findings, all fixed and regression-tested

## Human oversight and recourse

- Every customer-facing reply is drafted, never sent autonomously
- Every refund is staged for a named human approver and audit-logged; none is issued autonomously
- Weekly sample audit: 20 drafts reviewed by a support lead

## Cost envelope

- <= $0.02 per agent-assisted ticket (13A.6 calculator)

## Operations (runbook, on-call, kill switch)

- Runbook: docs/runbook.md — seven incident classes
- On-call: support platform rotation, escalation to #ai-incidents
- Kill switch: SUPPORT_COPILOT_MODE=off routes to plain search

## Known limitations

- Answers can be wrong when retrieval misses the right article
- English only; other languages are out of scope until evaluated
- Order lookup covers the last 18 months only

## Demo

- https://copilot-demo.acme.example

## Contact

- support-ai-review@acme.example

Note what the card does not contain: hype, benchmark leaderboards, or claims you can't link to an eval. "Groundedness 0.91 (CI 0.86–0.95)" is a claim with a confidence interval and a pointer to the eval report — the reviewer can check it. That is the difference between a system card and a marketing page.

3.3 Docs that age well#

The artefacts above share one failure mode: they are written once and silently rot. The anti-rot rules:

  • Date every volatile claim. Prices, model IDs, limits, "as of November 2026" — same rule as the lessons themselves. A cost figure without a date is wrong by default.
  • The changelog is per-release, not per-commit. One entry per shipped version: what changed, why, and the eval/rollback impact. It is the fastest way for a reviewer (or future you) to see how the system evolved.
  • The ADR index is one line per decision. docs/adr/0001-streaming-gateway.md → "Chose SSE over WebSocket for the event contract — see ADR." An index that requires opening every ADR is not an index.
  • The security policy is a disclosure contact, not a wall. [12.10 Part 5](../12-safety-security/10-security-operations-and-checklist.md) owns coordinated disclosure; for a capstone, a SECURITY.md with a contact email and "please don't test on systems you don't own" is enough — but it must exist, because its absence signals "nobody is watching."

3.4 Choosing a licence and writing notices#

The last row of the table is the one everyone skips — and the one a reviewer notices first, because an unlicensed repo grants no permissions to anyone: all rights reserved is the legal default. Two separate artefacts live here, answering different questions. LICENSE says what others may do with your code; third-party notices say what you must attribute for code, models and data you didn't write.

LICENSE — choosing one for your own code. The choice belongs to you as the author; no tool, provider or course picks it for you, and the consequences are real (patent grants, copyleft reach, commercial restrictions). The families:

Family SPDX ids What it means in practice
Permissive MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0 Anyone may use, modify and redistribute — including commercially — with the copyright notice kept. Apache-2.0 adds an explicit patent grant from contributors.
Copyleft GPL-3.0-only, GPL-3.0-or-later, LGPL-3.0-only, AGPL-3.0-only Derivatives must be shared under the same licence; AGPL extends the obligation to users interacting over a network; LGPL is the weaker library form. (-only vs -or-later decides whether future licence versions apply.)
Public domain / zero-rights CC0-1.0, Unlicense Everyone may do anything, no conditions — common for data and docs, rare for code.
Documentation CC-BY-4.0 Attribution-only — a typical licence for docs when the code carries a software licence.

For a portfolio capstone the pragmatic choice is permissive — MIT or Apache-2.0 — because it maximises reuse and asks almost nothing back. Copyleft is a deliberate statement about how you want derivatives treated; choose it knowingly, not by default. The SPDX License List is the canonical registry of identifiers, verified as of November 2026.

THIRD_PARTY_NOTICES — attribution for what you didn't write. Your repo contains three categories of borrowed material:

  • Dependencies. Every package in pyproject.toml/uv.lock carries its own licence. Tools like pip-licenses list what your environment actually installed; the notices file records each component's name, version, SPDX id (where one exists) and where the full licence text lives.
  • Model and platform terms. The provider's terms of service govern what you may do with outputs. They are not open-source licences, but they belong in the file because they constrain reuse — "the API allows X" is a contract term, not a licence grant.
  • Data and model licences. Datasets, corpora and open-weight models each carry licences that can restrict commercial use — for example, Meta's Llama community licences (the Llama 2 text at ai.meta.com/llama/license, opened 11 November 2026) require a separate licence from Meta once your products exceed 700 million monthly active users, and each Llama release ships its own licence text. Read the licence page for the exact model version you use; a summary is not the licence.

SPDX identifiers keep the notices machine-readable and unambiguous — Apache-2.0 is a fact; "the Apache licence" is a guess. doc.license-notices closes when LICENSE exists and the notices file covers dependencies plus model/data terms — "we'll add notices later" is the same species of gap as "we'll add evals later."

What this means for you as an engineer: documentation is the cheapest evidence in the launch review and the most-skipped. The doc.* group exists because every team that skipped it regretted it at 2am during the first incident. Write the runbook before the incident, the system card before the demo, and the setup guide before you need a second pair of eyes — because you will.


Part 4: The demo#

Deep-dive

4.1 Choose the story, not the feature list#

A demo is an argument, not a tour. The argument for an AI product is: here is a job a real person has, watch the product do it, and here is the proof it works and knows its limits. Everything in the demo serves that argument; anything that doesn't is garnish at best, risk at worst.

Pick one spine — one user job, followed end to end — and let the impressive parts hang off it:

Story shape Spine Best for
The task walkthrough One ticket/question/document, start to finish Copilots and assistants (support copilot, doc intelligence)
The failure handled live A request the system can't answer, shown abstaining gracefully Any product — proves honesty better than a perfect answer
The evals reveal The product, then the numbers that prove it Engineering audiences who distrust demos
The before/after The old workflow vs the new one, timed Business audiences, "time saved" claims

Know your audience and weight the beats accordingly: a hiring manager wants to see judgement (why this architecture, what could go wrong, what you'd do next); a peer engineer wants to see craft (the eval numbers, the failure handling, the clean seams); a user or stakeholder wants honesty about limits. The same product, three different demos — the spine is constant, the emphasis moves.

4.2 The three-minute script: anatomy#

Three minutes is the portfolio-demo budget — long enough to show a real job, short enough to survive attention spans and scheduling. The beat sheet below is the shape; demo_script.py (§4.3) generates it from data.

Beat Time Job Content
Hook 0:00–0:20 Make them care The user's problem, concretely — "40 tickets an hour," not "an AI assistant"
The job 0:20–1:00 Show it working The product doing the spine task live
The hard part 1:00–1:45 Show the seams The approval gate, the citation, the edit — the parts that prove it's a product, not a wrapper
The proof 1:45–2:30 Show the evidence Eval numbers and one honest failure handled well
The engineering 2:30–2:55 Show the craft Architecture in one diagram, cost per task, the kill switch
Close 2:55–3:00 Point to the repo "Evals, runbook and system card are all in the repo. Questions."

Rules that make it work:

  • Show the seams, not just the happy path. The approval gate, the citation chip, the abstention message — these are what distinguish an AI product from "I wrapped an API." They are also your best answer to "isn't this just ChatGPT?"
  • Rehearse to 2:30, not 3:00. Leave 30 seconds of slack; a live hiccup costs nothing if the script has room.
  • The failure beat is mandatory. Show one request the system handles badly-but-honestly — retrieval miss → abstention, injection attempt → blocked, low confidence → escalation. It demonstrates the evals and the guardrails better than any slide.
  • One idea per beat. If a beat needs a second sentence of setup, it is two beats or it is cut.

4.3 demo_script.py: the generator#

ai_product/demo_script.py turns a list of beats into a timed, printable script with per-beat fallback notes, and checks the total against your time budget. It exists because a demo script written in your head drifts under pressure; written as data, it is checkable and shareable.

python
# ai_product/demo_script.py
"""Generate a timed demo script from beats; check it against a budget."""
from __future__ import annotations

from dataclasses import dataclass, field


@dataclass(frozen=True)
class Beat:
    """One demo segment. `say` is what you say; `show` is what the audience
    sees; `fallback` is the recorded/canned path if the live version fails."""
    start_s: float
    end_s: float
    title: str
    say: str
    show: str
    fallback: str = ""


@dataclass
class DemoScript:
    product: str
    audience: str
    beats: list[Beat] = field(default_factory=list)
    budget_s: float = 180.0

    def duration(self) -> float:
        return max((b.end_s for b in self.beats), default=0.0)

    def over_budget(self) -> float:
        return max(0.0, self.duration() - self.budget_s)

    def beats_without_fallback(self) -> list[str]:
        """Titles of beats that can only work live — the risky ones."""
        return [b.title for b in self.beats if not b.fallback]

    def render(self) -> str:
        def mmss(s: float) -> str:
            s = int(round(s))
            return f"{s // 60}:{s % 60:02d}"
        out = [f"DEMO SCRIPT — {self.product} — audience: {self.audience}",
               f"budget {mmss(self.budget_s)} — planned {mmss(self.duration())}"]
        if self.over_budget():
            out.append(f"WARNING: over budget by {mmss(self.over_budget())}")
        risky = self.beats_without_fallback()
        if risky:
            out.append(f"no fallback for: {', '.join(risky)}")
        out.append("")
        for b in self.beats:
            out.append(f"{mmss(b.start_s)}–{mmss(b.end_s)}  {b.title.upper()}")
            out.append(f"    say:   {b.say}")
            out.append(f"    show:  {b.show}")
            if b.fallback:
                out.append(f"    if it breaks: {b.fallback}")
            out.append("")
        return "\n".join(out)


# The support copilot demo, filled in for the 13B.2 build.
SUPPORT_COPILOT_DEMO = DemoScript(
    product="Acme Support Copilot",
    audience="hiring manager + peer engineers",
    beats=[
        Beat(0, 20, "Hook",
             "A support agent gets 40 tickets an hour. Watch one get handled.",
             "Screen: inbox with 40 unread tickets, timer visible",
             "Recorded clip of the same inbox"),
        Beat(20, 60, "The job",
             "Agent opens ticket #4821 — a refund question. Watch the copilot draft "
             "a reply with citations to the handbook.",
             "Live: ticket → drafted reply → two citation chips",
             "Recorded run of ticket #4821 with same citations"),
        Beat(60, 105, "The hard part",
             "Refunds always need a named human approval — so nothing is sent yet. "
             "The agent edits, approves, and the audit log records who decided what.",
             "Live: approval gate → edit → send → audit entry",
             "Recorded approval flow; canned 'policy requires approval' card"),
        Beat(105, 150, "The proof",
             "It isn't a wrapper. 120-case eval: groundedness 0.91. And here's an "
             "honest failure — retrieval missed, the UI said so instead of guessing.",
             "Eval report slide + a deliberately failed query showing abstention",
             "Static eval slide + recorded abstention clip"),
        Beat(150, 175, "The engineering",
             "FastAPI with every provider behind a port; cost per ticket under two "
             "cents; the kill switch is one env var.",
             "Architecture diagram (one slide) + cost table",
             "Same slides — no live dependency"),
        Beat(175, 180, "Close",
             "Capstone, evals, runbook and system card are all in the repo. "
             "Questions.",
             "Repo README + system card on screen",
             "Same — always works"),
    ],
)

if __name__ == "__main__":
    print(SUPPORT_COPILOT_DEMO.render())

Run it (uv run python -m ai_product.demo_script) — real output:

text
DEMO SCRIPT — Acme Support Copilot — audience: hiring manager + peer engineers
budget 3:00 — planned 3:00

0:00–0:20  HOOK
    say:   A support agent gets 40 tickets an hour. Watch one get handled.
    show:  Screen: inbox with 40 unread tickets, timer visible
    if it breaks: Recorded clip of the same inbox

0:20–1:00  THE JOB
    say:   Agent opens ticket #4821 — a refund question. Watch the copilot draft a reply with citations to the handbook.
    show:  Live: ticket → drafted reply → two citation chips
    if it breaks: Recorded run of ticket #4821 with same citations

1:00–1:45  THE HARD PART
    say:   Refunds always need a named human approval — so nothing is sent yet. The agent edits, approves, and the audit log records who decided what.
    show:  Live: approval gate → edit → send → audit entry
    if it breaks: Recorded approval flow; canned 'policy requires approval' card

1:45–2:30  THE PROOF
    say:   It isn't a wrapper. 120-case eval: groundedness 0.91. And here's an honest failure — retrieval missed, the UI said so instead of guessing.
    show:  Eval report slide + a deliberately failed query showing abstention
    if it breaks: Static eval slide + recorded abstention clip

2:30–2:55  THE ENGINEERING
    say:   FastAPI with every provider behind a port; cost per ticket under two cents; the kill switch is one env var.
    show:  Architecture diagram (one slide) + cost table
    if it breaks: Same slides — no live dependency

2:55–3:00  CLOSE
    say:   Capstone, evals, runbook and system card are all in the repo. Questions.
    show:  Repo README + system card on screen
    if it breaks: Same — always works

Two details in the output are the tool doing its job: every beat has a fallback (no "no fallback for:" warning), and the planned time equals the budget exactly — over_budget() returns 0. Delete a fallback and the risky beat is named; add ten seconds and the warning prints. That is the difference between a demo script and a demo plan.

4.4 Recording and the live-demo risk plan#

Record the fallback first. Before you ever go live, capture a clean screen recording of the whole demo — the "demo you can't break." It serves three purposes: the fallback if live fails, the async version for people in other time zones, and the artifact you critique to improve the live version. Record at 1080p, clean desktop (hide bookmarks bar, notifications, personal tabs), and add captions — the recording is also your accessibility artefact.

The live-demo risk register — the five ways a live AI demo actually fails, and the mitigation for each:

Risk What it looks like Mitigation
Provider latency spike / outage The "thinking" spinner runs 30s; the demo dies in silence Pre-warm the path; have the recorded clip cued; kill switch → canned mode
Rate limit / quota hit Your own demo caps (from §2.3) fire mid-demo Demo uses a separate high-enough quota; know the reset time
Awkward audience question Someone asks something the product can't do, live The failure-handled-live beat is the answer — show the abstention
Demo data confusion The model answers from a different ticket than expected Use one fixed, memorable demo ticket (#4821); reset state before each demo
You lose your place Nerves, a wrong click, a skipped beat The script is on a second screen or printed; beats are 20–45s, recoverable

The meta-rule: the live demo's job is to prove the recorded one is real. If live adds nothing over the recording, give the recording and spend the saved time on Q&A.

4.5 Q&A preparation and the one-page summary#

Anticipate the five hardest questions and prepare honest answer shapes, not scripts:

Question The honest answer shape
"What happens when it's wrong?" Walk the failure-state map: abstention, escalation, the eval that would have caught it, the feedback loop that adds it to the dataset
"Why not just use ChatGPT / a managed RAG?" What your product adds that the generic tool doesn't: domain corpus, approval gates, evals, cost controls, the UX seams
"What did you actually build vs use?" Be precise: the model is rented; you built the retrieval, the tools, the policy layer, the evals, the UX, the ops. That is the AI-engineer job
"How do you know it works?" The eval report: dataset size, metrics with CIs, the CI gate, the honest failure slice
"What would you do next?" The retro's gap list — this is where "iterate" in the lesson title lives

The one-page project summary is the demo's paper trail: problem, users, what it does, the eval headline, the cost per task, the link to repo + system card + eval report, and one "what I'd build next." It feeds directly into 14B.2 (the capstone as flagship) and 14B.3 (the README it summarizes) — write it once, reuse it everywhere.

What this means for you as an engineer: the demo is the cheapest place to practice the skill that matters most in AI engineering — communicating probabilistic systems honestly. A demo that shows only success teaches the audience to distrust you; one that shows the seams and the failures teaches them to trust your judgement. That judgement is what the rubric, the portfolio and the interview are all measuring.


Part 5: Post-launch operation#

Deep-dive

Launch day is the start of operations, not the end of the project. The machinery for this already exists in 11C.4 (operating cadence, incident lifecycle, runbooks) and 12.10 (incident response, abuse, vulnerability management); this part applies it to a capstone and adds the AI-specific rhythms.

5.1 The first week: what to watch#

The first week after launch is when the difference between "evals passed" and "production reality" shows up. Watch daily:

Signal What it tells you Where it lives
Error rate / latency p95 Is the service healthy? 11A.2 dashboards
Cost per hour vs budget Is the unit economics holding? 11B.1, 13A.6 calculator
Eval spot-checks (10–20 outputs read by hand) Are real outputs matching eval expectations? The "look at traces Friday" ritual from 10A.10 §8.2
Feedback queue (thumbs-down, reports) What are users actually hitting? 13A.3 feedback design
Top failure modes Which of the 13A.4 taxonomy states are firing? failure→message map logs
Security/abuse events Is anyone probing the demo/prod endpoint? 12.10 Part 1 event schema

The first week ends with a short written note: what surprised you, what broke, what you'd change. That note is the seed of the retro (§6).

5.2 Feedback triage#

Production feedback is the raw material for the next eval dataset — the data flywheel 10A.2 and 10A.9 own:

  • Weekly triage ritual: collect thumbs-down, reports, edits and abandonments; cluster by failure type; promote the recurring ones into labelled eval cases with provenance.
  • Don't let feedback disappear. A thumbs-down with no "what was wrong" taxonomy and no destination is a vanity metric — 13A.3 owns the feedback-design patterns; the triage step is where they pay off.
  • Watch for feedback-loop bias: users who abandon silently leave no signal; position bias makes early suggestions look better; survivorship means you only hear from people who stayed. 10A.9 §2.5 owns the corrections.

5.3 The incident drill#

Before you need it, run one incident drill — a tabletop exercise where you walk a realistic failure scenario through your runbook without actually breaking anything. 11C.4 §5.2 owns game days and chaos drills; 12.10 §3.6 has three LLM-specific tabletop scenarios; 08A.14 §7.3 has the agent incident playbook.

For a capstone, a 60-minute tabletop covers it:

  1. Pick a scenario: "a prompt injection in a retrieved ticket makes the copilot leak its system prompt" or "the model provider has a 2-hour outage during demo week."
  2. Walk the runbook: detection → containment (kill switch? fallback?) → assessment (blast radius) → fix → verify → write-up.
  3. Find the gaps: the step that had no runbook entry, the alert that wouldn't have fired, the rollback that was never tested. Each gap becomes a runbook entry, an alert, or an eval case.
  4. Schedule the real drill within 30 days of launch — that is the ops.tabletop track item in the launch review.

The drill's real output is not "we handled it" — it is the list of things that would have gone wrong. That list is worth more than the exercise.

5.4 Model deprecation and upgrade plan#

Providers deprecate and retire models on their own schedule — 02.9 Part 8 owns the lifecycle (aliases vs snapshots, notice periods) and 11C.2 §6.2–6.3 owns the deprecation watch and upgrade playbook.

Your plan, in one paragraph: pin snapshot model IDs, not drifting aliases (the release.model-pins gate); record the exact model ID in every trace and the system card so an incident ties to a version; watch the provider's deprecations/changelog page on the quarterly cadence; and when a deprecation notice arrives, run the upgrade playbook — eval the candidate model on your suite, canary it, promote only if the eval gate stays green. A model upgrade is a release, not a config tweak: it goes through the same eval-gate → canary → rollback path as any other change (11C.2 §8).

5.5 Cost review and eval refresh#

Two monthly rhythms keep the system honest:

  • Cost review (11C.4 §7.3 weekly, 13A.6 monthly): spend vs budget, cost per successful task (retries and failures count), cache hit rate, fallback-model usage, and the unit-economics sheet under current prices. A rising cost-per-success with flat usage means retry loops or a prompt regression, not growth.
  • Eval refresh: new production failure modes → new labelled cases → dataset version bump → re-run the suite. Judge drift check (10A.5) if you use LLM judges — a silently upgraded judge shifts scores without any code change.

5.6 The maintenance cadence and sunsetting#

The operating cadence from 11C.4 §7.3, applied to a capstone:

Cadence What you do
Daily/weekly On-call handoff (it's you), incident review, alert hygiene, cost spot-check, feedback queue triage
Monthly SLO/error-budget review, capacity check, dependency/upgrade review, vendor price check, eval refresh
Quarterly Maturity self-assessment, access review, retention-schedule review, tabletop exercise, system-card review date
Per trigger Model deprecation notice, provider price change, security advisory, incident, contract renewal

Sunsetting responsibly — when the capstone is superseded, abandoned or no longer worth its cost:

  • Communicate first: tell users with a notice period proportional to impact (a demo can sunset in a week; a product others depend on needs a migration path).
  • Export and delete data per the retention schedule (11C.4 §3, 12.4) — "we deleted your data" must be true across logs, traces, caches, vector store, backups.
  • Keep the record: archive the repo, evals, system card and postmortems — the history is the portfolio evidence, even if the service is off. Sunsetting is not deleting your work; it is ending the operation honestly.

What this means for you as an engineer: post-launch operation is where "I built an AI feature" becomes "I operate an AI system." The cadence is deliberately lightweight for a capstone — the point is the habit of reviewing cost, evals, security and docs on a schedule, because that habit is what separates an engineer who ships demos from one who runs products.


Part 6: Retrospective and self-assessment#

6.1 The honest retro#

A retrospective is a structured look back, not a victory lap or a blame session. Use this template (adapted from 11C.4 §1.7's blameless framing) — fill it in within a week of launch, while the surprises are fresh:

markdown
# Retrospective — <capstone name> — <date>

## What shipped
- Launch date, verdict (GO / GO-WITH-CONDITIONS), conditions and their status
- The one-line version: what the product does and for whom

## What worked
- The 3 things that went better than expected (be specific: which eval,
  which UX decision, which shortcut paid off)

## What didn't
- The 3 things that went worse (be specific: which milestone slipped,
  which eval surprised you, which assumption broke)

## Evidence
- Eval report link, launch-review output, cost-per-task actuals vs estimate,
  incident/drill notes, feedback themes from week one

## What I would do differently
- Ordered list, most-important first. Each item: what, why it matters,
  what I'd change in the *process* (not just the product)

## Next iteration
- The top 3 gaps from the rubric self-assessment (§6.2) → backlog
- One thing to stop doing, one thing to start, one thing to keep

The discipline that makes a retro honest: every claim points at evidence. "Evals were strong" links the eval report; "scoping was too ambitious" links the milestone plan showing what slipped. A retro without evidence is a story; with evidence it is engineering.

6.2 Self-assessment against the rubric#

13B.1 owns the capstone rubric — the four-level criteria covering functionality, quality/evals, UX, architecture, safety, operations/cost, documentation and demo. Apply it honestly now that the product exists:

  1. Score each criterion with the evidence level you actually reached — not the level you aimed for. "Documentation: level 3" means the README, system card, runbook and eval report all exist and were verified by someone else running them.
  2. The gap list is the deliverable. Every criterion below your target becomes a backlog item with an owner and a rough effort. This is the "iterate" in the lesson title made concrete.
  3. Peer review if you can. 13B.1 defines the peer-review instructions; a second pair of eyes on the rubric catches the self-grade inflation everyone is susceptible to.

A worked example of honest scoring: the Acme copilot scores well on evals (level 3 — CI-gated, sliced suite; level 4 needs calibrated judges and cases grown from real production failures, which a product with no traffic yet cannot have) and documentation (level 3 — full doc set, system card generated), medium on operations (level 2 — runbooks and kill switch exist, but on-call is "me" and no real incident yet), and honestly lower on UX polish (level 2 — failure states mapped but accessibility checklist still open, which is exactly the product.accessibility gate that held the launch review at NO-GO).

6.3 Mapping the capstone to Module 14A skills#

The capstone is not just a project — it is the evidence base for the career module. Each artefact demonstrates a skill Module 14B will ask about:

Capstone artefact Skill it demonstrates Where Module 14B uses it
Launch review + evidence file Release judgement, evidence-based decisions 14B.2 portfolio, 14B.7 system-design interviews
Eval report + CI gate Evaluation rigour, knowing what "works" means 14B.2, résumé bullets
System card + runbook + ADRs Production documentation, operational maturity 14B.3 README, 14B.5 résumé
Demo script + recording Communication, demo craft, honest failure handling 14B.2 flagship piece, live interviews
Cost/unit-economics sheet Business awareness, unit economics 14B.7 "how much does this cost?" questions
Retro + "what I'd do differently" Growth mindset, engineering judgement 14B.8 behavioural rounds

6.4 Where next#

  • Module 14B — Career Appendix is the direct continuation: it takes everything you built across Modules 00–13 and turns it into a portfolio, a GitHub presence, a résumé and interview readiness. Start with 14B.2 (the capstone as flagship) and 14B.3 (the README that presents it).
  • Keep the capstone alive. The operating cadence from Part 5 doesn't stop because the course ended — a portfolio piece that is still running, still evaluated and still improved is worth more than a screenshot. Pick one stretch project from the module's projects if you want a second build.
  • The learning doesn't end at launch. New models ship monthly; the deprecation watch, eval refresh and retro habits you built here are how you stay current — 14A.9 owns that practice.

Common misconceptions#

Misconception Reality
"The eval suite passing means it's ready to launch." Evals cover what you measured; the launch review covers what you didn't — security, ops, docs, demo safety, cost. Both are needed; neither substitutes for the other.
"Five separate checklists is thorough." Five documents nobody reads together is how items fall through the cracks. The combined review exists because the intersection is where launches fail.
"A na on the checklist means it doesn't apply." na is a claim that needs a written reason — an unexplained na blocks exactly like open. "Not applicable" without evidence is just an unmarked gap.
"A demo doesn't need guardrails — it's just a demo." A public demo is production with zero trust assumptions: unbounded traffic on a metered API, strangers probing for injection, your card at risk. The guardrail stack is cheaper than production security, which is why you can afford it.
"You can reuse your dev API key for the demo." A leaked demo key should cost you one restricted, rotatable key — not your whole setup. Demo keys are separate, capped and revocable for exactly this reason.
"Hosting free tier = free demo." Free tiers spin down (Render), cap function duration (Vercel 300 s, Lambda), or expire (Railway's $1/mo credit). For a live streaming demo, predictable latency beats free — a $2/mo always-on container is cheaper than a failed demo.
"The system card is the provider's job." The provider writes the model card. You write the system card — your app, your data, your evals, your limits. An application without one has undocumented behaviour.
"Docs can wait until after launch." The runbook written after the incident is a postmortem, not a runbook. The system card written after the demo is marketing, not documentation. Write them before you need them.
"A recorded demo is a cop-out." The recording is the guarantee; the live demo is the proof. Give both — the recording ensures delivery, the live version earns trust. The best demos are the ones that can't fail.
"Launch is the finish line." Launch is when operations starts: first-week monitoring, feedback triage, incident drills, model deprecation watches, cost reviews. The cadence is the job now.
"A good retro is about what went right." A retro that only lists wins is a victory lap. The value is in "what I'd do differently" — ordered, evidenced, and turned into next iteration's backlog.

Key takeaways#

  • One launch review, one record. Consolidate the five checklists (08A.14 agents, 10A.10 evals, 11C.4 production, 12.10 safety, 13A.1–13A.6 product) into a single evidence-based review with owners, required artefacts and a GO / GO-WITH-CONDITIONS / NO-GO verdict. launch_review.py makes the gaps visible and the verdict reproducible.
  • Evidence, not claims. Every checklist item names the artefact that proves it. done needs evidence; na needs a written reason — on gates and tracks alike; unsatisfied track items need owner + due date to be launch-clean conditions. Missing items count once under miss and behave as open — you can't shrink the checklist by omission.
  • A public demo is production with zero trust. Guardrails are cheaper than you think: per-IP rate limits, per-session quotas, provider hard spend caps plus app-side budgets, synthetic data only, a tested kill switch, redacted logs, and separate rotatable demo keys.
  • Never publish a live key. Demo keys are restricted, capped and revocable; .env is never committed; keys live server-side only; logs are redacted.
  • Docs are the product's evidence. README, architecture overview, eval report, system card (system_card.py), runbook, changelog, ADR index, setup guide, LICENSE/notices and security policy — each links to proof, each is dated, each is tested.
  • Demo = argument, not tour. One spine (a real user job), six beats in three minutes, show the seams and one honest failure, rehearse to 2:30, record the fallback first.
  • Launch is the start of operations. First-week monitoring, feedback→eval flywheel, a tabletop incident drill, a model deprecation/upgrade plan, monthly cost + eval refresh, and a maintenance cadence — then sunset responsibly with data export/deletion and an archived record.
  • Close the loop honestly. Retro with evidence, score the 13B.1 rubric without inflation, turn gaps into backlog, and map every artefact to the Module 14B skills it proves.

Terms introduced in this lesson#

Term One-line definition
Launch evidence file The YAML file listing each checklist item's status, owner, evidence artefact and due date — the input to launch_review.py
Go/no-go criteria The pre-registered rules deciding whether a launch proceeds, including rollback thresholds written before launch
Rollback criteria The specific metric thresholds ("roll back if eval < X, errors > Y") committed at launch review, not improvised during an incident
Required deliverables The five items every capstone ships and the launch review checks: tests, an eval set, tracing, a cost report and a security checklist
Risk acceptance A documented decision to launch with a known, named gap — allowed, but recorded with an owner and date, never a silent shortcut
Demo guardrail stack The layered controls (edge, app, model, spend, ops) that bound what a public demo can cost or leak
Demo mode A server-side flag that swaps in synthetic data and disables persistence/side-effects for the public demo path
System card (product-level) A document describing your deployed AI system — model, app, data, evals, safeguards, limits — distinct from the provider's model card
Demo script A timed, beat-by-beat demo plan with per-beat fallback notes, generated from data by demo_script.py
Copyleft A licence family (GPL, AGPL, LGPL) requiring derivatives to be shared under the same licence — the opposite of permissive
Security-review packet A short SECURITY_REVIEW.md for enterprise reviewers: data-flow diagram, threat-model summary, eval and red-team results, honest test status, subprocessor list, incident contact
SPDX identifier The standard short code for a licence (MIT, Apache-2.0, GPL-3.0-only) used in licence files and third-party notices

(All are also collected in the glossary; terms like launch review, kill switch, runbook, system card, operating cadence, synthetic data and tabletop exercise were already defined in earlier modules and are reused here.)


Exercises#

All exercises run without any API key — they use fixture files and the deterministic scripts from this lesson.

  1. Run the launch review. Save the worked-example evidence.yaml from 1.3 into your capstone repo and run uv run python -m ai_product.launch_review evidence.yaml. The verdict is NO-GO with three open gate items. Flip all three — product.accessibility, demo.recorded-fallback and demo.launch-review — to done (for demo.launch-review, the evidence is this review's own output, minuted at the meeting) and re-run: confirm the verdict changes to GO-WITH-CONDITIONS with 14 named track conditions. Flipping only product.accessibility is not enough — watch the other two gates keep it at NO-GO. Finally add a fake id eval.ci-gat to the evidence file and observe the unknown-id warning plus the still-missing real item.
  2. Generate your own evidence scaffold. Run uv run python -m ai_product.launch_review --template > evidence.yaml in your capstone repo. Fill in done/na/open for your own project honestly — the gaps it prints are your real pre-launch backlog.
  3. Write your system card. Fill in ProductSystemCard for your capstone (not the support copilot) and run uv run python -m ai_product.system_card. Check missing_fields() output first — every empty required field is a documentation gap. Iterate until it returns [].
  4. Build your demo script. Take your capstone's milestones and write the six beats (hook → job → hard part → proof → engineering → close) as Beat objects. Run uv run python -m ai_product.demo_script and check: does it fit 180s? Which beats lack a fallback?
  5. Record and critique a demo. Record a 3-minute screen capture of your capstone (or do a dry run with slides). Critique it against the beat sheet: did you show the seams? Did you show one honest failure? Was there a fallback for every live beat?
  6. Plan the 30-day cadence. Write the daily/weekly/monthly/quarterly/per-trigger table for your capstone — what you will actually check, how often, and what would trigger an off-cycle review.
  7. Hosting decision. Pick a platform for your demo from the §2.6 table. Write three sentences: the choice, the free-tier limit, and the specific condition under which it would break your demo.
  8. Retro draft. Fill in the §6.1 retro template for your capstone now, before launch — what you expect to ship, what you expect to break. Compare it to the real retro a month later.
Hints for the exercises
  1. After the three flips the report should read gate items open: 0 and name 14 track conditions. If the verdict stays NO-GO, read the blocker lines: a gate flipped to done but spelt differently (demo.recorded-fallback versus demo.recorded_fallback) shows up as an unknown id and leaves the real item missing.
  2. Start with the gate items (the # [gate] comments in the template) and mark honestly. A first run that says NO-GO is the tool working; each blocker line is a task with an owner.
  3. The most common empty fields are limitations and human_oversight. A limitation you cannot name is a sign you have not red-teamed your own product yet.
  4. If the script says "no fallback for: ...", add the recorded clip or canned path to that Beat; if it warns about the budget, cut a beat rather than speaking faster.
  5. Ask a friend to watch without sound for the first minute: if the beats are not visible without narration, your show column is too thin.
  6. Put the quarterly row's items on a calendar with real dates; a cadence that is not scheduled is a wish.
  7. The "limit that would break it" should be a number from the table (for example Render's 15-minute idle spin-down) tied to your demo's traffic pattern.
  8. Write the prediction before launch and file it in the repo; the value is the comparison, so date it.

Check yourself#

  1. Why does the combined launch review exist when five separate checklists already cover the domains?
  2. What is the difference between a gate item and a track item, and what does each require to pass?
  3. Why does na without a note block a gate item exactly like open?
  4. In launch_review.py, what happens if your evidence file omits a catalogue item entirely?
  5. What are the two independent layers of demo cost control, and why do you need both?
  6. Name three things a public demo must never expose, and the control for each.
  7. Why is synthetic data non-negotiable for a public demo, even "anonymised" real data?
  8. What are the three positions of a demo kill switch, and why must it be outside the app's own code path?
  9. Which hosting platforms have a genuinely free tier for a containerised FastAPI app as of November 2026, and which has no free tier at all?
  10. What is the difference between a model card and a system card, and who writes each?
  11. What does ProductSystemCard.missing_fields() protect against?
  12. What are the six beats of the three-minute demo, and which one is mandatory and why?
  13. Why record a fallback demo before attempting the live version?
  14. What are the six signals to watch in the first week after launch?
  15. What makes a model upgrade a "release" rather than a config tweak?
  16. Which five deliverables does every capstone need before the launch review, and which of them would you treat as a blocking gate?
  17. Why must the required deliverables run with no key, and what do you do about the numbers that need a real model?

Further resources#


Appendix: the ai_product package#

This lesson adds the final three files to the package — the module's tooling is now complete at 24 files. The consolidated listing; full code lives in the lessons that introduced each file (13B.1's appendix has the same table as of the planning lesson).

File Introduced in What it provides
__init__.py — package marker
feature_brief.py 13A.1 AI feature brief model, issues() validator for missing/risky combinations, score_use_case() decision-table scorer
events.py 13A.2 Typed product event contract (meta, status, token, reasoning, tool_start, tool_end, citation, suggestion, warning, error, usage, reset, heartbeat, done) + SSE encoder
smoother.py 13A.2 ChunkSmoother: bursty provider chunks → paced stream on an injected clock; replay(..., max_seconds=60.0), metrics
progress.py 13A.2 ProgressTracker: step-status events for multi-step agent work
approval.py 13A.3 ApprovalGate state machine: pending → approved/rejected/edited/expired, timeouts, audit entries, escalation hook
review_queue.py 13A.3 Priority review queue with sampling and confidence routing (AUTO/REVIEW/AUDIT); unknown risk tiers and missing or NaN confidence route to REVIEW
feedback.py 13A.3 Typed feedback events, JSONL store, exporter to evalkit cases
failure_ui.py 13A.4 Maps internal error/finish/policy signals to typed UserMessage (severity, copy key, actions, retryable)
copy_catalog.py 13A.4 User-facing copy catalogue with i18n keys
markdown_safety.py 13A.4 Stdlib rendering-safety sketch for model output
a11y_lint.py 13A.4 Accessibility checklist linter for UI spec JSON
ports.py 13A.5 ModelPort, RetrieverPort, ToolsPort, StorePort interfaces + in-memory fakes
app.py 13A.5 FastAPI app factory: dependency-injected ports, health route, request IDs, event stream endpoint (stream errors are logged server-side; only a fixed message goes on the wire)
jobs.py 13A.5 In-process job runner with states and idempotency keys
metrics.py 13A.6 Event aggregator: acceptance rate, edit distance, escalation rate, p50/p95 latency
experiment.py 13A.6 Stdlib two-proportion z-test, seeded bootstrap CI, sample-size calculator
unit_economics.py 13A.6 Cost-per-successful-task calculator with retry/failure/caching/review inputs, plus the ticket-level CostModel adapter that 13B.2's cost report uses
case_card.py 13A.7 Pydantic model + Markdown renderer for case-study cards; every claim needs a source URL and date
scope_check.py 13B.1 Lints capstone.yaml: schema, eval linkage, NFRs, risk register, scope-vs-timebox heuristics, --root file checks
scaffold.py 13B.1 Generates the capstone repo skeleton (pyproject, .env.example, README, ADR-0001, capstone.yaml verbatim, seeded evals/cases.jsonl + evals/ci_cases.jsonl, src package, smoke test)
launch_review.py this lesson Consolidated 78-item launch checklist (11 groups, gate/track, owner + required evidence); mini_yaml_loads evidence file → gap report → GO / GO-WITH-CONDITIONS / NO-GO verdict; --template scaffold
system_card.py this lesson ProductSystemCard Pydantic model → Markdown system card; missing_fields() completeness check
demo_script.py this lesson Beat/DemoScript: timed demo script generated from data, per-beat fallbacks, budget check, risky-beat report

← 13B.5 — Capstone Build C: The Realtime Voice Agent Product | Module 13B overview | Module 14A: Working as an AI Engineer Here →

Esc
02.2Tokens and TokenizationHow LLMs Work · 21k wordsLesson
02.3EmbeddingsHow LLMs Work · 18k wordsLesson
07Retrieval-Augmented Generation (RAG)11 lessons · Everyone who will build LLM features that must answer from knowledge the model doesn't have in its weights: internal handbooks and help centres, contracts, ticket histories, product docs, or any corpus that changes faster than a training run. The module covers the full RAG stack — architecture, retrieval strategy, query understanding, grounded generation, citations, conversation, managed services, advanced patterns, evaluation, debugging and production operation — and shows where each major provider's managed retrieval and citation features fit (OpenAI, Anthropic, Google Gemini and OpenRouter). All code is Python.Overview
08E.1The Model Context Protocol (MCP)Protocols and Extensibility · 12k wordsLesson
↑ ↓ navigate↵ openesc close