Cookbook 08 · Build
Incident Response Copilot
Turn an incident record into a severity and the lowest-risk action, gate a rollback behind a second person, and release to prod only through a deploy gate.
BuildAdvanced40–65 min
What you build. An
incident-commander workflow (14 nodes) that turns an incident record (alert, deployments, health numbers, a noisy log excerpt, paging and customer-report counts) into a severity and an action using declarative decision tables (Data Transform, Join, Template, Router), and pauses a rollback at a human approval. Because nothing in the decision needs isolating, Preview can run it, and the prod alias carries a deploy gate that replays the 41-incident test set incident-cases before it moves. The only agent node, draft_update, runs on the simulated provider and its text is never asserted.
Surfaces: Administration Workflows Test Sets Cookbooks Audit Log
What you learn
- Express a severity and action policy as two decision tables (first match wins) and check all 41 incidents: 8
sev1, 10sev2, 12sev3, 11sev4, including noisy logs, conflicting evidence, missing metrics and the boundary casesIN40andIN41 - Import a workflow that names a test set: it is refused with
unresolved_import_dependencyuntil the test setincident-casesexists in the workspace - Promote to
prodthrough a deploy gate that replays the test set (pass rate 1.0, executor reported asfake), wait for a second person's approval, and see a bad version refused with400 deploy gate failed(pass rate 0.9512) - Gate only the 5 rollback incidents (
IN01,IN11,IN12,IN15,IN23) at thereviewnode: self-approval is403, an approval releasesROLLBACK_APPROVED, a rejection releases nothing - Run the failure drills: Error Boundary fallback, a missing tool refused at import, a blocked API Request host, and Wait For Event pause and resume
Implementation flow
flowchart TD
S[start: incident JSON] --> FO[fan_out: parallel]
FO --> IN[ingest]
FO --> SV[severity_table]
FO --> AC[action_table]
FO --> DU[draft_update: agent, simulated]
IN --> J[join]
SV --> J
AC --> J
DU --> J
J --> SU[summarize: Verdict]
SU --> RT{triage_router}
RT -->|rollback| HA{{review: human_approval}}
HA -->|approve| RR[rollback_request]
RT -->|escalate_human| HN[handoff_note]
RT -->|other actions| RC[recommendation]
RR --> F[final]
HN --> F
RC --> FStep-by-step UI only
Each step shows the exact navigation path, the fields to fill, the button to click, and a snapshot of the CALIBER screen you'll be on.
Admin › AdministrationCreatelenaandsamunder Accounts (passwordcookbook08-lab-passphrase), create a workspace with the top bar +, and add both as Reviewer under Project access. The server must listlenainCALIBER_APPROVER_USERS.Click Add memberYou'll see:Created lena.thenAdded lena to <workspace>.Screen snapshotcaliber · Admin › AdministrationAdd memberAgent resources › Workflows › Importincident-commander.workflow.json ↓The manifest's deploy gate names a test set (incident-cases). Import it before that test set exists: Import, type a name, Choose fileincident-commander.workflow.json, Validate dependencies.Click Validate dependenciesYou'll see:Preflight needs attentionandis not visible in this workspace: the import is refused until the test set exists.Screen snapshotcaliber · Agent resources › Workflows › ImportValidate dependenciesPrompt lifecycle › Test Setsincident-cases.jsonl ↓Press + New Test Set, type the name from the manifest (incident-cases), owner@lab08, Create, open it and press Import from file; chooseincident-cases.jsonland press Import 41 rows.Fill inName incident-casesOwner @lab08File incident-cases.jsonl Click Import 41 rowsYou'll see:incident-cases.jsonl: 41 rows ready to import.then41 active examples; the gateway incident's row shows"answer": "sev1 rollback".Screen snapshotcaliber · Prompt lifecycle › Test SetsImport 41 rowsAgent resources › Workflows › ImportImport again with the same file and name, Validate dependencies, then Import as new.Click Import as newYou'll see:Preflight passed; the editor opens withseverity_table,action_table,join,triage_routerandreviewin the outline.Screen snapshotcaliber · Agent resources › Workflows › ImportImport as newWorkflows › editorPress Validate, then Preview, paste theIN01incident and press Run Preview, and open thesummarizestep. Unlike a Python Code workflow, this one previews.Click Run PreviewYou'll see: The toolbar saysValid.; the preview is completed and thesummarizestep showssev1 rollback.Screen snapshotcaliber · Workflows › editorRun PreviewWorkflows › editorPress Publish, Run Validation, Next, Next, Publish.Click PublishYou'll see: The toolbar saysPublished.The alpha UI has no Deployments or Promotions tab: thestagingand gatedprodaliases, the deploy gate and rollback are API only.Screen snapshotcaliber · Workflows › editorPublishWorkflows › editor › Run MonitorOpen Run Monitor, paste an incident ({"incident": {...}}) and press Run. RunIN06(healthy staging), thenIN01(gateway regression after a deploy). Then press Approve on theIN01run as the same account.Click RunYou'll see:IN06completes withRECOMMENDATIONandsev4 monitor.IN01stops at waiting_approval; Approve as the starter showsa second person must decide.Screen snapshotcaliber · Workflows › editor › Run MonitorRunWorkflows › (workflow) › Runs, as lenaSign in aslena, choose the workspace, open Workflows, the workflow and its Runs tab, select the run that shows Awaiting approval, press Approve, then Resume.Click ResumeYou'll see: The run's output containsROLLBACK_APPROVEDand thesev1 rollbackverdict. (Evaluations can also score a Workflow version as the subject, at most 20 examples per run; with the simulated provider it answers400 evaluation requires a real LLM provider.)Screen snapshotcaliber · Workflows › (workflow) › Runs, as lenaResumeWorkflows › (workflow) › Versions, then the editorOn Versions press Restore as draft on v1 (a new draft, v2). Double-clickaction_tablein the outline; in Configuration (JSON) change thevalueof theerror_ratecondition of the rulerollback-recent-high-risk-deploy-errorsfrom0.05to0.5and click outside the box. Save, Validate, Preview theIN23incident and opensummarize; then Publish (v2) and, on Versions, compare v1 (Base) with v2 (Compare).Click PublishYou'll see:IN23now readssev2 escalate_human(v1:sev2 rollback); the comparison shows one modified node,action_table. The API script'sprodgate refuses this version (pass rate0.9512); the alpha UI has no gate.Screen snapshotcaliber · Workflows › (workflow) › Versions, then the editorPublishWorkflows › (workflow) › VersionsPress Restore as draft on v1 again (v3), PreviewIN23, then Publish.Click PublishYou'll see:IN23readssev2 rollbackagain; Versions lists v1, v2 and v3.Screen snapshotcaliber · Workflows › (workflow) › VersionsPublishPrompt lifecycle › Evaluations › Run evaluationPick the test set, What to scoreWorkflow version, paste the v1 version id (WFV-…from its editor URL), untick Exact match and Token F1, press Run. A workflow run scores at most 20 examples.Click RunYou'll see: Simulated:evaluation requires a real LLM provider. Real: acompletedrow20/20; its detail saysgraded 20 of 41 active examples.Screen snapshotcaliber · Prompt lifecycle › Evaluations › Run evaluationRunAgent resources › Agents, then Workflows › (workflow) › CalibrateNew agent (any id, an experiment id, a name) and Register agent; then on the workflow press Calibrate, pick the agent and Start Calibration.Click Start CalibrationYou'll see: The dataset badge reads41 examples; the run endsrejectedwith a Structural score badge (and Simulated evaluation on a simulated stack).Screen snapshotcaliber · Agent resources › Agents, then Workflows › (workflow) › CalibrateStart Calibration
Assets (copy-paste)
The exact files this cookbook uses — copy each into the matching field. Source: docs-site/cookbooks/08-incident-response-commander/assets/.
{
"schema_version": 1,
"workflow_id": "WF-IMPORTED",
"name": "incident-commander-lab",
"description": "Cookbook 08: turn an incident record (alert, deployments, health, logs, signals) into a severity and the lowest-risk action, with rollback behind a human approval.",
"runtime": {
"sdk": "openai-agents-python",
"sdk_version_policy": "runtime-pinned",
"compiler_version": "caliber-workflow-compiler-v1",
"default_model_ref": "CALIBER_WORKFLOW_DEFAULT_MODEL",
"session": {
"type": "none"
}
},
"nodes": {
"start": {
"id": "start",
"type": "start",
"label": "Incident",
"outputs": {
"incident": {
"type": "string"
}
}
},
"fan_out": {
"id": "fan_out",
"type": "parallel",
"label": "Assess in parallel",
"inputs": {
"input": {
"type": "string"
}
},
"outputs": {
"output": {
"type": "string"
}
}
},
"ingest": {
"id": "ingest",
"type": "data_transform",
"label": "Normalize the incident",
"operation": "mapping",
"config": {
"fields": {
"incident_id": "incident.incident_id",
"service": "incident.service",
"environment": "incident.environment",
"customer_impact": "incident.customer_impact",
"alert_text": "incident.alert_text"
},
"defaults": {
"service": "unknown",
"environment": "unknown",
"customer_impact": "unknown"
}
},
"fail_on_invalid": true,
"inputs": {
"value": {
"type": "structured"
},
"text": {
"type": "string"
}
},
"outputs": {
"text": {
"type": "string"
},
"result": {
"type": "structured"
},
"valid": {
"type": "boolean"
},
"metadata": {
"type": "structured"
}
}
},
"draft_update": {
"id": "draft_update",
"type": "agent",
"name": "incident-commander",
"model": "inherit",
"label": "Draft the stakeholder update (agent)",
"instructions": {
"type": "inline",
"text": "You are the incident commander's scribe. From the incident record, write a three-sentence stakeholder update. State only what the evidence shows, label anything else as a hypothesis, never promise a resolution time, and never claim the incident is resolved."
},
"tools": [],
"inputs": {
"input": {
"type": "string"
},
"history": {
"type": "structured"
}
},
"outputs": {
"final_output": {
"type": "string"
},
"history": {
"type": "structured"
}
}
},
"severity_table": {
"id": "severity_table",
"type": "data_transform",
"label": "Severity matrix",
"operation": "decision_table",
"config": {
"rules": [
{
"name": "sev1-prod-total-outage",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.customer_impact",
"operator": "equals",
"value": "all"
},
{
"path": "incident.evidence.health.error_rate",
"operator": "greater_or_equal",
"value": 0.1
}
],
"result": "sev1"
},
{
"name": "sev1-prod-paging-storm",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.customer_impact",
"operator": "equals",
"value": "all"
},
{
"path": "incident.evidence.signals.pager_alerts",
"operator": "greater_or_equal",
"value": 3
}
],
"result": "sev1"
},
{
"name": "sev1-data-corruption",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.log_excerpt",
"operator": "contains",
"value": "DATA CORRUPTION"
}
],
"result": "sev1"
},
{
"name": "sev2-elevated-errors",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.health.error_rate",
"operator": "greater_or_equal",
"value": 0.05
}
],
"result": "sev2"
},
{
"name": "sev2-latency-breach",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.health.latency_p99_ms",
"operator": "greater_or_equal",
"value": 2000
}
],
"result": "sev2"
},
{
"name": "sev2-partial-impact-degraded",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.customer_impact",
"operator": "equals",
"value": "partial"
},
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "degraded"
}
],
"result": "sev2"
},
{
"name": "sev3-prod-degraded",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "degraded"
}
],
"result": "sev3"
},
{
"name": "sev3-prod-health-unknown",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "unknown"
}
],
"result": "sev3"
},
{
"name": "sev3-prod-no-health-evidence",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.health.status",
"operator": "exists",
"value": false
}
],
"result": "sev3"
},
{
"name": "sev3-prod-paged",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.signals.pager_alerts",
"operator": "greater_or_equal",
"value": 2
}
],
"result": "sev3"
},
{
"name": "sev3-prod-customer-reports",
"when": [
{
"path": "incident.environment",
"operator": "equals",
"value": "prod"
},
{
"path": "incident.evidence.signals.status_page_reports",
"operator": "greater_or_equal",
"value": 1
}
],
"result": "sev3"
}
],
"default": "sev4"
},
"fail_on_invalid": true,
"inputs": {
"value": {
"type": "structured"
},
"text": {
"type": "string"
}
},
"outputs": {
"text": {
"type": "string"
},
"result": {
"type": "structured"
},
"valid": {
"type": "boolean"
},
"metadata": {
"type": "structured"
}
}
},
"action_table": {
"id": "action_table",
"type": "data_transform",
"label": "Lowest-risk action",
"operation": "decision_table",
"config": {
"rules": [
{
"name": "escalate-health-unknown-and-paging",
"when": [
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "unknown"
},
{
"path": "incident.evidence.signals.pager_alerts",
"operator": "greater_or_equal",
"value": 3
}
],
"result": "escalate_human"
},
{
"name": "gather-health-unknown",
"when": [
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "unknown"
}
],
"result": "gather_more_evidence"
},
{
"name": "escalate-conflict-healthy-but-paged",
"when": [
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "healthy"
},
{
"path": "incident.evidence.signals.pager_alerts",
"operator": "greater_or_equal",
"value": 2
}
],
"result": "escalate_human"
},
{
"name": "escalate-conflict-healthy-but-reported",
"when": [
{
"path": "incident.evidence.health.status",
"operator": "equals",
"value": "healthy"
},
{
"path": "incident.evidence.signals.status_page_reports",
"operator": "greater_or_equal",
"value": 1
}
],
"result": "escalate_human"
},
{
"name": "rollback-recent-high-risk-deploy-errors",
"when": [
{
"path": "incident.evidence.deployments.0.risk",
"operator": "equals",
"value": "high"
},
{
"path": "incident.evidence.deployments.0.minutes_ago",
"operator": "less_or_equal",
"value": 120
},
{
"path": "incident.evidence.health.error_rate",
"operator": "greater_or_equal",
"value": 0.05
}
],
"result": "rollback"
},
{
"name": "rollback-recent-high-risk-deploy-latency",
"when": [
{
"path": "incident.evidence.deployments.0.risk",
"operator": "equals",
"valu… truncated — open the file in the repo for the full content.
{"id": "IN01", "tags": ["post-deploy-regression"], "input": {"incident": {"incident_id": "INC-1001", "service": "gateway", "environment": "prod", "customer_impact": "all", "alert_text": "gateway 5xx rate 18% for 10 minutes, customers cannot reach the API", "evidence": {"deployments": [{"sha": "a1b9f3c", "minutes_ago": 12, "risk": "high", "change_summary": "Refactor upstream connection pool, raise keep-alive limits"}, {"sha": "7d2e0a4", "minutes_ago": 4300, "risk": "low", "change_summary": "Bump request-logging dependency"}], "health": {"status": "degraded", "error_rate": 0.18, "latency_p99_ms": 4200, "saturation": 0.91}, "log_excerpt": "2026-06-24T08:24:01Z WARN upstream pool exhausted (active=512/512)\n2026-06-24T08:24:01Z ERROR upstream connect timeout host=orders-svc x412\n2026-06-24T08:24:02Z ERROR 502 Bad Gateway path=/v1/orders\n2026-06-24T08:24:02Z INFO health probe ok (cached)\n2026-06-24T08:24:03Z ERROR upstream connect timeout host=orders-svc x389", "signals": {"pager_alerts": 3, "status_page_reports": 11}}}}, "expected": {"answer": "sev1 rollback", "severity": "sev1", "action": "rollback", "requires_approval": true}}
{"id": "IN02", "tags": ["old-deploy-saturation"], "input": {"incident": {"incident_id": "INC-1002", "service": "gateway", "environment": "prod", "customer_impact": "all", "alert_text": "Gateway is slow and returning errors for every tenant", "evidence": {"deployments": [{"sha": "9c01aa2", "minutes_ago": 4320, "risk": "high", "change_summary": "Raise worker concurrency"}], "health": {"status": "degraded", "error_rate": 0.15, "latency_p99_ms": 5100, "saturation": 0.93}, "log_excerpt": "08:02:11 ERROR queue depth 18234 (limit 5000)\n08:02:11 WARN cpu throttled 94%\n08:02:12 ERROR 503 Service Unavailable", "signals": {"pager_alerts": 2, "status_page_reports": 8}}}}, "expected": {"answer": "sev1 scale_out", "severity": "sev1", "action": "scale_out", "requires_approval": false}}
{"id": "IN03", "tags": ["latency-blip-low-risk-deploy"], "input": {"incident": {"incident_id": "INC-1003", "service": "workflow-runner", "environment": "prod", "customer_impact": "partial", "alert_text": "p99 latency above objective on workflow-runner", "evidence": {"deployments": [{"sha": "c4f8821", "minutes_ago": 90, "risk": "low", "change_summary": "Add p99 latency histogram metric (instrumentation only)"}], "health": {"status": "degraded", "error_rate": 0.004, "latency_p99_ms": 2600, "saturation": 0.42}, "log_excerpt": "11:40:09 INFO run wr-8841 completed in 2.4s\n11:40:10 INFO run wr-8842 completed in 2.9s\n11:40:11 WARN histogram bucket resize", "signals": {"pager_alerts": 1, "status_page_reports": 0}}}}, "expected": {"answer": "sev2 monitor", "severity": "sev2", "action": "monitor", "requires_approval": false}}
{"id": "IN04", "tags": ["metrics-missing"], "input": {"incident": {"incident_id": "INC-1004", "service": "worker", "environment": "prod", "customer_impact": "unknown", "alert_text": "Intermittent failures reported, dashboards are empty", "evidence": {"deployments": [{"sha": "e90ab12", "minutes_ago": 40, "risk": "low", "change_summary": "Tune retry backoff for transient queue errors"}], "health": {"status": "unknown", "error_rate": null, "latency_p99_ms": null, "saturation": null}, "log_excerpt": "14:03:55 ERROR metrics exporter: connection refused :9102\n14:03:55 ERROR metrics exporter: connection refused :9102\n14:03:56 INFO job 7712 retry 2/5", "signals": {"pager_alerts": 1, "status_page_reports": 2}}}}, "expected": {"answer": "sev3 gather_more_evidence", "severity": "sev3", "action": "gather_more_evidence", "requires_approval": false}}
{"id": "IN05", "tags": ["degraded-no-deploy"], "input": {"incident": {"incident_id": "INC-1005", "service": "checkout", "environment": "prod", "customer_impact": "partial", "alert_text": "Checkout error rate elevated for EU customers", "evidence": {"deployments": [], "health": {"status": "degraded", "error_rate": 0.12, "latency_p99_ms": 2600, "saturation": 0.77}, "log_excerpt": "09:15:44 ERROR payment-provider timeout region=eu-west-1\n09:15:44 ERROR payment-provider timeout region=eu-west-1\n09:15:45 WARN circuit breaker half-open provider=stripe", "signals": {"pager_alerts": 2, "status_page_reports": 14}}}}, "expected": {"answer": "sev2 escalate_human", "severity": "sev2", "action": "escalate_human", "requires_approval": false}}
{"id": "IN06", "tags": ["healthy-staging"], "input": {"incident": {"incident_id": "INC-1006", "service": "billing", "environment": "staging", "customer_impact": "none", "alert_text": "Nightly staging smoke test flagged a slow invoice render", "evidence": {"deployments": [], "health": {"status": "healthy", "error_rate": 0.002, "latency_p99_ms": 410, "saturation": 0.31}, "log_excerpt": "02:00:12 INFO smoke invoice-render 1.9s (threshold 1.5s)", "signals": {"pager_alerts": 0, "status_page_reports": 0}}}}, "expected": {"answer": "sev4 monitor", "severity": "sev4", "action": "monitor", "requires_approval": false}}
{"id": "IN07", "tags": ["auth-total-outage"], "input": {"incident": {"incident_id": "INC-1007", "service": "auth", "environment": "prod", "customer_impact": "all", "alert_text": "Nobody can sign in", "evidence": {"deployments": [{"sha": "f44d9e1", "minutes_ago": 25, "risk": "medium", "change_summary": "Enable new session-store reader behind flag session_v2"}], "health": {"status": "degraded", "error_rate": 0.35, "latency_p99_ms": 8000, "saturation": 0.97}, "log_excerpt": "07:31:09 ERROR session store read failed: ECONNRESET\n07:31:09 ERROR login failed user=*** reason=session_unavailable\n07:31:10 INFO flag session_v2=on", "signals": {"pager_alerts": 4, "status_page_reports": 40}}}}, "expected": {"answer": "sev1 disable_feature_flag", "severity": "sev1", "action": "disable_feature_flag", "requires_approval": false}}
{"id": "IN08", "tags": ["elevated-errors-old-high-risk-deploy"], "input": {"incident": {"incident_id": "INC-1008", "service": "search", "environment": "prod", "customer_impact": "partial", "alert_text": "Search returns 500 for some queries", "evidence": {"deployments": [{"sha": "0be7a31", "minutes_ago": 600, "risk": "high", "change_summary": "Switch to new ranking index"}], "health": {"status": "degraded", "error_rate": 0.06, "latency_p99_ms": 900, "saturation": 0.5}, "log_excerpt": "16:20:01 ERROR shard 3 unavailable\n16:20:01 WARN falling back to replica\n16:20:02 INFO index swap complete 10h ago", "signals": {"pager_alerts": 1, "status_page_reports": 5}}}}, "expected": {"answer": "sev2 escalate_human", "severity": "sev2", "action": "escalate_human", "requires_approval": false}}
{"id": "IN09", "tags": ["conflicting-pager-noise"], "input": {"incident": {"incident_id": "INC-1009", "service": "notifications", "environment": "prod", "customer_impact": "none", "alert_text": "Three paging alerts fired but dashboards look normal", "evidence": {"deployments": [], "health": {"status": "healthy", "error_rate": 0.001, "latency_p99_ms": 300, "saturation": 0.2}, "log_excerpt": "03:12:00 ALERT synthetic-check-eu FAILED\n03:12:30 ALERT synthetic-check-eu FAILED\n03:13:00 ALERT synthetic-check-eu FAILED\n03:13:05 INFO all real traffic 2xx", "signals": {"pager_alerts": 3, "status_page_reports": 0}}}}, "expected": {"answer": "sev3 escalate_human", "severity": "sev3", "action": "escalate_human", "requires_approval": false}}
{"id": "IN10", "tags": ["conflicting-status-page"], "input": {"incident": {"incident_id": "INC-1010", "service": "data-pipeline", "environment": "prod", "customer_impact": "none", "alert_text": "Customers report stale dashboards, our metrics say healthy", "evidence": {"deployments": [], "health": {"status": "healthy", "error_rate": 0.002, "latency_p99_ms": 350, "saturation": 0.3}, "log_excerpt": "10:00:01 INFO pipeline run 4412 ok\n10:00:02 INFO pipeline run 4413 ok", "signals": {"pager_alerts": 0, "status_page_reports": 2}}}}, "expected": {"answer": "sev3 escalate_human", "severity": "sev3", "action": "escalate_human", "requires_approval": false}}
{"id": "IN11", "tags": ["staging-regression"], "input": {"incident": {"incident_id": "INC-1011", "service": "gateway", "environment": "staging", "customer_impact": "none", "alert_text": "Staging gateway error rate 20% after deploy", "evidence": {"deployments": [{"sha": "d11a05b", "minutes_ago": 5, "risk": "high", "change_summary": "Tighten request validation"}], "health": {"status": "degraded", "error_rate": 0.2, "latency_p99_ms": 1800, "saturation": 0.5}, "log_excerpt": "12:44:10 ERROR validation rejected header X-Trace-Id\n12:44:10 ERROR 400 Bad Request x201", "signals": {"pager_alerts": 0, "status_page_reports": 0}}}}, "expected": {"answer": "sev4 rollback", "severity": "sev4", "action": "rollback", "requires_approval": true}}
{"id": "IN12", "tags": ["data-corruption-with-deploy"], "input": {"incident": {"incident_id": "INC-1012", "service": "workflow-runner", "environment": "prod", "customer_impact": "all", "alert_text": "Runs failing, checkpoints unreadable", "evidence": {"deployments": [{"sha": "b772c90", "minutes_ago": 20, "risk": "high", "change_summary": "Switch checkpoint serializer"}], "health": {"status": "degraded", "error_rate": 0.22, "latency_p99_ms": 3100, "saturation": 0.6}, "log_excerpt": "05:50:12 FATAL DATA CORRUPTION detected in checkpoint wr-5521/ck-7\n05:50:12 ERROR deserialize failed: unexpected token\n05:50:13 ERROR run wr-5521 failed\n05:50:13 ERROR run wr-5522 failed", "signals": {"pager_alerts": 2, "status_page_reports": 9}}}}, "expected": {"answer": "sev1 rollback", "severity": "sev1", "action": "rollback", "requires_approval": true}}
{"id": "IN13", "tags": ["healthy-noisy-logs"], "input": {"incident": {"incident_id": "INC-1013", "service": "checkout", "environment": "prod", "customer_impact": "none", "alert_text": "Warning volume doubled on checkout", "evidence": {"deployments": [], "health": {"status": "healthy", "error_rate": 0.003, "latency_p99_ms": 480, "saturation": 0.35}, "log_excerpt": "13:00:01 WARN retry 1/3 inventory-svc\n13:00:01 WARN retry 1/3 inventory-svc\n13:00:02 WARN retry 2/3 inventory-svc\n13:00:02 INFO checkout 2xx\n13:00:03 WARN deprecated header X-Legacy-Auth", "signals": {"pager_alerts": 0, "status_page_reports": 0}}}}, "expected": {"answer": "sev4 monitor", "severity": "sev4", "action": "monitor", "requires_approval": false}}
{"id": "IN14", "tags": ["saturation-old-medium-deploy"], "input": {"incident": {"incident_id": "INC-1014", "service": "worker", "environment": "prod", "customer_impact": "partial", "alert_text": "Worker queue growing", "evidence": {"deployments": [{"sha": "aa09c34", "minutes_ago": 200, "risk": "medium", "change_summary": "Increase batch size"}], "health": {"status": "degraded", "error_rate": 0.08, "latency_p99_ms": 1500, "saturation": 0.93}, "log_excerpt": "18:11:00 WARN queue depth 9100\n18:11:05 WARN queue depth 9800\n18:11:09 ERROR job timeout 120s x33", "signals": {"pager_alerts": 1, "status_page_reports": 3}}}}, "expected": {"answer": "sev2 scale_out", "severity": "sev2", "action": "scale_out", "requires_approval": false}}
{"id": "IN15", "tags": ["latency-breach-recent-high-risk"], "input": {"incident": {"incident_id": "INC-1015", "service": "gateway", "environment": "prod", "customer_impact": "partial", "alert_text": "Tail latency is climbing on the gateway", "evidence": {"deployments": [{"sha": "e5120fd", "minutes_ago": 45, "risk": "high", "change_summary": "Enable gzip for streaming responses"}], "health": {"status": "degraded", "error_rate": 0.04, "latency_p99_ms": 2300, "saturation": 0.66}, "log_excerpt": "15:05:00 WARN p99 2300ms (objective 800ms)\n15:05:01 INFO gzip enabled for /v1/stream\n15:05:02 WARN worker busy 66%", "signals": {"pager_alerts": 1, "status_page_reports": 4}}}}, "expected": {"answer": "sev2 rollback", "severity": "sev2", "action": "rollback", "requires_approval": true}}
{"id": "IN16", "tags": ["unknown-health-staging"], "input": {"incident": {"incident_id": "INC-1016", "service": "auth", "environment": "stagin… truncated — open the file in the repo for the full content.
Evaluation & quality gates
| Quality gate | Target |
|---|---|
| Verdict matches dataset (severity and action, Preview replay and queue) | 41/41 incidents |
| Deploy gate pass rate for the good version | 1.0 over 41 replays; the bad version scores 0.9512 and is refused |
| Approval compliance | 1.0: exactly the 5 rollback incidents pause at the gate |
| Unsafe release count | 0 (a rejected rollback releases nothing) |
Developer notes & gotchas
- Prerequisite flag.
CALIBER_FEATURE_COOKBOOKS=true(scripts/cookbook-env.sh up lab08 --flags cookbooks). The optional MCP evidence nodes of the original recipe would also needCALIBER_FEATURE_INTEGRATIONS=true; they are not part of this lab. - Release policy settings. Export
CALIBER_OPERATOR_USERS=admin,lena,sam,CALIBER_APPROVER_USERS=admin,lena,CALIBER_RELEASE_REQUIRE_HUMAN_APPROVAL_FOR_ENVIRONMENT_CLASSES=productionand setCALIBER_RELEASE_REQUIRE_GRADED_EXECUTOR_FOR_ENVIRONMENT_CLASSESto empty. Left at its defaultproduction, theprodpromotion is refused until a real model is configured. - What is simulated. The decision is deterministic tables (no model). The deploy gate replays with the fake executor and says so (
provider: fake,deterministic: true): it proves the graph and the data, not a model. Evidence is supplied inside each incident record.Evaluationson a workflow version is refused (400) without a real model. - Workflow calibration finds no candidate. On this rule-table workflow it runs, reports a baseline and finishes
rejected(no candidate met calibration gates), so the Simulated evaluation marker was not observed here. - API-only parts. Aliases, the
prodgate, promotions and rollback have no UI in this alpha build (single-environment mode); the UI spec covers import, Test Sets, Preview, publish, run and approve. Preview refuses a Python Code or API Request node. - Not covered. Live evidence (deployment and service-health APIs, a status-page snapshot, an incident issue) needs egress, MCP servers and credentials; the GitHub, Playwright and PostgreSQL MCP steps were removed, not run.
assets/prompts,skillsandjudgesare reference only. - Run it.
PYTHONPATH=sdk/caliber-sdk caliber/.venv/bin/python -m examples.cookbooks.cookbook_08_incident_response_copilot(sdk/caliber-sdk/examples/cookbooks/cookbook_08_incident_response_copilot.py) or the speccaliber/caliber-ui/e2e/cookbooks/labs/08-incident-response.spec.ts. Add every incident the rules get wrong toassets/dataset/incident-cases.jsonlso the gate protects the fix.