arXiv:2610.03243cs.GROct 2026

Manuscript Offprint

arXiv:2610.03243

A Kinetic Theory of the Gated Self-Evolving LLM Agent

Haipeng Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We find traces of fluid dynamics in the self-evolution of an LLM agent, and give the kinetic theory that predicts them. Gated self-evolution is the loop in which an agent rewrites its own skills under a validation gate. Self-evolution research has treated the agent as the unit; we study instead the individual instances inside it. Here the agent is DSH-plugin-based: it runs in production on DeepSeek Harness (DSH), and its plugins satisfy four architectural properties (permutation symmetry, reversibility, acyclicity, typed contracts), which license treating these instances as identical hard spheres; the theory is accordingly scoped to DSH-class plugin populations. On this scope the paper builds three theory layers. The rigorous layer, independent of any analogy, comprises an any-time hitting-time certificate bounding the expected rounds to any prescribed improvement, a resolution law that prices held-out validation budgets, and a separation theorem: the daemon must stay outside the population, because merging evaluator with evaluated voids the certificate. The kinetic layer is a master equation over the plugin × version × task grid with four operators (collision, reaction, external field, gate), where collision is co-activation. Its moment hierarchy, the step that turns a gas into fluid equations, generates the falsifiable statistical signatures. Throughout, the fluid reading is a bounded analogy: momentum is not conserved, so no Navier–Stokes limit exists. The measured layer runs on a faithful minimal instance, a large library of four-parameter skill plugins retrieved one per episode with a co-activation probe, in a one-model, one-task-family WebShop environment; every element maps to the DSH loop by architectural role. Population fluctuation scaling is density-gated: invisible at sparse edit density, it emerges at the predicted rate under tripled density, as directional evidence.

1 INTRODUCTION

Self-evolving LLM agents write their own skills and tools from trajectory evidence, mount them into a registry, and keep a change only when it strictly improves a held-out validation score (Yang et al., 2026). Prior work on such agents has treated the agent itself as the unit of study (Shinn et al., 2023; Yin et al., 2025; Wu et al., 2025). We looked instead at what happens inside the registry during the agent's run, where a population of individual instances is repeatedly retrieved into episodes, edited, and accepted or rejected by the gate. When this population is large, the running of these instances carries traces of fluid dynamics in its statistics, much like a gas moving under an external selector. The natural language for such behavior is the kinetic theory of gases, today grounded in the derivation of Boltzmann's equation from hard-sphere dynamics (Lanford, 1975; Deng et al., 2024).

We develop this observation into a kinetic theory of the gated plugin population. In studying DSH (DeepSeek AI, 2026), an open-source “everything is a plugin” agent harness, we found that a production two-tier system runs on it. Its Cordis kernel (Shi et al., 2026) proves four structural properties of its plugins, and its architecture has exactly these four properties: permutation-symmetric composition, mount/unmount reversibility, acyclic dependencies, and typed contracts. It was under exactly these properties that we felt the plugin-version instances behave as identical hard spheres. A monolithic self-modifying agent satisfies none of them, and for it the kinetic description does not apply. What distinguishes this gas from the nearest-neighbor populations is the gate. It acts as a Maxwell daemon external to the gas, turning diffusion into optimization and yielding both a convergence certificate and decisive statistical signatures.

The claim is then closed from both sides. On the theory side, the statements are machine-checked theorems: a hitting-time certificate that bounds the expected rounds to a prescribed improvement, a resolution law that prices the held-out validation budget, and a separation theorem that keeps the evaluator outside the population. On the measurement side, production-scale training is too slow for the statistics needed, so all evidence comes from a faithful minimal instance of the same loop (dynamical equivalence not claimed), whose pre-registered probes return directional evidence for the predicted traces. The gas-like statistics are real but density-conditional, invisible at sparse edit density and emerging at the predicted rate only under tripled density. Throughout, the fluid picture is read as a bounded analogy. The arc thus closes where it opened: the self-evolution of a single LLM agent, hosting a large population of instances, carries traces of fluid dynamics in its statistics.

References (54)