From Page to Dossier

Using Agents to Your Advantage

03:00
[FIRING] checkout-api · p99 latency > 2s for 5m
severity: critical · env: production · ack within 5 minutes

The first thirty minutes

03:02open laptop · ack the page · find the VPN2m
03:04check Grafana. Which dashboard was it again?4m
03:08tail the logs: filter, re-filter, scroll5m
03:13what deployed in the last hour?4m
03:17diff the config changes4m
03:21is an upstream dependency having its own incident?3m
03:24search Slack for the last time this happened3m
03:27read half a runbook3m
03:30"OK… I think I know what's wrong."
30 minutes of context-gathering
decide

Your factory is the process that connects the tools.

Each tool: excellent at its slice

metrics traces logs deploy pipeline config changes change management feature flags upstream status pages chat history runbooks on-call schedule

Your factory: the process that connects them

the order you check things what counts as the same incident when something is noise the shape of the card at 3am where a human decides what gets recorded

Use their agents and APIs as stations on your line.

A lights-out factory for alerts

Every alert runs through the same process, with nobody on the line.

alertsGrafana·Axiom·GCP
verify/hooks/*
unsigned
→ rejected
dedupeingest · code
duplicates
→ flagged, can't apply twice
correlateingest · code
repeats
→ +1 on the open incident
closecode
resolutions
→ closed by code
screenJev · p ≥ 0.7
not actionable
→ dismissed, recorded
triageClaude · JSON
noise
→ ignore
validateapply_triage
bad output
→ run fails
signalcard → you
Every alert goes onto the same line. Let's walk it, one station at a time.
alertsthe outside world
Grafana, Axiom and GCP push every alert as a webhook. Nobody has to be awake for any of this.
Sat 31 Oct, 21:53:20 · Grafana: “Certificate renewal overdue” · telemetry-tls
verifyswamp serve · code
Each route checks a signature before a workflow is even queued: HMAC for Grafana, a token for Axiom, an OIDC token for GCP Pub/Sub.
/hooks/grafana-alerts → ops-signal-ingest
dedupeingest · code · ~150 ms
The event ID is a hash of the alerts' identity: group, status, fingerprints, labels, start and end times. Not their values.
Wed 4 Nov, 11:48 · same event ID as 31 Oct 21:58 → duplicate: true
correlateingest + apply_triage · code
A signal that already belongs to an open incident attaches to it. Recently resolved? It reopens. Four-hour window.
21:58 · swamp-club-tls joins inc-51e7bd3b6912e42d · occurrences 2
closecode
A resolved alert closes its incident in code. The model never gets a vote on closing an incident.
resolutions are applied deterministically, every time
screenJev · TypeSafebenchmarked
One calibrated probability: is this a real, actionable production problem? Below 0.7 it's dismissed, with the score, threshold and reason recorded.
John's benchmark: 91% cheaper triage · 1 Claude call ≈ 1,365 screens
triageClaude · the one LLM step
One strict JSON object: new, attach or ignore · priority · ~50 words on why it fired and what it hurts · up to three suggested actions.
“…a systemic ACME/controller issuance failure rather than isolated cert issues”
validateapply_triage · code
The answer is checked against a strict schema before anything changes. Doesn't fit? The run fails. Already applied? Nothing happens.
4 Nov, 11:48:30 · “Incident triage already applied” → nothing changes
signal→ the person on call
One Discord card per incident, edited in place: priority, summary, status, signals, occurrences, links, and Ask.
31 Oct, 21:53:29 · card posted, nine seconds after the alert
Only signal reaches the person on call.

One real alert that mattered

Saturday 31 October, 21:53 · Grafana: “Certificate renewal overdue”

21:53:20.111webhooktelemetry-tls is 25 h past renewal: a signal nobody has seen before
21:53:29.511triageClaude: real, P2 → inc-51e7bd3b6912e42d created · card posted to Discord
21:58:20.289webhooka second certificate starts firing: swamp-club-tls
21:58:40.622correlatecode attaches it to the open incident · Claude explains why: “a shared root cause in the cert-manager issuance pipeline rather than an isolated signal”
5 minsignalone incident · one card · two certificates · a systemic issuer problem

Today at 1148 UTC

Wednesday 4 November. Grafana re-sends the same notification; only the numbers have grown

11:48:20.932webhooksame two certificates, now 4.6 days past renewal
11:48:21.082ingest150 ms, no LLM: same event ID → duplicate: true · open P2 already
11:48:27.899triageClaude agrees: "action": "attach" to the open incident
11:48:30.532apply_triage“Incident triage already applied” → nothing changes
9.6 snoiseno new incident · no new page · nobody woke up

What triage sent back


{
  "action": "attach",
  "incidentId": "inc-51e7bd3b6912e42d",
  "priority": "P2",
  "category": "certificate-management",
  "title": "Certificate renewal overdue: multiple certs (swamp-club-tls, telemetry-tls) via letsencrypt-prod",
  "summary": "cert-manager renewals for both swamp-club-tls and telemetry-tls remain stuck over 4.5 days past due via letsencrypt-prod, indicating a systemic ACME/controller issuance failure rather than isolated cert issues. If unresolved, both services risk TLS expiry and outages.",
  "rationale": "Same signal (cert-manager renewal overdue, same issuer/controller) already tracked by open incident inc-51e7bd3b6912e42d; values increased, confirming ongoing unresolved issuance problem.",
  "recommendedActions": [
    "Check cert-manager controller logs for ACME challenge/order errors against letsencrypt-prod",
    "Verify ClusterIssuer letsencrypt-prod health and rate-limit status",
    "Manually trigger renewal for swamp-club-tls and telemetry-tls to confirm issuance path works"
  ]
}
                        
attach: no new incident, so no new page
summary: why it fired and what it hurts
rationale: one sentence on why this is the same incident
recommendedActions: suggestions for a human. Nothing was executed
claude-sonnet-5: one strict JSON object, validated before anything changes
ops.swamp-club.com
from page to dossier: two workflows, one human in the middle
code gathers · the LLM reads · a human decides

Every alert runs one workflow


name: ops-signal-ingest
trigger:
  inputs:
    payload: ${{ webhook.body }}
concurrency: 1
jobs:
  - name: main
    steps:
      - name: ingest
        task:
          type: behavior
          behavior: ops-incidents-platform
          methodName: ingest
      - name: triage
        task:
          type: behavior
          behavior: ops-triage-claude
          methodName: generate_named
          inputs:
            prompt: >-
              ${{ data.latest("ops-incidents-platform",
              "intake").attributes.prompt }}
        dependsOn: [{ step: ingest, condition: { type: succeeded } }]
      - name: apply-triage
        # validate the JSON · update the incident · post to Discord
                        
trigger: Grafana, Axiom and GCP all route here. The webhook body becomes a typed input
concurrency: 1: intake is serialized. An alert storm queues; it doesn't race
ingest: code: normalize, fingerprint, dedupe, correlate. No API calls
triage: the only LLM step. Its prompt is built by code and read from the data layer
apply-triage: the answer is validated before anything changes

On every alert: the incident card

swamp opsAPP
[P2] Certificate renewal overdue: multiple certs (swamp-club-tls, telemetry-tls) via letsencrypt-prod
cert-manager's issuance pipeline for ClusterIssuer letsencrypt-prod appears stuck across multiple namespaces (telemetry, swamp-club), with renewals overdue by 25+ hours despite Ready=True. This points to a systemic controller/ACME issue rather than a single cert problem, risking TLS expiry for both services.
Statusopen
Categorycertificate-management
Signals2632f6c9fec5fc29, 74a441965d4e23b3
Occurrences2
Last update2026-10-31T21:58:40.622Z
Incident data ↗ Grafana alert ↗
Ask

The Ask flow

A human asks. Code gathers. The LLM reads. A human decides.

Askyou · Discord
gatediscord bot
wrong channel or role
→ ignored
dispatchown principal
not granted
→ refused
startcode
queryAxiom · read-only
fixed query
30 min · 100 rows
preparecode
secrets & payloads
→ stripped
analyzeClaude
answercard → you
any failure
→ recorded, shown
The card gives you the signal. Ask is how you dig in. Same idea: a fixed line, one station at a time.
Askthe person on call
Press Ask on the incident card and type a question into the Discord modal. No context switch, no new tool.
“Can you see why the last rotation failed?”
gateops-discord-bot · code
Only the ops channel. Only people with the ops role. Anyone else's click is ignored. The bot has no public endpoint at all.
Gateway connection, outbound only · duplicate clicks suppressed
dispatchits own principal
The bot runs the investigation as its own swamp user, and grants decide exactly what it may run. You travel with it as the actor.
requested by: discord:johnrwat · workflow: ops-incident-investigate-axiom
startstart_investigation · code
A durable investigation record goes on the incident's timeline, and the card updates straight away.
Asked by · Investigating · Response: Pending…
queryops-axiom · read-only
Code builds the query from the incident's signals: production error spans, the last 30 minutes, at most 100 rows. The LLM never writes it.
Axiom rows matched: 90
preparecode
Whitelisted fields only. Query strings stripped, everything truncated. The question is treated as untrusted data too.
no credentials · no customer payloads · bounded to 30k characters
analyzeClaude · the one LLM step
Finding · Evidence · Likely cause · Recommended next steps · Confidence. Facts kept apart from hypotheses. It never claims it did anything.
“Hypothesis (unconfirmed): … a shared downstream dependency (likely MongoDB) …”
answer→ back to you
The report is attached to the incident for good, and the card edits itself. If any step fails, the failure is recorded and shown instead.
Asked by · Answered · Response: Open investigation report
You are in control of the decision

When a human asks: the investigation report

A real incident investigation report produced by the ops-incident-investigate-axiom workflow

Back to 03:00

what you used to dowhat the factory does now
03:02open laptop · ack the pageonly signal pages you
03:04check Grafana. Which dashboard?alert · dashboard · panel links on the card
03:08tail the logs[Ask] → bounded Axiom query → Finding · Evidence
03:24search Slack for last timerecent incidents + occurrences, already correlated
03:27read half a runbookup to three recommended actions in the incident data
03:30"OK… I think I know what's wrong."decide: still you

What 03:00 looks like now

Before: every alert pages you, alone
Grafana · logs · deploys · config · upstream · Slack · runbook
decide
Signal: the page arrives with the evidence
read
decide
judgement spent on the problem
Noise: the factory screened it out
no page · nobody wakes up · the dismissal is recorded
03:0003:1003:2003:30

Questions?

Try it out: swamp-club.com

Behavior-centric AI, explained:
swamp-club.com/behavior
I blog about this at stack72.dev