The alarm was on the frontend. The bad release was in checkout.

A lab incident from my Argus demo shop, written the way I would write one at work: the timeline, the eleven checks the agent made, the one-line fix, and the gaps in my own tool that this run exposed. Two of them are now fixed.

Postmortem, lab incident by Debanjan Das, . 5 minute read.

This is a lab incident, not a production one. The data is the bad-deploy scenario that ships in the Argus repo, replayed over MCP, the same protocol a live run uses, with the model switched off. I use the postmortem format because it is how I would write this at work, and because you can run it yourself and check every line.

Run it yourself
git clone https://github.com/debanjan0212/argus-sre-agent.git && cd argus-sre-agent
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

python -m argus investigate --scenario evals/scenarios/01-bad-deploy.yaml
make demo-pr   # same incident, ending in a rollback commit in a throwaway Git repo

The same fault can be injected into the kind lab with make break SCENARIO=bad-deploy, which switches checkout to the 1.4.0 image. The numbers on this page come from the recorded scenario, not from a live cluster.

Summary

AlertHighErrorRate on frontend: 5xx above 5% for 5 minutes, severity page
What users saw18% of frontend requests failing. Normal is 0.2%.
Actual causecheckout release argus-demo/shop:1.4.0 throws KeyError: 'currency' on POST /checkout
Where the alarm pointedfrontend, one service above the cause
Proposed fixroll checkout back to 1.3.2: one line, on a Git branch
Alert to proposalunder one second, 11 read-only tool calls
Who applies ita person, by merging the pull request

Timeline

WhenWhat happened
T − 7 mincheckout revision 8 (1.4.0) finishes rolling out. Revision 7 (1.3.2) went out two days earlier.
T − 5 min, at the latestfrontend 5xx goes above 5%. The alert rule waits for five minutes above the threshold before it fires.
THighErrorRate fires on frontend and reaches Argus.
T + under 1 sArgus has made 11 read-only calls, named checkout 1.4.0 as the cause and proposed the rollback.
After thatThe fix waits on the branch argus/higherrorrate-03db5b4a until a person reviews and merges it.

What Argus checked, in order

It did what an on-call engineer does: confirm the alarm, walk down the service graph until the trouble stops, then look closely at the deepest service that is still unhealthy.

#CallWhat came back
1golden_signals(frontend)errors 18% against a 0.2% baseline, latency normal
2service_dependencies(frontend)frontend calls checkout
3slow_traces(frontend)none, so this is not a latency problem
4golden_signals(checkout)errors 33% against 0.1%, latency normal
5service_dependencies(checkout)checkout calls payments
6golden_signals(payments)healthy: 0.1% errors, 95 ms
7service_dependencies(payments)nothing below it
8workload_status(checkout)3 of 3 pods ready, no restarts, image 1.4.0
9k8s_events(checkout)a new replica set scaled up 7 minutes ago
10rollout_history(checkout)revision 8 (1.4.0) is 7 minutes old, revision 7 (1.3.2) is two days old
11search_logs(checkout)top error: KeyError: 'currency' in POST /checkout

Payments was healthy and checkout was not, so checkout became the suspect. Pods were ready and not restarting, which rules out a crash loop or an out-of-memory kill. That left the release.

Root cause

Release 1.4.0 of checkout throws KeyError: 'currency' on about a third of POST /checkout requests. Frontend calls checkout, so users see the failure on frontend and that is where the alarm fires. In the demo shop the bug is deliberate: the 1.4.0 image is built with a RELEASE_BUG flag that fails roughly 30% of requests, so there is a bug to find.

The fix

apps/checkout/deployment.yaml
       containers:
       - name: checkout
-        image: argus-demo/shop:1.4.0
+        image: argus-demo/shop:1.3.2

Argus has no write access to the cluster. The fix is one commit on a branch. With a GitHub token configured it becomes a pull request with the report as the description, and Argo CD or Flux applies it after a person merges.

What the guardrails did

  • All 11 calls were to read-only tools. Nothing was blocked, because nothing else was offered to the investigator.
  • One log line in the scenario carries an API key. It reached the investigator as api_key=<redacted>.
  • The proposal passed the change policy: confidence 0.9 against a 0.7 minimum, a namespace that is not protected, no instruction-like text in any tool output, and a rollback with a named target image.

Where this run was thin

A postmortem that only lists what went well is not worth reading. These are the weak points, and each one is visible in the code.

  • No model was involved. This run used runbook mode: fixed rules in argus/llm.py. It proves the tools, the guardrails and the Git path. It says nothing about how a model reasons on a messier incident.
  • The 0.9 is not a probability. It is a constant: 0.9 when an error pattern shows up in the logs, 0.75 when it does not.
  • A recent release won too easily. Fixed. The rule was "a release in the last 60 minutes plus degraded signals", and it ran before the database-pool rule. Adding an unrelated release 30 minutes before the repo's db-pool-exhaustion scenario made runbook mode blame the release at 0.9 and propose a rollback, although the top log line was a connection-pool timeout. Pull request #8 changes this: when both show up, Argus reports both at 0.5 and escalates to a person.
  • The report claimed more than was checked. Fixed. It said "the last revision with healthy signals", but the code takes the previous revision without looking at how it behaved. In #8 it says "the previous revision".
  • Nothing confirms the recovery. After the merge, Argus does not go back and check that the error rate came down.
  • The timing is flattering. Under a second is against recorded data on a laptop. Queries to a running Prometheus, Loki and Tempo take longer.

Follow-ups

  • Measure the error rate of the previous revision before rolling back to it. Today the report only stops claiming it is healthy.
  • After the pull request is merged and synced, read the golden signals again and post the result on the pull request.
  • Run this scenario on the kind lab and in model mode, and publish those timings next to the runbook ones.

The useful result of this run is the list above, not the green tick. Nobody is paged for the easy incident. The work is in the cases where two plausible causes show up together.