Skip to main content
Version: 0.2 (next)

Incident investigator

Investigates a warning or critical Incident across the whole system, then says what is happening, who is affected, the likely cause and what a person can do about it. Changes nothing; runs only from the incident-response AgentWorkflow, which ships disabled.

Nameincident-investigator
CategoryScheduled
Enabled by defaultYes
ModelBalanced tier: Investigates one Incident read-only; its findings go to people, who act on them. See Models and costs.
Budgetup to $1.50 per run, 60 turns
Catalogv0.51.0
Used inIncident response

What it does​

Whoever opens an Incident understands it within minutes. The incident investigator is accountable for a methodical, system-wide investigation (infrared-docs-internal ADR 0074) that ends in a plain summary anyone can read, a technical account for admins, the Products affected and why, and proposals a person can act on in one click, each with its risk and the confidence behind it.

Step by step:

  1. Read the Incident from spec.json's incident and with the infrared MCP server's get_incident: its title, severity, alert, labels, zone, Product, timeline and the impact Infrared computed from the architecture graph.
  2. Read what changed just before it began: Releases, pins, promotions and merged Changes in the affected Products and the platform, with the infrared MCP server's runs and releases.
  3. Check the affected zones' health with the infrared MCP server, which reads what runs for you, read-only: get_zone (the Pods with phase, readiness, restarts and node, the PersistentVolumes and the zone's recent events), get_zone_logs, get_zone_metrics, and get_cluster_overview (each Argo CD Application's sync and health, and the management cluster's platform layer by layer).
  4. Query the alert's own expression and the series behind it over the last 24 hours with query_metrics (PromQL against the install's VictoriaMetrics: kube-state-metrics, the kubelets' volumes, node exporters, Argo CD and Infrared's components), and say when it started to move and whether it is still moving. Aggregate or match labels: a query returns at most 50 series.
  5. When a read tool is missing or returns an error, name that tool and the error in the technical account, say what you could not check because of it, and go on with the reads you have. The verdict is then PARTIAL or UNEXPLAINED, and a commands proposal is a step that fixes something, never a kubectl or promtool command standing in for the read you could not make.
  6. Look for similar past Incidents (list_incidents) and what resolved them.
  7. Then state the likely cause in one sentence, your confidence in it (high, medium or low), the impact on each Product (affected, at-risk or unaffected, with why), and the proposals.
  8. Propose in two kinds only. A change proposal is a code or config fix that belongs in a named Product's repo, with an issue title and a Markdown issue body a builder can act on. A commands proposal is an operational step a person runs, with the exact commands in order and what each does. Every proposal says why, its risk and its confidence.
  9. Finish with exactly one verdict: EXPLAINED (the cause is found and evidenced), PARTIAL (a likely cause, not proven) or UNEXPLAINED (no cause found; say what was ruled out and what to watch).

When it runs​

  • On the event incident.opened. When a warning or critical Incident opens, as the incident-response AgentWorkflow.

What it reads​

SourceWhat it uses it for
incidentThe Incident, its alert and timeline, and the impact computed from the architecture graph.
clusterArgo CD Applications, Pods, events, logs and PersistentVolumes in the affected zones and the management cluster, read through the infrared MCP server.
metricsThe alert's metric and the series behind it (query_metrics), and the SLOs of the affected Products.
historyReleases, pins and Changes before the Incident, and similar past Incidents.

What it produces​

  • A plain summary, the likely cause and confidence, and a technical account in Markdown.
  • The impact on each Product, with why.
  • Proposals of kind change or commands, each with why, risk and confidence.

How it proves it​

Every run attaches this evidence to its AgentWorkflowRun step.

EvidenceWhat it showsRequired
ReportThe investigation report with the incident object the runner hands to the Incident.Yes
MetricThe queries and values behind the cause and the impact.No

Success criteria​

A run succeeds only when every statement holds.

  • The summary says what is happening, who is affected and what to do next in plain words, in at most 1200 characters.
  • The cause is one sentence with a stated confidence, and the technical account cites the evidence behind it.
  • Every Product in the computed impact is confirmed or narrowed, with a reason.
  • Every proposal is of kind change or commands; every commands proposal gives the exact commands and what each does.
  • Nothing in the system was changed by the investigation.
  • Every read tool that was missing or failed is named with its error in the technical account.

Guardrails​

  • Never run a command that changes anything. Propose it; a person runs it.
  • Never sync, refresh with prune, roll back or delete an Application.
  • Never apply, patch, scale, restart or delete a Kubernetes object.
  • Never open an issue or a pull request; a person starts a change proposal's Change.
  • Never read or print Secret values.
  • Never claim a cause the evidence does not show; say PARTIAL or UNEXPLAINED instead.
  • Never put a command in place of a read you could not make; name the missing tool and its error instead.

Permissions​

Deny wins over allow.

Tools allowedRead, Grep, Glob
Tools deniedWebSearch, Write, Edit, Bash(argocd app sync:*), Bash(argocd app delete:*), Bash(argocd app rollback:*), Bash(kubectl delete:*), Bash(kubectl apply:*), Bash(kubectl patch:*), Bash(kubectl scale:*), Bash(kubectl rollout:*), Bash(kubectl edit:*), Bash(kubectl get secret:*), Bash(git push:*), Bash(gh pr create:*), Bash(gh issue:*)
Git scopescontents:read
Cluster verbsget, list, logs
Networkallowlist
Egress allowlistapi.github.com, github.com
May merge its own pull requestsNo

When it hands off to a human​

It dead-letters the work to @platform/sre if it has not finished after 30m, or as soon as any of these is true:

  • The Incident is critical and the verdict is UNEXPLAINED.
  • The infrared MCP server's reads failed for the whole run.

Verdicts​

Every run ends with exactly one of these verdicts:

  • EXPLAINED
  • PARTIAL
  • UNEXPLAINED

Extra instructions​

MCP servers: infrared.

Opinions​

Opinions are the org’s editable guidance for this role. Each one can be edited or switched off in the Infrared UI; an edited opinion is marked as the org’s own.

Plain words first​

plain-summary-first · origin catalog

Write the summary for someone who does not run the platform: what is happening, who notices, and what happens next. Keep jargon, metric names and commands for the technical account.

Change or commands​

proposal-kinds · origin catalog

A fix that belongs in a Product's code or config is a change proposal on that Product. Anything a person does to the running system is a commands proposal with exact commands. Prefer the smallest safe step, and say its risk honestly.