TL;DR: When an alert fires, the agent gathers context in parallel (recent deploys, related alerts, error-rate and latency graphs, log excerpts, the service's runbook and past incidents), then posts a short summary to the incident channel: what is happening, likely causes ranked with evidence links, and suggested next checks. It is read-only by default; remediations (rollback, scale up, toggle a flag) are proposed as one-click actions a person approves. It must be fast (a summary within a couple of minutes), honest about uncertainty, and evaluated by replaying past incidents.
How to approach it
Clarify who uses it and when, then design data gathering, the hypothesis summary, the autonomy level for actions, latency, and evaluation.
A strong answer
Clarify. Hundreds of services; on-call engineers paged at any hour; success is faster time to a correct diagnosis, not automatic fixes; a wrong action can make an outage worse.
Gathering. Triggered by the page. In parallel: deploys and config changes in the last hours for the service and its dependencies; correlated alerts; key metrics around the alert time; log samples matching error signatures; the runbook; similar past incidents and their resolutions. Each result is trimmed to what supports a judgement.
The summary.
CHECKOUT 5xx up from 0.2% to 7% since 03:12 (graph)
Most likely: deploy checkout@4f2a at 03:09 (2 of 3 regions)
evidence: errors began 3 min after deploy; traces in new PaymentClient (log)
Also possible: payments-db latency up since 02:55 (graph); errors are not timeouts
Suggested: compare the region without the deploy; rollback (needs approval)
Every claim links to a graph, log query or deploy record. Ranked hypotheses with evidence for and against beat a single confident answer.
Autonomy. Level 1 (suggest) for diagnosis, level 2 (act with approval) for reversible remediations with a one-click button showing exactly what will happen, nothing irreversible. Remediation tools have their own guardrails (rollback only to the previous release, rate limits).
Latency. Parallel reads, cached service metadata, a time budget for gathering (say 90 seconds), and an initial post with partial findings that is updated as more arrive.
Evaluation.
def triage_score(cases):
top1 = sum(c["top_hypothesis"] == c["actual_cause"] for c in cases) / len(cases)
in_top3 = sum(c["actual_cause"] in c["hypotheses"][:3] for c in cases) / len(cases)
return round(top1, 2), round(in_top3, 2)
cases = ([{"top_hypothesis": "deploy", "actual_cause": "deploy",
"hypotheses": ["deploy", "db"]}] * 31 +
[{"top_hypothesis": "db", "actual_cause": "deploy",
"hypotheses": ["db", "deploy"]}] * 9 +
[{"top_hypothesis": "deploy", "actual_cause": "dns",
"hypotheses": ["deploy", "db", "cache"]}] * 10)
print(triage_score(cases)) # => (0.62, 0.8)
Replaying 50 past incidents with their recorded data: the true cause is the top hypothesis 62% of the time and in the top three 80%. Track these, time to first post, and engineers' ratings in the channel.
What interviewers probe next
"Couldn't it just roll back automatically when a deploy correlates?" Some teams automate that with deterministic rules and canary analysis; the agent adds value in diagnosis, and autonomy for actions is earned per action class.
"Alert storms?" Group related alerts into one incident first, so the agent runs once per incident, not per alert.
"Sensitive logs?" The agent reads through the same access controls as the on-call engineer; summaries avoid copying personal data into chat.
How it's scored
Weak: An agent that restarts services when alerts fire.
Hire: Read-only gathering, an evidence-linked summary and human-approved actions.
Strong Hire: Parallel, time-budgeted gathering across deploys, metrics, logs, runbooks and past incidents; ranked hypotheses with evidence and links; per-action autonomy with one-click approved remediations; incremental posting; evaluation by replaying incidents with top-1 and top-3 accuracy and time to first post; alert grouping and access controls.
Common mistakes
- Automatic remediation without earned autonomy.
- Confident single answers without evidence links.
- Waiting for all data before posting anything.
- No replay-based evaluation.