The incident response problem
Teams now have enough telemetry to detect failures quickly. They still lose time in triage and coordination. The hard part is not seeing an alert. The hard part is deciding what to do next, safely.
Published research on automated troubleshooting (for example, Microsoft's work on turning troubleshooting guides into executable mitigation steps) consistently shows the same pattern: the bottleneck is rarely detecting a problem or even knowing the fix. It is deciding, under pressure, whether an action is safe to run automatically and recording why. The gap is operational control, not signal availability.
Failure mode to avoid
Autonomous remediation without policy boundaries turns MTTR gains into change-failure spikes. Speed without control is expensive.
Two-lane architecture
- -Classify severity and impacted services
- -Correlate with deploy and config timeline
- -Generate ranked remediation options
- -Write findings into incident timeline
- -Policy check before queueing request
- -Policy check again before dispatch
- -Approval for high-risk write path actions
- -Verification and rollback trigger after execution
In Cordum terms, this maps to the Safety Kernel decision set (ALLOW, DENY, REQUIRE_APPROVAL, ALLOW_WITH_CONSTRAINTS, plus throttle). The kernel is the policy decision point on the scheduler hot path: it is called before every dispatch, and each decision is evaluated against a versioned policy snapshot (snapshot history is tracked, so you can see exactly which rules produced a verdict). When a rule returns REQUIRE_APPROVAL, the approval record is bound to the job, and the scheduler re-checks policy at dispatch time so a stale approval or a policy change cannot slip an unsafe write into production.
Risk-tier remediation matrix
| Tier | Example actions | Policy | Approval | Notes |
|---|---|---|---|---|
| Low | Enrich alert, fetch traces, annotate timeline, open follow-up ticket | ALLOW | No | Read-only operations, no side effects |
| Medium | Restart non-critical pods, clear cache, scale stateless worker pool | ALLOW_WITH_CONSTRAINTS | Conditional | Bounded blast radius and timeout required |
| High | Prod rollout rollback, feature flag off for high-traffic path | REQUIRE_APPROVAL | Yes | Approval bound to the job and re-verified at dispatch |
| Critical | Schema changes, credential rotations, destructive shell commands | DENY by default | Two-person exception | Execute only through explicit break-glass workflow |
Workflow and policy examples
Start with one deterministic workflow. Keep branches explicit so reviewers can reason about every transition under pressure.
# Start one run per production alert: POST /api/v1/workflows/{id}/runs
name: incident-triage-remediation
steps:
triage:
type: worker
topic: job.incident.triage
timeout_sec: 60
propose_remediation:
type: worker
topic: job.incident.propose_remediation
depends_on: [triage]
timeout_sec: 120
policy_precheck:
type: worker
topic: job.governance.policy_check
depends_on: [propose_remediation]
approval_gate:
type: approval
depends_on: [policy_precheck]
condition: "steps.policy_precheck.output.needs_approval == true"
remediate:
type: worker
topic: job.incident.remediate
depends_on: [policy_precheck, approval_gate]
timeout_sec: 300
verify:
type: worker
topic: job.incident.verify
depends_on: [remediate]
timeout_sec: 120
rollback:
type: worker
topic: job.incident.rollback
depends_on: [verify]
condition: "steps.verify.output.passed == false"# Safety Kernel input policy. Topics use glob matching (path.Match),
# e.g. "job.*". Rules run top to bottom and the first match wins, so
# deny rules go first. risk_tags matches any listed tag; use labels to
# require an environment as well.
rules:
- id: deny-destructive-prod-shell
match:
topics: ["job.exec.shell"]
risk_tags: ["destructive"]
labels:
env: prod
decision: deny
reason: "destructive shell command blocked"
- id: approval-prod-remediation
match:
topics: ["job.incident.remediate"]
risk_tags: ["write"]
labels:
env: prod
decision: require_approval
reason: "high-risk production remediation"
- id: constrained-medium-risk
match:
topics: ["job.incident.remediate"]
risk_tags: ["medium"]
decision: allow_with_constraints
constraints:
budgets:
max_runtime_ms: 180000
max_retries: 2
- id: allow-readonly-triage
match:
topics: ["job.incident.triage"]
decision: allow# promotion-gate.sh # METRICS_API is your own rollout-metrics service; these are not Cordum endpoints. set -euo pipefail UNAPPROVED_HIGH_RISK=$(curl -s "$METRICS_API/metrics/unapproved-high-risk?window=10m") P95_TRIAGE_MS=$(curl -s "$METRICS_API/metrics/triage-p95-ms?window=10m") VERIFY_PASS_RATE=$(curl -s "$METRICS_API/metrics/remediation-verify-pass-rate?window=24h") if [ "$UNAPPROVED_HIGH_RISK" -gt 0 ]; then echo "BLOCK: unapproved high-risk remediation detected" exit 1 fi if [ "$P95_TRIAGE_MS" -gt 180000 ]; then echo "BLOCK: triage latency breach" exit 1 fi if (( $(echo "$VERIFY_PASS_RATE < 0.90" | bc -l) )); then echo "BLOCK: verification pass rate below threshold" exit 1 fi echo "PASS: canary promotion allowed"
Operational gates
| Gate | Target | Rollback trigger | Owner |
|---|---|---|---|
| P95 triage latency | <= 90s | > 180s for 10m | Incident Platform |
| Incorrect triage classification | < 10% weekly | > 20% weekly | SRE + Service Owners |
| Remediation verification pass rate | >= 95% | < 90% daily | Automation On-call |
| Unapproved high-risk executions | 0 | > 0 immediate stop | Governance |
| Approval queue median wait | <= 10m | > 20m for 30m | Incident Command |
| Post-remediation regression | < 2% | > 5% daily | Service Team |
If your team cannot name an owner per gate, the gate does not exist in practice.
Limitations and tradeoffs
Approval bottlenecks
Too many high-risk classifications can create long queues. Calibrate risk tiers with incident review data every week during rollout.
Model drift in triage quality
Triage labels degrade when service topology changes. Require periodic replay tests on recent incidents to keep confidence scores honest.
Rollback side effects
Some rollback actions are not perfectly reversible. Keep compensating procedures explicit in runbooks before enabling automation.