Problem Commander
The Problem Commander is the orchestrator for this pipeline — it’s the agent shown in Settings → AI Agents and the one you configure a model for. Internally it runs a fixed sequence of stages, sequentially, each handing its output to the next:Deep RCA Investigator
Thedeep_rca stage produces the root cause analysis.
What it does:
- Correlates the incident with prior related incidents
- Produces a root cause analysis (RCA) grounded in the incident’s telemetry and timeline
- Identifies patterns in timing, affected services, and contributing factors
- Problem Records page: the Problem Record’s RCA content
- Feeds every downstream stage (critique, recommendations, fix PR, runbook)
- If your knowledge base repository is configured, the
deep_rcastage also opens a pull request adding the postmortem document to.sureops/postmortems/— a separate PR from the runbook PR described below, gated by the org-wide automation kill switch (Settings → Organization → Knowledge Base → Advanced). There’s also a second,.sureops/policy.yaml-level gate for this one: apostmortem_pr.auto_prsetting (default:true) that can be turned off per KB repo to suppress the postmortem PR without touching the kill switch.
Incident Response Critic
Thecritic stage audits how the response itself performed — not the underlying system fault.
What it does:
- Produces a customer-facing critique of your detection and response (what your monitoring and response stages caught, and what they missed) — this lands in the Problem Record as the response critique
Improvement Recommender
Therecommender stage turns the critique into concrete, customer-actionable output.
What it does:
- Produces process improvements you can make to your own incident response process, at most four per run
- Proposes monitor definitions (Grafana today — Datadog is planned but not yet connectable) that would have caught this incident automatically — these land as staged, reviewable monitor proposals. Pushing a proposed monitor live to your provider is a separate approval step and is gated behind the proposed-monitors feature for your plan.
- Adds up to three of its improvements as new action items on the Problem Record, Detect items first. An improvement that repeats an action item already on the record is skipped. A Detect item is linked to its proposed monitor when the recommender staged one for it.
- Problem Records page: process improvements, proposed monitors and the action items on the Problem Record, each AI-generated one tagged Fix, Detect, Process or Prevent
Fix-PR Agent
Thefix_pr stage opens a pull request against the affected service’s repo for the root cause identified during diagnosis — either a revert of the offending commit, or a written fix plan for your team to implement.
What triggers it: the RCA from the deep_rca stage, for the same Problem Record — it’s a node in the Problem Commander pipeline, not a standalone handoff from the Resolution Specialist. Before any of that, your org must be on at least a Starter-tier plan for the fix-PR-generation feature itself — this gate isn’t bypassable, not even by a manual trigger. Above that floor, it is off by default: on an auto trigger, it only opens a PR when both of the following are true — the affected service has source_fix_pr.auto_fix_pr: true in its .sureops/policy.yaml entry, and the org-wide automation kill switch isn’t paused (Settings → Organization → Knowledge Base → Advanced). Either one being false blocks the auto-triggered PR. You can also trigger it manually from a Problem Record — that bypasses the auto_fix_pr and kill-switch checks, but it still respects the plan-tier gate. When the plan gate blocks a fix PR, the Problem Record’s Code fix card shows Not on your plan.
.sureops/policy.yaml fields for this agent all live nested under a source_fix_pr block per service, and that block itself can be set at four layers — most specific wins: per_service.<name>.environments.<env>.source_fix_pr, then per_service.<name>.source_fix_pr, then environments.<env>.source_fix_pr, then defaults.source_fix_pr. This lets you set an org-wide baseline once and override only what changes per service or per environment.
What it does, depending on your service’s resolved source_fix_pr policy:
- Revert mode (
source_fix_pr.allow_revert: true): when the RCA attributes the incident to a specific commit, opens a PR carrying the deterministic inverse diff of that commit — equivalent togit revert, computed by the source-code provider with no LLM involved. The revert is applied on top of the current tip of the base branch, so later edits to the same files survive: a file nobody changed since is restored to its content before the commit, a file edited since has only the commit’s change undone, and files the commit added are deleted. If the revert conflicts with later edits, sureops opens a fix-plan PR instead; if the base branch already has the commit’s change undone, no PR opens. - Fix-plan mode (the default, and the fallback whenever revert isn’t allowed or no single commit is attributed): opens a PR that adds a written fix plan — a Markdown document, by default under
fixes/in the service repo — describing the recommended fix for your team to implement. It does not change any code. - Both
auto_fix_prandallow_revertare opt-in per service and disabled by default (source_fix_pr.auto_fix_pr: false,source_fix_pr.allow_revert: false). During the private beta, though, thepolicy.yamlin sureops’ starter contract turns both on (along withallow_forward_diff) — see policy.yaml to change that. (source_fix_pr.allow_forward_diffgoverns a different path — LLM-written code fixes opened during the incident itself by the Resolution Specialist — see Incident Pipeline Agents.) - Requests review from reviewers configured in that service’s resolved
source_fix_pr.reviewers.
- A pull request in your GitHub repository (a revert PR may already be merged if your org has delegated merge authority to sureops; a fix-plan PR always stays open — see below)
- The incident and Problem Record gain a “Fix PR” link pointing to the PR
- The Problem Record’s fix-PR status follows GitHub: when someone merges, closes or reopens the PR there, the status updates to match
policy.yaml sets source_fix_pr.draft: false (the private-beta starter policy does), for your team to review and merge. A revert PR whose merge failed was opened ready for review and stays that way. In every mode, the agent opens a PR from its own branch and never pushes directly to a protected branch.
Runbook drafting
The finalrunbook stage runs only when deep_rca produced an RCA. It assembles a runbook from everything the earlier stages produced (RCA, critique, action items, timeline) and opens a separate pull request — distinct from the postmortem PR described under Deep RCA Investigator above — adding it to your knowledge base repository under .sureops/runbooks/. Like the postmortem PR, this one is gated by both the org-wide automation kill switch (Settings → Organization → Knowledge Base → Advanced) and the same postmortem_pr.auto_pr policy.yaml setting described above — no separate per-service opt-in beyond that shared flag.
Approval and merging: same as the postmortem PR — no approval step. If your org has delegated merge authority to sureops (during the private beta, every organization has delegated merge authority to sureops by default — see Guided Onboarding Journey), sureops tries to merge it as soon as it opens (if the merge fails, it stays open for your team); otherwise it opens as a regular PR for your team to review and merge.
Pre-mortem Agent (roadmap)
Pre-mortems — automated risk analysis on a pull request before it ships — are not yet available; they’re on the roadmap. See Pricing & Tiers for current status. When shipped, the design is: a GitHub webhook fires on a pull request being opened or updated (synchronize), and the agent reviews the diff against service history and dependency blast radius to produce a pre-mortem summary — likelihood of incident, risk areas, recommended monitoring during rollout. It would be advisory only and would never block a deployment.
Configuring post-closure behavior
Post-closure agent behavior is configured in:- Settings → AI Agents: Problem Commander’s model
.sureops/policy.yaml(source_fix_prblock — settable atdefaults, per-environment, and per-service layers): Fix-PR auto-open, draft mode, revert opt-in, reviewer routing — and the forward-diff opt-in, which applies to incident fix PRs rather than this pipeline- Settings → Organization → Code fixes: read-only. It explains the
source_fix_prkeys, says whether sureops merges these PRs for your org, and lists the service-to-repo mappings sureops read from your contract (edit them inservices.yaml). Auto-open and reviewers are set only inpolicy.yaml(source_fix_pr.auto_fix_prandsource_fix_pr.reviewers) - Settings → Incident Policy: which closed incidents produce a Problem Record in the first place
- Settings → Organization → Knowledge Base → Advanced: the org-wide automation kill switch that gates the fix-PR, postmortem, and runbook PRs