Control Plane Heartbeat Architecture

Registered: 2026-03-15


Overview

The three cortico-striatal-like learning loops of REE (E1/sensorium, E2/action-enacting, E3/planning-gates) do not update their control planes only at completion events. Each loop has a characteristic heartbeat — a periodic update rate driven by thalamic pacemaking — that maintains coherence under indeterminate processing latency. Completion events are high-salience signals within this continuous stream, not the exclusive trigger for control plane updates.

This document covers the heartbeat cluster (ARC-023, MECH-089–093) and the respiratory oscillator cluster (MECH-107–110), registered 2026-03-21.

Three-oscillator control-plane hierarchy (slow to fast):

Oscillator Rate Voluntary? Function
Respiratory sweep ~0.2 Hz Semi-voluntary Periodic sweep of pre-commit rollouts + DMN for viability/abandonment
E3 heartbeat ~0.5–2 Hz (z_beta-modulated) Involuntary E3 harm-estimate refresh rate; arousal gating
Neural theta/beta ~4–30 Hz Involuntary Sensory batching (MECH-089); commitment propagation gating (MECH-090)
Quiescent replay Sub-task idle Involuntary Offline viability map consolidation (MECH-092)

The respiratory sweep clock is the only one with a genuine top-down voluntary handle (MECH-109). The E3 heartbeat clock governs arousal-modulated refresh rate (MECH-093) — it is NOT the plan-sweep clock. These are distinct mechanisms at distinct timescales.


Substrate Note: Functional vs. Mechanistic Claims

Several claims in this cluster are inspired by spiking neural network (SNN) phenomena — theta-gamma coupling, beta oscillations, sharp-wave ripples, phase reset — that do not exist natively in the ANN substrate used for REE testing (LSTMs, MLPs). This matters because:

  • Mechanistic claims (claim_level: mechanistic) depend on the oscillatory/spiking mechanism itself. They cannot be directly tested in an ANN substrate. Testing them in an ANN produces null results by construction, not because the claim is false.
  • Functional claims (claim_level: functional) describe the computational role that an oscillatory mechanism serves. These translate directly to ANN substrates.
  • Mixed claims (claim_level: mixed) have a testable functional core and a mechanistic biological substrate that is not required for ANN testing.

Each claim below is tagged with its claim_level in claims.yaml. For mechanistic and mixed claims, a Functional analog section describes what would actually be tested in an ANN substrate. When designing V3 experiments, target the functional analog unless the V3 substrate explicitly implements the oscillatory mechanism via SD-006 + HTA.


Three loops operate at distinct update rates (ARC-023)

Claim Type: architectural_commitment Subject: basal_ganglia.three_loop_thalamic_heartbeat Claim Level: mixed Status: candidate Claim ID: ARC-023

Functional analog: Three loops have distinct update rates — E1 continuous, E2 motor-command rate, E3 deliberation rate — governed by a rate-management mechanism that prevents loop drift under variable processing latency. The biological substrate (thalamic pacemaking) is not required for the ANN implementation.

The REE architecture requires three distinct periodic update channels, one per learning loop, each driven by thalamic pacemaking:

  • E1 (sensorium loop): Updates at the sensory frame rate. Essentially continuous — every perceptual timestep generates a prediction error that updates the E1 world model. No action required to trigger an update.
  • E2 (action-enacting loop): Updates at the motor command rate — faster than E3 deliberation, slower than raw E1 sensory input. Motor-sensory error requires action, but the motor loop does not wait for sequence completion to update. Cerebellar-equivalent: ongoing correction during movement.
  • E3 (planning-gates loop): Updates at the deliberation rate — the slowest of the three. Does not wait for action sequence completion; instead, receives periodic harm/goal estimate refreshes from the thalamic pacemaker. Completion events provide a high-salience update within this stream (see MECH-090, MECH-091), but are not the exclusive update trigger.

Thalamic substrate: Mediodorsal (MD) thalamus gates the E3 complex; VL thalamus gates the E2 motor pathway; pulvinar and sensory relay nuclei gate E1. The reticular nucleus of the thalamus (TRN) acts as an inter-loop routing switch, gating cross-loop communication at each clock tick.

Why this is required: Processing latency for E1, E2, and E3 is indeterminate (variable computation time). Without a thalamic clock, the loops would drift out of phase, producing stale harm estimates mid-plan and inconsistent action selection signals. The heartbeat is the coherence mechanism for a system with asynchronous internal processing.

Architectural implication: V2 and V1 substrates use synchronous single-timestep updates (everything updates on the same discrete step). This means the heartbeat architecture cannot be properly tested until V3 implements asynchronous multi-rate loop execution (SD-006).


Fast loop outputs are temporally batched before slow loops sample them (MECH-089)

Claim Type: mechanism_hypothesis Subject: multirate.fast_to_slow_temporal_batching Claim Level: mechanistic Status: candidate Claim ID: MECH-089

Functional analog: E1 outputs are aggregated over a rolling window before E3 samples them. E3 receives temporally batched summaries of recent E1 activity, not raw frame-by-frame prediction errors. E3’s minimum harm attribution resolution equals its own update window size. In an ANN, this is a rolling aggregation layer between E1 and E3 — no oscillations required. The biological mechanism (theta-gamma CFC) is one implementation of this requirement.

Biological mechanism (SNN-specific):

Three loops running at different rates cannot simply broadcast to each other — fast updates would overwhelm slow loops, and slow update windows would underrepresent fast events. The biological mechanism that resolves this is cross-frequency coupling: fast oscillations (E1-rate, gamma-band equivalent) nest within slow oscillation cycles (E3-rate, theta-band equivalent). E1’s continuous sensory updates are temporally integrated into a rolling summary over each theta cycle, and E3 samples that summary at its own heartbeat rate rather than receiving raw E1 output.

In neuroscience: theta-gamma coupling is well-established in hippocampal-prefrontal circuits. Each theta cycle (~125ms) contains ~5-7 gamma sub-cycles; each gamma sub-cycle can carry a distinct sensory or motor-consequence representation. The thalamic relay performs the cross-rate integration.

REE implication: E3 never sees raw E1 prediction error — it sees a theta-cycle-averaged representation of recent sensory state. This temporal abstraction is what makes E3’s harm estimates tractable: it operates on integrated context, not moment-to-moment sensory noise. The packaging boundary also defines the minimum meaningful temporal resolution for moral attribution (E3 cannot attribute harm finer-grained than one E3 heartbeat cycle).


E3 internal updating is decoupled from policy-output propagation during committed sequences (MECH-090)

Claim Type: mechanism_hypothesis Subject: control_plane.commitment_gated_policy_output Claim Level: mechanistic Status: candidate Claim ID: MECH-090

Functional analog: During committed action sequences, E3 continues updating its internal model, but a commitment gate blocks those updates from propagating to action selection. The gate opens at completion events or urgent interrupts. In an ANN, this is a routing variable conditioned on commitment state — not beta oscillation power. The biological mechanism (beta in STN/striatum) is one implementation of this gating requirement.

Biological mechanism (SNN-specific): Beta oscillations (~13–30 Hz) in the subthalamic nucleus (STN) and striatum encode a “maintain current state” signal. The critical distinction: beta gates propagation of E3 model updates to action selection, not E3’s internal model updating.

During a committed action sequence:

  • E3 continues updating its harm estimates internally (heartbeat continues)
  • Beta power is elevated → E3’s updated model state does not propagate to action selection
  • The agent continues the current sequence without mid-sequence policy changes

At completion or on a stop-change signal (hyperdirect pathway: cortex → STN → GPi, bypassing striatum):

  • Beta power drops
  • E3’s current model state propagates to action selection
  • Policy can change

Why MECH-057a failed with this framing: The attribution_completion_gating experiment modeled E3 as updating only at completion (binary gate). If the correct mechanism is beta-gated propagation within a continuous stream, the experiment’s COMPLETION_GATED condition was neither the full mechanism (no internal continuous updating) nor a fair baseline (agent was fully blind between completions). The ATTRIBUTION_BLIND condition may have performed comparably because continuous updating without any beta gate is closer to the correct architecture than episodic gating.

MECH-057a reframing: Completion events remain architecturally significant — they are the primary occasions when beta drops and E3 updates propagate. But the claim should be: completion events are the principal policy-update opportunities within an otherwise beta-gated continuous E3 stream, not the E3 control plane only updates at completion.

Hyperdirect pathway as fast interrupt: The STN hyperdirect pathway can force an early beta drop in response to unexpected salient events (e.g. sudden harm signal mid-sequence), providing a rapid interrupt mechanism that does not wait for sequence completion. This is the neural substrate of action-stopping under urgency.


Salient events resynchronize the E3 update cycle (MECH-091)

Claim Type: mechanism_hypothesis Subject: control_plane.salient_event_cycle_resync Claim Level: mechanistic Status: candidate Claim ID: MECH-091

Functional analog: Salient events trigger an explicit cycle-boundary marker that causes E3’s next update window to start fresh rather than continuing mid-cycle. This prevents partial integration artefacts: harm estimates from one sub-plan are fully integrated before the next planning window opens. In an ANN, implemented as an event-triggered window reset — not oscillatory phase reset. The biological mechanism (thalamic-driven phase reset of theta/alpha oscillations, P300 substrate) is one implementation.

Biological mechanism (SNN-specific): When a high-salience event occurs — action sequence completion, unexpected harm, commitment boundary crossing — it does not merely boost E3 update signal amplitude. It resets the phase of the E3 heartbeat oscillator, ensuring the next heartbeat cycle starts from a coherent reference state.

Phase reset ensures that the updated harm estimates from the salient event enter the E3 stream at the beginning of a fresh cycle, not mid-cycle (which would produce partial integration artefacts). It is the mechanism by which completion events reorganize the timing of subsequent updates, not just inject a stronger signal.

In neuroscience: unexpected stimuli cause phase reset in theta and alpha oscillations (event-related potential P300 and its oscillatory basis). The reset is mediated by thalamic input that forces oscillator phase alignment.

Implication for sequential plans: In a multi-action plan W0→W1→W2, each waypoint completion phase-resets E3’s clock. This means each sub-completion produces a coherent starting condition for the next planning cycle — harm estimates from W0→W1 are fully integrated before W1→W2 planning begins, even if E1/E2 were still processing.


Quiescent periods trigger offline replay for viability map consolidation (MECH-092)

Claim Type: mechanism_hypothesis Subject: hippocampal.quiescent_offline_replay Claim Level: mixed Status: candidate Claim ID: MECH-092

Functional analog: During quiescent periods between active E3 updates, the hippocampal module performs offline batch replay of compressed recent trajectory experience to consolidate the viability map. This is standard experience replay — implementable in any substrate. The SWR mechanism is not required; the functional requirement is offline consolidation during idle periods.

Biological mechanism (SNN-specific): During quiescent E3 heartbeat cycles — periods when no new completion event or salient update is incoming — the hippocampal module performs replay: replaying compressed representations of recent trajectory experience to consolidate the viability map. This is the SWR (sharp-wave ripple) equivalent in the REE architecture.

Sharp-wave ripples in biological hippocampus occur during quiescent periods (rest, inter-trial intervals, slow-wave sleep) and replay compressed sequences (~10–20× faster than real time) for consolidation. They do not require external input — they are internally generated by CA3 recurrent dynamics.

REE implication: The hippocampal viability map (ARC-018) is not updated solely through online experience during active trajectories. It is also updated offline during quiescent E3 heartbeat cycles via replay. This means:

  1. The map can consolidate trajectory experience that occurred too fast for E3’s deliberative rate to fully integrate during execution.
  2. ARC-018 (rollout viability mapping) may be testable in V3 by observing map improvement during explicitly modelled quiescent replay phases, not just during active rollout.
  3. The failure of ARC-018 in V2 is partly explained by the absence of any replay mechanism — the viability map in CausalGridWorld updates only at each discrete step, with no quiescent consolidation phase.

Connection to sleep architecture: The sleep docs (docs/architecture/sleep/) describe offline consolidation. MECH-092 is the within-session, intra-action equivalent — the same replay machinery operating on shorter timescales during E3 heartbeat quiescence, not only during sleep.

Connection to DMN (ARC-014): Quiescent E3 heartbeat cycles are the micro-timescale version of DMN operation. Full DMN (ARC-014) operates at minutes-to-hours timescale during task-disengagement; MECH-092 operates at seconds timescale during inter-action gaps. Same machinery, different scale. Both are safe with respect to φ(z) because all internally-generated replay carries the hypothesis tag (MECH-094), which categorically blocks the post-commit error channel and prevents residue accumulation from simulated content.


z_beta modulates E3 update rate (MECH-093)

Claim Type: mechanism_hypothesis Subject: affective.z_beta_e3_update_rate_modulation Claim Level: functional Status: candidate Claim ID: MECH-093

The E3 heartbeat rate is not fixed. The affective latent z_beta modulates E3 update frequency: elevated harm salience (high z_beta arousal) increases E3 heartbeat rate (more frequent harm estimate refreshes); routine automated operation (low z_beta) decreases E3 heartbeat rate (more stable, less computationally expensive policy updates).

This is the neural analogue of arousal-modulated oscillation frequency: norepinephrine (NA) and acetylcholine (ACh) upregulate cortical and thalamic oscillation rates under high arousal, producing faster sampling and more frequent state updates. Under low arousal, oscillations slow and system enters more energy-efficient update regimes.

REE implication: z_beta is not only a precision-weighting signal (modulating how much each update matters) but also a rate-control signal (modulating how often updates occur). These are distinct contributions:

  • Precision-weighting (existing, MECH-059): high z_beta → E3 prediction errors are upweighted
  • Rate modulation (MECH-093): high z_beta → E3 heartbeat frequency increases → finer temporal resolution of harm attribution

Predicted behaviour: Under conditions of sustained high harm salience, the agent should exhibit faster control plane refresh and correspondingly more reactive (less stable) policy behaviour. Under routine conditions, policy stability increases. This connects the affective latent directly into the timing architecture, not only into the loss function.

Connection to MECH-087 (four-plane hierarchy): NA modulates perceptual sampling (MECH-084); ACh modulates encoding mode (MECH-083). MECH-093 adds: z_beta (the REE affective signal, corresponding primarily to NA arousal axis) modulates E3 heartbeat rate, placing it in the NA plane of the four-plane hierarchy as a rate-control rather than purely gain-control mechanism.


SD-006: Asynchronous Multi-Rate Loop Implementation (V3-scoped)

Type: Design Decision Status: held (V3) Registered: 2026-03-15

V1 and V2 use synchronous single-timestep execution: all three loops update on the same discrete clock tick. This is architecturally incorrect for the heartbeat model and means ARC-023 through MECH-093 cannot be properly tested.

V3 must implement genuinely asynchronous multi-rate execution. Options:

  1. Separate threads with message-passing queues: E1, E2, E3 run as independent threads; cross-loop communication via typed message queues with timestamped envelopes. E3 dequeues E1/E2 messages at its own heartbeat rate. Pros: clean separation. Cons: thread-safety complexity, GIL limitations in Python.

  2. Time-multiplexed execution with explicit loop-rate parameters: Single execution loop with configurable update periods per module (e.g. e1_steps_per_tick=1, e2_steps_per_tick=3, e3_steps_per_tick=10). Simpler than threading; less faithful to true asynchrony.

  3. Hierarchical temporal abstraction (HTA): Each loop operates on a different temporal grain explicitly represented in the architecture. E3 receives temporally-abstracted inputs (theta-cycle summaries, MECH-089) rather than raw E1/E2 outputs. Closest to the biological model; most faithful to cross-frequency coupling.

Recommendation for V3: HTA (option 3) co-designed with SD-004 (action objects) and SD-005 (z_self/z_world split). The temporal grain boundaries should align with the representational boundaries: E1 raw sensory → E2 action-object → E3 trajectory/harm are already distinct abstraction levels; each level’s update rate should match its abstraction grain.

Experiment implication: Until SD-006 is implemented, any experiment targeting the biological mechanism of ARC-023, MECH-089, MECH-090, MECH-091, MECH-092, or MECH-093 will produce null results by construction. However, experiments can target the functional analog of mixed and mechanistic claims without SD-006 — the functional requirement (rate separation, temporal batching, commitment gating, cycle resync, offline replay) is implementable in the current synchronous ANN substrate as a simplified proxy. These functional-analog experiments are a valid V3 pre-test before full SD-006 async execution is in place.


Section 4: Respiratory Oscillator Cluster

Registered: 2026-03-21 Source: Cross-species behavioural observation — dogs exhibit a swift exhalation precisely when abandoning a behavioural plan; humans sigh in functionally identical contexts. Cross-species convergence removes “cultural artifact” as an objection.

Overview

The heartbeat cluster (MECH-089–093) treats all control-plane oscillators as involuntary pacemakers. The respiratory oscillator cluster identifies a fourth clock — the ~0.2 Hz respiratory rhythm — that has a qualitatively different property: it is semi-voluntary. An agent can deliberately sigh, slow breathing, or hold breath. This makes respiration the natural oscillator for the plan-sweep layer — the periodic review of pre-commit hippocampal rollouts and DMN simulations for viability and abandonment.

The key distinction from the heartbeat (MECH-093):

  • E3 heartbeat → arousal-level gating of E3 refresh rate (how often harm estimates update). Governed by z_beta (involuntary, thalamic).
  • Respiratory sweep → periodic sweep of pre-commit rollouts for trajectory abandonment. Semi-voluntary. Operates at ~0.2 Hz, spanning several E3 heartbeat cycles.

MECH-107 — Exhalation as E3 trajectory-abandonment signal

Claim: Each exhalation sweeps active pre-commit hippocampal rollouts for viability; failing trajectories are abandoned and the hypothesis tag cleared.

Mechanism: Vagal afference from lung stretch receptors during exhalation modulates brainstem–thalamic–prefrontal circuits. In REE terms: each exhalation is the physiological instantiation of the hypothesis-tag clear (MECH-094) — the body enacting what the planning system has decided. Trajectory abandoned → write gate cleared → next deliberation cycle opens.

Cross-species evidence: Dogs exhibit a swift, audible exhalation when breaking off a behavioural approach. Humans sigh in the same contexts. This conserved pattern across species with very different cortical architectures grounds the claim as mechanistic (brainstem-level) rather than cultural.

Predicted test: Exhalation rate during deliberation tasks correlates positively with plan-abandonment rate; committed trajectory persistence correlates with respiratory slowing.

Depends on: MECH-094, MECH-091, ARC-023


MECH-108 — Respiratory rhythm as E3 plan-sweep oscillator

Claim: The ~0.2 Hz respiratory cycle is the clock governing periodic sweeps of pre-commit hippocampal rollouts and DMN simulations — a third control-plane oscillator distinct from heartbeat and theta/beta.

Three-oscillator summary:

  1. Respiratory (~0.2 Hz, semi-voluntary) — viability sweep / plan abandonment
  2. E3 heartbeat (~0.5–2 Hz z_beta-modulated, involuntary) — harm-estimate refresh
  3. Theta/beta (~4–30 Hz, involuntary) — sensory batching (MECH-089), commitment gate (MECH-090)

The respiratory clock spans several E3 heartbeat cycles: plan abandonment is a coarser deliberation-level decision, not a within-heartbeat event.

ANN implementation: A configurable plan_sweep_hz parameter (~0.2 Hz relative simulation time) that triggers a pre-commit rollout viability check and hypothesis-tag clear on each cycle. Orthogonal to the E3 heartbeat rate parameter.

Depends on: ARC-023, MECH-107, MECH-092, MECH-093


MECH-109 — Voluntary respiratory modulation as deliberate E3 plan-sweep gate

Claim: Breathing is the only control-plane oscillator with a genuine top-down voluntary handle. Deliberate sigh = forced single-cycle abandonment sweep. Breath-hold = plan-sweep suppression.

Predicted failure mode — anxious breath-holding: Under high-stakes deliberation, agents frequently hold their breath. This suppresses the plan-sweep clock at exactly the moment the planning system is most loaded and most needs to sweep non-viable trajectories. The failure is self-compounding: suppressed sweeps prevent abandonment of unworkable plans → increased deliberative load → increased anxiety → sustained breath-hold. This coincides with the agent needing more oxygen (high arousal, high metabolic demand), creating a somatic conflict between gas-exchange requirement and plan-sweep function.

Clinical implication: “Taking a deep breath” restores not only vagal tone (the standard account) but specifically restores the plan-abandonment sweep cycle. The instruction to breathe deliberately is mechanistically a plan-sweep restoration command.

Contrast with other clocks:

  • Heartbeat: cannot be voluntarily commanded (only modulated indirectly via arousal or vagal tone)
  • Theta/beta: wholly involuntary
  • Respiratory: directly commandable — unique locus of deliberate planning-clock intervention

Depends on: MECH-108, MECH-091, MECH-107


MECH-110 — Laughter as rapid hypothesis-tag cycling, with V5-scoped social synchronisation

Claim: Laughter (repeated forced exhalations) is rapid repeated oscillation through threat-hypothesis activation → safe-resolution → tag-clear. This predicts incongruity + resolution as the necessary structure of humour.

Mechanism:

  • Each forced exhalation = one plan-sweep cycle (MECH-107)
  • Laughter frequency (3–7 exhalations/second) is a high-frequency override of the background ~0.2 Hz respiratory clock
  • This override is tolerated because the threat is found absent on every sweep: rapid safe-confirmation cycling
  • The pleasure of laughter = affective signature of rapid repeated threat-non-confirmation (iterated tag-clear relief)

Predictions:

  1. Humour requires (a) initial threat/incongruity activation — hypothesis tag written — and (b) fast safe-resolution — sweep clears tag. Without (a): no laughter. Without (b): distress rather than laughter. This matches incongruity-resolution theories independently.
  2. Stronger initial threat activation → more intense laughter when safely resolved (explains gallows humour, dark comedy).
  3. Ambiguous punchline (incomplete resolution) → nervous laughter or discomfort — tag-clear is partial, residue persists.

Social synchronisation (V5-scoped): Group laughter is shared respiratory phase-reset synchronising E3 plan-sweep clocks across agents, functioning as a distributed “threat absent” signal. Contagious laughter is clock entrainment. The evolution of social laughter may be grounded in this synchronisation function in addition to — or prior to — pure affiliation signalling. This extension requires a multi-agent substrate and is scoped to V5 (V4 = sleep systems).

Depends on: MECH-107, MECH-094, MECH-091, MECH-108


REE is developed by Daniel Golden (Latent Fields). Apache 2.0.