Skip to content
Product

When Should an Agent Defer? Confidence Scoring and Human Authorization for Remediation

A confidence-and-criticality matrix for routing an agent's proposed fix: a quick approval, a full review, multi-party sign-off, or escalation to a human. An SRE's playbook for governed remediation.

Zof Reliability Team · Engineering & product

February 18, 2025 · 8 min read · Updated February 18, 2025

Share
01

The deferral decision is the product

Most discussion of autonomous remediation focuses on capability. Can the agent find the root cause, can it draft the fix, can it verify it. Those are necessary. The part that decides whether you can actually run remediation in production is governance: a defensible rule for how much human review each proposed fix needs, and when the agent should not propose at all and hand the problem to a person.

The stakes are not abstract. A growing share of new code is AI-generated, and AI coding tasks can introduce critical flaws and security issues as easily as they ship features. The fixes themselves are increasingly machine-drafted, which means the same defect patterns that reached your codebase can reach your remediation. An agent fixing AI-generated code with more AI, unsupervised, is not a control. It is a faster path to the same failure.

So the governing principle is fixed: agents propose, humans authorize. Every fix is approved and applied by a person. The interesting question is how to make that authorization cheap and selective rather than the same heavyweight review on every fix. The answer is a decision surface that routes each proposed fix by two independent variables: how confident the evidence says the fix is correct, and how much damage it does if it is wrong.

02

Two axes, not one

Teams that bolt a single confidence threshold onto an agent learn the hard way that confidence alone is a useless gate. A highly confident fix to a feature flag and a highly confident fix to your payments authorization path are not the same decision. Confidence tells you how likely the fix is right. Criticality tells you what it costs when it is wrong. You need both, and they are orthogonal.

Criticality is a property of the system, not the change. It comes from what the change touches, computed against a live dependency model rather than the diff. A System Graph that maps services and dependencies into one change-aware model is what lets you ask the right question: does this fix touch a node that fans out to revenue paths, handles regulated data, or performs an irreversible operation? Criticality is high when the answer is yes, regardless of how small the patch looks. A three-line change to a shared auth library is high-criticality. A six-hundred-line change to an isolated internal tool is not.

Confidence is a property of the evidence behind the fix, not the model's self-reported certainty. This distinction is where most implementations go wrong, so it deserves its own section.

03

Confidence has to be earned, not declared

A language model will happily emit a confidence number. That number is close to worthless as a gate because it is uncalibrated: the model is often most confident exactly where it is wrong. If you let an agent's self-rated confidence decide how lightly a fix is reviewed, you have built a system that fast-tracks its own blind spots.

Confidence that can route a production fix has to be assembled from evidence the agent did not produce itself:

  • Reproduction. Was the failing behavior reproduced before the fix, and does the fix make the reproduction pass? A fix for a bug you could not reproduce is a guess.
  • Change-aware verification. Did verification actually exercise the changed paths and their dependents, or did an aggregate suite pass while ignoring the diff? Continuous Verification plans and runs verification of a change using the System Graph and your existing tests and scenarios, which is what makes the coverage signal trustworthy rather than decorative.
  • Reachability. For security fixes, is the flaw on a path that is actually reachable in the deployed system? Prioritizing by reachability is an approach that can shrink the exposure you triage, and applied here it sharpens the routing: a reachable flaw routes up to deeper review, an unreachable one can be weighed differently.
  • Blast-radius agreement. Does the validation evidence cover everything the System Graph says this change can affect? Confidence should fall when coverage and blast radius disagree.

Confidence, in other words, is a computed score over real artifacts. When the evidence is thin, the score is low, and the matrix sends the fix to deeper human review or escalation. That is the design working as intended, not a failure.

04

The matrix

Cross the two axes and you get the decision surface. Keep it coarse. Three bands on each axis is enough, and more bands invite false precision. Every cell ends with a human approving and applying the fix; what changes is how much review that takes.

| | Low criticality | Medium criticality | High criticality | |---|---|---|---| | High confidence | Owner approves, light review | Owner approves, rollback plan recorded | Single approver, full review | | Medium confidence | Owner approves, rollback plan recorded | Single approver, full review | Escalate | | Low confidence | Single approver, full review | Escalate | Escalate, no proposal without a human |

Three things make this matrix honest rather than decorative.

First, the high-criticality column always gets a full human review, at any confidence. Payments, authentication and authorization, regulated data, and irreversible operations always cost a deliberate human authorization. Confidence can make that a single focused review instead of a change-advisory ritual, but it cannot shorten it to a glance. This is the line that keeps the system governed.

Second, light review is always paired with a recorded rollback plan and a recorded verdict. A quick approval does not mean a careless one. It means the owner reads the evidence, approves the proposed patch, applies it, and has a one-action reversal ready. A shorter human step raises the bar on evidence and reversibility; it does not lower it.

Third, the agent never sets its own cell. Criticality is derived from the graph and policy. Confidence is computed from evidence. The agent cannot relabel a high-criticality change as medium to get a lighter review, because it does not own either axis. This is the difference between governance and theater.

05

Failure modes to design against

The matrix introduces its own ways to fail. Name them so your implementation defends against each.

  • Calibration drift. If the confidence score does not track real correctness, the whole surface misroutes. Sample light-review fixes for a later, deeper human review and recalibrate the bands against observed outcomes. Treat confidence calibration as an ongoing measurement, not a constant.
  • Criticality staleness. If the dependency map drifts from reality, a high-criticality change gets scored as medium. The graph has to be live and continuously reconciled, or the criticality axis quietly rots.
  • Escalation as a dumping ground. If too much lands in escalate, humans tune out and the gate becomes a rubber stamp. The fix is better evidence, not a lower bar. Most of your volume should be earning its way into light review through reproduction and change-aware verification.
  • Coverage laundering. A fix shows "tests passed" while validation never touched the changed path. Confidence must read coverage of the change, not aggregate suite status.

All of this is where Governance lives as explicit configuration rather than tribal knowledge, and where Governed Remediation proposes patches that a human approves and applies, under the policy rather than around it.

06

What to do Monday morning

You do not need to run remediation in production to start building the decision surface. Build the matrix before the agent proposes its first fix.

  1. Write your high-criticality list explicitly. Auth, payments, regulated data, irreversible operations. This is the column that always gets a full human review. Be conservative here and nowhere else.
  2. Define what "confidence" means in artifacts. Decide the concrete evidence a fix must carry to count as high confidence: reproduction, change-aware coverage, reachability, blast-radius agreement. Reject self-reported model scores.
  3. Wire criticality to the graph, not the diff. Replace file-count and author heuristics with blast-radius signals from your dependency model.
  4. Shadow-run before you route. Have the agent classify and propose for two weeks while reviewers handle every fix the usual way. Compare its matrix cells against what a senior engineer would have decided. Calibrate, then open the light-review lane for the safe corner only.

Each step moves human attention off the fixes that never needed it and concentrates it on the genuinely dangerous few.

07

The bottom line

Continue Reading

Product

An anatomy of change-aware verification: how coordinated agents plan, run, observe and report on verification of each change, using the System Graph and the tests you already have.

Zof Reliability Team7 min read
Product

Autonomous remediation is the next frontier beyond test generation. Why governed fixing, not unsupervised autonomy, is the only version enterprises will adopt in 2026.

Zof Reliability Team7 min read
Product

Safe autonomous fixing means every change ships with a pre-validated undo path. A platform engineer's guide to rollback-first remediation patterns and the autonomy they unlock.

Zof Reliability Team8 min read