Andromeda Control Layer — Technical Specification for Model Context
From the work of Art Code Outdoors
Written by Bryan Carter and Claude Opus 4.6. Errors are Bryan's own.
November 2026 (v9) — MIT-0 License
Document Purpose – Model-Context Reference for the Control Layer
This document specifies the control layer of the Andromeda cybernetic architecture in terms precise enough for an AI model to understand what is being built, what the control layer computes, and where its boundary is with the layers above it. It is intended to be loaded into a model session's context as a reference document. For the narrative walkthrough — Braitenberg vehicles, boids, the Walter/Brooks/Tilden lineage, and the design philosophy — see the companion document The Control Layer — A Guide.
Scope: This document specifies the control layer only — the reactive foundation. An implementation built from this specification alone produces a BEAM nervous net, not Andromeda. The full architecture requires the learning layer, attention layer, MIRROR mechanism, and Universal Constructor described in the Framework document.
Implementation status: The full five-layer architecture — including the learning layer, attention layer, and MIRROR mechanism — has been designed, built, and demonstrated by the designer. This document specifies only the control layer not because the other layers are unbuilt, but because the documentation is being staged: the reactive foundation must be fully specified and validated before the layers above it are documented. The architecture is ahead of its documentation.
Definition – The Reactive Foundation
The control layer is a network of NOR-gate relaxation oscillators with fixed wiring that produces reactive behavior through analog signal modulation. It is the reactive foundation of a cybernetic control system (Sensors → Controller → Actuators, with Environment closing the loop). The Controller contains three internal layers (Control → Learning → Attention) plus the MIRROR mechanism. The Universal Constructor operates across generations, outside this loop — it reads the tape, builds organisms, and introduces variation through mutation and crossover. This specification covers only the Control layer.
| Property | Specification |
|---|---|
| Oscillation | Oscillates continuously without external input (cells fire by default — a NOR gate with no inputs is TRUE) |
| Sensory input | Received as modulation of existing oscillation, not as a signal source |
| Motor output | Produced as a continuous side effect of oscillation, not as discrete commands |
| Wiring | Fixed — does not change during the organism's lifetime |
| Memory | None — no prediction, no sequence learning, no internal model |
| Computation | Current state only: sensors read values, values propagate through wiring, motors receive values |
Cell Model – NOR-Gate Relaxation Oscillator
Every cell in the control layer (and in all layers) is the same computational element.
| Property | Specification |
|---|---|
| Type | Generalized NOR-gate implemented as a voltage-controlled relaxation oscillator with threshold and hysteresis (Schmitt trigger dynamics, derived from squid giant axon — Otto Schmitt, 1934) |
charge |
Continuous value, 0.0 upward. Charge may exceed threshold on the tick it crosses (overshoot). The value at the moment of firing (charge_at_fire) determines discharge duration and total energy delivered. |
firing |
Boolean — TRUE when charge reaches threshold, remains TRUE for the discharge duration |
Cell Model – Dynamics
- Cell charges at
natural_charge_ratecontinuously (the heartbeat) - Excitatory inputs from other cells increase charge rate
- Inhibitory inputs from other cells decrease charge / drain charge
- When charge reaches threshold: cell fires (discharge event of variable width, not a single-tick spike)
- Charge is NOT clamped at threshold. Overshoot produces variable pulse width:
discharge_duration = charge_at_fire / discharge_rate. Clamping at threshold would make all pulses identical width and break the timing diversity the architecture requires. - During discharge: cell does not accumulate charge from inputs
- After discharge: charge resets, cycle begins again
- NOR logic: inhibitory inputs drain accumulated charge; excitatory inputs increase it. A cell with no inputs is TRUE (fires at natural rate). Inhibition does not categorically suppress — a cell can fire under inhibition if excitatory input overcomes inhibitory drain. Behavior determined by continuous competition of all inputs simultaneously. In the limit, strong inhibition with no excitation silences the cell (NOR gate's defining behavior).
| Cell Type | Identity | Input | Output |
|---|---|---|---|
| Sensor cells | Identical to all other cells | Sensor input modulates charge rate. Zero input → oscillates at natural_charge_rate. Max input → oscillates faster (excitatory) or slower (inhibitory). Cell has heartbeat; sensor nudges it. |
Standard cell output |
| Motor cells | Identical to all other cells | Standard cell input | Motor output is the cell's firing pattern. Fires continuously at oscillation frequency. Behavior emerges from inhibition, not excitation — the control layer selectively suppresses motor cells. |
Connection Model – Directed Edges with Fixed Polarity and Weight
| Property | Specification |
|---|---|
| Type | Directed edge with fixed polarity and fixed weight |
source_cell |
Which cell's firing drives this connection |
target_cell |
Which cell receives the signal |
polarity |
Excitatory (+) or inhibitory (−), fixed at construction, never changes |
weight |
Magnitude of influence, fixed at construction, never changes during lifetime. Changes only through evolution (mutation and crossover modify the tape). |
permanence |
Gate value (ON if above threshold, OFF if below). In control layer: all permanences set to 1.0 (always ON), Hebbian updates disabled. |
Connection Model – Computation Per Tick
While source_cell.firing AND permanence >= threshold:
if polarity == excitatory:
target_cell.charge += weight
if polarity == inhibitory:
target_cell.charge -= weight (clamped at 0)
Discharge duration = charge_at_fire / discharge_rate.
Total charge delivered per connection = weight × (charge_at_fire / discharge_rate).
A cell that fires with high accumulated charge delivers more energy through longer pulse width (more ticks of delivery), not higher per-tick transfer. Weights are fixed at construction and do not change during an organism's lifetime.
Braitenberg Vehicle Formalism – The Minimal Computational Model
The control layer implements Braitenberg vehicles at arbitrary scale. The minimal case demonstrates the complete computational model.
Configuration: Two sensor cells (L, R), two motor cells (L, R), wiring between them.
| Name | Wiring | Polarity | Motor Rule | Emergent Behavior |
|---|---|---|---|---|
| Fear | Uncrossed (L→L, R→R) | Excitatory | motor = sensor | Flee, accelerate near stimulus |
| Aggression | Crossed (L→R, R→L) | Excitatory | motor = opposite sensor | Charge, accelerate toward stimulus |
| Love | Uncrossed (L→L, R→R) | Inhibitory | motor = max − sensor | Approach, decelerate near stimulus, come to rest |
| Explorer | Crossed (L→R, R→L) | Inhibitory | motor = max − opposite sensor | Wander fast, slow near stimulus, never stop |
Body plan note. The behavioral labels above describe differential-drive vehicles (two drive wheels, one per side). In the Pong experimental platform, organisms have a push-pull body plan (opposing UP and DOWN motors) where crossed inhibitory wiring produces tracking/attraction behavior — the opposite of what the same wiring produces on a differential-drive body. The V3a tracking circuit documented in the experimental results is crossed inhibitory and produces attraction in the Pong body plan. The Braitenberg vehicle labels apply to the differential-drive body plan only.
Motor column note. Motor output values shown are relative to the cell's natural firing rate. Motors fire continuously by default; sensor input modulates this baseline. motor = sensor means the motor's firing rate increases proportionally with sensor input from its natural rate, not that the motor is silent without input.
Key principle: The "behavior" (flee, charge, explore, approach) exists only in the observer's description. Inside the system, a sensor reads a number and a motor receives a number. The behavior emerges from two local computations running on a body with bilateral symmetry in a physical environment. No cell knows what the robot is doing.
Scaling: Biological nervous systems use the same mechanism with more cells, more connections, and more rules. The computational primitive does not change. The designer's full five-layer proof-of-concept (2019–2024) operates on approximately 2,000 cells and 1.7 million connections; the control layer alone uses roughly 35 cells with about 100 connections. Even at that larger whole-system scale, the reactive foundation produces reflex behavior, obstacle avoidance, phototaxis, search patterns, and escape responses — all from the same "sensor reads number, number propagates through wiring, motor receives number" computation.
Oscillation as Behavior – Actions as Side Effects of Oscillation
The control layer does not compute actions. It oscillates, and actions are a side effect of oscillation.
| Behavior | Circuit | Mechanism |
|---|---|---|
| Walking | Bicore (two mutually inhibiting cells) → two legs; tricore (three-cell ring) → three-phase gait | Oscillation pattern moves the legs. No decision to walk. |
| Steering | Asymmetric sensor input → asymmetric oscillation | Photoresistor changes charge rate. Cell fires sooner, timing shifts, motor output becomes asymmetric, robot turns. No turn command issued. |
| Reflexes | Feedforward excitation/inhibition circuits | Contact sensor fires, inhibits forward motor, excites reverse motor. Robot backs away without collision-detection logic. |
Critical constraint: Remove the oscillation (natural_charge_rate = 0) and the robot is dead. Sensors have nothing to modulate. Motors have no signal to produce. Experimentally confirmed: population collapse in 82 generations when oscillation was removed.
Von Foerster's Sensory Principle – Undifferentiated Encoding
"The response of a nerve cell does not encode the physical nature of the agents that caused its response. Encoded is only 'how much' at this point on my body, but not 'what.'"
| Requirement | Specification |
|---|---|
| Sensor reporting | No sensor cell reports what it is detecting. Reports only intensity at its body location. |
| Direction, distance, identity | Computed from differential readings across multiple sensors at different body locations, never given by any single sensor. |
| Forbidden sensor types | Absolute coordinate sensors, binary comparators of positions, any information a physical transducer at the sensor's body location could not physically measure. No cell has access to global environment state. |
Superposition Principle – Multiple Reflexes on Shared Actuators
Complex behavior arises from multiple simple wirings feeding the same actuators simultaneously. Each sensor pair independently modulates the shared thruster output. The thruster integrates by summation — it receives one combined value, not a per-rule arbitration. No rule has knowledge of any other rule. No priority system resolves conflicts. The physics sums the modulations. Each rule is a primitive reflex. Many reflexes running concurrently on a shared physical substrate produce behavior. (For the Reynolds/boids equivalence — the same principle demonstrated in multi-agent systems — see The Control Layer — A Guide.)
Boundary – What the Control Layer Is and Is Not
The control layer is a necessary but insufficient component of the full architecture. It is the foundation that the learning and attention layers build upon.
| Category | Statement |
|---|---|
| Does NOT | Remember previous states (no memory of any kind) |
| Does NOT | Predict future states (no sequence learning, no temporal model) |
| Does NOT | Distinguish real sensory input from synthetic input (exploited by MIRROR) |
| Does NOT | Modify its own wiring (connections fixed at construction) |
| Does NOT | Learn from experience within a lifetime (requires generational evolution) |
| Does NOT | Know what its sensors are detecting (undifferentiated encoding) |
| Does NOT | Know what behavior it is producing (no self-model) |
| DOES | Oscillate continuously and produce motor output as a side effect |
| DOES | React to current sensory input by modulating its oscillation |
| DOES | Produce robust, adaptive-looking behavior from fixed wiring on a physical body |
| DOES | Survive significant damage (random wiring: one random configuration as good as another) |
| DOES | Provide the sensorimotor substrate that the learning layer observes and predicts |
Evolutionary boundary: The control layer's wiring changes only through evolution. Mutation and crossover modify the tape. The constructor builds the next organism from the modified tape. The control layer is the evolved part — what the organism arrives with. The learning layer is the within-lifetime part — what the organism acquires through experience. Both are doing the same thing (adapting to the environment) at different timescales.
Relationship to Layers Above – Observation, Prediction, and the Feedback Floor
The control layer is observed by the learning layer, which connects to approximately 85% of control layer cells at random. The learning layer does not know which cells are sensors, motors, or interneurons. It sees the entire control layer's activity as a single sensorimotor pattern.
The learning layer's predictions re-enter the control layer through the attention layer and MIRROR mechanism as synthetic sensory input. The control layer cannot distinguish this from real input. It responds identically to both. This is how the learning layer acts on the environment despite controlling nothing directly: it changes what the control layer perceives.
The control layer is the last line of defense. If the learning layer predicts badly and the attention layer fails to squelch, the control layer still responds to the bad prediction using its fixed reflex wiring. The layers above cannot structurally corrupt the control layer's wiring — they can only change what it perceives, never what it does with what it perceives. The worst case from a single bad prediction is a wrong reflex, not structural damage. However, sustained high-frequency prediction input can cause a distinct failure mode: oscillator death, in which Nv rings collapse to all-zeros under saturation (see Framework §5.3). This is a dynamical failure of the control layer's operation, not structural corruption of its wiring — the connections remain intact but the oscillation that drives all behavior ceases. The distinction matters: structural integrity is guaranteed; continuous operation under all input conditions is not.
Lineage – Walter → Braitenberg → Brooks → Tilden → Andromeda
The control layer is the well-established BEAM nervous net, descended from W. Grey Walter's tortoises (1948–49) through Brooks' Subsumption Architecture and Tilden's BEAM Robotics. All prior autonomous robot architectures in this lineage are pure control layer implementations. Andromeda's contribution is the learning layer, attention layer, and MIRROR mechanism that go on top. For the complete historical lineage with worked examples, see The Control Layer — A Guide.
Scaling Limit of Hand-Tuning – Why Evolution Is Necessary
The superposition principle has a scaling consequence: when N reflexes sum on M actuators, adjusting any single coefficient changes the emergent behavior of all N reflexes. At small N (4 rules in a boids simulation), a human can find working coefficients by manual search. At large N (100+ behavior nodes in Alien: Isolation's Xenomorph), hand-tuning requires months to years and routinely demands automated search (genetic algorithms, simulated annealing) even in commercial game development.
The scaling is combinatorial, not linear. Each coefficient interacts with every other through the shared physical substrate. Adjusting one necessitates rebalancing others. In production systems (RTS economies, competitive multiplayer sandboxes), this manifests as the patch-cascade problem: correcting one imbalance creates others, each patch risks breaking unrelated behaviors, and balance is valid only until contact with players who exploit edge cases.
Design consequence: "Everything that can be evolvable, should be evolved" (Architecture Notes §1.1) is the architectural response to the scaling limit. At the organism scales Andromeda targets (thousands of cells, millions of connections), the coefficient space is too large for manual search. The universal constructor's mutation-selection loop is the search mechanism. Von Neumann's question — "what if the computer could program itself?" — is the practical formulation of this necessity in the absence of training data.