Problem Investigator
The Problem Investigator runs when a closed incident matches a known pattern or when the system detects recurrence. What triggers it:- Incident closes with a root cause that has appeared before
- A problem record is manually created from an incident
- A periodic analysis run identifies a cluster of related incidents
- Correlates the incident with prior related incidents
- Produces a root cause analysis (RCA) spanning the related incidents
- Identifies patterns in timing, affected services, and contributing factors
- Generates a postmortem document
- Problem Records page: a new or updated Problem Record with RCA attached
- Knowledge base repository: a pull request adding a postmortem to
.sureops/postmortems/
Fix-PR Agent
The Fix-PR Agent attempts to produce a code-level fix for the root cause identified during diagnosis. What triggers it:- A closed incident where the Resolution Agent identified a code-level change as the appropriate fix
- A Problem Record with
agent_fix_prrecommendations that were not yet executed
- Opens a draft pull request in the affected service’s repository
- Populates the PR with a scaffold: file changes, a description of the proposed fix, and references to the incident and postmortem
- Requests review from the service owner (per your
services.yamlownership config)
Fix-PR code scaffolding is currently in private beta. The agent opens a draft PR with the fix structure and description. Full automated code patch generation is in active development.
- A draft pull request in your GitHub repository
- The incident and Problem Record gain a “Fix PR” link pointing to the open PR
Pre-mortem Agent
The Pre-mortem Agent runs proactively before changes ship, not after incidents close. What triggers it:- A deployment is detected in your environment (via Kubernetes or ArgoCD events)
- A manual trigger from a Problem Record or from the pre-mortem feature
- Reviews the proposed change (deployment diff, PR description, service history)
- Identifies risk factors: prior incidents involving this service, dependency blast radius, recent error rate trends
- Produces a pre-mortem summary: likelihood of incident, risk areas, recommended monitoring during rollout
- Problem Records page: a pre-mortem entry linked to the deployment
- Optionally, a comment on the pull request that triggered the deployment (if GitHub integration is enabled)
Curator
The Curator maintains your knowledge base. It keeps runbooks, incident learnings, and postmortems indexed and searchable. What triggers it:- A push to your knowledge base repository (new or updated runbooks)
- Periodic re-indexing run
- An incident closes and new postmortem content is available
- Re-indexes new and updated runbook files as vector embeddings
- Indexes postmortem content for future incident grounding
- Detects stale runbooks (not reviewed in a configurable period) and surfaces them for attention
- Identifies runbooks that are frequently retrieved but rarely resolved-against, suggesting they may need updating
- Settings → Knowledge Base: updated sync status, service and runbook counts
- Knowledge base repository: periodic PRs proposing runbook updates for stale entries (optional, configurable)
Ordering and independence
Post-closure agents run asynchronously and independently. The Problem Investigator runs first (it produces the RCA that the Fix-PR Agent may reference). The other agents run in parallel. You can view the status of post-closure agents on the Problem Records page and on individual incident detail pages.Configuring post-closure behavior
Post-closure agent behavior is configured in:- Settings → AI Agents: per-agent model and skill overrides
.sureops/policy.yaml: fix PR auto-open, draft mode, and reviewer routing- Settings → Environment → AI Behavior: whether to auto-trigger post-closure agents or require manual triggering