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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

How Far Down Can You Reach? The Ground of Software That Changes Itself

Davi Arantes
Zenodo (CERN European Organization for Nuclear Research)
Advanced Software Engineering Methodologies
preprint

How Far Down Can You Reach? The Ground of Software That Changes Itself

Davi Arantes
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Instituto de Tecnologia e Liderança (BR)
Advanced Software Engineering Methodologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon