How Far Down Can You Reach? The Ground of Software That Changes Itself
Coding agents now write and load their own extensions, and software that changes itself has become an everyday design decision. We survey the architectures such software has used, from configuration files and hooks, through languages embedded over a native core (Neovim) and extension languages that are the system (Emacs), to live images (Smalltalk, Pharo, Glamorous Toolkit) and systems written in themselves down to the machine (Lisp machines, SBCL, Forth). We order them by their ground: the part that runs but cannot be changed from inside. We model ground, surface and gate, and prove in Lean that a redefinition cannot reach callers bound before it, unless another definition calls it late, and that undoing one needs a copy kept outside the change. We then ran eleven probes, from rebinding a key to changing the compiler, in seven pinned systems, and counted ground and surface in their source. In every system, callers written in the surface language were out of reach because they were bound early, so the share of source in that language does not predict reach. Four systems could patch the machine code of their own core from inside, and in three of them this reached calls inside the core that no supported route reached: the ground is where a system's language stops, not where reach stops. Every recovery from a central break used something the break did not reach. A case study of The Editor, a TypeScript editor kernel designed to be "extensible to the core", found a supported interface on rung 2 and, through its shared JavaScript realm, accidental reach beyond it. For agents that extend themselves, we argue that evaluation, permissions and the way back belong in the ground.
Authors
- Davi Arantes (ORCID: https://orcid.org/0009-0007-7396-1055)
Institutions
- Instituto de Tecnologia e Liderança (BR)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-27
- DOI
- https://doi.org/10.5281/zenodo.24589107
- Primary Topic
- Advanced Software Engineering Methodologies
- Type
- preprint