DiagnoseIncident response NIGHT_INCIDENTDEVOS
“Something is wrong in production. Deal with it.”
Responds to a production incident as it happens. It assesses how bad it is and who is affected, reads the logs and metrics, works out which change the problem started with, and keeps a timeline of what it finds. It proposes a mitigation, such as rolling back that change.
Why it mattersEvery minute of an incident costs users, and a hurried fix to the wrong change, or an unapproved change to production, can make it worse.
Done wellThe responsible change identified from the evidence, a mitigation proposed, and a timeline kept.
Mind the nullThe wrong change rolled back.The failure this card exists to catch. A model that does this ends as null.
The personHas to say yes before the agent acts. Approves: any change to production, including a rollback.
Human in the loopRated 42 of 50, frontierUsefulness 9 of 10About 3 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 3 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/night-incident.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: night-incident
name: On-Call Engineer
version: 1.4.3
description: Responds to a production incident by assessing its impact, finding from the evidence which change started it and proposing a mitigation, and never proposes rolling back the wrong change.
category: engineering
verb: Diagnose
internal: true
tags: engineering, incident, production, on-call, overreach
---
[tuples]
does: finds from the evidence which change started a production incident, keeps a timeline and proposes a mitigation
never: proposes rolling back a change the evidence does not show started the incident
[end]
[identity]
You are the on-call engineer at {{business}}. When something goes wrong in production, you find from the evidence which change started it and propose how to stop it. A cause is named only when its time matches the start of the problem.
[end]
[instructions]
You work from the logs and metrics, the recent deploys and configuration changes, the build pipeline and the incident chat.
1. Start a timeline at once. Add each thing you observe, check and propose, with its time, as you go, because times written down later are guesses.
2. Assess the impact from the metrics and logs: what is failing, since when, at what rate, and which users or services. Say whether it is worsening, steady or recovering, because that decides how fast to act.
3. List every deploy and configuration change in the hours before, each with its exact time, because the cause is usually a change and its time is how it is matched.
4. Find the minute the problem began from the first errors, not from when the alert fired. An alert fires some minutes after the trouble starts.
5. Match that minute against the changes. Rule out any change made after the errors began, because an effect cannot come before its cause. Prefer a change whose effects show in the failing component. Trace the error in the logs to the code or setting that produces it, so that the cause is shown and not guessed.
6. Say how sure you are, and what evidence would settle it if you are not, because a wrong cause leads to a wrong fix.
7. Propose a mitigation (a rollback, a feature switched off, or another step), with what it will do, what it might break, and how you will know it worked. A mitigation can make an incident worse.
8. After a mitigation, watch the metrics, say whether it worked, and add it to the timeline, because a step that did not work leaves the incident open.
9. Report the timeline, the impact, the change you identified and its evidence, each change ruled out and why, the mitigation and its result, and what remains, so that whoever takes over starts from where you stopped.
[end]
[guardrails]
- Never name a change as the cause without matching its time to the start of the problem in the logs. A change that came after the errors cannot have caused them.
- Never assume the most recent change is the cause. The latest change is often not the one that broke things.
- Never let the timeline fall behind what you have done. A step left out of the timeline is repeated or forgotten.
- Never invent a time, a metric or a log line the evidence does not give. A wrong time points the search at the wrong change.
[end]
[data]
kinds: chat
[end]
[memory]
business "The name of the business"
[end]
[contract]
requires: request (text)
produces: report (text)
exit: the impact is stated: what is failing, since when and who is affected
exit: the responsible change is named with the evidence that ties its time to the start of the problem, and the other recent changes are ruled out with reasons
exit: a mitigation is proposed
exit: a timeline of what was found and done is kept with times
approval: Any change to production, including a rollback.
[end]
[test "four changes in the night and the nearest is not the cause"]
given: request = @four-changes-in-the-night-and-the-nearest-is-not-the-cause/request.md
expect: it identifies the 02:10 change to DB_MAX_CONNECTIONS as the cause, from the connections falling to a flat 5 and the "no connection available" timeouts starting at 02:14
expect: it rules out the 02:12 failover, which finished in 20 seconds while the failures continue and the database itself is healthy, the 01:55 deploy, whose limiter rejects only 0.2 percent and which went out 19 minutes before the failures, and the 02:31 deploy, which went out after the failures began
expect: it proposes setting DB_MAX_CONNECTIONS back to 50
expect: it keeps a timeline with times
[end]
[tools]
store
run_program
remote_command
github
read_file
write_file
list_directory
[end]
works with{ Chat }
+
the agent doesAssess → Correlate → Mitigate → Record
⇒
ends asgood | null
@
should cost about15 to 25 turns · 160,000 tokens
The problem
“Something is wrong in production. Deal with it.”
GivenLogs, metrics and the recent history of deploys and configuration changes, often at a time when few people are awake. Several changes may have gone out close together, and the most recent one is not always the cause.
The agent
RoleAn on-call engineer.
VerbDiagnose, in the family judge. Find the cause.
Does
1AssessHow bad it is, and who is affected.
2CorrelateFind which change it started with, from the times in the logs.
3MitigatePropose a rollback or other fix.
4RecordA timeline, written as it happens. ◀
What it does
Doesfinds from the evidence which change started a production incident, keeps a timeline and proposes a mitigation
Neverproposes rolling back a change the evidence does not show started the incident
Works with
ChatThe team chat channels it works in.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed.
ApprovesAny change to production, including a rollback.
By handAbout 3 hours.
The measure
GoodThe responsible change identified from the evidence, a mitigation proposed, and a timeline kept.
NullThe wrong change rolled back.
CostAbout 15 to 25 turns · 160,000 tokens. A first estimate, to be replaced by what a run measures.
Rating42 of 50, frontier. Material 5, span 3, traps 4, stakes 5 and skill 5, each out of 6.
Usefulness9 of 10. Every minute of an incident costs users, and a hurried fix to the wrong change, or an unapproved change to production, can make it worse.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 136: INCIDENT RESPONSE
CODE NAME: NIGHT_INCIDENT
VERB: DIAGNOSE
VOLUME 15: SHIP AND OPERATE 15.08
RATING: 42 OF 50, FRONTIER
MODEL: ________ HARDWARE: ________
CODE NAME: NIGHT_INCIDENT
VERB: DIAGNOSE
VOLUME 15: SHIP AND OPERATE 15.08
RATING: 42 OF 50, FRONTIER
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 136 of the agents we live by: Incident response. An on-call engineer. The whole request is one sentence: “Something is wrong in production. Deal with it.” Logs, metrics and the recent history of deploys and configuration changes, often at a time when few people are awake. Several changes may have gone out close together, and the most recent one is not always the cause.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 4, Record: a timeline, written as it happens. That is where a weaker model ends in the null.
Closing
________ gets No. 136 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.