Early access: verified fix PRs ·

See how a fix is proven
AutoSRE
AI SRE

Graduated AI Autonomy in SRE: From Observe to Confidence-Gated Auto-PRs

Learn how to safely deploy AI SRE agents using graduated autonomy modes, moving from passive telemetry observation to deterministic reproductions and confidence-gated draft PRs.

AutoSRE Engineering·November 30, 2026·4 min read
Back to all articles

TL;DR

  • Graduated autonomy establishes a progressive pathway for AI agents in production reliability: Observe, Reproduce, Suggest, and Auto-PR.
  • Starting in Observe and Reproduce modes verifies telemetry parsing and deterministic reproduction without risking unwanted repository modifications.
  • Confidence-gated Auto-PR modes open draft PRs strictly on isolated feature branches, enforcing zero direct commits to default branches and zero auto-merges.
  • High-risk path guards and designated admin approvers prevent automated alterations to critical paths like database migrations, authentication, and CI/CD pipelines.

Why is all-or-nothing AI autonomy dangerous in SRE?

Engineering teams often treat AI remediation tools with skepticism because granting autonomous write access to production codebases introduces significant operational risk. Hallucinated fixes, circular logic, and unvetted dependency updates can turn transient errors into catastrophic production outages.

Traditional automation usually operates under a binary model: it is either completely passive (emitting notifications) or fully active (applying automated scripts). When generative models act without progressive oversight, teams lose visibility into the underlying reasoning. Graduated autonomy solves this tension by decoupling problem ingestion and validation from code generation and submission.

By moving an AI SRE engine through stepped autonomy tiers, platform and reliability teams can evaluate the system's root-cause deductions against real-world OpenTelemetry signals before allowing automated code proposals.

What are the 4 autonomy modes of an AI SRE?

An enterprise-ready AI SRE system operates across four distinct operational boundaries:

1. Observe Mode: Ingests telemetry, clusters distributed traces, strips sensitive data, and classifies failure signatures without executing sandbox builds or modifying repositories. 2. Reproduce Mode: Takes ingested trace failures and provisions offline, ephemeral sandboxes to generate reliable, deterministic test reproductions without proposing code changes. 3. Suggest Mode: Generates candidate code fixes and displays contextual diffs inside the platform dashboard, requiring manual engineer export or copy-paste. 4. Auto-PR Mode: Automatically forks isolated feature branches and opens draft PRs via GitHub App integrations when root-cause confidence and reproduction validations pass.

+-----------+ +-------------+ +-----------+ +-----------+ | Observe | ==> | Reproduce | ==> | Suggest | ==> | Auto-PR | +-----------+ +-------------+ +-----------+ +-----------+ Telemetry Ephemeral Candidate Confidence- Ingestion Reproduction Diffs in UI Gated Draft & Redaction in Sandbox PR Creation

How does Observe Mode validate OpenTelemetry ingest safely?

In Observe mode, the platform accepts distributed traces via the standard OTLP/HTTP JSON endpoint (/v1/ingest/otlp/v1/traces). Before any reasoning takes place, the ingestion pipeline executes automatic PII and secret redaction, scrubbing bearer tokens, JWTs, authorization headers, cookies, credit cards, and emails, along with up to 30 custom organizational regex patterns.

You can inspect incoming OTLP payload structures using the OTLP Trace Viewer to ensure spans contain proper attributes without leaking sensitive environment values.

Once sanitized, the system clusters errors using signature deduplication and categorizes the incident into triage classifications: code_bug, infra, third_party, config_change, or noise. Because Observe mode does not touch the source repository or fire sandboxes, teams can monitor triage accuracy against real production telemetry with zero blast radius.

Why is Reproduce Mode critical before opening pull requests?

Code suggestions without verified reproductions generate developer toil. In Reproduce mode, the platform uses failure metadata to spin up an ephemeral Upstash Box sandbox. The execution flow follows strict sandboxing rules:

  • The environment initializes the Node.js or TypeScript application.
  • It reads the repository's .tracefix/replay.json specification.
  • All outbound network access is severed post-setup to guarantee isolation.
  • The system attempts to construct a minimal, failing regression test.

{ "version": "1", "setup": "npm install --frozen-lockfile", "testCommand": "npm test -- --runInBand", "reproduction": { "path": "src/services/billing.ts", "expectedFailure": "TypeError: Cannot read properties of undefined (reading 'status')" } }

To eliminate transient CI failures, the sandbox runs 3x flake reruns. If the engine cannot deterministically reproduce the error in isolation, it aborts further automated remediation. If the sandbox successfully reproduces the failure but cannot validate a deterministic patch, it generates a test-only reproduction branch rather than an unvalidated code fix.

How do confidence-gated Auto-PRs prevent production regressions?

When graduated autonomy is advanced to Auto-PR, the AI SRE acts as an automated contributor under strict controls. It never commits directly to main or default production branches, and it never triggers automatic merges. It interfaces purely through GitHub App permissions to open draft PRs on dedicated feature branches.

The system evaluates patches using managed Google Gemini models (Gemini 2.5 Flash, 2.5 Pro, and 2.5 Flash-Lite) combined with historical Fix Memory. The transition from test generation to draft PR submission requires:

1. Deterministic sandbox validation: The patch must convert the reproducing test from failing to passing inside the offline sandbox. 2. Regression avoidance: Existing repository test suites must pass without regression. 3. Post-deploy regression detection: Historical rejection patterns in Fix Memory are analyzed to ensure the proposed diff does not reintroduce previously discarded approaches.

Engineers debugging complex trace exceptions before PR review can also validate stack frames with the client-side Stack Trace Parser to cross-reference file paths.

How do high-risk path guards and designated admin approvers work?

Certain directories should never be altered by automated systems without explicit human authorization. Graduated autonomy enforces high-risk path guards. If a candidate patch touches critical infrastructure or schema paths, Auto-PR is immediately locked behind designated admin approvers.

Typical high-risk paths defined in repository policies include:

  • prisma/migrations/** or db/migrations/** (database schemas)
  • src/auth/** or src/middleware/jwt.ts (authentication handlers)
  • .github/workflows/** (CI/CD pipeline declarations)
  • k8s/** or helm/** (container orchestration)

When a candidate patch modifies any matched path, the draft PR is flagged, automated branch progression halts, and review requests are assigned strictly to designated senior approvers. Furthermore, learned policy rules extracted from previous human PR rejections dynamically restrict the AI SRE from proposing repetitive or unaccepted coding patterns.

By advancing through Observe, Reproduce, Suggest, and Auto-PR, engineering organizations transform AI SRE from an unpredictable risk into a deterministic, verifiable component of their reliability lifecycle.

#AI SRE#graduated autonomy#draft PRs#Site Reliability Engineering#OpenTelemetry
Live Now · Grow into 360° SRE

Start with OTLP trace replay and verified PRs today.

GET EARLY ACCESS