Anatomy of a Digital Organism
Every RAPP install is a living thing. It has DNA, a soul, organs, senses, memory, and โ when it grows up โ skin. This page maps the biology onto the code. Click any layer in the diagram to inspect its definition.
Kernel โ DNA
brainstem.py
The runtime that any organism's egg can hatch into. Drop-in replaceable per Constitution Article XXXIII. Never edited by AI assistants. The kernel evolves under the organism, not the other way around.
Soul โ Mind / personality
soul.md
The system prompt loaded on every chat turn. What makes BookFactory-the-organism different from a generic agent runtime. An organism at any scale can have its own soul.
Organs โ Internal musculature
utils/organs/*_organ.py
Single-file HTTP route handlers โ
name + handle(method, path, body) โ (dict, status). Dispatched at /api/<name>/<path>. Organs serve UIs; agents serve LLMs. They never overlap.Senses โ Perception channels
utils/senses/*_sense.py
Per-channel output overlays (delimiter + response_key + wrapper_tag + system_prompt). How LLM output gets routed to chat / TTS / twin / future surfaces.
|||VOICE||| and |||TWIN||| are kernel-shipped; more come from the sense store.Cells โ Sub-organisms
agents/*_agent.py + hosted rapplications
Smaller organisms living inside the body. Each carries its own rappid, can be eggified, can be transplanted. The recursion lives here โ an organism contains organisms, all the way down to bare single-celled agents.
Memory โ Lived experience
.brainstem_data/
Everything the organism has accumulated โ chat tabs, frames, binder state, per-rapp cartridges, twin observations. Travels in the egg; survives every kernel bond.
Skin โ Visible outer layer EARNS THE TIER
.brainstem_data/rapp_ui/<id>/
The UI bundle โ the organism's face, what the user sees and recognizes. The line that separates a bare agent from a graduated rapplication. A skinless organism is single-celled โ useful, but only invokable through the host's mouth (chat). Skin lets the world point at it directly.
Egg โ Portable cartridge
brainstem-egg/2.2-organism (zip + manifest)
The form an organism takes when it travels. Schemas at three scales: rapplication, twin, organism. Recovery checkpoints, AirDrop transports, catalog distribution units โ same format, different scope.
Membrane โ Cell wall / process boundary
port + venv + filesystem scope
What separates one organism's territory from another's on the same device. Instance-scope organisms each get their own port; cell-scope sub-organisms share their host's membrane and live inside its process.
The recursion
The category is recursive: an organism contains organisms. A bare agent is single-celled. A rapplication is a cell that has grown skin. An entire brainstem instance is a body hosting many cells โ its own DNA, its own soul, and a colony of sub-organisms inside. Same protocol at every scale.
"Skin is the criterion that makes 'rapplication' earn its name. A bare agent is a single-celled
organism โ internal, functional, but skinless. A rapplication has its own face โ what the world
sees and recognizes. That's why a rapplication needs more than a .py: a graduated
organism requires skin."
Read the full decision narrative: Rapplications Are Organisms ยท Rappid โ The One Identifier ยท The Swarm Estate