What problem does it solve? When an agent-scaffold workflow fails a stage, burns past its spend cap, gets rejected at the implement gate, or fails a sandbox egress test, teams need a structured postmortem within 48 hours — but gathering logs, spend data, and approval records manually is slow and error-prone. ## Core Features & Use Cases - Trigger Verification: Confirms a real trigger event fired (failed stage > $1, rejected gate, cap overrun, sandbox failure) against state.json and logs before drafting, refusing phantom postmortems. - Evidence Archiving: Copies runlogs, stage outputs, approval excerpts, and LiteLLM spend reports into a dated archive folder under docs/postmortems/ without modifying originals. - Root-Cause Discipline: Enforces mechanism-based root causes (not "the model hallucinated") using a 5-whys reference guide. - Actionable Outcomes: Routes every action item to a concrete PR target with a GitHub-handle owner and a due date within 14 days. - Use Case: After the dispatcher exits with a spend-cap overrun on workflow credit-check-v2, ask the agent to draft the postmortem; it verifies the trigger, archives evidence, builds a UTC timeline, and produces a ready-to-commit markdown document. ## Quick Start Draft a postmortem for the failed workflow credit-check-v2 using the runlog and spend logs in this repo.