← All posts
Engineering6 min read

The One-Click Tested Hotfix: Earning the Right to Execute

A verified fix still needs permission. Two stages sit between a checked change and a closed incident: gate it against the Trust Ladder, then execute and verify, with automatic rollback if verification fails.

Nati ShalomNati ShalomCo-founder & CTO
one click hotfix title

TL;DR

Once a fault class has earned trust, the end state is a one-click tested hotfix, a change that's already cleared every check before anyone reviews it.

Autonomy is incremental and per fault class. A class earns execution rights through verified successes, and everything else routes to a human with the reason stated. That's also what makes the audit trail defensible in a change-management review.

Where Part 1 left off

Part 1 ended with a fix sitting in a dry-run output and nothing applied: orders-api, memory limit raised from 768Mi to 1.25Gi, checked against node capacity, the namespace ResourceQuota, LimitRange, admission policy and GitOps ownership, rendered as the object state it would produce, with a rollback plan captured beside it.

That's as far as correctness gets you. What's left isn't a technical question, it's a question of authority: who's allowed to apply this, and how does anyone know afterwards that it worked?

Two things carry over. Phase 1 stabilization already fired, about eleven seconds after detection, because bounded reversible actions are pre-approved and ungated. The service is up, running on the reverted revision, and what's waiting on a decision is the reasoned fix. And that fix came out of a parameterized playbook rather than free-form generation, which is what makes everything below possible: you can't gate, verify or audit a change nobody can characterize.

This part covers the last two stages, gate and execute, and the record they produce.

Stage 4. Gate: the Trust Ladder

Now the question of authority, because a verified fix still needs permission.

The Trust Ladder grants autonomy per fault class, not per product tier or per user role. A class earns execution rights by accumulating verified successes.

That specificity is the point. It's reasonable for a system to be trusted to restart a pod on a known crash signature and not trusted to modify an IAM policy: different risk profiles, different evidence. A single global "autonomy" switch can't express that, which is why blanket autonomy settings are both unsafe and, in practice, left off.

Gating inputs:

Fault class history. How many verified successes on this class, in this environment?

Environment. Production and development have different thresholds by default.

Scope of change. A resource-limit adjustment is not an IAM change, which is not a schema migration.

Confidence in the diagnosis. How complete is the causal chain?

Evidence freshness. Has the evidence window settled, given known source lags? Autonomy is never granted on an unsettled window.

Outcomes:

Execute. The class has earned it. RAPS runs the verified playbook.

Execute with notification. Earned, but significant enough that someone gets told immediately rather than at the next digest.

Route to a human. With the dry-run artifact, the evidence chain, the rollback plan and the reason it was gated. The reason matters, because "gated" without a reason is indistinguishable from "broken."

Phase 1 stabilization isn't subject to this gate. Bounded, reversible, pre-approved actions run immediately, which is what makes DataAgent remediation-first rather than diagnosis-first. The gate governs the reasoned fix, a different decision with a different risk profile.

Stage 5. Execute, verify, and roll back automatically

Execution is the least interesting stage if the previous four were done properly. Verification isn't.

Three checks, all required:

Did it apply? Read back from live declared state. The Deployment's resources.limits.memory reads 1.25Gi, the new ReplicaSet exists and pods are running on it. Not inferred from the absence of new alerts.

Did the symptom clear, and stay cleared? The detected signal returned to its expected range and held through the load pattern that triggered the fault. For an OOMKill caused by an hourly batch, verification isn't complete until the next batch window passes without a kill. A fix declared verified at T+60 seconds, before the triggering load recurs, isn't verified. It's unobserved.

Did anything else break? The fix is itself a change with its own blast radius: node memory pressure after raising the limit, eviction risk for co-tenant workloads, scheduling latency for the namespace. This check is the difference between verification and optimism.

If verification fails, roll back automatically using the plan captured at stage 3. That's what makes autonomous execution defensible. The worst case isn't "a bad change is live in production." It's "a change was attempted, verification failed, the system returned to its prior state, and a human has a complete record of the attempt."

The audit trail is a product feature

For anyone with a change-management process, the record isn't paperwork. It decides whether autonomy is permitted at all, and it's what makes auditable automated remediation work in practice, not just on a slide.

Every autonomous action should produce, without anyone assembling it:

The trigger: what was detected, when, and by which detection class.

The evidence chain: the causal path, each link a fact, with source and timestamp.

Evidence freshness: which sources were consulted and whether each had settled at decision time.

The candidates considered and why this one was selected.

The checks performed against live topology, and their results.

The dry-run output, including the rendered post-change object state.

The gate decision and its basis: fault class, verified-success count, environment, scope.

The action executed, with exact parameters and the principal that executed it.

Verification results for all three checks, with timestamps.

The rollback plan, and whether it was invoked.

That record turns "the AI changed production" into a change-management entry a reviewer can approve, and it's generated as a by-product of doing the work correctly.

Two more things follow. An auditable trail is what makes learning trustworthy, because you can tell a verified success from an action that happened to coincide with recovery. And it's what makes the first production deployment possible at all, since a security review will ask exactly these questions.

Worked example: the same fault at three autonomy levels

orders-api, memory limit below the observed working set. Identical diagnosis, three different Trust Ladder positions.

Level 1: unproven class (0 verified successes)

09:53:15. Phase 1 fires regardless: roll back to the previous revision, restoring 1Gi. Bounded, reversible, pre-approved. Service recovers.

09:53:23. Phase 2 completes. Candidate: set the limit to 1.25Gi. Live-topology checks pass: the node group has 3.2Gi of allocatable headroom; the namespace ResourceQuota on limits.memory has 8Gi of 24Gi in use; no LimitRange max applies; Kyverno policies pass on server-side dry-run. The GitOps check finds the workload is managed by Argo CD, so the fix has to be a commit to infra-manifests, not a cluster patch.

09:53:25. Gate: 0 verified successes on this class in production, so it routes to a human.

09:53:25. A Slack notification carries the evidence chain, the rendered diff, the check results and the rollback plan. An engineer opens it at 08:40 the next morning, dry-runs it and merges. Total exposure: the ~11 seconds before Phase 1, plus a limit that's thin on headroom overnight.

Level 3: partially proven class (3 verified successes, threshold 5)

Same through 09:53:25. Gate: 3 of 5, so it still routes to a human, with a different presentation. The record shows three prior instances of this class, what was done each time, and that each was verified. The reviewer is approving a repeat of a known-good action, not evaluating a new proposal.

In practice, approval takes under a minute instead of fifteen, because the reviewer's job is recognition rather than analysis. This intermediate rung is where most real-world time is saved, and it's the rung that gets left out of demos.

Level 5: proven class (5+ verified successes)

09:53:15. Phase 1 fires. Service recovers.

09:53:23. Phase 2 completes; checks pass.

09:53:25. Gate: the class has earned execution in production. RAPS commits the limit change to infra-manifests with a message referencing the incident; Argo CD syncs.

09:53:58. Applied, confirmed from live state.

10:14:00. Symptom verification completes: the hourly batch ran to completion with a peak working set of 947Mi against the new 1.25Gi limit, no OOMKill.

10:14:05. Blast-radius verification: node memory pressure unchanged, no co-tenant evictions, scheduling latency flat.

10:14:10. WAKE records a sixth verified success. The full audit record is filed.

No human involved. An engineer finds a completed incident record with the reasoning, the checks, the action and the verification, and can disagree with any of it after the fact, with the rollback plan still attached.

The three levels are the same mechanism. Nothing that ran at Level 1 gets bypassed at Level 5. The only difference is who says yes, and that's what makes incremental autonomy honest rather than a marketing gradient.

Comparison

How draft-a-PR tools, supervised autonomous tools and DataAgent handle authority, verification and the record.

StageDraft-a-PR toolsSupervised autonomous toolsDataAgent
Authority modelHuman mergesGlobal or per-action-type approvalPer fault class, earned through verified successes
VerificationHuman judgement after mergeOften symptom clearanceApplied, symptom held through triggering load, action blast radius
Automatic rollbackNoVariesYes, from a plan captured before execution
Audit trailGit historyAction logTrigger, evidence chain, freshness, candidates, checks, dry-run, gate basis, action, verification, rollback

FAQ

Why grant autonomy per fault class instead of globally? Because risk profiles and evidence differ enormously between fault classes. Restarting a pod on a known crash signature and modifying an IAM policy are not comparable. A global switch cannot express that, which is why global autonomy settings tend to be left off.

How does a fault class earn autonomy? By accumulating verified successes: the diagnosis was correct, the action applied, the symptom cleared and held through the triggering load, and nothing else broke. Human-approved actions count, so the path to autonomy runs through supervised use rather than around it.

What does the audit trail need for a change-management review? The trigger and detection class; the evidence chain with source and timestamp per link; which sources had settled at decision time; the candidates considered and why one was chosen; the live-topology checks and results; the dry-run output including post-change object state; the gate decision and its basis; the action with exact parameters; verification results for all three checks; and the rollback plan, with whether it was invoked.

Key takeaways

  • Verification is three separate checks with automatic rollback from a plan captured before execution.
  • Autonomy earned per fault class is what makes it safe and adoptable. The intermediate rung, where a human approves a recognized repeat in under a minute, is where most real-world time is saved.

See remediation-first in your own stack

Install an agent and watch DataAgent map your topology. No credentials, no commitment.

Keep reading