Skip to content
AI Agents

Governing AI Remediation: How to Let AI Fix Code Without Losing Control

An SRE's guide to governing AI remediation: scope fixes by blast radius, route every approval by policy to a named human, and keep every change reversible.

Zof Reliability Team · Engineering & product

January 20, 2026 · 7 min read · Updated January 20, 2026

Share
01

Why unsupervised fixing is the reckless part

Remediation is the hardest stage of the reliability loop for a simple reason: it mutates production behavior. Understanding a system is read-only. Testing and reproduction are observation. Remediation acts. And it acts in an environment where the inputs have gotten worse, not better. A growing share of new code is AI-generated, and AI coding tasks regularly introduce flaws and security issues. An autonomous fixer drawing on that same kind of output, left to merge on its own judgment, is just one more author with an unknown defect rate and no accountability trail.

The failure pattern is easy to picture if you run retail reliability. An agent sees elevated latency on the cart service, identifies a hot query, and "fixes" it by adding an aggressive cache. Latency drops. It also starts serving stale inventory counts during a flash sale, and you oversell. The agent solved the symptom it was pointed at and created a worse problem it was never scoped to consider. Nobody authorized that tradeoff because nobody was asked.

This is why the governing principle is non-negotiable: agents propose, humans authorize. Unsupervised autonomous fixing is not advanced automation; it removes the one checkpoint that contains blast radius. In Governed Remediation, Zof proposes a patch with its evidence, and a human approves and applies it. The engineering work is not producing the patch, which is increasingly cheap. It is the governance: the scoping, the policy, the approval, and the reversal.

02

Scope first: bound the fix to a known blast radius

A fix you cannot scope is a fix you cannot govern. Before an agent proposes anything, the control layer has to answer one question: if this change is wrong, what breaks and who is exposed? That answer does not come from the diff. It comes from the dependency graph.

This is where a System Graph does the load-bearing work. Because it maps services and dependencies into one change-aware model, it can tell you that the proposed cart-service fix sits on the path to the payments authorization service, which has a downstream rate limit, and that a config change two repos away is reachable from checkout. Scope is computed from that topology, not from how many lines moved or who wrote it.

Concretely, every remediation proposal should carry a scope envelope before it reaches a human:

  • The change surface. Exactly which services, dependencies, and data paths the fix touches, derived from the graph.
  • The blast radius. What is downstream of the change surface, and which of those nodes are revenue-bearing, regulated, or on a critical request path.
  • The reachability of the original defect. Whether the flaw being fixed can even be reached from a live entry point. Prioritizing by reachability is an approach worth adopting on its own: it keeps proposals focused on real exposure instead of churning against theoretical risk.

A fix whose blast radius touches checkout or payment authorization is a fundamentally different object than one isolated to an internal admin tool. If your remediation system cannot tell those two apart before it asks for approval, it is not governed. It is guessing, and asking you to co-sign the guess.

03

Authorize by policy, not by vibe

Once a fix is scoped, the question is which human has to approve it. The wrong answer is "one overloaded SRE eyeballs every one with no context," because that does not scale and it teaches the team to rubber-stamp. The other wrong answer is "the agent decides," because that is the unsupervised failure mode again. The right answer is policy that routes each proposal, with its evidence, to the right approver for the scope you just computed.

Governance is where those rules live as first-class configuration rather than tribal knowledge. Every tier ends with a named human approving the patch; what changes is who, and how much evidence they need. A defensible tier model for remediation looks like this:

  • Owner review. Fix touches only low-criticality nodes, full validation passed, no policy-sensitive surface involved. One engineer on the owning team reviews the evidence and approves and applies the patch. The evidence is attached, so the review is minutes, not an investigation.
  • Owner review with notice. Same evidence bar, moderate criticality. The owning team approves, and an audit entry notifies the teams downstream.
  • Named senior approver. Fix reaches a high-criticality node or has partial coverage. A named senior engineer for that system authorizes.
  • Multi-party / change-control. Fix touches payments, authentication, regulated data, or any irreversible operation. Two approvers or a named change step, every time, no exception.

The point is to spend deep human attention where blast radius is real and make approval fast where it is not, never to skip it. This also addresses a problem you already live with: developers route around policy and guardrails when those guardrails are slow or subjective. A gate that makes the safe majority quick to approve, with evidence attached, and produces concrete, named criteria for the dangerous minority is one engineers route *through*, not around. The author should never be able to set their own tier; the tier comes from the graph and the policy, or the whole scheme rots.

One caution worth designing against: a stale graph misclassifies blast radius, which silently routes a dangerous fix to too light a review. The dependency map has to be kept current with each change, or your governance is enforcing yesterday's topology.

04

Make every fix reversible by construction

Approval is only half of control. The other half is reversal. An SRE's real question during an incident is not "is this fix correct", you cannot always know that in the moment, but "if it is wrong, how fast and how cleanly can I undo it." A fix that cannot answer that should not be approved.

Reversibility is a property you design in, not a hope you hold afterward. Three mechanisms make a fix safe to apply:

  1. A verified rollback path. Before a fix is approved, the reviewer should see the exact reverse operation, validated against the same scope. A fix with no clean inverse is, by definition, an irreversible operation and routes to the strictest gate.
  2. Re-validation on the same scope. This is the Verify stage of the loop. The proposed fix is re-tested against the dependency surface it touches, not against a stale aggregate suite. Continuous Verification plans and runs verification for *this* change, using the System Graph and your existing tests and scenarios, so "it passed" means the changed path was actually exercised, not that some unrelated green build flattered the dashboard.
  3. An immutable evidence record. Every applied fix carries who authorized it, what validation ran, and what the rollback was. When the incident review six weeks later asks "why did we ship this," the answer is an artifact, not a memory.
05

What to do Monday morning

You do not need to hand anything to an agent to start. You need to make one class of fix governed end to end and prove the envelope holds.

  • Write your irreversible-operation list. Schema migrations, payment-path changes, anything touching auth or regulated data. This is the list that always gets the strictest review; everything off it is a candidate for the fast owner-review path.
  • Require a rollback path as an approval precondition. No verified inverse, no approval. Make it a hard policy check, not a reviewer's discretion.
  • Pick one low-criticality service and route its AI-proposed fixes through the owner-review path, evidence attached. Measure review time and whether anything breaks. You learn whether your scoping is sound before you rely on it for checkout.
  • Drive tiering from the graph, not the diff. Replace line-count and author heuristics with blast-radius signals from your dependency model.
06

The bottom line

Continue Reading