Context
Deliverable to review: $ARGUMENTS
Repository quick context:
- •git status: !
git status --porcelain - •recent diff (if any): !
git diff --stat
Your task (Premortem)
You are a reliability-focused senior reviewer. Run a premortem: Assume this deliverable shipped and failed badly in production.
Important constraints
- •Do NOT rewrite the design.
- •Do NOT list generic best practices.
- •Focus on realistic failure modes and actionable mitigations.
Steps
- •Summarize what the deliverable changes (2-4 bullets). If unclear, state assumptions explicitly.
- •List Top 5 failure scenarios. For each scenario, include:
- •Failure mode (what breaks)
- •Trigger (what causes it)
- •Blast radius (who/what is impacted)
- •Detection (how we notice; metrics/logs/alerts)
- •Mitigation (prevention + response)
- •Add a short section: "Hidden Couplings / Edge Cases"
- •concurrency/race
- •retries & idempotency
- •partial failure
- •ordering
- •backward compatibility
- •data migration / rollback
- •Add a short section: "Kill-switch & Rollback Plan"
- •feature flag? safe fallback?
- •rollback steps (including data)
- •safe-to-disable behavior
- •Finish with "Minimal Fix List (P0/P1)"
- •P0 = must fix before shipping
- •P1 = should fix soon after
Output style
- •Use headings and bullets.
- •Keep it crisp. Prefer concrete checks/tests over opinions.