Distributed Skill-State Consistency in Multi-Machine Agent Harnesses: Measuring Drift Detection and Self-Healing Latency
TL;DR — In a multi-machine LLM agent harness where capabilities are toggled via symlinks and machine-scoped registries, state can silently diverge from the declared policy. A periodic sweep halves mean drift-detection latency (9.41 vs 19.23 steps), reduces check events 5x, and bounds tail latency — at identical total cell-scan cost — simply by decoupling the check cadence from the session-trigger stream.
ThakiCloud AI Research · 2026-08-13 · 📝 Tech blog (KO)
Problem
Modular agent harnesses toggle capability via filesystem indirection (symlinks) shared across machines through git. When local toggle state diverges from the canonical registry, the agent keeps running and producing plausible output while silently missing a capability. This failure mode is invisible without dedicated instrumentation: nothing crashes, no error is raised.
Approach
We formalize the harness as an N-machine, M-capability boolean state array subject to i.i.d. Bernoulli drift. We compare two strategies at exactly equal mean per-machine check interval (20 steps): Eager (per-session reactive check on session-start) vs Periodic Sweep (fixed W=20 global scan). Across 20 fault-injection simulation runs (10 seeds per strategy), we measure detection latency, false-negative rate, residual drift, and two granularities of check overhead.
Key contributions
- First empirical characterization of silent capability-loss as a harness-layer failure mode, with quantitative self-healing convergence benchmarks specifically for agent capability toggles (distinct from classical eventual-consistency literature which does not model the agent session as the healing trigger).
- A reusable fault-injection measurement harness that quantifies detection latency, repair completeness, residual drift, and check overhead as a function of drift severity and detection strategy; infra-agnostic and applicable to any distributed feature-flag or desired-state reconciliation system.
- A practitioner design rule derived from renewal theory: decouple periodic consistency checks from stochastic trigger streams. At equal mean check interval, deterministic sweep achieves half the mean latency and bounds tail latency (p95=17-19 steps) versus reactive (p95 up to 78 steps), at identical total comparison work.
Figures
Periodic sweep halves mean latency and dramatically tightens the tail at equal mean check interval. (Measured in a CPU-only container. Aggregated over 10 seeds, T=2000 steps, 250 state cells. P95 of Eager ranged 41-78 steps across seeds; Sweep p95 was consistently 17-19 steps.)
Measured in a CPU-only container. Aggregated over 10 seeds, T=2000 steps, 250 state cells. P95 of Eager ranged 41-78 steps across seeds; Sweep p95 was consistently 17-19 steps.
Deterministic sweep eliminates variance-driven inspection-paradox penalty; Eager pays it fully. (Renewal-theory residual-life formula E[R] = E[T^2] / (2 E[T]). Deterministic: 20^2/(220) = 10. Geometric(0.05): 780/(220) = 19.5. Ratio = 1.95x, matching measured gap (9.41 vs 19.23 steps).)
Renewal-theory residual-life formula E[R] = E[T^2] / (2 E[T]). Deterministic: 20^2/(220) = 10. Geometric(0.05): 780/(220) = 19.5. Ratio = 1.95x, matching measured gap (9.41 vs 19.23 steps).
*Sweep uses 5.0x fewer check events at identical total cell-scan cost; event overhead is 5x lower. (Cell scans: Eager 495.8 x 50 = 24,790; Sweep 99.0 x 250 = 24,750 (differs by <0.2%). Check events: Eager 495.8 per 2000-step run vs Sweep 99.0 (5.0x reduction). Measured in a CPU-only container.)*
Cell scans: Eager 495.8 x 50 = 24,790; Sweep 99.0 x 250 = 24,750 (differs by <0.2%). Check events: Eager 495.8 per 2000-step run vs Sweep 99.0 (5.0x reduction). Measured in a CPU-only container.
Results (as argued)
Periodic sweep reduced mean detection latency 51% (9.41 vs 19.23 steps) and tail latency dramatically (p95 17-19 vs 41-78 steps). It fired 5.0x fewer discrete check events (99.0 vs 495.8 per 2000-step run) while performing essentially identical cell scans (24,750 vs 24,790, diff <0.2%). False-negative rates were statistically indistinguishable (1.30% vs 1.40%).
Limitations
Drift modeled as i.i.d. Bernoulli (real drift is likely bursty and correlated). Single shared canonical policy (production supports machine-class-specific policies). One parameter point (p_session=0.05, W=20). Simulation rather than live production incident data.
Abstract
Modern LLM agent harnesses increasingly externalize capability into modular, version-controlled artifacts: reusable skills and standing behavioral rules that are toggled on or off per machine. When such a harness spans multiple machines sharing one git repository, the toggle state on each machine can silently diverge from the canonical policy that declares what should be active where. The result is a failure mode we call silent capability loss: the agent keeps running, produces plausible output, and never signals that a capability it was supposed to have is switched off. The only repair mechanism in the deployment we operate is a self-healing check that reconciles local toggle state against the registry, conventionally fired at session start. We ask when that check should fire. We formalize the harness as an N-machine, M-capability boolean state array subject to i.i.d. Bernoulli drift, and compare two detection strategies at exactly equal mean per-machine check interval: an eager per-session reactive check and a fixed-cadence global sweep. Across 20 fault-injection simulation runs, sweep halves mean detection latency (9.41 vs 19.23 steps), uses 5.0x fewer discrete check events, and performs essentially identical total comparison work (24,750 vs 24,790 cell scans). We show the gap is a textbook renewal-theory inspection-paradox effect, yielding a general design rule: decouple periodic consistency checks from stochastic trigger streams.
Files
Citation
@techreport{thaki_skill_state_drift_self_healing_2026,
title = {Distributed Skill-State Consistency in Multi-Machine Agent Harnesses: Measuring Drift Detection and Self-Healing Latency},
author = {ThakiCloud AI Research (Hyojung Han)},
year = {2026},
institution = {ThakiCloud}, note = {thaki-AI/daily-paper-2026-08-13-skill-state-drift-self-healing}
}
Generated by ThakiCloud nightly research pipeline. License: CC BY 4.0.
- Downloads last month
- 181