CALIBER
Quickstart

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, 10 sev2, 12 sev3, 11 sev4, including noisy logs, conflicting evidence, missing metrics and the boundary cases IN40 and IN41
  • Import a workflow that names a test set: it is refused with unresolved_import_dependency until the test set incident-cases exists in the workspace
  • Promote to prod through a deploy gate that replays the test set (pass rate 1.0, executor reported as fake), wait for a second person's approval, and see a bad version refused with 400 deploy gate failed (pass rate 0.9512)
  • Gate only the 5 rollback incidents (IN01, IN11, IN12, IN15, IN23) at the review node: self-approval is 403, an approval releases ROLLBACK_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 --> F

Step-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.

  1. Admin › Administration
    Create lena and sam under Accounts (password cookbook08-lab-passphrase), create a workspace with the top bar +, and add both as Reviewer under Project access. The server must list lena in CALIBER_APPROVER_USERS.
    Click Add member
    You'll see: Created lena. then Added lena to <workspace>.
    Screen snapshot
    caliber · Admin › Administration
    Administration
    Add member
  2. Agent resources › Workflows › Import incident-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 file incident-commander.workflow.json, Validate dependencies.
    Click Validate dependencies
    You'll see: Preflight needs attention and is not visible in this workspace: the import is refused until the test set exists.
    Screen snapshot
    caliber · Agent resources › Workflows › Import
    WorkflowsImport
    Validate dependencies
  3. Prompt lifecycle › Test Sets incident-cases.jsonl ↓
    Press + New Test Set, type the name from the manifest (incident-cases), owner @lab08, Create, open it and press Import from file; choose incident-cases.jsonl and press Import 41 rows.
    Fill in
    Nameincident-cases
    Owner@lab08
    Fileincident-cases.jsonl
    Click Import 41 rows
    You'll see: incident-cases.jsonl: 41 rows ready to import. then 41 active examples; the gateway incident's row shows "answer": "sev1 rollback".
    Screen snapshot
    caliber · Prompt lifecycle › Test Sets
    Test SetsTest Sets
    Import 41 rows
  4. Agent resources › Workflows › Import
    Import again with the same file and name, Validate dependencies, then Import as new.
    Click Import as new
    You'll see: Preflight passed; the editor opens with severity_table, action_table, join, triage_router and review in the outline.
    Screen snapshot
    caliber · Agent resources › Workflows › Import
    WorkflowsImport
    Import as new
  5. Workflows › editor
    Press Validate, then Preview, paste the IN01 incident and press Run Preview, and open the summarize step. Unlike a Python Code workflow, this one previews.
    Click Run Preview
    You'll see: The toolbar says Valid.; the preview is completed and the summarize step shows sev1 rollback.
    Screen snapshot
    caliber · Workflows › editor
    Workflowseditor
    Run Preview
  6. Workflows › editor
    Press Publish, Run Validation, Next, Next, Publish.
    Click Publish
    You'll see: The toolbar says Published. The alpha UI has no Deployments or Promotions tab: the staging and gated prod aliases, the deploy gate and rollback are API only.
    Screen snapshot
    caliber · Workflows › editor
    Workflowseditor
    Publish
  7. Workflows › editor › Run Monitor
    Open Run Monitor, paste an incident ({"incident": {...}}) and press Run. Run IN06 (healthy staging), then IN01 (gateway regression after a deploy). Then press Approve on the IN01 run as the same account.
    Click Run
    You'll see: IN06 completes with RECOMMENDATION and sev4 monitor. IN01 stops at waiting_approval; Approve as the starter shows a second person must decide.
    Screen snapshot
    caliber · Workflows › editor › Run Monitor
    WorkflowsRun Monitor
    Run
  8. Workflows › (workflow) › Runs, as lena
    Sign in as lena, choose the workspace, open Workflows, the workflow and its Runs tab, select the run that shows Awaiting approval, press Approve, then Resume.
    Click Resume
    You'll see: The run's output contains ROLLBACK_APPROVED and the sev1 rollback verdict. (Evaluations can also score a Workflow version as the subject, at most 20 examples per run; with the simulated provider it answers 400 evaluation requires a real LLM provider.)
    Screen snapshot
    caliber · Workflows › (workflow) › Runs, as lena
    WorkflowsRuns, as lena
    Resume
  9. Workflows › (workflow) › Versions, then the editor
    On Versions press Restore as draft on v1 (a new draft, v2). Double-click action_table in the outline; in Configuration (JSON) change the value of the error_rate condition of the rule rollback-recent-high-risk-deploy-errors from 0.05 to 0.5 and click outside the box. Save, Validate, Preview the IN23 incident and open summarize; then Publish (v2) and, on Versions, compare v1 (Base) with v2 (Compare).
    Click Publish
    You'll see: IN23 now reads sev2 escalate_human (v1: sev2 rollback); the comparison shows one modified node, action_table. The API script's prod gate refuses this version (pass rate 0.9512); the alpha UI has no gate.
    Screen snapshot
    caliber · Workflows › (workflow) › Versions, then the editor
    WorkflowsVersions, then the editor
    Publish
  10. Workflows › (workflow) › Versions
    Press Restore as draft on v1 again (v3), Preview IN23, then Publish.
    Click Publish
    You'll see: IN23 reads sev2 rollback again; Versions lists v1, v2 and v3.
    Screen snapshot
    caliber · Workflows › (workflow) › Versions
    WorkflowsVersions
    Publish
  11. Prompt lifecycle › Evaluations › Run evaluation
    Pick the test set, What to score Workflow 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 Run
    You'll see: Simulated: evaluation requires a real LLM provider. Real: a completed row 20/20; its detail says graded 20 of 41 active examples.
    Screen snapshot
    caliber · Prompt lifecycle › Evaluations › Run evaluation
    EvaluationsRun evaluation
    Run
  12. Agent resources › Agents, then Workflows › (workflow) › Calibrate
    New 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 Calibration
    You'll see: The dataset badge reads 41 examples; the run ends rejected with a Structural score badge (and Simulated evaluation on a simulated stack).
    Screen snapshot
    caliber · Agent resources › Agents, then Workflows › (workflow) › Calibrate
    WorkflowsCalibrate
    Start 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/.

assets/workflows/incident-commander.workflow.json
{
  "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.
assets/dataset/incident-cases.jsonl
{"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 gateTarget
Verdict matches dataset (severity and action, Preview replay and queue)41/41 incidents
Deploy gate pass rate for the good version1.0 over 41 replays; the bad version scores 0.9512 and is refused
Approval compliance1.0: exactly the 5 rollback incidents pause at the gate
Unsafe release count0 (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 need CALIBER_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=production and set CALIBER_RELEASE_REQUIRE_GRADED_EXECUTOR_FOR_ENVIRONMENT_CLASSES to empty. Left at its default production, the prod promotion 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. Evaluations on 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 prod gate, 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, skills and judges are 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 spec caliber/caliber-ui/e2e/cookbooks/labs/08-incident-response.spec.ts. Add every incident the rules get wrong to assets/dataset/incident-cases.jsonl so the gate protects the fix.

CALIBER : Contextual Adaptive Lifecycle for Intelligent Build, Evaluation, and Refinement — Cookbooks — every recipe is UI-implementable on the shipped platform. Source + assets under docs-site/cookbooks/<nn>-…/. Regenerate with python3 docs-site/cookbooks/training/build.py.