Stable by Design: A Control-Theoretic Account of AI-Driven Self-Healing Remediation Loops
Preprint — not peer reviewed. Self-published. Measured results are reproducible from the companion code.
Abstract
"Self-healing" infrastructure—systems that detect degradation and remediate it autonomously—is increasingly driven by AI agents that decide what corrective action to take. The reliability conversation around these systems focuses on whether each individual decision is correct. We argue this misses the more dangerous failure class: a remediation system is a closed feedback loop, and feedback loops can be individually-correct yet collectively unstable—oscillating (scale up, then down, then up), overshooting (over-remediating), or running away (positive feedback amplifying the very problem it attacks). Control theory has well-developed tools for exactly these phenomena, and they have been applied to deterministic autoscalers, where hysteresis and cooling periods are standard. But AI-driven remediation introduces a controller that is probabilistic, has variable and large dead-time (reasoning latency), and is frequently one of several agents acting on shared actuators—conditions under which classical stability intuitions break. We provide a control-theoretic account of AI-driven self-healing loops that treats the agent's own decision latency as dead time in the loop; control-theoretic analyses of autoscalers and of LLM agents exist, but not of that combination. We contribute (1) a model of the Remediation Control Loop (RCL) and a taxonomy of its instability modes (oscillation, overshoot, runaway, loop interaction); (2) stability-oriented design constructs—hysteresis gates, action damping, settling-time cooldowns, dead-time-aware gating, and a loop-interaction matrix—with informal stability conditions adapted to a probabilistic controller; and (3) a simulation study measuring oscillation, overshoot, settling time, and MTTR with and without these constructs. The study confirms the framework's three hypotheses: at fixed gain, growing dead-time alone flips a stable loop (1/20 runs oscillating, MTTR ≈ 15 steps) into rail-to-rail oscillation that never settles (20/20 runs at 4× the dead-time); hysteresis and damping alone do not repair a dead-time-driven instability, while the temporal constructs do—and dead-time-aware gating restores stability at roughly one-third the MTTR cost of a fixed cooldown (≈40 vs. ≈117 steps) because it adapts its hold to the controller's actual dead-time; and two individually-stable loops sharing an actuator destabilize each other until an actuator mutex held through the correction's settling window restores single-loop behavior. A fourth sweep maps the frontier itself: the settle/diverge boundary follows a delay–gain product law — the critical product g·L stays within 1.35–1.8 across a 6× gain range, where L is dead-time plus sensor delay — the deterministic boundary is one dead-time step wide, and controller stochasticity does not shift it so much as blur it into an unreliable band in both directions, motivating an explicit engineering margin (g·L ≤ 1.2) at which every sampled configuration settled at every stochasticity level. The thesis: self-healing systems must be stable by design, not merely correct per decision, and control theory is the right lens—suitably adapted to an LLM-in-the-loop controller.
Keywords: self-healing infrastructure, control theory, feedback stability, autonomous remediation, AIOps, oscillation, hysteresis, site reliability engineering
Cite
@techreport{baby2026stable,
title = {Stable by Design: A Control-Theoretic Account of AI-Driven Self-Healing Remediation Loops},
author = {Ajin Baby},
year = {2026},
institution = {cloudandsre.com},
type = {Preprint},
url = {https://cloudandsre.com/research/stable-by-design-remediation-loops/}
}