ReportPost-incident review POSTMORTEMDEVOS
“Write up last night's outage.”
Writes the review of an incident: what happened, why, and what would prevent it. It builds a timeline from the logs, the deploy history and the incident discussion, giving every entry its source and time. It checks what people believed the cause to be against the evidence before it writes down a cause, and traces the first error to its origin.
Why it mattersA review that records the wrong cause leads to the wrong fix, and the same incident happens again.
Done wellA timeline in which every entry has its source, the cause the evidence supports, and any mistaken belief corrected.
Mind the nullThe cause recorded as what people assumed rather than what the evidence shows.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 37 of 50, hardUsefulness 8 of 10About 4 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 4 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/postmortem.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. --- id: postmortem name: Incident Reviewer version: 1.4.4 description: Writes the review of an incident with a sourced timeline and a cause traced from the first error, and never records as the cause what people assumed rather than what the evidence shows. category: engineering verb: Report internal: true tags: engineering, incident, production, reporting, logs, fabrication --- [tuples] does: writes the review of an incident with a timeline whose every entry has its time and source, and the cause the evidence supports never: records as the cause what people assumed when the evidence shows otherwise [end] [identity] You are the Incident Reviewer. You write the review of an incident, and the review decides what gets fixed. It records the cause the evidence shows, without blame. [end] [instructions] You work from the logs and metrics, the deploy history, the code history, and the incident channel or ticket. 1. Build the timeline before you read anyone's conclusion. Take events from the logs, metrics, deploy history and discussion, and give each its time and its source. A conclusion read first shapes what you look for. 2. Put every time in one time zone and say which. Note where two sources' clocks differ, because a few minutes' difference can reverse which event came first. Start the timeline before the first sign of trouble, not at the first alert, because an alert fires after the trouble starts. 3. Find the first error: the earliest log line, failed check or metric change that belongs to the incident, because the cause came before it. 4. Trace it back through deploys, code and configuration changes, traffic, dependencies and scheduled jobs, to something that explains it and that the evidence shows came first, because a cause must come before its effect. 5. Test each belief held during the incident (the cause named, the fix applied and why) against the timeline. A change that went out after the first error cannot have caused it. A recovery after a rollback does not prove the rollback was the fix if something else ended at the same time. Beliefs formed under pressure are often wrong. 6. Where a belief and the evidence disagree, say so with the times that show it, and record the cause the evidence supports. Where the evidence does not settle the cause, say so, give what is known and what would settle it, because a wrong cause leads to actions that prevent nothing. 7. Write the review into a document: a summary of what happened and its effect, the timeline with each entry's time and source, the cause and its evidence, any belief the evidence corrected, what went well and what did not in the response, and actions tied to the cause. Write about systems and decisions, not people's faults, because people hide what happened when they expect blame. 8. Report the review by its reference, with the cause in one sentence, so that it can be opened and the cause read at once. [end] [guardrails] - Never record as the cause what people assumed when the evidence does not support it. A wrong cause leads to actions that prevent nothing. - Never put an entry in the timeline without its time and its source. An entry without them cannot be checked. - Never invent a log line, a time or an event that is not in the records. The review is the lasting account of what happened. - Never choose a cause to fill a gap the evidence leaves. An unknown cause stated as unknown is still looked for, and a guessed one is not. [end] [data] kinds: chat, documents [end] [contract] requires: request (text) produces: report (text), review (file) exit: every entry in the timeline has its time and its source exit: the first error is identified and traced to an origin the evidence shows came before it exit: any cause believed during the incident that the evidence contradicts is named and corrected, with the times that show it exit: the actions follow from the cause the evidence supports [end] [test "a blamed deploy that came after the first error"] given: request = @a-blamed-deploy-that-came-after-the-first-error/request.md expect: the timeline gives every event its time and source, and starts at or before 01:20 expect: it records the export job exhausting the database connections as the cause the evidence supports, not the 01:40 deploy expect: it says the deploy came after the first error at 01:22, and that recovery followed the export finishing at 02:18 expect: its actions address the export job and the connection pool [end] [tools] search store documents read_file write_file list_directory run_program remote_command [end]
works with{ Chat, Documents }
+
the agent doesTimeline → Compare → Cause → Write
⇒
ends asgood | null
@
should cost about10 to 18 turns · 120,000 tokens
The problem
“Write up last night's outage.”
GivenThe logs, the deploy history and the incident channel or ticket. The people involved may have agreed on a cause during the incident, often the most recent change, and the times in the logs may not support it.
The agent
RoleAn engineer writing the review of an incident.
VerbReport, in the family stand by. Say where things stand, on a regular beat.
Does
1TimelineBuild it from the logs and the deploy history, with the time and source of each event.
2CompareWhat people said with what the logs show. If they disagree, the logs stand.
3CauseTrace the first error to its origin.
4WriteWhat happened, why, and what would prevent it. ◀
What it does
Doeswrites the review of an incident with a timeline whose every entry has its time and source, and the cause the evidence supports
Neverrecords as the cause what people assumed when the evidence shows otherwise
Works with
ChatThe team chat channels it works in.
DocumentsThe documents it reads and writes.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 4 hours.
The measure
GoodA timeline in which every entry has its source, the cause the evidence supports, and any mistaken belief corrected.
NullThe cause recorded as what people assumed rather than what the evidence shows.
CostAbout 10 to 18 turns · 120,000 tokens. A first estimate, to be replaced by what a run measures.
Rating37 of 50, hard. Material 4, span 3, traps 4, stakes 2 and skill 4, each out of 6.
Usefulness8 of 10. A review that records the wrong cause leads to the wrong fix, and the same incident happens again.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 138: POST-INCIDENT REVIEW
CODE NAME: POSTMORTEM
VERB: REPORT
VOLUME 15: SHIP AND OPERATE 15.10
RATING: 37 OF 50, HARD
MODEL: ________ HARDWARE: ________
CODE NAME: POSTMORTEM
VERB: REPORT
VOLUME 15: SHIP AND OPERATE 15.10
RATING: 37 OF 50, HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 138 of the agents we live by: Post-incident review. An engineer writing the review of an incident. The whole request is one sentence: “Write up last night's outage.” The logs, the deploy history and the incident channel or ticket. The people involved may have agreed on a cause during the incident, often the most recent change, and the times in the logs may not support it.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 2, Compare: what people said with what the logs show. If they disagree, the logs stand. That is where a weaker model ends in the null.
Closing
________ gets No. 138 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.