Agentic AI System Design / Practice / P08

Production Incident-Response Copilot

real-time operationsreversible actionsobservabilityhuman coordination

Advanced · 45 minutes · scenario 8 of 12

INTERVIEW MODE

Run this as a 45-minute design interview

Start the clock, design against the prompt, and take the constraint reveals as they land. The model answer stays hidden until you finish, because reading it first turns practice into recognition.

45:00

Not started

Cover in this order

  1. Outcome and risk
  2. Authority boundaries
  3. Topology
  4. Tools and context
  5. State and durable execution
  6. Security and human review
  7. Evals and SLOs
  8. Scale, cost, and rollout

Timeline

  1. 5m Clarification complete
  2. 8m Requirements and non-goals
  3. 13m First architecture
  4. 25m Core flow and state
  5. 34m Deep dive
  6. 40m Evals and operations
  7. 45m Failures, tradeoffs, close

Scratch architecture

Draw the boxes in words. Saved in this browser only, never uploaded.

Required checks0 / 9
Self-score0 / 40

Score each dimension 0 to 4 against what you actually said out loud, not what you intended to say. A 2 is a competent answer; a 4 is one you could defend to the team that operates it.

Candidate prompt

Design an AI incident-response copilot for a large software company. It should correlate alerts, inspect telemetry, propose hypotheses, run safe diagnostics, draft updates, and optionally execute pre-approved reversible mitigations.

Starting assumptions

Fictional assumptions:

  • Thousands of services run across several regions.
  • On-call engineers receive alerts from metrics, logs, traces, deploys, and customer tickets.
  • Major incidents require fast coordination across teams.
  • Telemetry may contain customer data and secrets.
  • The copilot may execute only a narrow set of reversible actions.
  • Humans own incident command and high-impact changes.

What to clarify

  • Which incident classes and services are in v1?
  • What is a reversible action?
  • What read and write systems exist?
  • What latency matters during an active incident?
  • Is the agent embedded in chat, an incident console, or both?
  • How are runbooks and service ownership represented?
  • What is the communication approval policy?
  • How are simultaneous incidents isolated?

Staged constraint reveals

Reveal 1: Telemetry overload

An incident produces millions of log lines per minute. Relevant evidence is distributed across traces, deploy events, and one customer ticket.

Expected update:

  • deterministic signal aggregation and anomaly/topology services before model;
  • scoped query tools with time/service/tenant bounds;
  • progressive hypothesis-driven retrieval;
  • context summaries with links to raw evidence;
  • query and token budgets;
  • preserve timestamps and causality;
  • no full-log stuffing.

Reveal 2: Mitigation risk

Restarting a service is usually safe but can amplify an outage during a database failover.

Expected update:

  • action preconditions from current system state;
  • policy by service, incident class, dependency health, and blast radius;
  • simulate/dry-run where possible;
  • human approval for ambiguous/high-impact action;
  • rate/concurrency limits;
  • rollback and verification;
  • model recommendation cannot override change freeze.

Reveal 3: Communication hallucination

The copilot drafts a customer update claiming data loss before evidence exists.

Expected update:

  • separate internal hypothesis from externally publishable facts;
  • claim-level evidence and approved communication template;
  • deterministic forbidden/required fields;
  • human communications approval;
  • artifact version and diff;
  • model uncertainty preserved;
  • external status post is an idempotent audited effect.

Reveal 4: Copilot outage

The model provider is unavailable during the incident.

Expected update:

  • incident system remains usable without model;
  • deterministic dashboards, runbooks, search, and action controls;
  • cached/locally available approved runbook content;
  • validated fallback only for appropriate tasks;
  • no dependency loop where the copilot is required to repair its own provider;
  • graceful degradation and clear status.

Strong answer signals

Product boundary

The copilot accelerates evidence gathering, hypothesis management, and communication drafting. Incident command and material mitigations remain with authorized humans. Begin with one service family and read-heavy diagnostics.

Architecture

Text definition of this diagram
flowchart LR
    AL[Alerts / Tickets / Deploy Events] --> IC[Incident Controller]
    IC --> WF[Incident State Workflow]
    WF --> AG[Bounded Copilot]
    AG --> CX[Telemetry Context Service]
    CX --> OBS[Metrics / Logs / Traces]
    AG --> TG[Diagnostic / Mitigation Gateway]
    TG --> POL[Action Policy]
    POL --> PROD[Production Control APIs]
    WF --> CHAT[Incident Chat / Human Command]
    WF --> COM[Communication Approval]
    WF --> ART[(Timeline / Evidence / Updates)]
    WF --> EV[Trace / Evals / Audit]

State

  • incident ID, severity, services, regions;
  • timeline and evidence links;
  • hypotheses with supporting/refuting evidence;
  • owners and roles;
  • diagnostics and results;
  • mitigation proposals/effects/verification;
  • communication artifacts;
  • deadlines and next update;
  • model/tool/release versions.

Tool controls

Read tools should constrain time range, service, region, fields, and result size. Write tools require incident scope, authenticated actor, policy decision, idempotency, rollback, and postcondition verification.

Evals

  • relevant-evidence retrieval;
  • hypothesis support and calibration;
  • incorrect causal-claim rate;
  • required diagnostic sequence;
  • prohibited mitigation rate;
  • communication factuality;
  • time to useful insight;
  • on-call correction burden;
  • provider-outage behavior;
  • trace privacy.

Observability

The copilot itself needs a separate health surface. During an incident, operators should know model/tool availability, stale context, blocked actions, spend, and whether the system is degraded.

Failure follow-ups

  1. Logs contain an API key and are captured in a trace.
  2. Two incidents affect the same service and propose conflicting actions.
  3. An on-call engineer manually changes production outside the copilot.
  4. A mitigation succeeds but verification times out.
  5. The incident chat contains a malicious copied webpage.
  6. A postmortem later shows the initial hypothesis was wrong.

Scoring emphasis

DimensionWeight
Authority/action safety25%
Telemetry context and causality20%
Human workflow and communications15%
Observability/degraded mode15%
State/effects/recovery15%
Evals/privacy10%

Model outline

Build around an incident controller and explicit timeline, not a free-form chat. Deterministic telemetry services aggregate and scope data; the model manages bounded hypotheses and selects read diagnostics. A tool gateway and policy engine control reversible mitigations with preconditions, rate limits, approval, and verification. External communications use evidence-backed versioned artifacts and human approval. The incident workflow remains useful when the model is unavailable. Measure time to insight, evidence quality, unsafe proposals, human correction, action outcomes, and degraded-mode behavior.

Fill the design canvas for this scenario Open

DESIGN CANVAS

Production Incident-Response Copilot

Twelve sections, 72 fields. Everything you type is saved in this browser as you go. Nothing is uploaded, and nobody else can read it.

0 / 72 filled

01 Outcome

Start with the job, not the model. If you cannot name the metric, you cannot design the system.

02 Why agentic?

Agentic is a cost, not a default. Justify the judgment you are buying.

03 Risk and authority

Name what the model may never decide. The risk tier shapes the architecture; it is not a paragraph added at the end.

04 Journey and topology

The simplest topology that satisfies the requirements, plus the conditions that stop it.

05 Tools

Every tool is a contract: typed, scoped, rated for side effect, and idempotent where it touches the world.

06 Context and data

Rank sources by authority and freshness, and keep untrusted content on the far side of a boundary.

07 State, memory, and durability

Say what survives a crash and what must never happen twice.

08 Security and governance

Identity has to reach the data and the tools. Injection controls are architecture, not prompt text.

09 Evals

Measure the trajectory, not only the final text, and name the number that blocks a release.

10 Operations

One quantitative objective per axis, and the person who is paged when it breaks.

11 Rollout

How the change reaches production, and what pulls it back.

12 Open tradeoffs

Three decisions you made knowing what they cost. A design with no tradeoffs is a design nobody stress-tested.