AI features fail in production in ways staging never showed — new input distributions, adversarial users, cost spikes. This playbook writes the staged rollout plan with cohort gates, guardrail metrics, and kill criteria, plus the two AI-specific additions: eval-score gates at each stage and a rehearsed prompt/model rollback procedure.
Workflow area: Launch & GTM · Tier: Advanced · Hands-on time: ~40 minutes
A conventional feature flag plan asks "does it work?" at each stage. An AI rollout must also ask "is it still good?" — because the feature can function perfectly while quality degrades on real traffic — and "what exactly do we roll back to?" — because the deployable unit isn't just code: it's a prompt version, a model version, and a config, and rolling back one without the others reproduces a state you never tested. Writing the plan is 40 minutes; running a launch without one is a quarter of firefighting.
Define the stages and who's in each. Standard ladder: internal dogfood → design partners (opt-in, named) → 5% random → 25% → 100%. For each stage write: entry criteria (the previous stage's gate), duration floor (minimum bake time — a week at 5% catches weekly-pattern traffic that a day doesn't), and the cohort rule in your flag tool (LaunchDarkly segment or Statsig gate definition).
Attach three gate types to every stage. This is the AI-specific move — draft with Claude:
Write stage gates for an AI feature rollout.
Feature: [DESCRIPTION + WHAT BAD OUTPUT COSTS]
Metrics ladder: [PASTE FROM YOUR pb-41 SPEC — acceptance,
containment, complaint rate, cost per outcome]
Launch bar: [PASTE FROM pb-40 — eval thresholds]
Stages: dogfood, design partners, 5%, 25%, 100%
For each stage produce:
1. EVAL GATE — which eval suites must pass at what threshold
before entering the stage (offline, pre-promotion).
2. GUARDRAIL METRICS — live metrics with numeric bounds that must
hold DURING the stage (quality proxy, complaint rate, p95
latency, cost/day), each with a measurement window.
3. KILL CRITERIA — conditions triggering immediate rollback
without a meeting, each with the single person authorized to
pull it (and the on-call fallback).
Make kill criteria objective: numbers and time windows, not
"significant degradation."
Sample output for one stage:
STAGE: 5% random
Eval gate: full golden suite ≥ launch bar on the exact prompt+model
version being promoted.
Guardrails (7-day window): acceptance ≥ 80% of design-partner
baseline · complaint rate < 0.5% of sessions · cost/day ≤ 1.3×
forecast · p95 ≤ 6s.
Kill (immediate, no meeting): any PII leak report · complaint rate
> 2% in any 6h window · cost/day > 3× forecast · screenshot-class
output verified by on-call PM. Authorized: PM (you); fallback:
eng on-call.
Write the rollback procedure as a runbook, not a sentence. "Roll back" must name the unit: flag off (seconds, safest, feature disappears), prompt version revert (minutes — only works if prompts are versioned per pb-51), model version pin (minutes, needs the old version still provisioned), full config revert (prompt + model + retrieval together — the only combination you've actually tested). Default rule: kill switch first, diagnose second, partial reverts only in daylight.
Decide the comms lines before you need them. Three pre-written snippets: in-product notice if the feature vanishes mid-session, support macro for "where did it go?", and internal announcement for a pulled stage. Users forgive a disappeared beta feature; they don't forgive silence about wrong outputs.
Rehearse the rollback once at dogfood stage. Actually pull the flag, actually revert a prompt version, time both, and note what broke (cached responses? stale clients?). pb-52's incident drill builds on this; the rollout plan is only real after one rehearsal.
Cohort assignment is an experiment on users — check that your terms and privacy notices cover beta AI processing of their data at each stage, and that design partners have signed the appropriate data-use terms before their content reaches a new model.
For AI features the rollout plan is a quality instrument, not a deployment schedule — eval gates decide what enters a stage, guardrails decide what stays, and a rehearsed rollback decides how bad the worst day gets.