Write up an incident researched or debugged in this session as
docs/reports/<yyyy-mm-dd>-<slug>.md, covering what broke, when, the
customer impact, the root cause, and the fixes. The session is the source:
assemble what it already established (symptoms, logs, HAR captures, code
paths, causes) rather than starting a new investigation.
- Gather the facts from the conversation, plus the date from
date +%F, the author fromgit config user.name, and a short kebab-case slug such asrace-conditions-draft-creation. When the session has no answer for a template field, ask the user: an unverified timeline or impact claim is worse than a gap. Done when every field has a sourced answer or the user has filled it. - Decide incident or bug. An incident degraded a customer-facing service, so it has a detection time and a period of impact. A bug found before it degraded production gets a plain bug report: say so, and drop Severity, Detection, and the Timeline's mitigated and resolved rows. Done when the report type is chosen.
- Write the report using the template, following
conventions-markdown and
CONCISE-PROSE.md. Cite every factual claim:
path/to/file.go:42for code, log timestamps for events, capture filenames for evidence. Label any uncited claim "unverified assumption" and say how to verify it. Done when everypath:lineresolves. - Report the path, and offer to-plan if a long-term fix warrants it. Done when the path is reported.


