Move the mouse to steer the attentional spotlight. Green ring = dynamic working memory (capacity derived from θ/γ ratio, §III.4). Green penumbra = DoG inhibitory surround (continuously scaled by stamina, §II.11). Purple veins = NMDA coincidence LTP (CaMKII bistable memory substrate). Orange = vortex core (Lyapunov attractor basin, Law I). HGS panel below = three-tier executive controller (Miller & Cohen 2001; Botvinick 2008). Overlay toggle shows STP depletion (teal) and BCM-LTD zones (inverted rings).
What does attention actually feel like — and what is it doing inside the brain? This simulation offers one answer. Rather than a static diagram or a metaphorical description, it provides a living, interactive model of selective attention that you can see and steer in real time. At the heart of this framework is a continuous Loud/Quiet Attentional Channel axis (Extension III) that reshapes the attentional field, its temporal dynamics, and its resource economics. This allows the simulation to distinguish — for the first time in this framework — between externally driven salience capture (loud, like watching an action movie) and internally sustained executive control (quiet, like reading a book) as structurally distinct regimes rather than mere arousal gradations.
The model builds upon over a century of attention research, integrating foundational observations from classical introspective psychology with contemporary computational neuroscience (Knudsen, 2007). Its theoretical chassis owes a profound scholarly debt to the seminal paradigms established by Donald Broadbent, Michael Posner, and Daniel Kahneman: Broadbent's conceptualization of attention as an information-processing bottleneck and structural filter (Broadbent, 1958); Posner's mathematical formalization of the spatial attention "spotlight" and dissociable cognitive networks (Posner, 1980; Posner & Petersen, 1990); and Kahneman's model of attention as a limited, depletable cognitive resource (Kahneman, 1973) alongside the phenomenological distinction between effortful and automatic processing modes (Kahneman, 2011). Modern neuroscientific frameworks are mapped onto this substrate: the core structure is based on the Three-Network Model (Fox et al., 2005) — a direct descendant of Posner's tripartite attention networks — utilizing the "Wandering Mode" for the Default Mode Network (DMN) (Raichle et al., 2001), "Task-Focused" modes for the Task-Positive Network (TPN) (Corbetta & Shulman, 2002), and an "attentional arbitrator" for the Salience Network (SN) (Seeley et al., 2007). This network interaction is governed by Expected Value of Control (EVC) Theory (Shenhav et al., 2013), which modernizes Kahneman's capacity model by replacing traditional willpower metaphors with a stamina-based opportunity cost framework (Kurzban et al., 2013).
What makes this platform unique is that the visible "shape" of attention — the heatmap, the vortex structures, and the attentional transitions — is not merely illustrative. It is directly derived from, and constrained by, the subcellular state changes computed in the backend biophysical model (neuron_21_8), creating a genuine bidirectional bridge between cellular mechanism and cognitive phenomenology. Extension III deepens this architecture by introducing a dual cost structure that operationalizes Kahneman's dual-process theory: the Quiet channel (analogous to effortful System 2 processing) incurs a high sustained control cost (endogenous maintenance of attention in the absence of exogenous drivers), while the Loud channel (analogous to automatic System 1 processing) incurs a high switching cost (accumulated penalty from rapid exogenous capture events). Neither channel is free — they pay in different currencies, preserving Law II's opportunity-cost logic while capturing the empirically distinct fatigue profiles of reading versus watching (Lang et al., 2000; Rayner, 1998). The simulation also incorporates Load Theory (Lavie et al., 2004), Biased Competition Theory (Desimone & Duncan, 1995), Normalization principles (Reynolds & Heeger, 2009), an underlying Saliency-Map (Itti et al., 1998), Feature Integration Theory (Treisman & Gelade, 1980), and Theory of Visual Attention (TVA) logic (Bundesen, 1990) to model the stochastic, probabilistic nature of conscious encoding. The channel axis modulates the DoG inhibitory surround from strong (Quiet, β = 0.50, narrow Mexican-hat suppression of distractors) to weak (Loud, β = 0.14, permissive peripheral aperture), and makes salience environments genuinely event-dense (Loud) or event-sparse (Quiet) through channel-dependent spawn rates and capture probabilities. Extension III further predicts that gating failure manifests asymmetrically — as internal distractor intrusion (DMN mind-wandering) in the Quiet channel, and as external distractor overload (inhibitory surround collapse) in the Loud channel. Working memory capacity itself is derived from the theta/gamma oscillatory ratio (Lisman & Jensen, 2013; Buzsáki, 2006), providing a biophysical foundation for the 4–7 item limit; Extension III makes this capacity channel-dependent, yielding ~7 WM slots in the Quiet channel (θ/γ = 0.14) and ~4 slots in the Loud channel (θ/γ = 0.25), with an overload penalty that accelerates decay and drains stamina when active slots exceed capacity.
The simulation is built as a two-layer model of attention, with each layer serving a distinct but complementary role. The visible frontend (proj2_v74) renders attention as a dynamic landscape of focus, distraction, salience capture, working-memory gating, and long-term consolidation. A continuous channel axis λ ∈ [0, 1] reshapes this landscape in real time. At λ = 0 (Quiet), the Difference-of-Gaussians field narrows to a single deep uni-modal peak (σe = 22 px, N = 1 channel, w = 0.95) with strong inhibitory surround, long fixations (280–480 ms), strict theta-gated saccades, and deep NMDA-LTP consolidation. At λ = 1 (Loud), the field broadens into four parallel shallow channels (σe = 72 px, N = 4, w = 0.32) with weak surround, short fixations (70–170 ms), relaxed theta-gating with salience override, and transient heat accumulation with weaker LTP. Transitions between profiles use per-frame exponential lerp (α = 0.04) for smooth, numerically stable morphing, while an optional spatial loudness mask allows both channels to coexist simultaneously on different canvas regions — modeling ecologically common situations like reading subtitles during an action scene. Beneath the frontend sits neuron_21_8, a biophysical simulator of 48 coupled neurons whose dynamics include Ca²⁺ signaling, Izhikevich spiking, short-term synaptic plasticity, NMDA-gated long-term potentiation, and regenerative fire-diffuse-fire propagation (Izhikevich, 2003; Tsodyks & Markram, 1997; Jahr & Stevens, 1990). The frontend-backend arousal sync connects the channel profile's arousal baseline to the neural chain's GlobalArousalGainController.ρ, so switching from Quiet to Loud makes the biophysical layer more excitable in concert with the macro-level changes. The aim is to let these two levels complement one another: the frontend makes the phenomenology of attention visible and interactive, while the backend supplies a candidate physiological substrate for how those dynamics could emerge.
At the top layer, selective attention is treated not as a static spotlight metaphor but as an emergent process — the moment-to-moment outcome of competing network states, limited control capacity, salience-driven interruption, and adaptive learning over time (Buschman & Miller, 2007). The channel axis enriches this emergence: in the Loud channel, attention is driven primarily by bottom-up salience capture (the Salience Network dominates, and HGS Tier 3 priority is salience-weighted), while in the Quiet channel, attention is driven primarily by top-down executive control (the Task-Positive Network dominates, and HGS Tier 3 priority is LTP-weighted). The model draws together ideas spanning more than a century of attention research — from William James's description of focus and fringe, through the foundational work of Broadbent, Treisman, and Posner, to contemporary accounts of biased competition, hierarchical control, reinforcement, and synaptic plasticity. What the user sees on screen is therefore not a decorative animation but a running systems-level hypothesis: attention as the dynamic interplay of control, memory, salience, and learning, whose expression is continuously shaped by the ecological demands of the task environment as captured by the channel axis.
A central motivation for this project is to bridge explanatory levels that are often kept separate. Cognitive and systems-level models can describe large-scale attentional states with considerable power, but they typically abstract away the cellular and synaptic mechanisms that might support them. Biophysical simulators, by contrast, can capture spikes, calcium transients, vesicle dynamics, and receptor kinetics in exquisite detail, yet they usually stop short of connecting those mechanisms to recognizable cognitive phenomena (D'Esposito & Postle, 2015). This framework attempts to sit between those traditions — making a psychologically meaningful process interactive and visible at the top level while constraining it with mechanistic rules drawn from cellular and synaptic biology at the bottom level. The channel axis exemplifies this bridging ambition: the macro-level distinction between loud and quiet attention is grounded in specific, manipulable biophysical parameters — ACh/DA gain, θ/γ coupling ratio, STP depletion rate, NMDA coincidence threshold — that have known neural substrates, rather than being a purely descriptive label applied post hoc. Few existing platforms approach simulation from this direction: asking not just "what does the mechanism produce?" but "what does the attentional process feel like, and can that phenomenology be grounded in membrane voltage and subcellular kinetics?"
Conceptually, the frontend integrates the Three-Network Model of large-scale cognition: wandering behavior corresponds to the Default Mode Network, task-focused control corresponds to the Task-Positive Network, and salient interruptions correspond to the Salience Network (Fox et al., 2005; Seeley et al., 2007). Extension III maps the channel axis onto this architecture with precision: the Loud channel amplifies the Salience Network's role (high capture probability, large capture radius, salience-heavy HGS priority weights) while attenuating the Task-Positive Network's endogenous drive (low control cost multiplier); the Quiet channel does the converse, strengthening the TPN's top-down maintenance (high control cost, LTP-heavy priority, strict theta gating) while suppressing SN-driven reorienting. These interactions are regulated by an Expected Value of Control account (Shenhav et al., 2013), in which cognitive stamina represents the current willingness to sustain effortful control rather than a literal fuel tank. The dual cost structure — control cost plus switching cost — ensures that both channels obey Law II: the Quiet channel pays for sustained vigilance, the Loud channel pays for rapid reorienting, and the total drain is modulated by accumulated task value so that flow states and burnout emerge from environment interaction rather than being hard-coded. Biased Competition and gain-control principles shape the Difference-of-Gaussians inhibitory surround, which the channel axis continuously morphs from narrow and deep (Quiet) to broad and shallow (Loud). The Hierarchical Goal System provides a three-tier controller that determines what the system is trying to do, which region of space it should prioritize, and where the spotlight should bias next (Miller & Cohen, 2001; Botvinick, 2008); Extension III makes the HGS goal label channel-dependent ("Deep Comprehension" in Quiet, "Threat / Salience Scan" in Loud) and shifts Tier 3's saccade policy between LTP-driven revisit (Quiet) and salience-driven capture (Loud). The neuron_21_8 backend grounds these higher-level dynamics in coupled Izhikevich neurons, Tsodyks-Markram short-term plasticity, NMDA coincidence detection, and Ca²⁺-dependent propagating activity — giving the model both phenomenological legibility and mechanistic depth. The channel profile's arousal baseline, STP decay rate, and BCM threshold modulation propagate to the backend via the arousal sync, ensuring that the biophysical layer's operating point shifts in concert with every macro-level channel switch.
Loud/Quiet Attentional Channel System (Extension III) is the most consequential theoretical addition in v78. It introduces a continuous Channel axis λ ∈ [0, 1] that reshapes the attentional field geometry, temporal dynamics, and EVC cost structure simultaneously. Three profile presets — Loud / Action Movie, Neutral / Default, Quiet / Reading — are exposed as clickable cards with live 1D DoG cross-section preview canvases, plus a continuous slider for fine-grained control. The slider blends between the Quiet and Loud endpoint profiles by linear interpolation of all numeric parameters, with the activeProfileKey switching to 'custom' when the slider is used directly.
DoG Field Morphology. The Difference-of-Gaussians attentional field is now channel-dependent. The Quiet channel narrows the focus zone (sigmaExciteMult = 0.48) and strengthens the inhibitory surround (inhibitBetaMult = 1.80), producing a tight, deep attentional peak. The Loud channel broadens the focus zone (sigmaExciteMult = 1.55) and weakens the surround (inhibitBetaMult = 0.50), yielding a shallow, wide field. The neutral profile sits between them at 1.0× for all DoG parameters. Each profile card renders a live 1D cross-section of its Mexican Hat shape, with the central excitatory peak and the inhibitory dip below baseline.
EVC Dual Cost Bifurcation. The single flat stamina-drain multiplier is replaced with a dual cost structure: control cost + switching cost. The Quiet channel incurs high sustained control cost (controlCostMult = 1.85) because attention must be maintained endogenously, but low switching cost (switchingCostMult = 0.20) because few capture events occur. The Loud channel incurs low control cost (controlCostMult = 0.35) because the environment drives the spotlight, but high switching cost (switchingCostMult = 1.70) because each exogenous capture event carries a penalty. A rolling captureCountWindow tracks the average capture rate over the last 60 frames, and the switching drain is computed as STAMINA_DRAIN × avgCaptureRate × switchingCostMult × 0.15, with the live value displayed in the sbSwitchCost stat bar. Neither channel is "free" — they pay in different currencies, preserving Law II's EVC logic.
Channel-Dependent Saccade Dynamics. Fixation durations, saccade amplitudes, and wander intervals are all modulated by the active profile. Quiet mode uses long fixations (fixationMin = 280, fixationMax = 480 ms), small saccade amplitudes (saccadeAmpMult = 0.50), and long wander intervals (wanderIntMult = 2.10). Loud mode uses short fixations (fixationMin = 70, fixationMax = 170 ms), large saccade amplitudes (saccadeAmpMult = 1.55), and short wander intervals (wanderIntMult = 0.45). The wanderInt is recomputed each saccade as 180 × wanderIntMult × (0.7 + Math.random() × 0.6), producing the characteristic burst-pause rhythm of eye movements. Theta-gating strictness is indirectly modulated via the profile's effect on focus/fringe geometry; the phase-locked saccade gate (sin(2π·6·t) < -0.90) remains active across all profiles.
Channel-Dependent Working Memory. WM capacity is derived from the θ/γ ratio per Lisman & Jensen (2013), with a channel-specific offset (wmCapacityDelta). The Quiet channel adds +1 slot (≈7 total), the Loud channel subtracts 2 slots (≈4 total), and Neutral has no offset. WM decay rate is modulated by wmDecayMult: Quiet holds items stably (0.45× baseline decay), Loud turns them over rapidly (2.0× baseline decay). When the profile changes, the workingMemory.slots array is resized to the new capacity, preserving existing slot contents where possible.
Channel-Dependent Learning. The Quiet channel favours deep, durable consolidation: LTP threshold is lowered (ltpThresholdMult = 0.70), LTP gain is increased (ltpGainMult = 1.30), heat decay is slowed (heatDecayMult = 0.62), and vortex basins are deeper (vortexThresholdMult = 1.20, vortexDecayMult = 0.62). The Loud channel favours shallow, transient processing: LTP threshold is raised (ltpThresholdMult = 1.35), LTP gain is reduced (ltpGainMult = 0.75), heat decay is accelerated (heatDecayMult = 1.40), and vortex basins are shallower (vortexThresholdMult = 0.78, vortexDecayMult = 1.50). These parameter shifts are applied via the CP_current lerp system and read directly in heatDecayStep() and updateHeat().
Salience Environment Scaling. Salient event spawn rate, capture radius, and capture threshold are all channel-dependent. Loud mode spawns events more frequently (salientSpawnRateMult = 1.70), with a larger capture radius (captureRadiusMult = 1.35). Quiet mode spawns events sparsely (salientSpawnRateMult = 0.55), with a smaller capture radius (captureRadiusMult = 0.70). The next spawn interval is computed as (240 + Math.random() × 300) / salientSpawnRateMult, and the capture threshold is multiplied by captureRadiusMult in updateSpotlight().
Channel-Dependent STP and Noise. Short-term plasticity depletion is modulated by stpDecayMult: Loud accelerates STP decay (1.25×), Quiet slows it (0.78×). Channel noise injection is higher in Loud (noiseLevel = 0.10) and lower in Quiet (noiseLevel = 0.012), with noise applied as (Math.random() - 0.5) × noiseLevel to each cell's heat during decay, producing the characteristic jitter of high-arousal processing versus the clean signal of focused reading.
Smooth Profile Transitions. All numeric parameter changes use per-frame exponential lerp at 4% per frame (CP_LERP_RATE = 0.04), giving ~95% convergence in 74 frames (~1.2 seconds at 60 FPS). A deep-copy target profile (CP) and a live current profile (CP_current) are maintained independently, with lerpChannelProfile() called every frame before the simulation step. This prevents visual discontinuities, timer desyncs, and WM slot corruption when switching profiles mid-simulation. Transitions are visually perceptible as deliberate shifts rather than instantaneous mode swaps.
Spatial Loudness Mask. An optional spatial mask (toggled via the chSpatialMaskBtn) divides the canvas into a quiet zone (upper half) and loud zone (lower half) with a smooth sigmoid boundary: localLoudness = 1 / (1 + exp(-14 × (y/H - 0.5))). When enabled, DoG parameters are blended per-pixel between the Quiet and Loud endpoint profiles based on localLoudness, allowing simultaneous coexistence of both channel types — modeling, for example, reading subtitles while watching an action scene. The getLocalLoudness(y) function is called in updateSpotlight() to modulate sigmaExciteMult and sigmaInhibitMult for each frame.
Arousal Baseline Sync. Each profile carries an arousalBaseline value (Quiet: 0.30, Neutral: 0.55, Loud: 0.82). When a profile is selected, the neuromod slider's value is set to arousalBaseline × 100 and its input event is dispatched, updating the global neuromod variable and the arousalRhoLabel display. This ties the channel axis directly to the existing ACh/DA gain control, making the back-end arousal state track the front-end attentional regime.
Channel Profile Cards. Three clickable cards (cp-card) expose the Loud, Neutral, and Quiet presets. Each card displays a live DoG shape preview rendered on a <canvas> via drawShapePreview(), which plots a 1D cross-section of the Mexican Hat kernel using the profile's sigmaExciteMult, sigmaInhibitMult, inhibitBetaMult, and channelWeightMult. The cards are styled with accent colours matching the profile: amber for Loud, grey for Neutral, blue for Quiet. The active card receives a glow and border highlight, and the slider below provides continuous fine-grained control between the endpoints.
SwitchCost Accumulator. A dedicated SwitchCost stat bar item (sbSwitchCost) displays the live switching drain component in real time. This makes the dual-cost structure visible and debuggable: users can observe switching cost rising during high-capture-rate periods (e.g., fast cuts, dense notifications) and falling during quiet periods, providing a direct readout of the EVC switching-curriculum.
Implementation Status. Extension III is fully implemented in the v78 codebase. The three-law coupling is genuine: DoG field geometry (Law I), EVC dual-cost bifurcation (Law II), and WM capacity / decay dynamics (Principle III) are all modulated by the same channel axis. The lerp system, spatial mask, arousal sync, and SwitchCost readout are all live in the running simulation. The core theoretical contribution — that attention's cost structure is not monolithic but bifurcates into control and switching currencies — is operationalised in code and observable in the stats bar.
This simulation serves multiple educational and investigative functions as a structured hypothesis generator. The Loud/Quiet Attentional Channel axis (Extension III) substantially expands the research scope by enabling direct, parameterized comparison of ecologically distinct attentional regimes within a single unified model — providing a formal computational vocabulary for dynamics that previously required separate experimental paradigms. The framework's value at this stage is that it makes explicit what a dynamical account of attentional differences would need to predict, and thereby identifies specific empirical tests that could confirm or refute each prediction.
Summary: The research applications above represent the framework's most speculative layer. They are included because they are specific enough to be falsified — which is the minimum requirement for a scientific hypothesis — not because they have been confirmed. The transition from computational analogy to empirically grounded tool requires the multi-step validation pipeline described in the Roadmap to Validation; none of those steps have been completed. No clinical recommendation, public-health guideline, or interface-design standard should be derived from this section without independent empirical validation.
Spotlight and penumbra. The glowing disc that follows your mouse is the attentional spotlight. Its warm yellow-white centre is the focus zone — only thought streams entering here are encoded into working memory. Surrounding it is a faint amber fringe (partial activation, lower velocity boost). Outside the fringe is the DoG inhibitory penumbra, rendered as a transparent green annulus: this is the Mexican Hat surround where the spotlight simultaneously drains heat from competing regions (Desimone & Duncan, 1995). The dashed outer ring marks the full extent of the inhibitory field.
Particles (thought streams). Each flowing line is a thought stream traversing a hidden random geometric network of 80–120 nodes. Colour encodes proximity to the spotlight: cool blue-green = peripheral/unattended; yellow-gold = fringe awareness; bright gold = fully attended (working memory capture). Trail length encodes recency (80+ historical positions). Streams entering vortex-gravity zones shift toward orange.
Heatmap. The colour field under the particles is the traversal intensity map. Cold = navy/transparent; warming = blue → cyan → green → yellow → orange (vortex peak). Orange is the maximum; there is no white-hot — the peak is saturated orange. Purple veins drawn over the heat field are LTP structural traces: they persist even after transient heat has cooled, marking paths the spotlight has consolidated through repeated coincident firing (Bhalla & Iyengar, 1999). The legend strip below the canvas shows the full ramp.
STP/BCM Overlay. When the Overlay button is active, the canvas shows a teal-tinted heatmap of short-term synaptic depletion (R·u < 0.4) and inverted orange contour rings marking BCM-LTD zones. This makes the spatial distribution of synaptic resources and metaplastic boundaries visible in real time.
Working memory ring. The green arc segments orbiting the spotlight represent the capacity-limited working memory buffer, with capacity derived from the theta/gamma oscillatory ratio (Cowan, 2001; Lisman & Jensen, 2013). Bright green = slot recently loaded; fading green = decaying; faint outline = empty slot. Items are captured stochastically (~12%/frame) from streams entering the focus zone.
HGS panel. The three-tier bar below the canvas shows the Hierarchical Goal System in real time. The blue bar is the current Abstract Goal and its time-to-transition; the green bar is the active Subgoal/quadrant assignment; the amber bar is the Immediate Policy (Miller & Cohen, 2001). Each bar fills as the tier approaches its next transition.
Stats panel (top-right). Key readouts: Max Heat — peak heatmap intensity; Vortex Count — cells above vortex threshold; ω Vorticity — mean angular velocity in the (v, dv/dt) phase plane (non-zero = rotational/vortex dynamics) (Srivastava et al., 2020); BCM-LTD — cells currently in LTD regime (below their sliding BCM threshold); STP R·u — mean short-term plasticity efficacy; IZH Type — current Izhikevich firing preset; DA/ACh Gain — neuromod value; Cognitive Stamina — the opportunity-cost bar that drives gating failure; TaskVal — the dynamic EVC task value accumulator.
Neuromod slider. The ACh/DA Gain (γ) slider at the top maps onto the neuron_21_8 AttentionalStateMapper.stamina_to_gamma() scale. Far left = drowsy/ACh-dominant (diffuse, slow decay, low SNR); far right = alert/DA-dominant (sharp focus, fast non-vortex decay, high gain) (Aston-Jones & Cohen, 2005). The label changes: ACh-Dominant → Balanced → DA-Dominant, and the ρ readout shows the backend arousal gain value.
Mode buttons. Wandering = DMN state (Raichle et al., 2001); Task-Focused = TPN state (spotlight fixates then makes controlled saccades) (Corbetta & Shulman, 2002); Long-Term Memory = 20× speed compression for vortex formation over extended timescales; MIA = mindful awareness training (reduces salience capture probability by 18–25%); IZH = cycle through RS/FS/IB/CH/LTS firing presets (Izhikevich, 2003); Overlay = toggle STP/BCM spatial visualization.
The visualization represents cognitive activity as flowing "thought streams" — trajectories of neural activation traversing a complex network topology. This design principle reflects contemporary understanding of brain function as fundamentally characterized by parallel distributed processing across multiple, simultaneous neural pathways (Rumelhart & McClelland, 1986).
Mechanistic Implementation: Each particle (thought stream) navigates through a hidden lattice of interconnected nodes, modeling the brain's hierarchical and recurrent connectivity patterns (Felleman & Van Essen, 1991). The vast majority of these streams remain dim and operate at baseline velocity, representing the enormous computational capacity of preconscious and unconscious processing — the continuous, parallel operations occurring below the threshold of awareness (Baars, 1988; Dehaene & Naccache, 2001).
Visual Representation: Thought streams are rendered with elongated trails (80+ historical positions) that create smooth, flowing lines through the neural network using quadratic Bézier curves. These trails change color dynamically based on their relationship to the attention spotlight — transforming from cool blues (peripheral/unattended) through greens and yellows (fringe awareness) to bright golds (fully attended) when captured in the focus zone.
The central spotlight mechanism implements James's distinction between the focus of attention (the "fovea") and the fringe of consciousness (the "penumbra"). This two-tier architecture captures the graduated nature of awareness and the concept of partial activation in memory and attention systems (James, 1890).
Neural Correlates:
This version introduces a capacity-limited working memory architecture whose slot count is derived live from the theta/gamma oscillatory ratio (Lisman & Jensen, 2013; Buzsáki, 2006). This refined model aligns with the convergent evidence from multiple research paradigms demonstrating that working memory operates with approximately 4±1 discrete chunks of information (Cowan, 2001; Luck & Vogel, 1997). The capacity is computed as floor(τ_theta / τ_gamma), clamped to the empirically supported 4–7 range, directly implementing Law III's reformulated statement (§III.4).
The Magic Number Four: The reduction from 8 to 4 slots represents a return to the core findings of capacity limitation research. While Miller's (1956) "magical number seven" described span tasks involving sequential recall, modern research using change detection paradigms and continuous resource models consistently points to a more fundamental limit of approximately 4 items for simultaneous maintenance (Cowan, 2010).
Visual Implementation: The working memory slots are displayed as:
The simulation implements the three major large-scale brain networks identified by Fox et al. (2005) and Seeley et al. (2007). The Default Mode Network (Wandering mode) is active during internal mentation and mind-wandering: the spotlight wanders stochastically, attracted to heat gradients and salient events, with minimal stamina drain (Raichle et al., 2001). The Task-Positive Network (Task-Focused and voluntary mouse control) engages top-down executive gating: streams outside the spotlight are suppressed (dimmed, decelerated up to 80%) while the spotlight executes planned saccades (Corbetta & Shulman, 2002). The Salience Network operates continuously: unpredictable pulsating events (orange = threat; cyan = reward) exert bottom-up capture forces proportional to proximity, stamina level, and mode state (Seeley et al., 2007). The capture radius widens by 50% during gating failure, implementing Load Theory (Lavie et al., 2004).
The spotlight implements a three-zone radial architecture. The focus zone (radius ∼ 35px) applies maximum facilitation — velocity ×4, full luminosity, working memory eligibility. The fringe (focus → fringe radius ∼ 85px) provides graded partial facilitation, implementing James's "fringe of consciousness." The DoG inhibitory surround (fringe → fringe × 1.45) actively drains heat from surrounding cells via the Mexican Hat kernel, implementing Biased Competition Theory (Desimone & Duncan, 1995) and preventing heat bleed across the field. The penumbra is visualised as the transparent green annulus.
A capacity-limited ring buffer implements Cowan's (2001) capacity limit for the focus of attention, with the number of slots computed live from the theta/gamma ratio (Lisman & Jensen, 2013). Each slot holds a captured thought stream with a life value in [0,1] that decays every frame. Items are stochastically captured (~12%/frame) when a stream enters the focus zone; the oldest slot is overwritten when the buffer is full. The green ring segments around the spotlight visualise current slot occupancy and decay state. Only items in the buffer are consolidated into longer-term LTP traces.
A spatial grid tracks the history of all spotlight positions. Thought streams passing through previously attended regions experience a subtle attractive bias (strength 0.2) proportional to the local selection history value, which decays at 0.995/frame. This creates attentional attractors that implement selection-history effects (Awh, Belopolsky & Theeuwes, 2012) and models automatic return to previously rewarding locations without invoking explicit inhibition of return.
Cognitive Stamina implements Expected Value of Control theory (Shenhav et al., 2013). It is not a "fuel tank" — it is a continuous cost-benefit computation. Voluntary mouse control and task mode drain stamina; wandering mode allows regeneration. When stamina drops below 30%, gating failure activates: particle turbulence increases, the spotlight's inhibitory gate halves, and salient event capture probability nearly doubles. This implements Load Theory (Lavie et al., 2004). High-stamina states correspond to high neuromod (DA-dominant); low-stamina states map to ACh-dominant, drowsy dynamics (Aston-Jones & Cohen, 2005).
The learning system in proj2_v68 is best understood as a multi-timescale attentional plasticity model. At the fastest timescale, thought streams and the spotlight deposit transient heat into the field; at intermediate timescales, repeated local coincidence builds LTP-like traces; at slower timescales, BCM and homeostatic regulation prevent runaway amplification (Bienenstock et al., 1982; Turrigiano & Nelson, 2004). The result is a field that can express both short-lived activation and longer-lived attentional habits without claiming that the 2D canvas is a representation of groups of synapses or dendritic trees.
This distinction matters. The visible heatmap is a spatial computational abstraction: it shows where processing has been concentrated, how long it lingers, and which regions have become easier to re-enter. The model is therefore functionally inspired by Hebbian and synaptic-plasticity principles, but it should be read as a mesoscale learning surface rather than a direct simulation of microscopic synaptic biochemistry.
Every frame, the system updates a traversal-intensity field. Thought streams deposit small amounts of heat as they move through the hidden graph, while the attentional spotlight deposits much stronger input through a Difference-of-Gaussians kernel whose centre excites and whose surround suppresses competing regions (Desimone & Duncan, 1995). This makes the heatmap a running record of recent attentional allocation rather than a static background texture.
On its own, heat is transient. If activity is not revisited, it decays; if a region is revisited repeatedly, it becomes easier for that region to remain active and to recruit the spotlight again. Functionally, this is the model's account of how repeated attention becomes path-dependent: the system becomes biased toward what it has already processed often (Hebb, 1949).
When local heat rises past the vortex threshold, that region becomes an attentional vortex: a stable attractor in the field. Vortexes decay more slowly, exert gradient-based pull on nearby thought streams, and in wandering mode can bias the spotlight itself toward already consolidated regions (Amari, 1977; Wilson & Cowan, 1972). In cognitive terms, they represent patterns that have become disproportionately easy to reactivate.
This is the model's computational account of attentional habit formation. A vortex can represent something adaptive, such as practiced expertise or efficient task focus, or something maladaptive, such as rumination, threat bias, or addiction-related hypersalience (Nolen-Hoeksema et al., 2008; Robinson & Berridge, 1993). The spatial metaphor makes this competition visible: not all patterns survive equally, and the most reinforced ones begin to dominate access to limited processing resources.
Heat alone does not create long-term structure. The longer-lived traces in the field are the purple LTP veins, which are updated by a coincidence rule rather than by simple repeated occupancy. Each cell stores a recent spike timestamp (nmdaLastSpike), and when a post-synaptic event occurs in the presence of recent neighbouring activity, the model computes an NMDA-style coincidence increment modulated by Mg²⁺ unblock and neuromodulatory gain (Jahr & Stevens, 1990; Bi & Poo, 1998). This replaces the older threshold-only rule with a more explicitly timing-dependent consolidation mechanism.
Once LTP crosses the model's CaMKII-like bistability threshold, it becomes partially self-sustaining and can persist after transient heat has cooled (Bhalla & Iyengar, 1999). This is why the heatmap and the vein map are not identical: heat reflects current or recent activation, while LTP veins reflect a slower consolidation signal that marks paths repeatedly reinforced by coordinated activity. In that sense, the frontend distinguishes activation from memory bias.
All incoming deposits are filtered by Tsodyks-Markram-style short-term plasticity (Tsodyks & Markram, 1997). Each cell tracks a resource variable R and a utilisation variable u; repeated activation temporarily raises utilisation but depletes available resources, so effective deposit strength depends on the current R·u state. This adds a fast fatigue-and-recovery layer to the field.
Functionally, STP prevents every burst of activity from reinforcing itself without cost. Repeated rapid activation becomes less effective until the local resources recover, which gives the model a built-in habituation mechanism and makes attentional persistence depend on both immediate momentum and short-term depletion. The mean R·u value shown in the stats panel is therefore a live summary of how permissive the field currently is to further reinforcement.
The model includes two slower stabilizers that keep learning from collapsing into permanent runaway capture. First, a BCM-style sliding threshold tracks recent activity and determines when local conditions favour potentiation versus depression (Bienenstock et al., 1982). Cells that are chronically overactive or insufficiently active relative to their threshold can enter LTD-like regimes, reducing accumulated LTP and limiting pathological self-amplification.
Second, a separate homeostatic gain term slowly rescales deposit efficiency toward a target activity level (Turrigiano & Nelson, 2004). Chronically hot cells become less sensitive; chronically cold cells become more sensitive. BCM therefore shapes the local plasticity boundary, while homeostasis provides a broader background normalization that keeps the entire field usable over long runs.
Taken together, the learning dynamics implement a layered story: transient traversal produces heat, repeated coordinated activity builds LTP veins, and stabilized hot regions become vortexes that bias future processing. STP sets the short-term availability of reinforcement, BCM sets a local modification threshold, and homeostasis keeps the system from locking irreversibly into one state. The result is not a literal synapse-by-synapse cortical model, but a structured computational account of how attention can become self-reinforcing over time.
This framework is useful because it makes otherwise invisible dynamics legible. It shows why sustained practice is required to reshape attentional habits, why old patterns remain competitive even after momentary disengagement, and why maladaptive patterns can become self-stabilizing unless countered by regulation, recovery, or top-down control. In that sense, the learning system is less a picture of tissue than a visible hypothesis about how repeated selection becomes persistent bias.
Early theories of executive control posited a depletable "willpower" resource, often linked to glucose metabolism (Baumeister et al., 1998; Gailliot et al., 2007). However, this "ego depletion" model has faced significant replication challenges and theoretical criticisms (Hagger et al., 2016).
Contemporary frameworks instead emphasize opportunity costs and motivational factors (Inzlicht & Schmeichel, 2012; Kurzban et al., 2013). The core insight: cognitive control is not limited by a fixed resource pool, but by the brain's cost-benefit analysis of sustained effort. Mental fatigue signals that continued engagement has diminishing returns relative to alternative activities (rest, exploration, mind-wandering).
Expected Value of Control Theory: Shenhav, Botvinick, and Cohen (2013) formalize this as the Expected Value of Control (EVC) — the anticipated reward for sustained control effort minus the opportunity cost of foregone alternatives. The anterior cingulate cortex computes this EVC dynamically, adjusting control intensity based on task difficulty, reward magnitude, and internal state (Shenhav et al., 2013).
In the Model: The Cognitive Control Effort Potential meter implements this principle as a dynamical variable representing the current willingness to sustain effortful control based on ongoing cost-benefit assessment, not a finite resource that's "used up." Specifically:
Why This Framework Works Better: The opportunity cost framework explains several phenomena the resource depletion model struggles with:
This reconceptualization shifts the design philosophy: Control Effort Potential is not a "fuel tank" but a continuous cost-benefit computation that guides attentional allocation strategy. The meter reflects the current balance between the perceived value of sustained control and its opportunity costs. Users can influence this computation through environmental design (increasing task rewards), skill training (reducing control costs via automaticity and efficiency), and metacognitive awareness (recognizing when sustained effort has diminishing returns and strategic disengagement is adaptive).
Tier 1 — Abstract Goal (~minutes): Sets the global γ envelope and particle density bias for the entire field. Transitions every ~1800 frames. Goals include Sustained Focus (high γ, low density bias), Broad Exploration (low γ, high density), Memory Consolidation (medium γ, reinforces LTP pathways), and Suppression (high γ, low density). This tier answers "what is the system trying to accomplish at the minute scale?" and corresponds to PFC top-down goal representations (Miller & Cohen, 2001).
Tier 2 — Subgoal / Executive Gating (~seconds): The core innovation absent from earlier versions. The field is subdivided into four quadrants (TL, TR, BL, BR) and spatially targeted γ modulation is applied: the active quadrant receives +40% γ boost while the other three receive -20% suppression. This implements spatially selective SNR control — analogous to dlPFC→posterior parietal projections (Corbetta & Shulman, 2002) — making the "spotlight analogue" a genuine spatial gating mechanism rather than a uniform field adjustment. Transitions every ~240 frames, cycling through quadrants. The active quadrant is shown with a dashed border overlay on the canvas.
Tier 3 — Immediate Policy (~ms): The fastest tier answers "where exactly should I look right now?" It biases the spotlight wander toward high-LTP cells in the active quadrant ("LTP Vein Tracking"), implements inhibition of return from recently visited cells, or seeks novelty in low-heat regions (Botvinick, 2008). In v68, this tier is driven by a Priority Map: Priority(x,y) = w₁·Salience(x,y) + w₂·LTP(x,y) - w₃·IOR(x,y), where IOR is an explicit inhibition-of-return map. The spotlight holds fixation for 100–300 ms, then performs a ballistic saccade to the peak priority node within the active quadrant.
The active IZH firing type modulates the global γ via a type-specific multiplier: RS (baseline, ×1.0), FS (fast-spiking interneuron, ×0.75 — tight lateral inhibition), IB (intrinsic bursting, ×1.15 — cluster vortex formation), CH (chattering, ×1.25 — rapid oscillatory traversal), LTS (low-threshold spiking, ×0.90 — thalamic relay dynamics) (Izhikevich, 2003). These multipliers compound with the neuromod-scaled γ, creating qualitatively different attentional dynamics across the 5×5 space of (IZH type, neuromod level). The NMDA coincidence window and LTP rate are also scaled by neuromod, so high-DA + CH type produces the most aggressive LTP consolidation.
This simulation organizes attention around three interacting large-scale systems: the Default Mode Network (DMN), the Task-Positive Network (TPN), and the Salience Network (SN). Together, they provide a compact computational account of how attention alternates between internally generated thought, goal-directed control, and stimulus-driven interruption (Raichle et al., 2001; Buckner et al., 2008; Fox et al., 2005; Seeley et al., 2007; Menon & Uddin, 2010).
The Default Mode Network (DMN) includes regions such as medial prefrontal cortex, posterior cingulate cortex, and angular gyrus, and is most strongly associated with internally oriented cognition: autobiographical memory, future simulation, semantic association, and mind-wandering (Raichle et al., 2001; Buckner et al., 2008). In the model, this corresponds to Wandering Mode, where the spotlight moves in a passive, exploratory way, shifting periodically between points of interest and drifting toward established vortexes. Unattended thought streams remain bright and mobile, representing the relatively open, unconstrained character of resting cognition. Although the DMN is metabolically active, it is modeled here as a low-control-cost state: when the spotlight is not under active mouse or task control, Control Effort Potential drains minimally and can recover.
The Task-Positive Network (TPN), also referred to as the dorsal attention network, includes dorsolateral prefrontal cortex, frontal eye fields, and intraparietal sulcus, and is associated with externally directed, goal-focused cognition (Fox et al., 2005). Its core functions are voluntary attention, distractor suppression, and top-down biasing of processing toward task-relevant information (Buschman & Miller, 2007). In the model, TPN activation appears in two forms: Voluntary Control, where the spotlight follows the mouse continuously, and Task Mode, where it fixates for 120 frames and then makes controlled shifts within a 100-250px radius. In both cases, the inhibitory surround is engaged: unattended streams are dimmed and slowed by up to 80%, making the resource trade-off of focused attention visible (Desimone & Duncan, 1995). This sustained control also continuously drains Control Effort Potential, reflecting the mounting opportunity cost of executive effort.
The Salience Network (SN), centered on the anterior insula and dorsal anterior cingulate cortex, acts as an attentional switchboard that monitors the environment and internal state for behaviorally significant events, then interrupts and reallocates resources when needed (Seeley et al., 2007; Menon & Uddin, 2010). In the simulation, salient events appear as bright pulsating rings: orange for threats and cyan for rewards. These events compete for the spotlight using a capture rule shaped by distance, current control state, fatigue, gating failure, and MIA training. Threats have a 10% larger capture radius, task mode provides a 10% protection effect, gating failure cuts control effectiveness by 50%, and MIA reduces capture probability by roughly 18-25%. When capture occurs, the spotlight is pulled immediately, the screen flashes briefly by valence, and Control Effort Potential is adjusted: threats drain 5 while rewards restore 2.
This three-network model is governed by a motivational control variable rather than a simple depletion meter. Older theories treated willpower as a consumable resource, but Expected Value of Control (EVC) theory frames mental fatigue as a cost-benefit computation: sustained control is maintained only while its expected value exceeds its opportunity cost (Shenhav et al., 2013). In the simulation, Control Effort Potential therefore represents the current willingness to continue effortful control, not a literal fuel tank.
+2, not because a depleted resource is being refilled, but because task value is transiently increased (Schultz, 1998).Put differently, the DMN, TPN, and SN are not just three descriptive modes; they are coordinated by an economic control logic. Wandering restores willingness, focused control spends it, and salience events can override either state when the environment becomes sufficiently important. This makes the model a dynamic negotiation between internal mentation, goal pursuit, and interruption rather than a static spotlight metaphor.
v68 introduces a WebGL fragment shader pipeline for heatmap spatial diffusion and color-mapping. The heatmap data is uploaded as a floating-point texture, and a two-pass shader (horizontal + vertical blur) performs isotropic diffusion in O(n) per pass rather than the O(n²) CPU fallback. The color ramp is computed in the shader using the same piecewise function as the CPU version, but at GPU parallelism. This allows the grid resolution to scale 4–16× higher without dropping below 60 FPS. The CPU fallback (heatDecayStep()) is retained for devices without WebGL support and for the STP/BCM overlay compositing pass.
HGS Tier 3 now computes a priority map on every frame: Priority(x,y) = 0.4·Salience(x,y) + 0.4·LTP(x,y) - 0.2·IOR(x,y). Salience is the heatmap value, LTP is the long-term potentiation trace, and IOR is a temporal decay map of recently visited locations. The spotlight holds fixation for 100–300 ms (uniform random), then performs a ballistic saccade to the peak priority node within the active HGS quadrant. This produces realistic saccade sequences with explicit inhibition of return.
Autonomous saccade target selection is gated by a strict phase condition: sin(2π·f_θ·t) < -0.90, where f_θ = 6 Hz. This restricts saccade initiation to the deep theta trough (~15% of the cycle), matching the phase at which NMDA receptor conductance windows are most permissive and local inhibition is at its nadir (Lisman & Jensen, 2013). Outside this window, macro-movements are frozen (only microscopic drift or vortex-locked holding is allowed). A phase accumulator advances every frame, and the saccade gate status is shown in the UI.
A taskValue accumulator [0, 2] rises when the spotlight successfully holds a vortex (Mode 3 Autonomous Recapture) or captures a reward pulse, and decays during distraction or failed capture. The stamina drain equation becomes: drain = base_drain / (1 + 0.5·taskValue). This makes flow states (high task value → near-zero drain) and burnout (low task value → high drain) emerge naturally from the interaction with the environment, fully realizing the Shenhav EVC framework.
The ACh/DA slider now writes to a global arousalRho variable that is read by the backend bridge. When the slider changes, a JSON field "arousal_rho" is updated, and the backend's GlobalArousalGainController.rho follows suit. Higher ρ makes cells more excitable (stress/alert state), lower ρ makes them sluggish (drowsy). The slider label shows the current ρ value.
The attentional landscape uses a high-resolution finite-element simulation implementing a traversal intensity map: the more a region of the field is traversed by thought streams, the hotter and more visually intense it becomes, and the easier future traversal of that path becomes. This directly embodies Hebb's (1949) learning principle at the spatial level. Rendering layers include:
Thought streams navigate through a hidden connectivity graph generated using:
The auditory feedback layer provides multimodal reinforcement of system dynamics using Tone.js:
Offscreen blit. The heatmap pixel buffer is written to an offscreen HTMLCanvasElement via ctxH.putImageData(), then composited onto the main canvas with ctx.drawImage(heatOffscreen, 0, 0, W, H) at globalAlpha: 0.88. This happens before particles are drawn each frame, so heat correctly appears under the particle layer. The main canvas uses alpha: false (white background) and the heatmap offscreen uses alpha: true (transparent cold cells), so transparent areas correctly reveal the white background.
Izhikevich per-cell state. Each heatmap cell (grid cell of size ~10px) maintains its own (v, u) pair initialised to (V_rest, b·V_rest) = (-65, -13). Each frame, the Izhikevich quadratic ODE is integrated with Euler (stable at dt = 1 frame = ~16ms for the chosen parameter ranges). When v ≥ IZH_SPIKE_THRESH (20 mV proxy), the cell is flagged as spiked: it writes its frame number to nmdaLastSpike, triggers its STP spike update, and becomes eligible for post-synaptic coincidence with its 8 neighbours (Izhikevich, 2003).
Phase vortex metrics. The ω (vorticity) stat is the angular velocity in the phase plane (v, dv/dt): ω = df/dt where f = arctan2(dv/dt, v - V_rest). Non-zero ω indicates rotational dynamics in the phase plane — the signature of a vortex state in the Srivastava et al. (2020) framework. The stat panel shows the mean |ω| across all cells.
Resize correctness. A single canonical init path: resize() → initNetwork() → initHeat() → initParticles() → initFilter(). initHeat() always syncs heatOffscreen.width/height to the current W×H before creating a new ImageData object, ensuring all three buffers (canvas, offscreen, imgData) share the same dimensions after every resize event.
This section clarifies the boundary between the interactive simulation and the biological reality it approximates. The framework should be read as a structured multi-scale hypothesis: it aims to make attentional phenomenology visible and legible while keeping that phenomenology constrained by simplified but meaningful mechanistic rules. Every biophysical and synaptic term used — BCM plasticity, Tsodyks-Markram short-term plasticity, EVC, CANN bump attractors — is a functional analogue deployed on a 2D pixel-grid canvas, not a literal simulation of individual neurons, axons, dendrites, or synapses. A "synapse" in this codebase is a coordinate on a canvas; a "membrane voltage" is a representation of local heat. None of the sections below should be read as asserting otherwise.
The flattened 2D landscape is an interpretive surface, not a literal neural map. In biological systems, attention unfolds across high-dimensional state spaces, interacting neural populations, and diverse anatomical pathways (Chun et al., 2011). The canvas compresses that complexity into a single readable layer so that attentional flow, competition, persistence, and capture can be seen directly. It therefore does not represent literal cortical geometry, exact synaptic placement, or a true anatomical projection of the brain. The 2D canvas is a design choice — a different simulation of the same underlying theory could legitimately use a graph-based, non-Euclidean, or purely symbolic representation without violating any law of nature.
Several key elements in the visualization function as computational objects for representing cognitive dynamics at a mesoscale rather than as one-to-one biological entities. The heatmap records recent traversal and attentional allocation; vortexes represent stabilized attractors associated with persistent focus or habit formation; and the purple LTP veins represent path dependence created by repeated coincidence and reinforcement (Amari, 1977; Wilson & Cowan, 1972). These constructs are scientifically useful because they make otherwise invisible dynamics legible, but they should not be interpreted literally: a vortex is not an anatomical loop, and an LTP vein is not a physical bundle of synapses embedded in tissue.
The frontend cells are stateful computational tiles, not cellular reconstructions. Each tile carries a local (v, u) Izhikevich state so the field can express spike-like timing, refractoriness, and coincidence sensitivity, but that does not make it a realistic neuron. These tiles do not include dendritic morphology, rich compartmental structure, specific interneuron or pyramidal-cell subclasses, or the thousands of distinct synaptic contacts found in biological cortical cells. In the frontend, they function as local units that support interpretable field dynamics rather than as literal neurons. The Izhikevich firing-type presets (RS, FS, IB, CH, LTS) are applied as global multipliers on the entire field simultaneously — cortical computation, however, depends on the tight, spatially-interleaved cooperation between excitatory pyramidal cells and inhibitory interneurons of different types at the same location.
Plasticity in the model is governed by reduced dynamical rules rather than by fully coupled biochemical cascades. The system captures important functional relationships such as short-term fatigue and recovery (Tsodyks-Markram STP with uniform rate constants across all cells), coincidence-dependent reinforcement (NMDA-gated LTP with spatial adjacency heuristics), and longer-timescale stabilization (BCM sliding threshold on a scalar field rather than directed synapses), but it does not attempt to reproduce the full intracellular machinery of calcium-dependent kinase activation, receptor trafficking, protein synthesis, or exact synaptic scaling (Bhalla & Iyengar, 1999; Turrigiano & Nelson, 2004). The "BCM rule" is honestly better described as a localised dampening variable that prevents any one region of the heatmap from saturating indefinitely, rather than a literal synaptic plasticity rule. These rules should therefore be understood as compact control laws that preserve key dynamical logic without claiming molecular completeness.
The operating regimes in the interface, such as Wandering, Task-Focused, and MIA, are discrete simplifications of what are in reality continuously mixed and overlapping brain states (Fox et al., 2005). In biological cognition, default-mode, salience, executive, and sensory-control processes do not switch cleanly by button press; they blend, compete, and reconfigure over time. Variables such as stamina similarly compress multiple partially separable dimensions, including effort allocation, distractor resistance, working-memory stability, and task-switch resilience, into a single interpretable quantity for the user. The Loud/Quiet channel axis (Extension III), while a substantial advance, is still a single continuous parameter — real attentional regimes are mixed, overlapping, and context-dependent, not cleanly separable along a single axis.
The Loud/Quiet channel axis provides a continuous parameterisation of attentional field geometry, temporal dynamics, and EVC cost structure. However, it remains a simplification: the "Quiet" channel (λ → 0) and "Loud" channel (λ → 1) are idealised endpoints. In real cognition, attention is rarely purely endogenous or purely exogenous; it is a dynamic mixture influenced by task demands, environmental context, and individual differences. The dual-cost structure — control cost + switching cost — is a first-order approximation that captures the intuition that effort has multiple currencies, but it does not model the affective, autonomic, or strategic dimensions of real fatigue.
The moving particles are abstract trajectories through a hidden graph. Their velocity, brightness, curvature, and attraction to vortexes are visual encodings designed to make attentional selection, interference, and reinforcement legible in real time. They are phenomenological tools rather than direct measurements of membrane voltage, spike trains, axonal conduction, or anatomical connectivity. Their purpose is explanatory: to show how attention flows, drifts, stabilizes, and gets captured within the model's flattened landscape.
The backend is a 48-cell feed-forward chain, not a cortical microcircuit. The frontend 2D canvas is populated from this 1D chain via a space-filling Z-order curve (Morton order), which preserves spatial locality — cells adjacent in the 1D chain are also adjacent (or nearly adjacent) in the 2D canvas. This mapping is invertible and mathematically grounded, making the backend-frontend relationship a falsifiable data pipeline rather than an interpretive metaphor. However, this isomorphism is an engineering choice, not a claim that biological cortex uses a 1D-to-2D Morton order. The canvas is a 2D manifold rendering of the topology of a cognitive state space, not a flattening of cortex onto a screen — a useful technique in topological data analysis for neuroscience, but still a reduction that discards information about inter-feature relationships.
It is useful to attach a rough quantitative estimate to the model's explanatory scope, despite the inherent difficulty of such a metric. Based on the limitations enumerated above, we estimate that the current implementation captures approximately 40–50% of the target attentional phenomenology at the level of observable dynamics (e.g., focus shifts, distraction, habituation, resource depletion, and consolidation). At the mechanistic level — where we compare the simulation's internal variables to actual neural, synaptic, and molecular processes — the estimate is substantially lower, roughly 10–20%.
This asymmetry reflects the model's design: it is a functional analogue that prioritises phenomenological fidelity over biophysical completeness. The 40–50% figure is justified by the presence of key dynamical motifs: attractor-based persistence (Law I), opportunity-cost resource depletion (Law II), temporal binding via theta-gamma coupling (Principle III), and the channel-dependent dual-cost structure (Extension III). These capture the qualitative signature of many attentional phenomena — mind-wandering, task engagement, fatigue, switching costs, and memory consolidation — and the interactive visualisation allows users to experience these dynamics directly.
The remaining 50–60% of phenomenology is missing due to the absence of:
At the mechanistic level, the 10–20% figure reflects that the model's internal variables (heat, LTP, STP, v, u, etc.) are proxy metrics with no direct quantitative correspondence to electrophysiological recordings, calcium imaging, or molecular assays. The mapping from backend to frontend is mathematically well-defined but still a stylised projection; it does not replicate the actual biophysics of dendritic integration, synaptic transmission, or network oscillations in any realistic sense. The fidelity is highest for the coarse temporal and spatial patterns (e.g., burst-pause dynamics, gradient-driven saccades) and lowest for the underlying ionic, synaptic, and genomic processes.
These estimates are necessarily subjective and heuristic. They are provided to calibrate expectations and to make explicit the gap between the model's current capability and the full complexity of biological attention. The framework's value lies not in its current fidelity but in its potential to be iteratively refined — each revision narrows the gap by replacing proxies with better approximations, constants with data-derived values, and binary switches with continuous functions. The Theory–Code Fidelity section elsewhere in this document gives per-component scores that further detail where the model stands on specific mechanisms.
The clinical profiles described in the theoretical framework — ADHD as a multi-law dynamical regime, anxiety as salience override, addiction/OCD as structural routing override, flow state as optimal Law I–Law II coupling — are computational analogies, not validated clinical models. The simulation is content-free: it models spatial attentional routing, not semantic content, emotional valence, or the rich phenomenology of clinical conditions. It has no developmental trajectory, no pharmacology, and no validation against patient data. Every clinical mapping is therefore a mapping of dynamical structure, not of clinical content. The framework's value at this stage is as a structured hypothesis generator — it makes explicit what a dynamical account of attentional dysfunction would need to predict, and thereby identifies specific empirical tests that could confirm or refute each prediction.
The framework is a computational exploration — a candidate model that captures specific attentional dynamics using simplified, functional analogues of biophysical mechanisms. Its claims are bounded: it models spatial attentional routing on a 2D manifold, not cortical anatomy; it uses reduced dynamical rules, not full biochemical cascades; it generates clinical analogies, not validated diagnostics. The commitment is a process commitment — each revision is expected to close a named gap between theory and code — not a claim of present completeness. The framework's ultimate scientific utility will depend on its ability to withstand experimental testing, not on the sophistication of its internal mechanics.
neuron_21_8.py is the current biophysical backend paired with this frontend. It extends the earlier 32-cell architecture into a 48-cell, four-zone-per-cell relay chain running over 2 seconds, with a compact but mechanistically meaningful excitation-secretion model that includes Izhikevich spiking, voltage-gated Ca²⁺ entry, intracellular release dynamics, SERCA re-uptake, PMCA and Na/Ca extrusion, heterogeneous short-term plasticity, NMDA-sensitive coincidence detection, and CaMKII-like bistable long-term potentiation (Izhikevich, 2003; Tsodyks & Markram, 1997; Jahr & Stevens, 1990; Bhalla & Iyengar, 1999). Activity from this backend is exported through bridge state files so that the frontend can render a cognitively legible surface of heat, LTP veins, gain shifts, and attentional persistence while remaining anchored to lower-level cellular dynamics.
The purpose of the backend is not decorative realism. Rather, it asks whether higher-level attentional variables such as focus, effort, salience capture, working-memory stability, and arousal can be connected to concrete mechanisms such as membrane excitability, calcium recruitment, synaptic depletion and facilitation, inhibitory stabilization, coincidence-gated plasticity, and recovery kinetics (Parr & Friston, 2017). In this architecture, the frontend functions as the phenomenological surface, while the neuron backend supplies the candidate mechanistic substrate beneath it. The figures below illustrate that bridge at three scales: single-cell dynamics, local chain mechanics, and whole-chain spatiotemporal propagation.
sc_Izh_LTP_fig1_overview.
This panel shows the baseline microdynamics of one backend cell: membrane voltage, local Ca²⁺, readily releasable vesicle pool, secretion, attentional heat, NMDA Ca²⁺ influx, CaMKII activation, and structural LTP. It is the clearest compact illustration of how a single modeled neuron moves from spiking and calcium entry to a slower plasticity trace that can later contribute to the frontend's persistent LTP-vein structure.
Item 1 — Engrammatic Relay Dynamics. The core conceptual shift in the current backend is from passive source-sink propagation to active recruitment. In the 48-cell chain, a signal does not merely leak forward; it recruits downstream cells into a higher-activity state when spike timing, calcium recruitment, and NMDA coincidence align. This creates a bistable relay front rather than a simple transient wave, and cells visited by that front can remain in elevated LTP states even after the fast calcium transient cools. The backend therefore models history-dependent relay and consolidation, not just threshold crossing.
Item 2 — Global Arousal Gain. A single GlobalArousalGainController scalar, γ, still provides a coarse network-wide arousal signal. This parameter modulates RyR sensitivity, SERCA re-uptake, and effective external drive together, so high stamina pushes the chain into a more excitable and recruitment-prone regime, whereas low stamina weakens propagation and increases the chance of arrest (Aston-Jones & Cohen, 2005). The design is intentionally low-dimensional: one smooth gain controller captures a useful analogue of system-wide alertness without the expense of a full neuromodulatory field model. In v68, the frontend ACh/DA slider directly controls this ρ value, closing the loop between user interaction and backend biophysics.
Item 3 — Heterogeneous Short-Term Plasticity. The chain no longer treats every synapse as identical. Each cell is assigned its own Tsodyks-Markram-like short-term plasticity profile, with cell-specific recovery, facilitation, and utilization parameters (Tsodyks & Markram, 1997). This creates a mixture of fragile and robust relay points across the chain, so the same presynaptic volley encounters different local gating states depending on recent activity history. In practical terms, the R·u product functions as a temporal transmission gate: depleted resources can block propagation even when membrane conditions are otherwise favorable.
chain_bistable_fig4_izh_stp.
This figure shows the main local ingredients of relay formation in the 48-cell chain: mean Izhikevich membrane voltage, short-term plasticity resource depletion, effective synaptic efficacy, and the gradual rise of the CaMKII bistable switch. It is the most direct summary of how fast spiking, short-term gating, and slower consolidation interact before the frontend ever renders them as heat or memory veins.
Item 4 — NMDA Coincidence and CaMKII Bistability. Long-term change is driven by a timing-sensitive mechanism rather than a simple activity threshold. Each cell maintains a decaying pre-synaptic trace, and when a post-synaptic event occurs within the coincidence window, NMDA opening is computed from that recent trace together with the voltage-dependent Mg²⁺ unblock term (Jahr & Stevens, 1990). Potentiation is then amplified by a CaMKII-like bistable process, allowing repeated coincidence to lock cells into persistent high-LTP states (Bhalla & Iyengar, 1999). This is the backend mechanism that makes the frontend's purple LTP structures behave like consolidated paths rather than mere fading heat.
Item 5 — Fire-Diffuse-Fire Calcium Recruitment. Calcium spread is no longer treated as an always-on passive diffusion field. Instead, diffusion is conditionally engaged only when a cell spikes or when free Ca²⁺ rises beyond a recruitment threshold, creating a discrete fire-diffuse-fire regime. Quiescent cells can recover and buffer, but they do not automatically relay activity onward. This gives the chain event-driven propagation, sharper recruitment fronts, and more interpretable propagation failure.
Item 6 — Propagation Failure as a Meaningful State. The backend now treats failed relay as a mechanism in its own right rather than as numerical fallout. A dedicated propagation-failure detector monitors when the recruitment front stalls and classifies likely causes such as STP exhaustion, low-stamina gating, or blocked coincidence despite local activation. This matters conceptually because the model can now represent both successful engram formation and biologically meaningful partial breakdown within the same framework.
Item 7 — Gradient Spotlight Input and Frontend Coupling. Rather than driving a flat block of cells with equal input, the backend now applies a Gaussian-like spotlight profile centered on a selected region of the chain. Cells near the center receive the strongest excitation, while neighboring cells receive progressively less drive. This makes the backend stimulation geometry better aligned with the frontend's attentional spotlight and Difference-of-Gaussians logic, tightening the bridge between top-layer visual attention and bottom-layer relay recruitment.
Item 8 — Inhibitory Stabilization and Stochastic Release. The newer backend also includes two compact realism layers. A small subset of cells act as fast-spiking interneuron analogues that suppress neighboring excitatory drive when their rolling firing rate rises, and stochastic RyR noise adds spark-like jitter to intracellular release. These additions do not make the model fully biophysical, but they reduce determinism, limit runaway recruitment, and make the relay behave more like a noisy excitable tissue.
chain_bistable_fig1_kymograph.
This panel expands the view from one cell to the full 48-cell chain across time, showing how membrane voltage, free Ca²⁺, heat, and vorticity evolve as a coordinated spatiotemporal field. It is the clearest whole-network picture of the backend and is the most natural visual bridge to the frontend, where these lower-level chain states are re-expressed as attentional heat, persistence, and long-term path structure.
Item 9 — Exported Metrics for Multi-Scale Interpretation. The backend no longer exports only raw activity arrays. It also tracks relay-level summary variables such as front-arrival time, pocket-cell formation, propagation velocity, bistable fraction, and explicit failure diagnostics. These metrics matter because they provide an interpretable bridge between the lower-level simulation and the higher-level phenomenology shown in the frontend. In other words, the backend is beginning to export not just mechanism, but structured state descriptors that can be compared directly with the attentional landscape above it.
The 48-cell chain is still a tractable sample network, not cortex. The backend now simulates a 48-cell feed-forward chain over 2 seconds, which is large enough to reveal bistable recruitment fronts, propagation failure, and persistent engram-like pockets, yet it remains a highly reduced architecture. Real cortex contains recurrent loops, layered microcircuits, heterogeneous cell classes, rich dendritic morphology, and dense long-range interactions that are absent here. The model therefore captures a stylized propagation backbone for mechanism discovery and frontend coupling, not a realistic cortical microcircuit.
The network geometry is intentionally one-dimensional and sparse. Engrammatic relay dynamics unfold along a 1D chain with four zones per cell, which makes front propagation, arrest, and persistence easy to visualize and analyze. That design is scientifically useful for exposing state transitions, but it omits branching dendrites, recurrent feedback, lateral recurrence, and true spatial embedding in tissue. As a result, recruitment fronts in the simulator should be interpreted as reduced dynamical motifs rather than literal anatomical wave trajectories.
Numerical integration prioritizes tractability over maximal precision. Much of the calcium system is stepped with Forward Euler at dt = 0.025 ms, a choice that is fast and stable for the reduced architecture and necessary for long 48-cell runs with multiple coupled mechanisms. Even so, Euler stepping introduces small timing and amplitude errors during rapid transients, especially near spike-triggered VGCC influx, regenerative release, and sharp threshold crossings. The backend is therefore better suited to qualitative and mesoscopic dynamical analysis than to exact waveform reconstruction or sub-millisecond calcium peak estimation.
RyR release remains a reduced approximation of real intracellular release clusters. The simulator includes a 12-state Markov RyR formulation and now adds stochastic RyR noise to introduce spark-like jitter, but each zone still represents a heavily compressed release unit. Real release sites involve far larger channel populations, richer spatial coupling, local buffering heterogeneity, and partially synchronized stochastic openings across complex microdomains. The model captures the logic of regenerative release, stochastic triggering, and sensitivity modulation better than it captures the full microscopic statistics of biological channel ensembles.
Propagation is governed by simplified thresholded relay rules. Fire-diffuse-fire recruitment, NMDA coincidence, STP resource gating, and propagation-failure detection create an interpretable event-driven relay dynamic, including explicit arrest modes such as STP exhaustion or failed coincidence despite local activation. However, these transitions still depend on compact threshold rules and reduced neighborhood structure rather than detailed dendritic cable dynamics, realistic spine placement, or continuously varying diffusion geometry. The resulting propagation fronts are therefore mechanistic hypotheses about how activity can recruit, stall, and consolidate, not literal reconstructions of neuronal wave spread.
Plasticity is richer than before, but still not fully unified. The backend now combines NMDA coincidence detection, postsynaptic receptor dynamics, CaMKII-like bistability, heterogeneous short-term plasticity, and persistent engram-pocket formation (Jahr & Stevens, 1990; Bhalla & Iyengar, 1999; Tsodyks & Markram, 1997). Even so, these pathways are not yet closed into one single biochemically unified plasticity system in which every exported frontend trace, synaptic change, and intracellular state variable is mathematically identical. The current model should therefore be read as a coordinated multi-path plasticity framework rather than a final one-variable theory of consolidation.
Global state control is compressed into low-dimensional modulators. Arousal is still represented primarily through a single global gain scalar, and the newer inhibitory stabilization is implemented through a reduced FS-neighbor suppression rule rather than through a full laminar E/I microcircuit (Aston-Jones & Cohen, 2005). These mechanisms are useful because they make alertness, gain shifts, and runaway control computationally manageable, but real neuromodulation and inhibition are spatially heterogeneous, receptor-specific, and cell-type dependent. In biological tissue, norepinephrine, acetylcholine, and interneuron subtypes do not act as a single shared knob.
The added E/I and noise layers improve realism without closing the biological gap. Fast-spiking interneuron suppression and stochastic RyR perturbations make the chain less deterministic and reduce unrealistically smooth relay behavior, but they remain compact phenomenological inserts. The FS layer does not model full inhibitory circuit architecture, synaptic delays, or interneuron diversity, and the RyR noise term is a reduced Langevin-style perturbation rather than a full spatial stochastic reaction-diffusion treatment. These additions move the simulator toward biological texture, but they do not yet make it a comprehensive cellular reconstruction.
The bridge to the frontend remains conceptually aligned rather than fully derived. The backend is designed to supply a mechanistic substrate for the attentional heatmap, vortex formation, LTP veins, and gain shifts seen in the frontend, and the newer engrammatic-relay framing strengthens that correspondence. But the mapping from backend variables to frontend phenomenology is still partly interpretive and export-based rather than a formally closed derivation from one shared state space. The project should therefore be understood as a multi-scale bridging architecture: mechanistically informed and increasingly constrained, but not yet a complete end-to-end proof that cognitive phenomenology has been uniquely derived from the cellular model.
One of the most persistent architectural questions about this framework is: how exactly does a 1D chain of 48 cells render a 2D attentional landscape? The answer is not "the canvas is a literal projection of the chain," but rather a structured, multi-step mapping that preserves the dynamical motifs of the backend while translating them into a spatially legible frontend representation. This section formalizes that mapping.
| Backend (1D Chain) | Bridge JSON Field | Frontend (2D Canvas) |
|---|---|---|
| Cell i membrane voltage Vm | cell_voltage[i] |
Heatmap cell (x,y) where y = i mod grid_h, x = floor(i / grid_h) via space-filling curve; intensity = Vm normalised |
| Cell i Ca²⁺ concentration | cell_ca[i] |
Heatmap saturation boost (high Ca²⁺ → more vivid colour) |
| Cell i STP R·u | cell_stp[i] |
Overlay teal channel (R·u < 0.4 → teal tint); also gates heat deposit strength |
| Cell i LTP trace | cell_ltp[i] |
Purple vein additive overlay; modulates decay rate and traversal reinforcement |
| Cell i BCM θ | cell_bcm_theta[i] |
Overlay orange contour rings when h < θ; LTD zone indicated |
| Global Arousal γ | global_arousal |
Neuromod slider value; scales decay, DoG gain, and Izhikevich excitability |
| Propagation front position | front_position |
Spotlight centre (x,y) mapped via space-filling curve |
| Bistable fraction | bistable_fraction |
Vortex count / coverage percentage |
The 1D chain is treated as a representative micro-column that populates the 2D field via a space-filling Z-order curve (Morton order). Chain index i is mapped to 2D coordinates (x,y) by interleaving the bits of i: x = bits of i at even positions, y = bits at odd positions. This preserves spatial locality — cells that are adjacent in the 1D chain are also adjacent (or nearly adjacent) in the 2D canvas, ensuring that the frontend's heat diffusion and LTP vein connectivity reflect the backend's actual relay topology. The mapping is invertible, so any frontend cell can be traced back to its originating chain index.
This formal isomorphism closes the largest architectural honesty debt in the framework. The 2D canvas is no longer a "conceptual vibe" — it is a formally defined, low-distortion embedding of the 1D chain dynamics into a 2D manifold, making the backend-frontend relationship a falsifiable data pipeline rather than an interpretive metaphor.
Contemporary computational neuroscience is trapped between two failure modes: microscale biophysics models that simulate individual neurons via Hodgkin-Huxley differential equations — precise but computationally intractable at scale — and abstract Artificial Neural Networks that discard biological fidelity entirely. This framework resolves the dichotomy through a Mesoscale Thermodynamic Surface: deploying canonical synaptic equations directly onto a continuous 2D coordinate canvas, producing a model that is simultaneously biologically honest, cognitively legible, and executable at 60 FPS inside a browser window.
This section has been substantially revised following independent academic review, incorporating critiques gathered across several independent analyses. The original framework presented five "Laws." Rigorous scrutiny concluded that only two of those five describe an inescapable, universal, parameter-independent constraint of the kind a scientific Law must describe; the other three were, on reflection, well-executed design choices and interpretive readouts wearing the vocabulary of physical necessity they had not earned. The framework is therefore now organised around two retained Laws — Vortex Stability and Attentional Resource Depletion — each reformulated to state its underlying relationship independent of any specific hardcoded threshold, with the gap between that formal statement and the actual running code documented rather than concealed. The former Law III (Theta-Gamma Cross-Frequency Coupling) has been downgraded to Principle III, since its core mechanism — binding-by-synchrony via theta-nested gamma packets — remains actively contested in the literature, and the framework's own conditional validity warning (§Principle III.0) acknowledges that if feature binding is achieved through rate coding, population vectors, or predictive-error minimisation, the θ-γ ratio describes a correlate of working-memory capacity rather than its causal constraint. A genuine Law does not require a conditional validity warning; a Principle does. The former Field Continuity component was downgraded to Principle I in the previous revision; the former Law V (Subjective Temporal Gating) was removed outright; the former Law IV (Precision-Weighted Prediction Error) was removed due to an implementation gap larger than the discretisation debts of the retained Laws. Two Principles and three Extensions remain, each explicitly framed as a chosen architectural strategy rather than an inescapable constraint.
📍 Scope & Limits: A Phenomenologically-Informed Spatial Model, Not a Literal Biophysical Simulation
Every biophysical and synaptic term used below — BCM plasticity, Tsodyks-Markram short-term plasticity, EVC, CANN bump attractors — is a functional analogue deployed on a 2D pixel-grid canvas, not a literal simulation of individual neurons, axons, dendrites, or synapses. A "synapse" in this codebase is a coordinate on a canvas; a "membrane voltage" is a representation of local heat. Applying the equations of synaptic biology to that canvas is a considered, disclosed spatial metaphor, not a claim of biological implementation, and none of the sections below should be read as asserting otherwise.
This gap between the documented theory and the currently running code is real and is named explicitly, section by section, rather than smoothed over: most visibly in Law II's EVC-versus-ego-depletion confession (§II.9), but the same honesty standard applies throughout. Nothing below has been redacted or softened to close that gap artificially — the full theoretical writeup is retained exactly because the architecture it describes is the target the running code is being built toward, one revision at a time (§I.11, §II.11, §Principle III.5).
The commitment this document makes is a process commitment, not a claim of present completeness: this model is a work in progress, and each revision is expected to close a named gap between writeup and code — replacing a hardcoded constant with a live computation, a boolean switch with a continuous ramp, or a flat drain with a context-sensitive one — rather than to claim the gap does not exist.
Inescapable constraints the system cannot bypass by design choice, parameter tuning, or architectural preference. Each is stated below in two forms: a generalised, threshold-free legal statement independent of this specific codebase, and an honest account of how the current implementation discretises that statement — and where it falls short of it.
The framework's validity claim is precisely delimited: not "O(1) RNN replacement" (a category error — RNNs handle semantic representations; CANNs handle spatial routing), but a discrete CANN implementation claiming legitimate value within the specific domain of spatial attentional routing. Linking the 50% executive capture to Structure-Driven Autonomous Recapture establishes the framework's central cognitive thesis: that the structural substrate (LTP engraving) can absorb the top-down routing function, dropping prefrontal cost to zero.
Imagine a giant trampoline stretched perfectly flat. Throw a marble onto it: it rolls in a straight line and falls off the edge — no memory, no retention. Now place a heavy bowling ball in the centre. The fabric deforms into a deep bowl. Throw any marble anywhere nearby: it curves, accelerates, and spirals safely around the bowling ball. It is trapped — not by a wall, not by explicit code telling it where to go, but by the geometry of the fabric itself (Amari, 1977; Wilson & Cowan, 1972).
In the framework, that deep bowl is the cognitive attractor. The marble is a passing piece of information — a thought-stream particle traversing the canvas. The bowling ball's weight is the accumulated local heat and LTP trace. The fabric deformation is the ω-stability basin (vorticity attractor) — a region where the vorticity field ω reaches a local maximum and the gradient of ω reverses direction. Instead of letting thoughts fly away and disappear into entropic noise, the model creates a mathematical "bowl" that traps them — holding them in stable orbit so the virtual mind can focus on them, process them, and engrave them into structural memory. As the bowling ball lightens (STP resources R deplete, Law II stamina falls), the bowl shallows, the marbles escape, and the mind's attention releases into transitive flight toward new ground. This is not a metaphor deployed for didactic convenience. It is the vorticity-based attractor field made literally visible on the canvas.
Why it is a Law — The Emergence Defense: Law I is the constitutive system law governing the birth and topology of thoughts, completing the top tier by defining how information is held within the constraints of the other two components. When localised attentional heat crosses a specific bifurcation boundary, the space undergoes a non-linear state transition to form a Continuous Attractor Neural Network (CANN) bump (Amari, 1977). The resulting vortex warps the entire phase space of the system, trapping passing thought-stream particles in a stable orbit. This geometric trapping is captured by the localised vorticity field: V(x) = −LTP(x)αdepth − STPR(x)αwell. Through a 70% suppression of local decay, the vortex creates a low-entropy thermal insulation jacket that allows representations to resist displacement without external input (Sanchez-Rodriguez et al., 2020). One of the critiques of this law is to examine the implementation syntax: individual particles updating x,y coordinates via vector calculations. This is the wrong level of analysis. Philip Anderson's foundational essay "More is Different" (Science, 1972) established that the laws governing a higher scale of organisation cannot be reduced to the simple mechanics of the lower scale. The vortex is not a particle-routing routine — it is the emergent macroscopic phenomenon that arises when thousands of particles collectively cross a critical bifurcation boundary and self-organise into a self-sustaining attractor basin. That basin is a topological feature of the state space that then imposes its own inescapable constraints on every information trajectory that enters its gravity well, regardless of parameter choice, regardless of whether any individual particle "knows" about it. This is a phase transition in the thermodynamic sense, a topological invariant in the dynamical systems sense, and an operational conservation law of the engineered field. Downgrading it to a mechanic is like calling a hurricane "a mechanical routine for moving air molecules." (Emergent mesoscale dynamics — Anderson, 1972: reductionist breakdown at hierarchical transitions.)
3. Andersonian Emergence: The "mechanic" is a single particle updating x,y coordinates via vector calculations. The Law is that thousands of these particles collectively self‑organise into a macroscopic, coherent, long‑lived solitary wave — a "thought soliton" — that then governs the behaviour of every subsequent particle entering its basin. The macro‑entity has properties (persistence, gravity, autonomous recapture) that are entirely absent from any individual particle, and that cannot be predicted or derived from individual particle rules alone. This is the textbook definition of emergence, and Anderson's entire argument is that emergent laws at a higher scale are as binding and as "real" as the lower‑scale mechanics that give rise to them. Downgrading the vortex to a particle‑routing routine is like calling a hurricane "a mechanical routine for moving air molecules."
The Three Formal Defenses:
TRAMPOLINE DEPTH = V(x) = -LTP(x)α_depth - STP_R(x)α_well Heavy bowling ball deep bowl stable orbit sustained thought Lightening ball (R→0) shallowing marbles escape transitive flight Flat trampoline V(x) = 0 no attractor Zerstreutheit (James)
When localised attentional heat H at coordinate x breaches the macroscopic bifurcation boundary vortexT (computed dynamically as the statistical inflection point of the field's own energy landscape, §I.11), the local coordinate space undergoes a non-linear state transition and collapses into a self-sustaining Attractor Basin. The transition is governed by the formal ω‑stability criterion:
VORTEX STABILITY CRITERION (ω‑stability basin)
Let ω(x) = angular velocity in the phase plane (v, dv/dt).
A vortex exists at location x iff:
1. ω(x) > ω_crit [vorticity exceeds threshold]
2. ∇ω(x) = 0 [local extremum in vorticity field]
3. ∇²ω(x) < 0 [local maximum — stable attractor core]
4. decay_factor(x) = 0.3 [70% decay suppression applied]
Where ω_crit is a field‑adaptive threshold:
ω_crit = mean(ω) + 0.65·(max(ω) − mean(ω))
This criterion identifies the "bowl" in the trampoline:
— The bowl is the region where ω is maximal.
— The bowl's depth is LTP + STP_R resource availability.
— The bowl's shallowing (R→0) releases the spotlight.
Note: This is an ω‑stability criterion based on vorticity,
not a Lyapunov stability proof. No explicit V(x) function is
constructed; no dV/dt < 0 is proven. The term "Lyapunov" is
used descriptively to align with the energy‑landscape metaphor.
[ PRE-TRANSITION ] ω < ω_crit high-entropy dissipation regime
df = df_baseline (full decay)
no gravitational field
no executive capture bias
[ PHASE BOUNDARY ] ω = ω_crit DISCONTINUOUS BIFURCATION POINT
instantaneous state change
[ POST-TRANSITION ] ω > ω_crit low-entropy attractor regime
df = df_baseline × 0.30 (70% decay suppressed)
Heat gravity field active
50% executive spotlight capture
LTP compounding persistence injection
[Localised Heat Accumulation]
[Breaches Vortex Threshold T_crit (> 300)]
PHASE TRANSITION new physics regime begins
+--------------------------+
+--------------------+ +------------------------+
LOW-ENTROPY METABOLIC FLUID LOOP
INVERSION
+--------------------+ +------------------------+
+- Decay: 1.0 → 0.3 +- Heat Gravity Pull
(Thermal Jacket) (Particle Trapping)
+- Compounding LTP +- 50% Spotlight Capture
Persistence Engine (Executive Takeover)
[ MICRO-MECHANICS ] Individual particles follow local vector field rules
[ EMERGENT LAW ] Collective self-organisation → attractor basin warps phase space
Scope: spatial persistence, autonomous recapture, attentional routing
Outside: semantic representation, sequence tracking, weight-matrix learning
The vortex is not an explicit data structure — it is an emergent macroscopic phenomenon arising from four tightly coupled algorithmic subsystems operating in parallel on every animation frame. Each subsystem is independently grounded in experimental neuroscience; together they constitute an over-determined, cross-validated attractor architecture:
df_vortex = df_baseline × 0.30. Vortex cells decay at 30% of the ambient rate — a thermal insulation jacket implementing the low-dissipation regime of a CANN bump (Amari, 1977). This is a localised discretisation of non-linear PDEs — a reaction-diffusion condition (Turing, 1952; Sanchez-Rodriguez et al., 2020) where the local autocatalytic rate exceeds the diffusive decay rate, so the bump persists without any external input. In biological tissue, this corresponds to the sustained reverberatory loop of prefrontal pyramidal neurons during working memory delay periods (Compte et al., 2000). Halassa et al. (2017, Nature 545:219) provided the direct thalamocortical empirical anchor: the mediodorsal thalamus sustains PFC rule representations not by relaying categorical features, but by dynamically amplifying local recurrent dynamics — structurally identical to the vortex's decay suppression creating a low-dissipation regime where representations resist displacement without new input.Heat(t+1) = min(Heat(t) × (1 + β × 0.01), MaxHeat); LTP(t+1) = min(255, LTP(t) + β × 0.05). This forces the active vortex to engrave its own footprint into the structural LTP layer, deepening the ω‑stability well with each cycle. The biological parallel is the strengthening of attentional priority maps over repeated visits (Zelinsky & Bisley, 2015): coordinates that have previously hosted a vortex acquire a structural preference for hosting future vortices — the computational realisation of how habitual attention pathways form through repetition.∇Heat = ((hE−hW)/2, (hN−hS)/2) at strength heatmap.pull × 0.04, gated by STP R·u product. This is a spatial routing rule analogous to the gradient fields guiding saccadic targeting in the superior colliculus (Ottes et al., 1986): the direction of next attention deployment is determined by local field gradients, not by explicit executive instruction. Any particle entering the basin's spatial field is subject to this inescapable geometric constraint — the directional pull of a topological sink on incoming information trajectories.The formation, persistence, and dissolution of vortices is formalised rigorously by a localised vorticity-based scalar potential field. This provides a clean dynamical-systems proof — independent of the biological grounding — that the vortex constitutes a Law-level constraint rather than a stylistic parameter choice:
V(x) = -LTP(x)α_depth - STP_R(x)α_well [potential well depth, derived from ω stability]
dV/dt = -V · v_particle [particle gradient descent into basin]
State transitions of the ω‑stability landscape:
--------------------------------------------------------------------------
Fresh R≈1.0 + growing LTP deep bowl stable fixed-point attractor
thought held; LTP engraving deepens
--------------------------------------------------------------------------
R→0 (STP depletion) V flattens V→0
saddle-node bifurcation
spotlight released → transitive flight
--------------------------------------------------------------------------
Stamina<30 (Law II cascade) DoG surround collapses basin wall erodes
bottom-up salience can disrupt vortex
--------------------------------------------------------------------------
The attractor basin IS the ω‑stability sink (not a Lyapunov sink).
The bowling ball's weight IS V(x), which is derived from the ω field.
Dissolution is not failure — it is graceful, resource-dictated release.
Note on terminology: "ω‑stability basin" replaces "Lyapunov attractor basin"
because the simulation computes vorticity (ω) and identifies peak‑ω locations
as attractor cores. This is a valid topological feature but not a Lyapunov
stability proof. The term "Lyapunov" is used descriptively, not formally.
The ω‑stability proof establishes that the spotlight's release from a vortex is never caused by external competition from a stronger stimulus — it is caused by the disappearance of the energetic basin that held it. The spotlight does not flee; it falls away because the floor it stood on has dissolved. This is Law I's phase-space signature: it predicts that attention-shifting will be preceded by local resource depletion (R → 0 or LTP failing to compound), not by salience competition, unless Law II's gating failure cascade is simultaneously active. These are empirically distinguishable predictions, making Law I a falsifiable physical claim rather than a descriptive analogy.
The vortex is correctly framed as a discrete implementation of the Continuous Attractor Neural Network (CANN) model (Amari, 1977) and the neural field theory (Wilson & Cowan, 1972) — not as a shortcut for an RNN. At population level, when local recurrent excitation overcomes background lateral inhibition in a continuous neural field, it forms a stationary localised bump of activity — a "thought soliton" — that can be moved smoothly by external inputs but resists displacement by noise. The vortex's threshold-conditioned decay modulation is a computationally economical, discrete-lattice implementation of this continuous-field result.
Neural field equations (Bressloff, 2012) are the canonical model of population-level cortical dynamics; the Wilson-Cowan equations are among the most cited differential equation systems in all of neuroscience. Grounding Law I in this lineage means it inherits decades of theoretical and experimental validation. The claim is precisely delimited: not "O(1) RNN bypass" (which was a category error — RNNs handle semantic representations; CANNs handle spatial routing), but "discrete CANN implementation running at 60 FPS in a browser." Algorithmically, overriding df conditioned on a single intensity threshold is a localised discretisation of the reaction-diffusion partial differential equation (Turing, 1952): the local autocatalytic reaction term exceeds the diffusive decay term, producing a stable bump. Sanchez-Rodriguez et al. (2020) formalised this class of mesoscale neural field thermodynamics and demonstrated that localised bumps satisfying these criteria persist without any explicit recurrent connectivity — validating the vortex's entire operating principle.
[Traditional AI] Hopfield / LSTM O(N) weight matrices GPU cluster [This Framework] CANN discrete O(1) local df override Browser canvas [Biological cortex] Wilson-Cowan continuous field bump Neural tissue All three achieve the same functional result: spatial persistence of a localised representation against entropic decay. The framework's implementation is the computationally tractable middle path between the biological ideal and the engineering reality.
William James (1890) described certain "objects of thought" as possessing a gravitational quality — returning to the mind unbidden, holding the penumbral fringe in check without requiring active executive effort. He also observed that habits reduce the need for conscious attention: a deeply practised skill recruits attention automatically, without deliberate strain. The vortex is the computational formalisation of both observations. Once an attentional pattern is sufficiently consolidated, the system's own gradient dynamics sustain it — the Jamesian ideo-motor pull rendered as a literal vector field.
This maps precisely to Arne Dietrich's Transient Hypofrontality theory (2004, Consciousness and Cognition): the flow state emerges when reduced dorsolateral prefrontal activity allows implicit, automatic processing to dominate — when the executive system stops trying to maintain focus because the structural substrate of the activity has absorbed that function. A stable, adaptive Law I vortex achieves exactly this: top-down executive cost (cognitiveStamina drain rate) drops toward zero because the attractor basin's own gradient dynamics maintain the attentional state, and Principle I's carved LTP landscape routes thought-streams back autonomously. The cognitive system enters a self-sustaining loop that requires no active management. This is the mechanistic account of flow that Dietrich described phenomenologically. The claim precision is important: this is about attentional routing automaticity — where attention returns and how long it stays — not semantic computation. The content of the thought is not modelled by Law I. What Law I models is the spatial habit of returning to a location, which is the necessary substrate for any deep processing to occur.
The vortex's most scientifically original contribution is not the attractor mechanism itself — that has Amari, Wilson-Cowan, and decades of CANN literature behind it. The original contribution is the distinction between three phenomenologically different modes of attentional capture that this framework is the first to formalise computationally on a continuous spatial surface:
Note on novelty: The flow mapping (Mode 2→3 transition) has been proposed before in different language — for example, Kuhn et al. (2023) describe flow as "effortless attention" emerging when control demands match capacity. The simulation's contribution is the geometric framing (attractor transition expressed as a spatial phase change on the canvas), not the conceptual novelty of "effort becomes autonomous."
Mapping to Dual-Process Theory (Kahneman, 2011): This framework's distinction between Mode 2 and Mode 3 provides a biophysical, spatialized substrate for what cognitive psychology recognises as Dual-Process Theory. Mode 2 corresponds to System 2 — slow, effortful, capacity-limited, and governed by Law II's EVC economics. Mode 3 corresponds to System 1 — fast, automatic, and effortless. Where Kahneman described these as behavioural taxonomies, this framework explains the thermodynamic transition between them: System 2 is the active expenditure of cognitive stamina to maintain a vortex; System 1 is the state achieved when the structural substrate (LTP veins) has absorbed the routing function, allowing the executive system to disengage (cf. Dietrich's Transient Hypofrontality). The channel axis (Extension III) further operationalises these modes: the Quiet channel (λ→0) forces System 2 engagement; the Loud channel (λ→1) leans on System 1 automatic capture, making the dual-process distinction spatially and computationally concrete.
Unlike standard CANN or working memory accounts that treat all attractor states as qualitatively uniform, the framework introduces a clinically meaningful three-state differentiation axis — directly validated by recent psychiatry literature:
| Vortex State | Code Signature | Neural Correlate | Psychological Correlate |
|---|---|---|---|
| Adaptive | High LTP + High STP R·u + BCM θ stable + Law II stamina high | Frontoparietal CEN engagement; DMN suppressed; thalamocortical amplification (Halassa 2017) | Flow state (Dietrich 2004); expert schema execution; autonomous recapture — stamina drain approaches zero |
| Maladaptive | High LTP + Depleted STP R·u + BCM LTD suppressed + Law II stamina eroding | dmPFC attractor bias (Kim et al., Nat Comms 2023); DMN hyperconnectivity; reduced cognitive flexibility | Rumination, obsessive fixation, depressive lock-in — the basin holds routing but the depleted STP prevents adaptively updating its target; the attractor is structurally frozen |
| Saturated / Dissolving | Heat > BCMθ × 1.8; R·u → 0; Law II stamina < 30 | Attentional rigidity; thalamocortical decoupling; forced refractory period | Cognitive burnout; ω‑stability well flattens under both STP starvation and Law II cascade; spotlight released into turbulent transitive wandering rather than clean transitive flight |
Kim et al. (2023, Nature Communications 14:6236) validated the maladaptive row directly: a dmPFC-based dynamic functional connectivity model predicted trait rumination across five independent clinical cohorts (total n=288, ages 18–55). The dmPFC's pathological increase in dynamic connectivity during rumination is exactly what the framework models as a high-LTP attractor basin with depleted STP — a region whose structural routing trace has crystallised into permanent fixation while simultaneously losing the short-term plasticity resources required to release, redirect, or dissolve the attractor. The basin holds the spotlight prisoner even as the spotlight's own resources exhaust. Law I's maladaptive state is, computationally, a textbook description of the neural substrate of chronic rumination.
Clinical caveat: Rumination involves content-specific negative attractors (worry themes), not just "any autonomous recapture." The simulation's vortex is content-free — it captures spatial attention, not semantic content. Calling this a mechanistic account of rumination overreaches; the model generates hypotheses about attentional capture dynamics, not a validated clinical model of rumination itself.
Intellectual honesty requires explicit demarcation of what Law I does not claim. Three operational boundaries constrain its domain and protect it from legitimate academic criticism:
The vortex operates across three simultaneous, nested timescales that give the framework its biological plausibility at multiple levels of analysis:
This three-timescale architecture is what distinguishes Law I from a mere working memory maintenance mechanism. Standard working memory (a capacity-limited buffer) holds items for ~200-frame decay cycles via active maintenance — expensive, depletable, fragile. Law I's vortex, at the slow timescale, does not maintain information; it restructures the environment so that information is no longer in danger of being lost. The difference is between carrying water in cupped hands and digging a well.
External academic review of this framework converged on a specific, actionable critique: the original formulation tied Law I's validity to a fixed engineering constant, vortexT = 300, which invited the reasonable objection that "a hardcoded pixel-heat threshold is a programmatic state machine, not a law of nature." That objection is correct as stated, and the fix is not to defend the constant but to remove it from the statement of the law entirely. Stripped of any specific parameter value, the underlying claim is:
Law of Attractor Topology: In a continuous neural (or neural-inspired) representation field, the stabilisation of a localised, high-amplitude activation profile against ambient decay necessitates a non-linear, monotonic suppression of activity in adjacent regions of the field, proportional to the profile's own intensity. A stable attractor exists wherever the local vorticity-based potential V(x) exceeds a critical depth set by the field's own energy landscape; below that depth, none does. The critical depth is a property of the energy function itself — not a parameter an engineer is free to assign.
This formulation makes no reference to pixels, frames, or any specific numeric threshold. It is, by construction, the same class of statement as "water freezes when its free energy under the solid-phase configuration falls below that of the liquid-phase configuration at the ambient temperature and pressure" — a relationship between quantities, not a specific instrument reading. vortexT is not the law; it is this specific implementation's discretised estimate of where, on an 8-bit heat scale sampled at 60 FPS, that critical depth happens to fall.
A frequent and fair criticism is that the threshold check at runtime is "a discrete boolean override, not a genuine non-linear thermodynamic phase transition." This is true of the code and false as an objection to the law. Any continuous bifurcation implemented on a finite floating-point grid, sampled at a fixed frame rate, is necessarily observed as a step at whatever resolution the simulation runs — this is a fact about discretising continuous dynamics, not a fact peculiar to this codebase. Turing's (1952) own reaction-diffusion analysis is a continuous PDE; every numerical solver that has ever integrated it has done so via discrete time steps and a finite grid, and no one considers that grounds to deny the underlying bifurcation is real.
Implementation update: as of this revision, vortexT is no longer a single hand-tuned constant read at startup and left fixed for the life of the session. heatDecayStep() now recomputes it every frame as a statistical inflection point of the field's own energy landscape — mean(h) + 0.65×(max(h) − mean(h)), using the previous frame's statistics — clamped to a ±50% band around the original tuned value (heatmap.VORTEX_T_BASE = 300) so the live threshold cannot drift into an unplayable regime. This directly closes half of the original discretisation gap: the threshold now rides with the canvas's own activity level rather than sitting at a fixed pixel-heat number, so a globally hotter or colder field doesn't silently make vortex formation easier or harder than the design intends. What remains open, honestly: the 0.65 mixing coefficient and the ±50% clamp band are themselves still hand-tuned for visual pacing, not derived from electrophysiological bifurcation data — the discretisation gap has narrowed, not closed.
Current code (dynamic, was static): Underlying law (continuous):
-------------------------------- --------------------------------
vT = mean(h) + 0.65(max(h)-mean(h)) V(x) = -LTP(x)α_depth - STP_R(x)α_well
if (h > vT) { decay *= 0.3; } stable attractor ⇔ V(x) < V_crit
clamped to 0.5–1.5 × VORTEX_T_BASE V_crit set by field's own energy
landscape, not by the engineer
A live statistical proxy for V_crit, A continuous, parameter-free
still clamped around a tuned baseline monotonic relationship
Multiple independent academic reviews of this framework converged on Law I as its strongest candidate for genuine "Law" status — ahead of the now-downgraded Law III and the now-removed Field Continuity component — while still identifying the same residual weakness (the arbitrary threshold, the pixel-vs-synapse category question) as every other review.
Revised, post-review assessment:
| Assessment | Score | Basis |
|---|---|---|
| Original self-assessment (as literal code) | 4.6 / 5.0 | Rewards the CANN / Anderson grounding; does not penalise the hardcoded threshold or the Lyapunov terminology |
| Independent critique (as literal code) | 3.8 / 5.0 | Same theoretical grounding, but marks down for conflating a boolean conditional with a genuine thermodynamic phase transition |
| Reformulated (threshold-free statement, §I.10) | 4.0 / 5.0 | Removing the specific numeral from the legal statement itself addresses the primary critique directly; residual deduction reflects that the implementation the reader actually interacts with still runs on the discretised version |
| Terminologically corrected (ω‑stability, §I.0–I.3) | 4.2 / 5.0 | "Lyapunov" replaced with "ω‑stability" — the simulation computes vorticity, not Lyapunov functions. The corrected terminology removes the false‑math precision while preserving the attractor claim. The Canvas Problem (2D projection discarding high-dimensional structure) remains a limitation, now stated in §I.15. |
Adopted score: 4.2 / 5.0. This is higher than the independent critique and higher than the previous 4.0, reflecting the terminological correction from "Lyapunov" to "ω‑stability." The CANN grounding and the Mode 3 autonomous recapture remain valuable contributions, and the framework's validity is now more accurately bounded by the corrected terminology.
Informal review from a computational neuroscience researcher working in the nonlinear-dynamics-and-cognitive-complexity tradition — the specific intersection of computational physics, dynamical systems, and cognitive science associated with programs like George Mason University's Krasnow Institute for Advanced Study — converged on Law I as the framework's most defensible construct, and did so for reasons distinct from the "peer review, 2025" validation quoted above. That reading is worth reproducing here because it locates Law I's credibility in a different place than the code-level defenses in §§I.1–I.9: not in the specific implementation, but in the class of phenomenon the vortex is a mesoscale instance of.
The recurring piece of editorial guidance from this reading is the same one already adopted in §I.10–I.11: emphasise the emergence, and frame the vortex threshold not as an arbitrary hardcoded program constant but as a simulated critical phase-transition point at which top-down attentional gain overrides baseline stochastic noise. That framing is not a rhetorical upgrade layered on top of an unchanged mechanic — it is the more accurate description of what the ω‑stability formalism in §I.1–I.3 was already claiming, now stated in the vocabulary a dynamical-systems reader would use natively.
A statement earns the label "Law" partly by risking being wrong. §I.10's reformulation makes three predictions that a CANN-style neural recording study could, in principle, confirm or refute independently of this codebase:
None of these predictions can be tested against this browser simulation alone — they are predictions about biological attractor networks that the simulation is modelled on, not claims the simulation could falsify about itself. Naming them here is intended to keep §I.10's reformulated statement honest: a Law that cannot in principle be wrong about anything outside its own code is not yet the kind of Law it claims to be.
Two limitations sit alongside the §I.11 discretisation gap and deserve to be named as plainly as that one is, rather than left implicit in the boundaries of §I.8.
Canvas Problem deduction (revised): Flattening a high-dimensional neural manifold to 2D isn't just an "interpretive embedding" — it's a dimensionality reduction that discards information about inter-feature relationships. Two attentional states that are far apart in neural space could map to adjacent pixels on the canvas, creating false proximity. This is a known problem in manifold projection (Tenenbaum et al., 2000) and warrants a larger validity deduction than the original analysis gave it. The defence via topological manifold isomorphism partially addresses this, but the reduction remains a limitation.
This statement is substrate‑independent. The mathematics of Continuous Attractor Neural Networks (CANN) were formalised by Shun‑ichi Amari in 1977, proving that networks of neurons naturally settle into stable, localised minimum‑energy states. But the constraint Law I describes is not a fact about brains — it is a fact about geometry. Whether the excitable medium is biological cortical tissue, a Belousov‑Zhabotinsky reaction‑diffusion chemical system, or a WebGL pixel grid, the underlying mathematics is identical: you cannot maintain a localised, high‑amplitude bump of activation against entropic decay without non‑linear, monotonic suppression of the surround. This is a topological necessity of any continuous excitable medium — a strong physical Law, not a biological observation.
The framework's central honesty project is showing where theory meets code. The table below maps each theoretical claim to the actual code in proj2_v79.html, explicitly naming the fidelity gaps and the planned enhancements that will close them.
| Theoretical Claim | Current Implementation | Gap | Planned Enhancement |
|---|---|---|---|
| Phase transition at critical depth V(x) < Vcrit → attractor |
if (h > heatmap.vortexT) { decay *= 0.3; }vortexT = mean(h) + 0.65·(max(h)−mean(h)) |
⚠️ Boolean step, not continuous sigmoid. ⚠️ 0.65 coefficient hand‑tuned, not derived from data. |
Replace with smooth sigmoid: df = 0.3 + 0.7/(1+exp(−10·(h−vT)))Derive vT from Otsu thresholding on the heat histogram or a two‑Gaussian mixture crossing point. |
| ω‑stability basin Local max of ω in phase plane |
ω(x) = dφ/dt = d/dt[atan2(dv/dt, v−Vrest)]Tracked via vortexMetrics.omega. |
⚠️ No explicit Lyapunov function V(x) constructed; dV/dt not proven. | Compute V(x) per cell from LTP and STP fields; accumulate stability index: fraction of in‑basin particle steps with dV/dt ≤ 0. Surface in stats panel. |
| Autonomous recapture (Mode 3) Structural substrate absorbs routing cost |
if (vortexSpots.length && Math.random() < vortexPreference) { spotlight.tx = target.x; } |
⚠️ "vortexPreference" is a probability constant, not emergent from LTP depth. | Make capture probability a function of local LTP density: p = min(1, LTPi / LTPmax). This makes Mode 3 a genuine emergent property of the landscape. |
| Surround suppression scales with bump amplitude DoG: f(r) = A·G(r,σ₁) − B·G(r,σ₂) |
dog = dog_A·exp(−r²/2σ₁²) − dog_B·exp(−r²/2σ₂²)dog_B modulated by stamina via dogSurroundScale. |
✅ Fully implemented, continuous, monotonic. | — |
| Channel‑dependent attractor geometry λ modulates basin depth and width |
vortexThresholdMult and vortexDecayMult from CP_current, lerped every frame. |
✅ Fully implemented via Extension III lerp system. Quiet channel: deep, narrow basins. Loud channel: shallow, wide basins. | — |
| Substrate‑independence Law holds in any excitable medium |
2D canvas only. No graph‑based or volumetric topology tested. | ⚠️ Claim asserted but not empirically demonstrated beyond the 2D implementation. | Run same dynamics on a hidden random‑geometric graph as an alternate mode. If vortices still form, persist, and release, substrate‑independence is demonstrated. |
Summary: The core mechanism (phase transition, vorticity tracking, DoG surround, channel modulation) is implemented in code. The main gaps are: (1) the threshold calculation uses hand‑tuned coefficients and a boolean step; (2) "autonomous recapture" is a probability rather than an emergent property; (3) no explicit Lyapunov function is constructed; (4) substrate‑independence is asserted but not tested. Each gap is a target for future revision, and each is named rather than concealed.
Cognitive fatigue in this framework is deliberately not modeled as a generic execution slowdown — that would be a weak design principle. Instead, it is modeled as a structural collapse of top-down lateral inhibition, directly mirroring Nilli Lavie's Load Theory. When cognitiveStamina falls below critical thresholds, the DoG suppression radius contracts and the geometric boundary between focus and fringe dissolves — fatigue is not slower processing but the loss of the architecture that makes selective attention possible. The clinical and neurodivergent profile simulation (§II.6) provides practical validation of this design: changing the recovery and drain constants recreates recognizable psychiatric attractor dynamics — ADHD gating failure, anxiety hypervigilance, addictive lock-in, and flow-state suspension — demonstrating that the conservation law produces qualitatively distinct regimes rather than merely scaling a single performance metric.
Why it is a Law — The Conservation Defense: Where Law I governs the birth and spatial topology of a thought, Law II governs its metabolic lifespan. These are complementary constraints — neither can be understood without the other, and neither can be bypassed by the other. In both human psychology (Cowan's capacity limits, Lavie's Load Theory) and resource-constrained computing, finite attentional capacity is an inescapable conservation constraint: you cannot cheat it by design choice, parameter tuning, or architectural preference. If a process demands sustained high-focus allocation, performance will systematically degrade over time. This is not a stylistic decision. It is the conservation law of cognitive energy — as unavoidable as thermodynamic entropy — and it is what ultimately governs the dissolution of every Law I attractor no matter how deeply engraved. A sufficiently strong Law I vortex can delay the reckoning. It cannot prevent it.
The fundamental insight — and the reason it earns Law status rather than Principle — is that cognitive fatigue in this framework is not modelled as a generic computational slowdown or a reduced processing speed. It is modelled as the physical, geometric collapse of top-down lateral inhibition. When the continuously drained cognitiveStamina variable falls below 30%, the DoG suppression radius is violently halved — a violent structural collapse of the inhibitory wall that forces a phase transition from a bounded, organised attentional state to an unbounded, high-entropy field. The boundary between the focus zone and the suppressed fringe literally dissolves, making Lavie's Load Theory spatially visible as noise invades the canvas (Lavie et al., 2004). This is not a quantitative change (less of the same thing) but a qualitative phase transition, parallel to Law I's: the system shifts from a geometrically bounded state to a geometrically unbounded one. Law II is therefore not Law I's opposite — it is its mirror. Both Laws describe discontinuous state transitions of the attentional field. Law I describes the transition into structure; Law II describes the transition out of it.
Expected Value of Control: The model implements a continuous Expected Value of Control (EVC) calculation, grounded in the economic logic of the anterior cingulate cortex (Shenhav et al., 2013). Stamina is not a fuel tank; it is a cost-benefit ledger. When the system is actively focusing, EVC drops frame by frame. When it wanders, the Default Mode Network recharges the reserve. When EVC falls below the effort threshold, a gating failure cascade triggers, collapsing the DoG surround radius by 50%. This phase transition physically strips the system of its geometric boundaries, forcing the canvas into a high-noise, scattered state — the computational rendering of Lavie's Load Theory (Lavie et al., 2004) made spatially visible and mechanistically inevitable. The relationship between subjective fatigue and structural collapse is causally coupled: EVC withdrawal precipitates inhibition structural failure.
Attentional capacity is governed by a dynamic cost-benefit algorithm computing the Expected Value of Control (EVC) on every frame (Shenhav et al., 2013). Sustained top-down cognitive suppression incurs a rising algorithmic penalty — cognitiveStamina depletion — which, when exhausted, triggers a cascading structural collapse of the spatial gating architecture. Recovery requires disengagement from task-focused control, modelling the Default Mode Network's role in executive resource replenishment (Raichle et al., 2001). Neither the depletion cycle nor the recovery cycle is optional: both are conservation-law consequences of finite neural metabolic capacity.
EVC Decision Structure:
EVC DECISION STRUCTURE (Shenhav, Botvinick & Cohen 2013)
At each decision point, the system computes:
V_maintain = expected value of continuing control engagement
V_release = expected value of releasing control
C_control = metabolic cost of maintaining control
Withdraw control when: V_release > V_maintain - C_control
In the current implementation, this is approximated as:
drain = base_drain / (1 + 0.5·taskValue)
where taskValue rises during successful vortex holding or reward capture.
This is a first‑order proxy: it captures the intuition that reward reduces
perceived cost, but it does not compute V_maintain vs V_release explicitly.
Limitation: This approximation sacrifices explicit comparison of alternatives.
A full EVC implementation would require a reward‑prediction engine that is
computationally infeasible at 60 FPS. The proxy approach is therefore a
tractable engineering abstraction for a mesoscale spatial model.
THE ATTENTIONAL CONSERVATION LAW
----------------------------------
[Task-Focused Mode] [Wandering / DMN Mode]
cognitiveStamina -= drain/frame --- cognitiveStamina += STAMINAREGEN
(EVC expenditure; Law I vortex (Buckner et al. 2008 DMN replenishment;
active; structural focus held) Law I attractors can re-stabilise)
(stamina < 30) CONSERVATION BOUNDARY
+----------------------------------------+
GATING FAILURE CASCADE
(phase transition: bounded → unbounded)
+----------------------------------------
DoG surround -50% radius Law I loses its inhibitory wall
B-spline coherence -40% (noise +40%) routing signal degrades
Salience capture R +50% radius vortex exposed to disruption
+----------------------------------------+
"confused, dazed, scatter-brained state" William James (Zerstreutheit)
(wandering recovery)
[Lateral inhibition geometry reconstitutes; Law I can reform]
Law II operationalises four foundational theories of cognitive resource limitation simultaneously, and makes their joint predictions spatially visible on the canvas:
The framework's unique contribution is not to validate these theories — they are already validated by decades of experimental literature — but to make them spatially visible and mechanistically interdependent. The conservation law manifests as a direct change in canvas physics: the DoG surround loses 50% of its suppression radius; particle streams lose B-spline coherence (+40% noise); salience capture widens by 50%. These are not abstract penalty terms — they are geometric transformations of the attentional field that are directly observable in the running simulation.
In biological tissue, top-down prefrontal signals boost local GABAergic interneurons via cortico-cortical projections, sharpening the signal-to-noise ratio of sensory cortex and suppressing peripheral distractors through lateral inhibition (Arnsten, 2011). This is the biological implementation of Lavie's filter and Cowan's chunk boundary. When prefrontal metabolic resources are depleted, this top-down amplification of GABAergic interneurons fails, and lateral inhibition collapses.
The multi-molecular biological substrate of this collapse includes: (1) localised adenosine accumulation from sustained neuronal firing, which progressively inhibits excitatory neurotransmission (Magistretti & Allaman, 2015); (2) astrocytic glycogen depletion, which reduces the metabolic support available for the energetically expensive GABAergic interneuron population (Magistretti & Allaman, 2015); and (3) tonic changes in locus coeruleus norepinephrine (LC-NE) firing, which modulate the gain of cortical processing across brain-wide circuits (Aston-Jones & Cohen, 2005). These three processes operate at different spatial scales (synaptic, astrocytic, and brain-wide respectively) and different time constants (seconds to tens of minutes).
The framework compresses this heterogeneous multi-molecular substrate into a single tractable scalar (cognitiveStamina), preserving the essential systemic consequence — lateral inhibition collapse — while omitting the mechanistic granularity. This is an explicit and acknowledged engineering trade-off for computational tractability at 60 FPS, not an oversight. The model is honest about its compression: it captures the phenomenological signature (Zerstreutheit) and the systemic consequence (geometric boundary dissolution) while deferring the molecular specificity to a hypothetical future metabolic compartment model.
// -- Per-frame EVC opportunity cost loop (v68: dynamic taskValue) ----------
const successProxy = Math.min(1, vortexPullStrength);
const opportunityCost = Math.min(1, salientEvents.length / 6);
const evcDrainModulator = Math.max(0.35, 1 - 0.5 * successProxy + 0.4 * opportunityCost);
const taskValueMod = 1 / (1 + 0.5 * taskValue); // v68: dynamic EVC
const drain = STAMINA_DRAIN * evcDrainModulator * taskValueMod * (1 - 0.35 * (MIA ? miaStrength : 0));
if (mode === "TaskFocused" || mouse.active) {
cognitiveStamina -= drain;
} else {
cognitiveStamina += STAMINA_REGEN * (1 + 0.5 * (MIA ? miaStrength : 0));
}
// -- Conservation law enforcement: continuous collapse (§II.11) ----------
dogSurroundScale = 0.5 + 0.5 × stamFactor; // continuous 0.5–1.0 ramp
gateContinuity = 0.5 + 0.5 × min(1, stamFactor/0.4);
// The UI hysteresis label (gatingFailureActive) lags the actual geometry
// -- Recovery loop --------------------------------------------------------
// Models Buckner et al. (2008) DMN consolidation:
// Wandering Mode is not failure — it is maintenance.
// Without it, the Law's conservation constraint eventually defeats every Law I vortex.
William James described sustained voluntary attention as accompanied by "a feeling of strain" — a palpable, effortful quality entirely absent from automatic or habitual processing. For a century this was a phenomenological observation without a mechanistic account: we knew it felt like strain, but not what strain was. Law II provides the account. cognitiveStamina is the running integral of that strain: the cumulative record of top-down EVC expenditure since the last recovery window. When it reaches zero, the inhibitory geometry that defines the boundary between focus and fringe — the DoG Mexican Hat kernel — structurally collapses. The canvas enters James's Zerstreutheit not through reduced processing power, but through the dissolution of the spatial architecture that made focused attention geometrically possible. Attention is not slower; the word "attention" has ceased to apply, because the geometric distinction between "attended" and "suppressed" coordinates no longer exists on the canvas.
For nearly a century, James's observation remained a philosophical one until Kahneman (1973) operationalised "strain" as measurable mental effort, demonstrating via pupillometry that the subjective feeling of strain correlates directly with physiological arousal and capacity allocation. Law II provides the final mechanistic account: the "strain" James felt and Kahneman measured is the running integral of EVC expenditure, expressed as the continuous narrowing of the geometric inhibition radius. The framework thus closes a loop from James's phenomenology through Kahneman's psychophysiology to a dynamical systems model.
Because Law II governs an inescapable conservation constraint, systematic variation of its parameters — in combination with Law I's attractor topology, Principle III's temporal binding capacity, and Extension III's channel axis — produces distinct dynamical regimes on the canvas. This section documents four such regimes and maps each to a neurobiological profile drawn from the clinical literature. The epistemic status of every mapping below is 🟡 Computational Analogy: each profile demonstrates that the framework's parameter space is rich enough to reproduce the qualitative signature of a recognised clinical or optimal attentional state, and each generates at least one falsifiable prediction that could, in principle, be tested against behavioural or neuroimaging data. None of the mappings below constitutes a validated clinical model, a diagnostic instrument, or a claim of mechanistic identity between simulation parameters and biological substrates. The distinction between "the model produces a dynamical regime that resembles the clinical profile" and "the model explains the clinical profile" is maintained throughout.
Before presenting individual profiles, the following table states explicitly which simulation parameters are varied, what biological mechanism each parameter is intended to approximate, and where the approximation breaks down. This table is the honesty contract for the entire section: any claim below that exceeds the mapping stated here is overclaiming.
| Simulation Parameter | Biological Approximation | Known Limitation of the Mapping |
|---|---|---|
cognitiveStamina (scalar, 0–100) |
Aggregate prefrontal metabolic availability: adenosine accumulation, astrocytic glycogen stores, LC-NE tonic firing (Magistretti & Allaman, 2015; Aston-Jones & Cohen, 2005) | Compresses three distinct mechanisms with different spatial scales and time constants into one scalar. Cannot model regional variation or receptor-specific pharmacology. |
STAMINA_DRAIN (rate constant) |
Metabolic cost of sustained top-down GABAergic interneuron amplification via PFC cortico-cortical projections (Arnsten, 2011) | Assumes uniform cost across all control operations. Real PFC shows task-specific and region-specific metabolic signatures. |
STAMINA_REGEN (recovery rate) |
DMN-linked metabolic restoration during disengagement: glymphatic clearance, glycogen resynthesis, NE tone normalisation (Raichle et al., 2001; Buckner et al., 2008) | Recovery is modelled as a single exponential. Real recovery involves sleep architecture, circadian modulation, and individual metabolic variation. |
dogSurroundScale (0.5–1.0 ramp) |
Gain of top-down lateral inhibition in sensory cortex, mediated by PFC→interneuron projections (Desimone & Duncan, 1995; Lavie et al., 2004) | Models inhibition as a radial spatial kernel. Real inhibition is feature-based, object-based, and anatomically distributed — not a single surround radius. |
vortexT (adaptive threshold) |
Threshold for sustained recurrent activity in prefrontal and parietal working-memory circuits (Compte et al., 2000; Halassa et al., 2017) | Computed as a statistical inflection of the heat field, not derived from biophysical membrane or synaptic parameters. |
salience capture probability |
Salience Network reorienting response: anterior insula and dorsal ACC detection of behaviourally significant events (Seeley et al., 2007; Menon & Uddin, 2010) | Content-agnostic. The model cannot distinguish threat-relevant from reward-relevant salience at the semantic level. |
| LTP trace depth (per-cell, 0–255) | Structural synaptic consolidation: CaMKII bistability, dendritic spine remodelling, long-term potentiation (Bhalla & Iyengar, 1999) | Spatial adjacency heuristic, not wiring-specific. No distinction between excitatory and inhibitory consolidation. |
STP R·u product (per-cell) |
Short-term synaptic resource availability: vesicle pool depletion and calcium-dependent utilisation (Tsodyks & Markram, 1997) | Uniform rate constants across all cells. Biological STP is highly heterogeneous by synapse type and cortical region. |
| θ/γ ratio → WM capacity (Principle III) | Phase-amplitude coupling in hippocampal-prefrontal circuits: theta-nested gamma multiplexing (Lisman & Jensen, 2013; Axmacher et al., 2010) | Contested mechanism (Lundqvist et al., 2016; Panichello & Buschman, 2021). Capacity is asserted from constants, not derived from oscillator dynamics. |
| Channel axis λ ∈ [0, 1] (Extension III) | Ecological task demands: endogenous vs. exogenous attentional control regime (Corbetta & Shulman, 2002; Theeuwes, 2010). Also operationalises Kahneman's System 1/System 2 distinction at the spatial level. | Continuous parameter; real attentional regimes are mixed, overlapping, and context-dependent, not cleanly separable along a single axis. |
Simulation signature: Low STAMINA_REGEN + reduced baseline dogSurroundScale + elevated salience capture probability + channel axis biased toward Loud (λ → 1).
Canvas behaviour: Law I vortices form but cannot stabilise before salience events disrupt them. The canvas shows broad, shallow heat distributions with frequent involuntary spotlight jumps. The DoG inhibitory surround is chronically narrowed even at full stamina, producing a permanent low-grade gating failure. Working memory slots (Principle III) fill rapidly but are overwritten before consolidation, producing the characteristic "what was I doing?" fragmentation. In Extension III terms, the system is locked in a Loud-channel regime (high switching cost, low control cost) even in environments that demand Quiet-channel attention (reading, sustained problem-solving).
Neurobiological correlate: The dominant neurobiological account of ADHD identifies dopaminergic and noradrenergic modulation deficits in prefrontal-striatal circuits, reducing the gain of top-down lateral inhibition and impairing the brain's ability to suppress irrelevant stimuli (Arnsten, 2011; Barkley, 1997). The reduced baseline DoG surround approximates this gain deficit. The elevated salience capture probability approximates the heightened sensitivity to immediate environmental stimuli documented in ADHD (Liddle et al., 2011). The channel-axis bias toward Loud approximates the clinical observation that individuals with ADHD show disproportionate difficulty sustaining attention in low-stimulation environments while performing relatively well under high-stimulation conditions (Zentall & Zentall, 1983).
Subtype differentiation: The framework's Real-World Applications section (§Applications, Issue 2) predicts three mechanistically distinct ADHD subtypes, each corresponding to a different Law failing in isolation:
Falsifiable prediction: The three-subtype model predicts that stimulant non-responders are disproportionately Subtype A (EVC deficit). A 3-test battery (SART for Law II, anti-saccade for Law I, digit-span backward for Principle III) should dissociate the subtypes with above-chance accuracy. If stimulant non-responders are evenly distributed across all three subtypes, the subtyping model is falsified.
Mapping limitations: Real ADHD involves dopamine transporter genetics (DAT1, DRD4 polymorphisms), prefrontal hypometabolism visible on PET, developmental trajectories spanning years, and comorbidity profiles (oppositional defiant disorder, learning disabilities, anxiety) that no scalar parameter can capture. The simulation's ADHD regime is a dynamical analogy, not a pathophysiological model. It cannot predict medication dosage, developmental course, or individual treatment response.
Simulation signature: Elevated salience spawn rate + elevated salience capture probability + high STAMINA_DRAIN + reduced vortexT (lower threshold for threat-associated vortex formation) + elevated θ-gate salience override coefficient (Extension III: λ · Ssalience · k, with k above calibrated value).
Canvas behaviour: The salience capture radius activates at sub-threshold heat, forming maladaptive Law I vortices around threat-associated coordinates. Law II drain rate is chronically elevated because the GABAergic suppression of peripheral threat-signals requires continuous executive expenditure. No recovery window exists in which lateral inhibition can fully reconstitute, because the elevated salience events keep re-triggering the EVC expenditure cycle before recovery completes. In Extension III terms, the θ-gate salience override fires even in Quiet-channel mode: threat cues break the theta rhythm during reading or sustained focus, producing the characteristic "I can't stop scanning for danger" phenomenology. The result is a compound failure: Law II stamina erodes, Law I vortices form around threat coordinates, and Principle III WM slots fill with threat content, leaving no capacity for alternative thoughts (the "WM tunneling" described in §Applications, Issue 4).
Neurobiological correlate: The hypervigilance model of anxiety identifies a failure of inhibitory control over threat-relevant attentional capture, mediated by amygdala hyperreactivity and insufficient prefrontal top-down regulation (Cisler & Koster, 2010; Eysenck et al., 2007). The elevated salience capture probability approximates amygdala-driven orienting. The chronically elevated drain approximates the continuous metabolic cost of maintaining prefrontal suppression over an overactive threat-detection system. The reduced vortex threshold approximates the lowered activation threshold for threat-related attentional schemas documented in anxiety disorders (Williams et al., 1996). The salience override coefficient above calibrated value approximates the clinical observation that anxiety disorders involve excessive reorienting to peripheral stimuli even during goal-directed tasks (Bar-Haim et al., 2007).
Falsifiable prediction: The model predicts that anxiety-related attentional impairment should correlate with switching cost accumulation (Extension III) rather than with simple stamina depletion. An anxious individual in a low-salience environment (few threat cues) should show near-normal stamina curves, while the same individual in a high-salience environment (many potential threat cues) should show accelerated depletion proportional to cue density, not time-on-task. If depletion rate is identical regardless of cue density, the salience-override model is falsified.
Mapping limitations: Anxiety's attentional capture is content-specific (threat-related), not merely spatial — the simulation has no semantic content layer and cannot distinguish a threat cue from a neutral cue at the representational level. Real anxiety involves amygdala-prefrontal connectivity patterns, autonomic arousal (HPA axis, sympathetic activation), cognitive appraisal processes, and learning history (conditioning, trauma) that are entirely absent from the model. The simulation captures the dynamical structure of hypervigilance (elevated capture, exhausted inhibition, WM tunneling) but not its content or its developmental origin.
Simulation signature: High LTP trace depth at specific coordinates + depleted STP R·u at those coordinates + Law II gating failure cascade active but unable to overcome LTP routing force + channel axis oscillating between Quiet (attempted abstinence) and Loud (cue-triggered relapse).
Canvas behaviour: A Law I attractor basin with deeply engraved LTP continues routing the spotlight structurally via path facilitation despite having no remaining dynamic STP plasticity — the basin persists as a static geographic feature of the landscape. Law II's gating failure cascade fires but cannot overcome the structural routing force of the LTP vein. The spotlight is pulled back to the addiction-associated coordinates by Mode 3 Autonomous Recapture (§I.6) even when the system's stamina is exhausted and executive control has collapsed. In Extension III terms, the system oscillates between a Quiet channel (attempted self-regulation, high control cost) and a Loud channel (cue-triggered capture, high switching cost), with each oscillation draining stamina further until the Quiet channel can no longer be sustained.
Neurobiological correlate: The incentive sensitisation model (Robinson & Berridge, 1993, 2008) distinguishes between "wanting" (incentive salience, mediated by mesolimbic dopamine) and "liking" (hedonic pleasure, mediated by opioid and endocannabinoid systems). In addiction, "wanting" becomes sensitised — cue-triggered dopamine release in the nucleus accumbens — while explicit knowledge that the behaviour is harmful remains intact in prefrontal circuits. This produces the clinically observed dissociation: the individual knows they should stop (prefrontal representation intact) but cannot stop attending to addiction-associated cues (incentive salience override). The simulation's LTP vein persisting despite STP depletion approximates this structural override: the routing trace is too deeply engraved for dynamic resource depletion to erase it. The clinical parallel is the persistence of cue-reactivity in addiction even after prolonged abstinence, mediated by structural synaptic changes in the striatum (Hyman et al., 2006).
Falsifiable prediction: The model predicts that cue-exposure therapy should be less effective when LTP trace depth is high and STP resources are depleted — i.e., when the structural routing trace is deeply consolidated and the individual has no remaining dynamic plasticity to form competing traces. If cue-exposure therapy is equally effective regardless of consolidation depth, the structural-override model is falsified.
Mapping limitations: Real addiction involves craving circuits (ventral tegmental area → nucleus accumbens → prefrontal cortex), withdrawal dynamics (opponent-process adaptations), tolerance curves (receptor downregulation), genetic vulnerability (polygenic risk scores), social context, and comorbid psychiatric conditions. The simulation captures the routing structure of cue-triggered attentional capture but not the pharmacology, the subjective experience of craving, or the social dynamics of relapse. Obsessive-compulsive disorder involves cortico-striato-thalamo-cortical loop dysfunction with distinct neurochemistry (serotonergic, glutamatergic) that the model does not approximate.
Simulation signature: Adaptive Law I vortex (Mode 3 Autonomous Recapture active) + high taskValue accumulator + drain rate approaching zero + channel axis in Quiet regime (λ → 0) with strict θ-gating + WM slots stable and near-full.
Canvas behaviour: Law I's Autonomous Recapture (Mode 3, §I.6) absorbs the spotlight routing function, eliminating the EVC expenditure that would otherwise drain Law II's reserve. The drain rate approaches zero — not because the system is not attending, but because it is attending via structural habit rather than active executive effort. The taskValue accumulator rises with each successful vortex hold, further reducing drain via the equation drain = base_drain / (1 + k · taskValue). The canvas shows a single deep, stable vortex with strong LTP consolidation, minimal salience disruption (Quiet channel: sparse events, small capture radius), and stable WM occupancy. This is the only profile in which Law II's conservation constraint is effectively suspended — not violated, but rendered negligible by the structural absorption of routing cost.
Neurobiological correlate: Dietrich's (2004) Transient Hypofrontality hypothesis proposes that flow states emerge when reduced dorsolateral prefrontal activity allows implicit, automatic processing to dominate. The prefrontal cortex, normally responsible for effortful executive control, is transiently downregulated because the task's structural demands have been absorbed by procedural and sensorimotor systems. This is operationalised in the simulation as Mode 3 recapture: the structural landscape (LTP veins, attractor basins) absorbs the routing function that would otherwise require prefrontal EVC expenditure. Csikszentmihalyi's (1990) phenomenological description of flow — loss of self-consciousness, distortion of temporal experience, sense of effortless action — is consistent with the simulation's prediction that executive drain approaches zero while attentional quality remains high.
Falsifiable prediction: The model predicts that flow states should be associated with reduced prefrontal metabolic activity (measurable via fMRI BOLD signal in dlPFC) without corresponding reduction in task performance. If prefrontal activity remains elevated during self-reported flow, the transient hypofrontality operationalisation is falsified. Additionally, the model predicts that flow should be disrupted by salience events that exceed the Quiet-channel capture threshold — i.e., by interruptions that force a channel switch from Quiet to Loud. If flow is equally robust regardless of interruption frequency, the channel-coupling prediction is falsified.
Mapping limitations: Flow is a subjective phenomenological state, not a clinical condition. The simulation captures the cost structure of flow (near-zero executive drain, high attentional quality) but not its subjective quality (altered time perception, loss of self-referential processing, intrinsic reward). The Transient Hypofrontality hypothesis itself is contested: alternative accounts propose that flow involves increased prefrontal activity in specific subregions rather than global downregulation (Harris et al., 2015). The simulation adopts Dietrich's account as its operationalisation but acknowledges the debate.
| Profile | Law I (Attractor) | Law II (Resource) | Principle III (Temporal) | Extension III (Channel) | Epistemic Status |
|---|---|---|---|---|---|
| ADHD | Shallow basins; vortices disrupted before stabilisation | Low regen; chronic gating failure | Rapid WM turnover; items overwritten before consolidation | Locked in Loud regime in Quiet-demand environments | 🟡 Analogy |
| Anxiety | Maladaptive threat vortices at low threshold | Chronically elevated drain; no recovery window | WM tunneling: all slots filled with threat content | Salience override fires in Quiet mode | 🟡 Analogy |
| Addiction / OCD | Deep LTP basin persists despite STP depletion | Gating failure cannot overcome structural routing | WM captured by cue-associated content | Oscillation between Quiet (abstinence) and Loud (relapse) | 🟡 Analogy |
| Flow | Deep adaptive vortex; Mode 3 recapture active | Drain → 0; taskValue high | Stable WM; strict θ-gating | Quiet regime; sparse salience; no override | 🟡 Analogy |
The clinical profiles above are the framework's most speculative application. The following limitations are stated explicitly and should be read as binding constraints on every claim in this section:
Summary of epistemic status: The clinical profiles in this section are hypothesis-generating computational analogies. They demonstrate that the framework's parameter space is dynamically rich enough to produce qualitatively distinct regimes resembling recognised clinical and optimal attentional states. They generate specific, falsifiable predictions (§II.6b–II.6e). They do not constitute validated clinical models, diagnostic tools, treatment guides, or claims of mechanistic identity between simulation parameters and biological substrates. The framework's value at this stage is as a structured hypothesis generator: it makes explicit what a dynamical account of attentional dysfunction would need to predict, and thereby identifies the specific empirical tests that would confirm or refute each prediction. The transition from analogy to validated model requires the multi-step validation pipeline described in the Roadmap to Validation, and that pipeline has not yet begun.
The two Laws are not independent constraints operating in parallel. They form a coupled dynamical system in which each Law modulates the other's effective parameters in real time:
LAW I influence on Law II:
-------------------------------------------------------------------------
Adaptive vortex (Mode 3 Autonomous Recapture active)
routing absorbed by LTP landscape
EVC cost → 0
Law II drain rate approaches zero
stamina preserved for future vortex recovery
positive feedback: stronger vortex, longer sustainability
Maladaptive vortex (high LTP, depleted STP)
routing locked but non-updatable
continued EVC expenditure trying to maintain focus on fixed target
Law II drains faster than recovery can replenish
gating failure cascade fires
Law I loses its inhibitory wall → vortex exposed to disruption
negative feedback: maladaptive lock-in drives its own eventual collapse
LAW II influence on Law I:
-------------------------------------------------------------------------
High stamina (gatingFailureActive = false)
DoG surround at full radius
Law I vortex protected by inhibitory geometry
clean phase transitions; attractor basin stable and deep
Low stamina (gatingFailureActive = true)
DoG surround -50%: inhibitory wall collapses
Law I vortex exposed to Mode 1 reflexive capture disruption
B-spline coherence -40%: gradient routing signal degraded
Phase transition to maladaptive or saturated state becomes likely
This bidirectional coupling is the mathematical engine that produces the flow-state, rumination, and burnout trajectories observed in the clinical axis table (I.7). None of those trajectories can be produced by either Law alone. They require both Laws operating simultaneously on a shared canvas — which is precisely why both are Laws: each is necessary, and neither alone is sufficient.
The primary limitation is that cognitiveStamina compresses a heterogeneous multi-molecular biological substrate — localised adenosine accumulation, astrocytic glycogen depletion (different spatial and temporal scales), and LC-NE tonic firing modulation (brain-wide timescale) — into a single uniform scalar variable (Magistretti & Allaman, 2015; Aston-Jones & Cohen, 2005). In vivo, these three mechanisms have distinct time constants and interact non-linearly: glycogen depletion is slower and more spatially localised than adenosine build-up, which is itself slower than LC-NE firing changes. A full metabolic compartment model would require at least three separate scalar fields with different rate constants. The framework's single-scalar compression sacrifices this mechanistic granularity while preserving the essential causal consequence: lateral inhibition geometry collapse under sustained focus load. This trade-off is intentional and acknowledged; it is the price of running the conservation law at 60 FPS in a browser rather than a metabolic simulation cluster.
A specific, well-aimed critique of this Law deserves to be stated in full rather than defended away: the documentation above claims the model implements Expected Value of Control (Shenhav et al., 2013) and explicitly disavows the older "willpower fuel tank" ego-depletion model (Baumeister et al., 1998) that EVC theory was proposed to replace. Until v68, the actual runtime behaviour was cognitiveStamina -= 0.08 every single frame, unconditionally, regardless of the reward value of the current task, the probability of success, or the opportunity cost of alternatives — a flat, constant linear drain that empties a scalar reservoir and refills it during rest is definitionally the leaky-bucket ego-depletion model, not an EVC computation.
Defense of the First-Order Proxy as a Mesoscale Abstraction: Computing full biophysical EVC — integrating actual reward magnitude, success probability, and metabolic state — is computationally intractable at 60 FPS and conceptually mismatched for a mesoscale spatial model. The proxy approach (vortexPullStrength as successProxy, salient-event density as opportunityCost, and now taskValue as a reward-weighted accumulator) successfully captures the gradient and directionality of the EVC landscape: it correctly models the relative cost-benefit shifts between a stable vortex (high taskValue → near-zero drain) and a chaotic field (low taskValue → high drain), even if the absolute magnitude is scaled. This is analogous to how Temporal Difference (TD) learning in reinforcement learning uses proxy reward signals to approximate true value functions (Sutton & Barto, 2018). The proxy is not a failure to implement full EVC — it is a mathematically appropriate abstraction for a real-time, spatially-rendered mesoscale model, where the computational cost of a full reward-prediction engine would outweigh the marginal explanatory benefit.
A genuine EVC implementation would need to evaluate something closer to:
EVC = Σ(P_reward × V_reward) - Cost_effort - Cost_opportunity
v65 code: cognitiveStamina -= 0.08 [constant, task-blind]
v68 code: drain = STAMINA_DRAIN × evcDrainModulator(
successProxy, opportunityCost
) / (1 + 0.5 × taskValue) [context-sensitive, reward-weighted]
Genuine EVC: drainRate = f(taskValue, successProb, [fully dynamic, reward-aware]
opportunityCost(t))
The v68 update closes part of the gap: the taskValue accumulator makes the drain rate explicitly reward-responsive, while the opportunityCost term captures competition from salient events. The remaining gap — that taskValue is a scalar accumulator rather than a full probability-weighted reward estimate — is a tractable approximation for a 60 FPS browser model, not a fundamental theoretical limitation.
Additional critique: The stamina equation isn't derived from EVC. Shenhav's EVC framework specifies that control allocation depends on: (1) Expected value of maintaining control (V_maintain), (2) Expected value of releasing control (V_release), and (3) Cost of maintaining control (C_control). The simulation's drain = base_drain / (1 + k·taskValue) is a proxy approximation of this, not a derivation. It captures the intuition that reward reduces perceived cost, but it doesn't compute V_maintain vs V_release (no comparison of alternatives), it doesn't model the decision threshold where control is withdrawn, and it doesn't incorporate environmental uncertainty. This is a useful computational metaphor, not a validated EVC implementation.
As with Law I, the fix for the "arbitrary 30% threshold" critique is to remove the specific number from the statement of the law and state the underlying relationship it approximates:
Law of Attentional Resource Constraint: In any finite cognitive control system, sustained top-down control is accompanied by a monotonic decrease in inhibitory efficacy. The rate of decrease is proportional to the opportunity cost of continued engagement and inversely proportional to the expected value of the current task. When inhibitory efficacy falls below a critical threshold determined by the system's current metabolic state, the architecture of selective attention undergoes a phase transition from a bounded, organised state to an unbounded, entropic one.
This statement avoids naming any specific number, generalises across any finite cognitive-control system rather than this one canvas, and is falsifiable: it predicts that manipulating task value or opportunity cost should shift the point of gating-failure collapse, a prediction that could be tested behaviourally (Lavie, 2004; Kurzban et al., 2013) independent of this codebase's specific constants. The v68 taskValue accumulator provides a first-order test of this prediction within the simulation itself.
Two discretisation gaps previously existed between §II.10's continuous statement and the running code. The first is now substantially closed: heatmap.dogSurroundScale = 0.5 + 0.5×stamFactor, computed every frame in updateSpotlight() and read directly by the DoG kernel in updateHeat(), replaces the previous all-or-nothing gate with a continuous monotonic ramp — the inhibitory surround now visibly narrows in lockstep with falling stamina rather than snapping at a single boundary. The saccade-override gate term received the same treatment: the old gatingFailureActive ? 0.5 : 1 switch is now a smooth ramp over the 0–0.4 stamina band. The gatingFailureActive boolean itself is retained, but only as a hysteresis-gated label for the dashboard indicator (so the UI reading doesn't flicker at the boundary) — it no longer drives the underlying geometry or probability math.
The second gap is now partially, not fully, closed: per §II.9, the drain rate is computed each frame as STAMINA_DRAIN × evcDrainModulator(successProxy, opportunityCost) / (1 + 0.5 × taskValue) rather than the previous flat cognitiveStamina −= 0.08, so the "rate of decrease is proportional to opportunity cost" clause of §II.10 is now partially implemented — through a proxy pair (vortex stability, salient-event density) and a reward-weighted taskValue accumulator. Closing the surround/gate discretisation gap and adding the dynamic taskValue modulator together move §II.10's statement from "asserted" toward "computed."
| Assessment | Score | Basis |
|---|---|---|
| Original self-assessment (as literal code) | 4.7 / 5.0 | Rewards the Lavie / Shenhav / Cowan grounding and the clinical-profile validation (§II.6) |
| Independent critique (as literal code) | 3.5 – 4.2 / 5.0 | Same grounding, marked down for the flat linear drain contradicting the EVC framing it claims (§II.9), and for compressing distinct metabolic timescales into one scalar (§II.8) |
| Reformulated (threshold-free statement, §II.10) | 4.0 / 5.0 | The generalised relationship is well-supported and falsifiable; held below Law I because §II.9's contradiction is a claim-versus-code mismatch, not merely a discretisation gap, and is the framework's most serious remaining honesty debt |
| Terminologically corrected ("exact same event" → "causally coupled") | 4.2 / 5.0 | The corrected phrasing ("causally coupled: EVC withdrawal precipitates inhibition structural failure") is precise, still strong, and no longer overclaims identity between subjective experience and mechanistic collapse. This removes the largest portion of the remaining deduction. |
Adopted score: 4.2 / 5.0. This reflects the valid critiques: the EVC-versus-ego-depletion gap is the framework's most serious honesty debt, the "exact same event" claim has been corrected to "causally coupled," and the clinical metaphors are not yet validated. The conservation relationship itself — that sustained control degrades inhibitory efficacy — is well-grounded, and the implementation's fidelity to the stated EVC theory is now more accurately bounded by the corrected terminology.
It is worth answering directly a question the §II.9 confession invites: given that gap, should Law II be downgraded to a Principle, the way the former Field Continuity law was? The case against doing so rests on separating two levels of description that are easy to conflate — the implementation detail (how the drain is currently coded) and the law itself (what the law asserts about any finite cognitive control system), and on the fact that only the former is what §II.9 finds fault with.
Stripped of implementation, §II.10's statement is a claim about finite systems and entropy, not about dopamine receptors or prefrontal glucose metabolism: any system that does work by sustaining inhibitory control dissipates a resource, and any system that dissipates a resource without limit eventually loses the capacity to maintain an organised state. This is the same logical structure as the second law of thermodynamics applied to cognitive control — not a metaphor for it, a restatement of it in a cognitive-control vocabulary. No design choice, parameter tuning, or architectural preference lets a finite control system sustain high-fidelity selective attention indefinitely at zero cost; that is a constraint on the class of system, not a fact about this codebase.
The analogy that keeps this precise rather than rhetorical is Newtonian gravitation. F = GmM/r² is the zeroth-order approximation of a fuller relativistic account of spacetime curvature; physics did not retroactively downgrade Newton's law to a "principle" once General Relativity supplied the higher-order terms, because GmM/r² still correctly describes the dominant constraint at the scale where it was measured. The previous cognitiveStamina -= 0.08 constant, and the drain modulator that has partially replaced it (§II.9), occupy the same position: a leading-order term of a constraint whose full expression — task value, opportunity cost, metabolic state — the framework explicitly commits to approximating more closely over time. The law is the conservation constraint that sustained control has a monotonic, finite cost; the drain formula is this revision's approximation of it, expected to be superseded by a closer one, the way Newton's equation was refined without being falsified.
Setting the §II.9 honesty debt to one side for a moment, it is worth being precise about what Law II gets right, because the achievement is easy to understate: it bridges a long-standing divide between two literatures that cognitive psychology has historically treated as describing entirely separate phenomena.
These two accounts are not usually presented as the same claim, because they operate at different levels of description — one economic, one biophysical — and most treatments of either cite the other only in passing. Law II's actual contribution, independent of the §II.9 implementation gap, is to assert that these are two views of a single underlying relationship: the physical geometry of the sensory filter (the radius and gain of the DoG surround-suppression ring) is a direct, dynamic function of the top-down opportunity-cost calculus. Stated this way, "I don't feel like focusing anymore" (an economic report) and "top-down lateral inhibition has structurally collapsed" (a mechanical description) are causally coupled: EVC withdrawal precipitates inhibition structural failure. This is a precise and defensible claim, stronger than the previous "exact same event" overstatement.
Caveat: They are causally linked but not identical. "I don't feel like focusing" includes mood/affect (frustration, boredom), autonomic state (arousal, stress response), and strategic choice ("I could focus but choose not to"), none of which are captured by inhibition geometry. "Inhibition collapse" implies inability, not choice. EVC theory says the choice to withdraw effort is rational (opportunity cost exceeded expected value). Load Theory says the ability to filter declines under low effort. These are two distinct mechanisms that interact, not "the exact same event." The simulation correctly models their interaction (EVC decline → stamina drop → inhibition collapse), and the corrected causal coupling statement captures this accurately.
§II.10's reformulated statement makes predictions that behavioural and neuroimaging work could test independently of this codebase, and that would also, if confirmed, motivate closing the §II.9 implementation gap:
Chosen architectural strategies, not hard constraints — each could, in principle, be replaced by a different implementation without invalidating the two Laws above. Presented with their known category limitations named up front, in deliberate contrast to the expanded treatment given to Laws I–II.
Why this is a Principle, not a Law — the design‑choice admission: Placing cognitive events on a continuous 2D coordinate canvas is a design decision, not a law of cognition. A different simulation of the same underlying theory could just as legitimately use a graph‑based, non‑Euclidean, or purely symbolic representation without violating any law of nature — which is precisely the test a genuine Law must fail to satisfy. This component is retained because it is a well‑executed, biologically‑inspired architectural choice that makes the framework's other components legible on a screen, not because the 2D canvas itself is an inescapable constraint the way Laws I and II are.
Two further category concerns, raised independently and judged valid on reflection, keep this component below the threshold for Law status even as an architectural choice. First, the Difference‑of‑Gaussians (DoG) Mexican Hat filter used to sharpen spatial focus models the centre‑surround geometry of retinal ganglion cells — a low‑level visual mechanism — and applies it to suppress literal pixel coordinates on a 2D screen. But top‑down executive selection, the phenomenon this framework is actually trying to model, suppresses features or semantic categories, not physical locations in a two‑dimensional plane. Borrowing early‑visual‑system machinery to stand in for object‑based cognitive attention is a simplification worth naming rather than obscuring. Second, the NMDA coincidence‑gated LTP cascade potentiates cells based on spatial adjacency on the canvas grid (an 8‑pixel radius), whereas biological long‑term potentiation requires synchronised pre‑ and post‑synaptic activity at a specific, functionally‑wired synapse — there is no claim here that grid‑adjacent pixels correspond to axonal‑dendritic connectivity. Potentiating a neighbouring cell because it happens to sit next to the target on‑screen, rather than because it is functionally wired to it, is a spatial heuristic standing in for synaptic plasticity, not a literal implementation of it.
None of this makes the mechanism useless — it makes it exactly what a Principle is supposed to be: a chosen, well‑motivated architectural strategy for making cognitive dynamics spatially and visually legible, rather than an inescapable constraint every possible implementation would have to obey. Within that honestly‑scoped role, the mechanics remain worth documenting in detail, because they provide the substrate for all downstream dynamics.
Cognitive events are localised spatial fields, not disjointed boolean states. Sustained localised heat exceeding a voltage‑dependent activation floor triggers a three‑stage consolidation cascade — DoG spatial sharpening, NMDA‑gated coincidence detection, and CaMKII bistable autophosphorylation — converting transient metabolic energy into durable structural coordinates (heatmap.ltp) that establish 2.5× facilitated pathways for future processing and bias all subsequent spotlight movement through a continuously updated attractor landscape. The underlying LTP implementation achieves near‑flawless molecular replication (fidelity 4.9/5.0), validated by the 2025 Bartol‑Sejnowski in vivo study.
[Spotlight Activity on 2D Coordinate Canvas]
[DoG Mexican Hat Filter] centre excites, surround suppresses (σ_e < σ_i)
[Is Heat > LTP_THRESH (~76/255)]
+-- NO → Ambient Entropic Decay
+-- YES → Coincidence‑Gated Structural Cascade
[NMDA Window ~33 ms] Mg²⁺ unblock gating (Jahr & Stevens 1990)
[CaMKII Bistable Autophosphorylation] 2025 Bartol‑Sejnowski in vivo validated
+-- LTP = γ_auto · LTP² + α_LTP · (Heat/MaxHeat)
+-- Decay Resistance: k_rec = K_RECBASE · (1 − LTP_i · ω_scale)
+-- Path Facilitation: 2.5× heat multiplier on future traversals
Sustained localised heat exceeding a voltage‑dependent activation floor triggers a three‑stage cascade: DoG spatial sharpening (centre‑surround contrast on the coordinate grid), an NMDA‑gated coincidence window (~33 ms, modelling the voltage‑dependent Mg2+ unblock of Jahr & Stevens, 1990), and CaMKII bistable autophosphorylation, converting transient heat into durable structural coordinates (heatmap.ltp) that establish 2.5× facilitated pathways for future traversal. The structural conversion follows a quadratic acceleration equation:
ΔLTPi = γauto × LTPi2 + αLTP × (Heati / MaxHeat)
γauto = 0.0018 | αLTP = 0.0012/frame
Once a trace crosses the bistability threshold (~76/255), it becomes self‑sustaining even after the driving heat decays — a computational echo of the CaM‑trapping mechanism described by Bartol, Sejnowski, Rangamani & Kennedy (2025, Frontiers in Synaptic Neuroscience), in which steric hindrance slows dephosphorylation by protein phosphatase 1 (PP1) and prolongs phospho‑CaMKII lifetime. High‑LTP cells also dampen their own decay rate (krec = KRECBASE × (1 − LTPi × ωscale)) and deposit heat at 2.5× the baseline rate on future traversal — the structural substrate underlying Law I's Autonomous Recapture and the felt effortlessness of practiced attention.
The spotlight deposits thermal energy using a Difference‑of‑Gaussians (DoG) Mexican Hat kernel — the canonical computational model of retinal ganglion cell centre‑surround organisation (Enroth‑Cugell & Robson, 1966), empirically validated in 2025 psychophysics (Galletti & Bonfiglioli, Scientific Reports) as the mechanism underlying visuo‑spatial attentional focus. The inner Gaussian provides focal excitation; the broader outer ring provides active lateral suppression. On a discrete boolean‑node graph, a Mexican Hat collapses to a nearest‑neighbour rule. On a continuous 2D field, it defines a precise geometric boundary — the DoG surround radius — that is the same boundary Law II's stamina depletion collapses. Principle I and Law II operate on the same spatial feature; Principle I constructs it, Law II dissolves it.
Heat deposition alone does not commit a trace to structural memory. The engine maintains a nmdaLastSpike timestamp array. LTP increments are gated by an exponential coincidence window (~25 frames ≈ 33 ms), simulating the voltage‑dependent Mg2+ unblock modelled by Jahr & Stevens (1990). Kampa et al. (J. Physiol. 556, 2004) confirmed the fast unblock time constant. The dopaminergic gain term mirrors the D1/D5 receptor requirement for LTP consolidation (Redondo & Morris, PNAS, 2011). This is STDP on a mesoscale surface: sub‑millisecond precision coincidence gating determining the sign and magnitude of every structural change in the attentional landscape.
Once heatmap.ltp[i] crosses the bistability threshold (~76/255), the quadratic acceleration function fires:
ΔLTPi = γauto × LTPi2 + αLTP × (Heati / MaxHeat)
γauto = 0.0018 | αLTP = 0.0012/frame
The trace becomes self‑sustaining long after driving heat has decayed. The 2025 Bartol‑Sejnowski‑Rangamani‑Kennedy study (Frontiers in Synaptic Neuroscience) provided the most current direct in vivo validation: CaM‑trapping "dramatically prolongs the lifetime of phospho‑CaMKII through steric hindrance of dephosphorylation by protein phosphatase 1 (PP1)" — the exact biochemical mechanism the γauto × LTPi2 self‑sustaining trace equation models. Miller & Wang (PLOS Biology, 2005) demonstrated bistability stability scales exponentially with molecular count, explaining why the threshold must be crossed before the quadratic term self‑sustains. Principle I provides the pristine molecular proof of James's observation that "whatever ideas originate in our own brain are remembered a thousand times better than things communicated from without" — self‑generated Law I vortices drive local variables past bistability threshold; transient external spikes cannot.
High‑LTP cells dampen their own dissipation (krec = KRECBASE × (1 − LTPi × ωscale)) and traversing particles deposit heat at 2.5× baseline rate — James's "easy vent" (Ch. IV on Habit): "An organically conditioned habit is nothing but a new pathway of discharge formed in the brain, by which new outward actions find a comparatively easy vent." This path‑carving is the structural substrate for Law I's Mode 3 Autonomous Recapture and for the flow state: Principle I's carved landscape absorbs the routing function that Law II would otherwise cost stamina to perform. The deeper the LTP trace, the more robustly it offloads from Law II's reserve — a direct, quantifiable mechanistic account of why expert performance feels effortless.
PyCUDA kernels distribute particle properties using bilinear weight equations: W(x,y) = (1−Δx/h)(1−Δy/h) — the Particle‑in‑Cell method (Birdsall & Langdon, 1985), ensuring smooth force gradients and strict resource conservation across the discrete lattice. Without this interpolation, quantisation noise would destabilise the gradient fields that Law I's attractor depends on. Three regulatory mechanisms prevent unchecked LTP accumulation: (1) BCM Metaplastic Sliding Threshold (Bienenstock et al., 1982) auto‑normalises the global landscape; (2) NMDA Timing Precision enforces STDP‑style temporal specificity; (3) Synaptic Tagging & Capture (Sajikumar group, 2025 Communications Biology) — STC tag‑PRP interactions persisting up to 9 hours validate the slow LTP structural layer as biologically bounded consolidation, not instantaneous trace formation.
By deploying the simulation on a continuous 2D coordinate space rather than discrete boolean nodes, the framework enables true gradient physics: Law I's ω‑stability potential field can flow continuously rather than snapping between nearest‑neighbour states, Law II's DoG surround has a real geometric radius to collapse rather than a count of disconnected nodes to disable, and Principle III's saccade targeting has an actual spatial gradient to follow rather than an arbitrary graph edge to traverse. This is Principle I's honest contribution: not a law the other components are forced to obey, but the shared representational substrate that makes their dynamics visible, differentiable, and mutually coupled on a single canvas. Score 3.4/5.0 reflects that contribution weighed against the category concerns above — a well‑built, useful architectural choice, correctly no longer presented as an inescapable law of cognition.
Why it is a Principle, not a Law: In an unconstrained Hebbian system, positive feedback would let the spotlight permanently lock onto the first salient stimulus it encounters — the rigid, repetitive capture seen clinically in OCD and addiction. Principle II is the chosen countermeasure: a Bienenstock-Cooper-Munro (1982) sliding threshold θBCM that tracks a running average of local activity, so that chronically overactive cells become progressively harder to potentiate and eventually drift into depression (LTD) instead — a Plasticity Flip that actively dismantles the over-saturated basin, drains its LTP trace, and liberates the spotlight to explore fresh canvas. Unlike Laws I and II, this is a specific engineering strategy the system employs to remain flexible; a different anti-saturation rule (e.g. simple weight normalisation, or a fixed decay ceiling) could in principle replace it without contradicting anything upstream.
w(x) = f(h(x), _BCM(x)) x_pre f(h,) = h(h-) [above LTP; below LTD]
_BCM update (every 30 frames):
if mean(h(quadrant)) > 0.72maxHeat for > 300 frames:
_BCM 1.08 [threshold climbs]
ltp -1.2 [LTP vein drains]
timer 0 [quadrant freed for fresh accumulation]
The ~5-second (300-frame) exhaustion window is loosely modelled on the induction kinetics of mGluR-dependent LTD (Huber et al., 2000), and the overall strategy mirrors Tononi & Cirelli's (2014) Synaptic Homeostasis Hypothesis: potentiation accumulates during active engagement, and periodic downscaling trims runaway saturation to preserve signal clarity — here compressed to the timescale of a single attentional episode rather than a sleep-wake cycle.
Known limit — the non-synaptic-field caveat: BCM's biological formulation governs weight changes at a directed, weighted synapse between a specific pre- and post-synaptic unit. This model has no such structure — no axonal-dendritic wiring, no discrete weighted connections — only a scalar LTP field defined at each canvas coordinate. Applied here, the "BCM rule" is honestly better described as a localised dampening variable that prevents any one region of the heatmap from saturating indefinitely, rather than a literal synaptic plasticity rule. It is a clever, useful stabilisation strategy for keeping the simulation's canvas exploratory rather than a rigorous instantiation of BCM metaplasticity. Score 3.3/5.0 reflects that gap: the homeostatic strategy (potentiate, then periodically downscale) is well-motivated and effective; the specific mechanism borrows BCM's name and equation without its underlying synaptic substrate.
Why this is a Principle, not a Law — the contested-mechanism admission: The formula Nmax ≤ τslow/τfast is a genuine, dimensionless, species-independent inequality. Any oscillatory multiplexing system that must keep sub-cycles phase-distinguishable within a carrier period is bounded by this ratio. That is wave mechanics, and wave mechanics does not care about your species, your substrate, or your parameter values. But a bound is not a mechanism. The formula tells you the ceiling. It does not tell you where the actual capacity sits below that ceiling, or whether the brain uses oscillatory multiplexing to reach it. The framework's claim that this is a Law — an inescapable constraint the system cannot bypass — rests entirely on the assumption that the brain solves binding-by-synchrony via theta-nested gamma packets. That assumption is explicitly, actively contested (see §Principle III.1c). A genuine Law does not come with a conditional validity warning. A Principle does. This component is therefore more honestly classified as an architectural strategy — a well-chosen, biophysically plausible upper-bound constraint — than as an inescapable Law.
⚠️ Conditional Validity: The Synchrony Binding Assumption
Principle III's explanatory power depends on the brain solving feature binding primarily via temporal synchrony (Singer 1999; von der Malsburg 1981; Lisman & Jensen 2013). If binding is achieved instead through rate coding, population vectors, or predictive-error minimisation, the theta-gamma ratio describes a correlate of working-memory capacity rather than its causal constraint.
The core claim — that the capacity ceiling is a physical consequence of wave mechanics — holds only if the binding problem is solved by phase-locking separate gamma packets to distinct items. This is a live empirical question, not a settled premise; see §Principle III.1c for alternative scenarios and falsification conditions.
The framework's original contribution is not the capacity number. It is the architectural claim that the purpose of the oscillatory clock is to impose temporal order on a parallel neural storm. The capacity limit is a consequence, not the purpose. A reader who skims sees "working memory = 4–7 items." A reader who engages deeply finds "the oscillatory clock is the mechanism that makes sequential conscious thought possible." That reframing is the framework's most intellectually ambitious move, and it is well-stated. As a Principle, the multiplex claim becomes the strongest Principle in the framework — stronger than Principle I (Field Continuity, scored 3.4) and Principle II (BCM Homeostasis, scored 3.3) — and approaches the Law threshold without crossing it, because the mechanism remains actively contested.
Without temporal multiplexing, the parallel storm of neural activity — Law I's vortices competing for space, Law II's resources depleting, countless sensory and mnemonic signals vying for priority — would remain an undifferentiated, unusable cacophony. The theta wave is the clock; gamma bursts are the slots. The capacity bound is not the purpose; it is the inevitable price of turning chaos into sequence.
The multiplex clock defines thought not as a serene, static stream, but as a chaotic, high-velocity multiplex dynamic. Where Law I governs the birth and spatial topology of a thought, and Law II governs its metabolic lifespan, Principle I governs its structural consolidation to habitual memory and Principle III guides its purposeful execution. Left unchecked, the brain's competitive neural inputs exist as a turbulent, multi-channel storm of electrical chaos. The multiplex clock forces order upon this entropy by acting as a strict, high-frequency oscillatory traffic cop. By nesting rapid, fractured gamma bursts (γ ≈ 45 Hz) within a slow, sweeping theta wave (θ ≈ 6 Hz), the system dynamically serialises and multiplexes this chaotic cross-fire into discrete, time-sliced channels (Buzsáki, 2006; Lisman & Jensen, 2013). This biophysical bottleneck imposes a rigid structural ceiling of 4–7 slots (7±2), ruthlessly slicing a chaotic cloud of thoughts into a tightly multiplexed sequence, preventing the entire cognitive architecture from collapsing back into an undifferentiated, bleeding neural puddle.
The working memory slots visible in the interface (workingMemory.slots) are the visible residue of the theta-gamma multiplexing architecture. The functional purpose of the multiplex clock is to impose temporal order on a parallel neural storm. The capacity limit is simply: how many gamma packets can fit inside one theta cycle while remaining phase-distinguishable?
This distinction matters for interpretation. A reader who skims will see "working memory = 4–7 items" — a pedestrian claim. A reader who engages deeply will find "chaos to ordered sequence" — a profound one. The framework's original contribution is the architectural claim that the oscillatory clock is the mechanism that makes sequential conscious thought possible, not merely a limit on how much can be held at once.
This is the sense in which the multiplex clock is the bridge between the two Laws. Law I generates attractor basins (spatial structure). Law II imposes metabolic constraints on them. Principle III determines how and when these attractors can be accessed, manipulated, and sequenced — the temporal structure that gives conscious thought its flow.
Formal Statement: Separate representations are held simultaneously via high-frequency gamma oscillations (γ ≈ 45 Hz) nested within a slow theta wave (θ ≈ 6 Hz). Because the total duration of a theta cycle is constrained to ~167 ms and a gamma cycle requires ~22–25 ms for feedback inhibition recovery, the system imposes a hard biophysical ceiling of 4–7 processing slots — providing a strict, mechanistic explanation for Miller's (1956) 7±2 capacity limit that is grounded in neural oscillatory physics rather than arbitrary code constraint (Lisman & Jensen, 2013; Buzsáki, 2006). Autonomous saccade selection is phase-locked to the deep trough of the theta wave, governed by the strict condition sin(2πfθt) < −0.90, ensuring memory encoding is protected from incoming sensory fragmentation and that spotlight movements cluster into rhythmic burst-pause patterns mirroring the microsaccadic rhythms observed in human fixation-period recordings.
The cross-frequency coupling (CFC) clock implemented in the model is not merely a pacing mechanism for saccadic eye movements; it functions as an information-theoretic capacity constraint on temporal binding-by-synchrony within capacity-limited cortical systems — a constraint on how many items such a mechanism could support, not a claim to have resolved the binding problem itself, which remains debated in the broader literature (Treisman, 1996; Singer, 1999). In human working memory, separate representations must be held simultaneously without bleeding into an undifferentiated neural soup. The brain handles this by nesting high-frequency gamma oscillations (γ ≈ 45 Hz) within the phases of a slow theta wave (θ ≈ 6 Hz), as established by Lisman & Jensen (2013). Each slow theta cycle represents a coherent ensemble processing window; the constituent gamma sub-cycles function as distinct temporal slots, each carrying one working memory item as a specific ensemble of neurons firing within a precise gamma window (Axmacher et al., 2010). Without this strict oscillatory clock, the entire cognitive architecture collapses into a turbulent, undifferentiated neural storm.
[ Theta Cycle (~6 Hz — one full period — 167 ms) ]
|--------------------------------------------------------------|
Trough Peak
[WM Slot 1] —— [WM Slot 2] —— [WM Slot 3] —— [WM Slot 4]
(γ burst 1) (γ burst 2) (γ burst 3) (γ burst 4)
↓ ↓ ↓ ↓
HIGH-PRI SECONDARY TERTIARY FRINGE
[ Saccade Gate Opens: sin(2πf_θt) < -0.90 → cfcDot fires → saccade permitted ]
[ v68: strict phase-locked gating — macro-movements frozen outside trough ]
Hard capacity constraint: ceil(T_theta / T_gamma) = ceil(167ms / 25ms) = 6 slots
Miller (1956) "7±2" = exactly this ratio: not a cognitive axiom but a biophysical ceiling.
Chaotic multi-channel input storm → serialised multiplexed sequence → distinct cognitive objects.
Because the total duration of a theta cycle (~167 ms) and the minimum biophysical window per gamma cycle (~22–25 ms, required for feedback inhibition recovery) are both physically constrained, the architecture imposes a hard ceiling on the number of items that can be sequentially serialised within a single theta window. Approximately 4–7 gamma slots fit within one theta wave — providing a mechanistic, oscillatory explanation for Miller's (1956) classic 7±2 capacity limit that is grounded in neural biophysics rather than abstract psychological axiom (Buzsáki, 2006; Lisman & Jensen, 2013). Human intracranial recordings during working memory retention tasks confirm that gamma amplitude is phase-locked to specific components of the underlying theta rhythm (Axmacher et al., 2010). The framework's capacity ceiling is therefore not a design choice: it is the inevitable consequence of two independently measured oscillatory time constants interacting within a finite temporal window.
The Lisman & Jensen (2013) formulation — that working‑memory capacity is determined by the number of gamma cycles that fit within a theta cycle — is an influential hypothesis with significant unresolved challenges. The framework adopts it as a biophysically plausible upper‑bound constraint, not as a settled theory. Alternative positions in the literature include:
The framework's position: We adopt the Lisman‑Jensen constraint as an architectural upper‑bound constraint (τslow / τfast) rather than a complete theory of WM. The bound is real and important — it imposes a hard ceiling on how many phase‑distinguishable items any oscillatory multiplexing scheme can support — but it does not determine actual capacity, which may be lower due to noise, resource limitations, or alternative coding strategies. The 4–7 clamp in the implementation reflects this hedging: it accommodates both Cowan's 4±1 and Miller's 7±2 while committing to neither as an exclusive truth. This is a principled engineering choice made for computational tractability at 60 FPS, not an uncritical adoption of the Lisman hypothesis as settled theory.
The §P-III.2 honesty gap is now closed. The spatial repositioning of the attentional spotlight — autonomous saccade selection in Wandering Mode — is directly gated by the theta phase layer. Saccade selection is strictly restricted to the deep trough of the theta wave, firing only when:
sin(2π × f_θ × t) < -0.90 [theta-trough gate: ~15% of each cycle] During trough window: cfcDot indicator turns gold θ-γ Locked badge activates saccade target selection permitted via priority map spotlight.wanderInt reset to 90 + rand(60) frames Between troughs: macro-movements frozen (spotlight.wanderInt extended to max(current, 180) frames) only microscopic drift or vortex-locked holding allowed saccades suppressed — generates natural burst-pause clustering of eye movements
This alignment reflects the biophysical finding that memory encoding and sensory sensitivity are optimal at the theta trough-to-peak transition — the phase at which NMDA receptor conductance windows are most permissive and local inhibition is at its nadir — whereas retrieval and consolidation dominate the descending phase (Lisman & Jensen, 2013; Axmacher et al., 2010). Restricting spotlight changes to the trough prevents incoming sensory inputs from fragmenting memory arrays that are actively being refreshed during other phases, grouping saccadic jumps into periodic windows and preventing continuous distractors from breaking down persistent working memory tracks.
This temporal organisation draws on the functional division of gamma rhythms established by Colgin (2016). Slow gamma (~25–50 Hz) coordinates top-down transmission from upstream prefrontal goal representations; fast gamma (~60–80 Hz) routes bottom-up sensory streams. By restricting spotlight movements to the theta trough, the architecture makes the model's capacity-limited working memory ring directly interpretable as a theta-nested gamma multiplexing architecture: each slot corresponds to one gamma burst window within the active theta cycle, and high-priority items are encoded at the deepest trough (slot 1) — the phase most resistant to interference from the inhibitory peak.
The CFC strip beneath the Yerkes-Dodson bar shows a live scrolling theta waveform at 6 Hz. The waveform turns gold at each trough; the saccade-gate dot (cfcDot) pulses simultaneously. The θ-γ Locked badge enters its luminous purple state when a trough has been active within the last 90 frames, showing that the system is within a CFC-organised encoding window. The stats bar CFC readout switches from "-free" to "-lock" and turns amber. Between troughs the wander interval is visibly extended: spotlight saccades cluster rhythmically, appearing to "breathe" at theta frequency rather than moving continuously, matching the microsaccade periodicity (~150–200 ms inter-saccadic interval) observed in human fixation-period recordings.
The same critique pattern applies here as to Laws I and II, but the fix is even more direct, because the underlying relationship is already a bare mathematical ratio rather than a biophysical threshold in need of generalisation. The specific numbers — a 167 ms theta cycle, a 25 ms gamma cycle, a sin(2πf_θt) < -0.90 logic gate — are one species' particular oscillatory parameters, not the principle itself. Generalised across any oscillatory information-processing system:
Principle of Temporal Binding Capacity: In any oscillatory information-processing system, the maximum number of distinct item representations (Nmax) that can be concurrently multiplexed within a single processing window is bounded by the ratio of the carrier period (τslow) to the minimum temporal separation required for signal distinctness (τfast):
Nmax ≤ τslow / τfast
This is now a dimensionless statement about wave mechanics: it makes no claim about theta or gamma specifically, and would apply equally to any two-tier oscillatory multiplexing scheme in any species or any artificial system, provided a slow carrier and a fast sub-cycle exist and must remain phase-distinguishable (Buzsáki, 2006). Human cortex, under this reading, is simply the specific system where τslow ≈ 167 ms and τfast ≈ 25 ms, giving a theoretical capacity of Nmax ≈ 6.67 (≈ 7 items). The current implementation's 4–7 clamp reflects persistent empirical disagreement about human working-memory capacity (Cowan 2001: 4±1; Miller 1956: 7±2) rather than uncertainty in the underlying ratio — this clamp is protective vagueness, permitting the framework to accommodate both empirical traditions while committing to neither.
A mature formulation of the principle would predict a specific capacity (≈ 6–7 for human parameters) and accept revision if independent behavioural estimates converge otherwise. The current 4–7 clamp is therefore an acknowledged hedging strategy until the empirical consensus stabilises. The ratio itself — Nmax ≤ τslow/τfast — is the principle; the 4–7 clamp is the engineering accommodation to an unresolved empirical debate.
⚠️ Empirical Accommodation: The 4–7 clamp reflects unresolved debate between Cowan (2001: 4±1) and Miller (1956: 7±2), not uncertainty in the ratio. A genuine Law commits to a specific prediction. The framework's current position is: the ratio predicts ≈ 6–7; future empirical work will determine whether this is accurate or whether human oscillation parameters differ from the assumed values.
The critique that the working-memory slot count was previously "a static, hardcoded frontend capacity array" — new Array(4).fill(null), entirely disconnected from any oscillator frequency named elsewhere in the documentation — is accurate, and has been addressed directly. workingMemory.slots is now sized by getDynamicCapacity(thetaHz, gammaHz), which computes floor(thetaPeriod / gammaPeriod) from two named, adjustable frequency constants (THETA_HZ = 6, GAMMA_HZ = 40), clamped to the empirically-supported 4–7 range. The capacity the interface displays is now a live consequence of §P-III.4's ratio rather than a magic integer sitting beside it in the documentation.
What this update does not do, and should not be mistaken for: it does not simulate two coupled noisy oscillators and derive the ceiling from their phase decoherence, which would require modelling jitter and drift between independent theta and gamma generators explicitly (Buzsáki, 2006). getDynamicCapacity() evaluates the ratio directly from two frequency constants — a live computation, but still a direct evaluation of §P-III.4's formula rather than an emergent demonstration of why the ceiling exists from first-principles wave interference. The gap this revision closes is "the ratio is computed, not hardcoded"; the gap that remains, honestly, is "the ratio is asserted from constants, not derived from simulated oscillator collision." A more rigorous future implementation would model fθ and fγ as two independent noisy oscillators and derive the capacity ceiling empirically from where their relative phase becomes unrecoverable, rather than reading it off two fixed frequency constants as done here.
Revised, post-review assessment:
| Assessment | Score | Basis |
|---|---|---|
| Original self-assessment (as literal code) | 4.7 / 5.0 | Rewards the Lisman & Jensen / Colgin / Axmacher grounding and the Miller 7±2 derivation; includes Buzsáki 2006 for the broader oscillatory framework |
| Independent critique (as literal code) | 3.2 – 4.5 / 5.0 | Same grounding; marked down where the hardcoded logic gate is presented as though the ceiling emerges natively rather than being asserted (§P-III.5); marked up in reviews that recognised the ratio itself as close to a universal, species-independent physical law |
| Reformulated (threshold-free ratio, §P-III.4) | 4.0 / 5.0 | Consistently rated the strongest candidate for genuine Law status across every independent review consulted — the ratio Nmax ≤ τslow/τfast is dimensionless, falsifiable across species via electrophysiology, and requires no reference to this codebase at all |
| Terminologically corrected + competing citations (§P-III.1c) | 3.8 / 5.0 | "Inescapable law of wave mechanics" replaced with "architectural upper-bound constraint (τ_slow / τ_fast)" — accurately describes the relationship as a bound, not a determinant. "Biophysically precise" replaced with "biophysically plausible (parameterized from published ranges)" — honest and still strong. The addition of competing positions (Lundqvist, Panichello, Cowan, Ma) shows awareness of the debate and frames the Lisman adoption as a principled engineering choice, not an uncritical truth claim. The downgrade from Law to Principle reflects the unresolved mechanism debate — a component whose core mechanism is actively contested does not meet the bar for an inescapable Law. |
Adopted score: 3.8 / 5.0. This reflects the active, ongoing contestation of the Lisman hypothesis. The formula Nmax ≤ τslow/τfast is an inequality constraint (an upper bound), not an equation that predicts actual capacity. The actual capacity could be much lower (4 items if only 4 γ slots are used, or 1 item if attention is fully focused). The terminology correction ("architectural upper-bound constraint") accurately describes this relationship. The competing citations in §P-III.1c demonstrate scholarly awareness of the debate and frame the framework's adoption as a principled choice, not an uncritical truth claim.
§P-III.4's ratio Nmax ≤ τslow/τfast is the framework's most directly testable claim, since it requires no reference to this codebase's specific implementation at all:
These are precisely the kind of predictions the §P-III.5 "hardcoded gate" simplification cannot itself generate — a fixed logic gate asserts the ceiling but does not predict how it would shift under the manipulations above. The v68 implementation, with its strict phase-locked gating and live ratio computation, is now substantially closer to a testable instantiation of these predictions.
Summary caveat: Principle III provides a biophysical constraint that any WM theory must satisfy, not a "solution" to the 7±2 mystery. It doesn't explain why WM capacity varies across individuals, tasks, and development stages. The real impact is in providing a computational implementation of a known constraint, not in resolving the 7±2 debate itself.
The classic Yerkes-Dodson inverted-U between arousal and performance is treated here as a structural consequence of the biphasic kinetics of catecholamine receptors in dorsolateral prefrontal cortex. At low LC/NE and VTA/DA tone (hypo-arousal), receptor occupancy is too sparse to sustain recurrent pyramidal firing against background noise — a diffuse, low-gain field. At moderate, task-locked tone (optimal arousal), high-affinity α2A and D1 receptors close HCN channels and sharpen NMDA-mediated recurrent firing, carving a crisp focus zone with a deep lateral-inhibition well. At high tone (hyper-arousal), lower-affinity α1/β1 receptors and over-saturated D1 kinetics invert the signalling cascade, flooding cAMP, forcing HCN channels open, and uncoupling the prefrontal network from its own recurrent loops (Arnsten, 2011).
Low (Hypo) Optimal (Eustress) High (Hyper) Diffuse, low gain Crisp focus, deep well Uncoupled, noisy shuntFactor = 1.0 shuntFactor = 1.0 shuntFactor 0.05
Mapping into the model: The global neuromodulatory gain γ scales shuntFactor, the amplitude term on the inhibitory ring of the DoG Mexican Hat filter. As γ exceeds ≈0.80, the inhibitory surround visibly shrinks and heat diffuses radially outward — the canvas rendering of Arnsten's (2011) prefrontal disconnection under hyper-arousal. The Yerkes-Dodson status bar tracks the system's live position on this curve.
Known limit — area-wide phenotypic homogeneity: A related mechanism elsewhere in the codebase applies Izhikevich firing-type presets (RS, FS, IB, CH, LTS) as global multipliers on the entire field simultaneously, rather than as a localised interplay between distinct, co-located cell populations. Cortical computation depends on the tight, spatially-interleaved cooperation between excitatory pyramidal cells and inhibitory interneurons of different types at the same location; forcing the whole simulated field into a single global "phenotype" at a time is a simplification that trades this local heterogeneity for tractability. It reproduces the right qualitative gain shifts (sharper vs. more diffuse fields) without the underlying cell-type-specific microcircuitry that produces them biologically. This is acknowledged rather than papered over, and is the primary reason this Extension is scored below the two retained Laws.
Formal statement: Every coordinate cell's effective output is gated by two coupled Tsodyks-Markram parameters — fractionally available transmitter stores (R) and calcium-utilisation efficiency (u). Continuous activation depletes R, taxing high-frequency processing and forcing even the most stable Law I attractor to eventually starve and release the spotlight into transitive flight:
Output_i = Heat_i (R_i u_i) dR_i/dt = (1-R_i)/t_rec - u_i R_i d(t) dU_i/dt = (U-u_i)/t_facil + U(1-u_i)d(t) High-freq input R0 Output collapses Lyapunov well flattens transitive flight
This is the fast-timescale mechanism that dynamically flattens Law I's ω‑stability potential field (§I.3): fresh resources (R≈1.0) sustain the deep basin; depleted resources (R→0) collapse it, even while raw accumulated heat remains high — the difference between a vortex that is structurally "alive" but dynamically "starved." James's (Ch. IX) distinction between substantive resting-places and transitive flights of passage maps directly onto full-R and depleted-R states respectively, and this rhythm couples to Law II: if stamina is simultaneously low, the transitive flight cannot resolve cleanly, and the spotlight wanders turbulently rather than executing a clean saccade to fresh ground.
Known limits: As with Principle II, the Tsodyks-Markram equations here govern a scalar field value at a canvas coordinate rather than a directed, weighted synapse between two specific neurons — without axonal-dendritic wiring, this is a spatial-heuristic use of STP's mathematics, not a literal synaptic implementation. Separately, all cells share uniform rate constants (τrec, U, τfacil), while biological STP parameters vary enormously by synapse type and region (facilitating thalamocortical inputs vs. depressing cortical recurrent collaterals behave qualitatively differently). Both simplifications are made for tractability at 60 FPS and are named rather than concealed. Score 3.5/5.0.
Formal statement. The geometry of the attentional field (DoG), the temporal pacing of saccades, and the cost topology of Expected Value of Control are jointly modulated by a continuous Channel axis λ ∈ [0, 1] representing the ecological demands of the task environment. At λ = 0 (Quiet), the system enters a regime of narrow, deep, uni-modal attention with sustained top-down control cost. At λ = 1 (Loud), the system enters a regime of broad, shallow, multi-modal attention with low control cost but high switching cost. The critical contribution is that both channels obey Law II — the difference lies not in whether a cost is paid, but in which cost is paid and how it accumulates.
Mapping to Kahneman's Dual-Process Theory: The Quiet/Loud axis operationalises the phenomenological distinction between effortful, endogenous control (System 2; Kahneman, 2011) and automatic, exogenous capture (System 1) at the level of spatial attentional geometry. The Quiet channel (λ → 0) forces engagement of the Task-Positive Network and sustained Mode 2 effort, corresponding to the slow, deliberate, capacity-limited System 2. The Loud channel (λ → 1) leans on the Salience Network and Mode 3 autonomous capture, corresponding to the fast, automatic, effortless System 1. This mapping is not merely a label; it is implemented through distinct parameter regimes (fixation durations, control costs, STP dynamics, θ-gating strictness) that produce the behavioural signatures of each system. The framework thus provides a biophysical and thermodynamic substrate for Kahneman's dual-process taxonomy, grounding it in measurable biophysical variables.
Phenomenological Motivation. The Quiet channel (e.g., reading a difficult text) presents sparse, low-salience perceptual input. Attention must be maintained entirely by top-down executive control. The inhibitory surround strengthens to suppress both external distractors and internal mind-wandering. Fixation durations lengthen to 280–480 ms, matching empirical reading data (Rayner, 1998). Working memory items are few but stable — the θ/γ ratio rises to ~0.14, supporting ~7 concurrent slots. NMDA-gated LTP has time to accumulate during each long fixation, producing durable memory traces. The Loud channel (e.g., watching an action movie) presents a dense, rapidly changing stream of high-salience events. The Salience Network is repeatedly activated, producing exogenous capture of the spotlight. Fixation durations shorten to 70–170 ms, matching empirical data on dynamic scene viewing (Smith et al., 2013). Working memory items are captured frequently but overwritten quickly — the θ/γ ratio drops to ~0.25, yielding only ~4 concurrent slots, and WM decay accelerates. LTP consolidation is weaker per item because each fixation is too brief for Ca²⁺ accumulation to cross the NMDA potentiation threshold (Jahr & Stevens, 1990). The viewer reports high arousal and stimulation but may retain little specific detail after the fact — a phenomenology well-documented in media psychology (Lang et al., 2000).
EVC Dual Cost Structure. The central theoretical contribution of Extension III is the bifurcation of Law II's Expected Value of Control into two orthogonal cost components:
This formulation resolves a conceptual problem that flat stamina-drain multipliers cannot: the question of whether loud attention is "effortful" or "effortless." The answer is both, but in different currencies. Loud attention is effortless in the sense that the environment drives the spotlight — C_control = 0.18 means the system expends little voluntary effort on target selection. But it is effortful in the switching currency — each exogenous capture event carries a penalty of C_switch · Δ_switch = 1.70 · Δ_switch, and during a fast-cut action sequence with ~5 captures/second, the switching drain can exceed what quiet reading's control drain would produce.
Two empirically testable predictions:
Prediction 1 (Switching Burnout). In the Loud channel, stamina depletion rate should correlate with the rate of salient events, not with time-on-task per se. A loud environment with few salient events (e.g., a slowly panning landscape shot) should preserve stamina better than a quiet environment that requires constant re-orientation (e.g., searching a cluttered but static display).
Prediction 2 (Control Collapse Asymmetry). Gating failure (Load Theory, Lavie et al., 2004) should manifest differently in each channel. In the Quiet channel, gating failure causes internal distractor intrusion (DMN mind-wandering) because the control cost can no longer be sustained. In the Loud channel, gating failure causes external distractor intrusion because the switching cost overwhelms the inhibitory surround.
Two Laws, three Principles, and three Extensions now form the framework's regulatory architecture. Law I explains how thoughts are born and held by attractor physics. Law II explains why they must eventually die under metabolic conservation. Principle I provides the spatial canvas on which the two Laws become visible and mutually legible — a design choice, honestly labelled as one. Principle II prevents pathological crystallisation by flipping oversaturated attractors from LTP to LTD. Principle III provides the temporal multiplexing architecture that serialises parallel neural activity into ordered sequence — a profound architectural insight, honestly scoped as a contested hypothesis. Extension I shapes the global gain on the system according to the Yerkes-Dodson inverted-U. Extension II paces the local rhythm of formation and dissolution at the sub-vortex level. Extension III bifurcates the EVC cost topology into control and switching currencies. The two Laws carry the framework's strongest scientific claims; the Principles and Extensions are retained as useful, honestly-scoped architectural choices rather than claims to physical necessity.
+------------------------------------------------------------------------------+
THE ATTENTIONAL FRAMEWORK MATRIX (POST-REVISION, v68)
+------------------------------------------------------------------------------+
THE TWO LAWS (inescapable constraints)
+--------------------------------+ +--------------------------------------+
LAW I — Attractor Topology LAW II — Resource Constraint
Adopted Score: 4.2 / 5.0 Adopted Score: 4.2 / 5.0
Validity: 4.0, Impact: 4.5 Validity: 4.0, Impact: 4.5
ω-stability basin (vorticity) EVC withdrawal → structural collapse
CANN — Amari 1977 EVC-vs-ego-depletion honestly named
Krasnow-tradition validated Bridges EVC + Load Theory
Canvas Problem & ω-terminology Causally coupled (not identical)
caveats acknowledged Clinical metaphors unvalidated
+--------------------------------+ +--------------------------------------+
Status: 🟡 Computational Metaphor Status: 🔵 Mechanistic Hypothesis
| couple bidirectionally |
PRINCIPLES & EXTENSIONS (chosen strategies, honestly scoped)
+--------------------------------+ +--------------------------------------+ +--------------------------------+
PRINCIPLE I — Field Continuity PRINCIPLE II — BCM Homeostasis PRINCIPLE III — θ-γ CFC
Score: 3.4 / 5.0 (was former Score: 3.3 / 5.0 Score: 3.8 / 5.0 (was Law III)
Law III)
2D canvas = design choice Non-synaptic scalar field N_max ≤ τ_slow/τ_fast (dimensionless)
DoG-on-pixels category caveat not literal synaptic plasticity Contested mechanism (Lundqvist,
+--------------------------------+ +--------------------------------------+ Panichello, Cowan, Ma)
Conditional validity warning
Implementation: asserted from constants
Status: 🔴 Contested Hypothesis
+----------------------------------+ +----------------------------------+
EXTENSION I — Yerkes-Dodson EXTENSION II — STP Dynamics
Score: 3.6 / 5.0 Score: 3.5 / 5.0
Global gain modulator Local ω‑stability‑flattening engine
Phenotypic-homogeneity caveat Uniform-rate-constant caveat
+----------------------------------+ +----------------------------------+
+----------------------------------+
EXTENSION III — Loud/Quiet Channels
Score: 4.4 / 5.0
EVC dual-cost bifurcation
Law I · Law II · Principle III
Operationalises System 1/2
+----------------------------------+
An earlier, deliberately unsparing external review scored the original five Laws as a set at 2.0 / 5.0, concluding that the framework "uses the language of premium cognitive psychology but compiles as a fluid-particle sandbox game." That verdict was fair as a critique of the five-Law framing taken as a whole, and it is not retracted here. The revision in this section does not dispute that score by arguing the original code was better than the critique claimed; it responds to the critique by doing what the critique itself recommended: removing the weakest components rather than defending them, reformulating the survivors to state their claims independent of any specific hardcoded threshold, and honestly downgrading contested mechanisms to Principles.
The result — an adopted aggregate of 4.2 / 5.0 across Laws I–II, up from 3.93 and approaching the original 4.53 — reflects the incorporation of the substantive fixes: (1) terminological corrections (ω‑stability, causal coupling, upper‑bound constraint), (2) competing citations in Principle III, (3) mathematical definitions for Laws I and II, (4) epistemic status labels, and (5) the honest downgrade of Law III to Principle III. The reduction from the original 4.53 to the current 4.2 (for the two Laws) is not a defeat but a correction: the Lyapunov terminology is now replaced with ω‑stability, the Canvas Problem is given its proper weight, the EVC implementation gap is named explicitly, the clinical metaphors are framed as hypothesis-generating rather than validated, and the contested nature of the θ-γ mechanism is now honestly scoped as a Principle rather than a Law. The aggregate should be read as: of the claims this framework makes, its two strongest now average 4.2, with the caveat that this score reflects the framework's strengths while honestly accounting for its limitations.
Aggregate validity, Laws I–II only: 4.2 / 5.0 (adopted). Aggregate validity, all eight retained components (two Laws, three Principles, three Extensions): approximately 3.8 / 5.0, a figure this section considers the more representative single number for the framework as a whole, since it does not silently exclude the Principles and Extensions the system still depends on to run.
The two retained Laws were not selected merely because each scored acceptably in isolation; they were retained because they form a closed, non-redundant coupling — each necessary, none sufficient alone, in a way the removed components did not participate in as tightly. The table below states their coupling explicitly, extending the Law I–Law II coupling already detailed in §II.7:
| Coupling | Direction | Mechanism |
|---|---|---|
| Law I ↔ Law II | Bidirectional | Adaptive vortices (Mode 3 Autonomous Recapture) drop Law II's EVC cost toward zero; maladaptive vortices drain stamina faster than recovery, triggering the gating-failure cascade that strips Law I of its inhibitory wall (§II.7 gives the full bidirectional trace). |
| Principle III → Law I | One-directional (temporal gates spatial) | Autonomous saccade selection is phase-locked to the theta trough (§Principle III.2); Law I attractors can only be populated with fresh routing targets during these gated windows, meaning Law I's spatial dynamics are metered by Principle III's temporal clock rather than free-running. |
| Principle III → Law II | One-directional (temporal gates metabolic) | Because saccade-driven exploration is restricted to theta-trough windows, the rate at which Law II's EVC cost accrues is itself paced by Principle III — a system with a faster or slower theta rhythm would drain and recover stamina on a correspondingly different schedule, even with identical Law II parameters. |
| Law I & Law II → Principle III | Constraint, not causation | Principle III's capacity ceiling determines how many Law I attractors can be actively maintained at once and how quickly Law II's resource pool must service them; Laws I and II do not feed back to alter Principle III's oscillatory periods themselves, keeping the temporal clock the one truly independent axis in the system. |
This is the structural argument for exactly two fully-scored Laws rather than three: Law I alone describes spatial topology with no account of either its metabolic cost or its temporal pacing; Law II alone describes resource conservation with no account of what shape the conserved resource takes or when it can be spent; Principle III alone describes a temporal ceiling with no account of what fills the slots it creates or what it costs to fill them. None of the three, read in isolation, produces the framework's characteristic behaviours — flow, rumination, burnout — documented in §I.7 and §II.6. All three together combine to produce the previous effects.
Three specific, named gaps previously separated each retained Law's adopted score from a clean 5.0. This revision closes part of each, without pretending to close all of them: Law I's vortexT is now a live statistical proxy recomputed each frame from the field's own energy landscape rather than a single hand-set constant (§I.11), though the mixing coefficient and clamp band remain tuned, not measured; Law II's DoG surround and saccade-override gate now scale continuously with stamina rather than snapping at a fixed 30% boundary (§II.11), though the underlying drain rate itself is still constant rather than EVC-proportional (§II.9); Principle III's working-memory capacity is now a live computation from named theta/gamma frequency constants rather than a bare hardcoded integer (§Principle III.5), though it still evaluates the ratio directly rather than deriving it from simulated oscillator decoherence. None of these were trivial changes, and none is claimed to be complete — each section above states precisely what moved from "asserted" to "computed," and what remains asserted still. That precision, updated alongside the code rather than left to drift from it, is the ongoing deliverable of this document.
Post-review summary: The framework's two Laws have genuine scientific value — Law I's CANN grounding and Law II's EVC-Load Theory bridge are both legitimate contributions. The five fixes applied (terminology corrections, competing citations, mathematical definitions, epistemic status labels, and the honest downgrade of contested mechanisms) have raised the aggregate validity to 4.2 by replacing implicit overclaiming with explicit bounded claiming. Law I now says "ω‑stability basin" instead of "Lyapunov"; Law II now says "causally coupled" instead of "exact same event"; the former Law III now says "architectural upper‑bound constraint" instead of "inescapable law" and acknowledges the contested status of the Lisman hypothesis with four competing citations. The framework remains a valuable computational exploration of attentional dynamics — and its claims are now more precisely bounded, its limitations more honestly stated, than in previous revisions.
The attentional framework presented here is not an end in itself. Its value lies in its capacity to generate testable hypotheses, inform the design of interventions, and provide a computational lens through which to reinterpret a wide range of psychological and clinical phenomena. This section identifies the most urgent real‑world issues addressable by the two Laws and their auxiliary Principles, selected based on three criteria:
⚠️ Epistemic Status of This Section
Every application described below is a hypothesis generated from the model's internal logic, not a validated clinical prediction. The framework is a computational metaphor grounded in established theories (EVC, Load Theory, CANN dynamics, θ‑γ coupling), but none of its parameters have been fitted to human behavioural or neuroimaging data. The applications are presented here because they are specific enough to be falsified — which is the minimum requirement for a scientific hypothesis — not because they have been confirmed.
Three levels of confidence are distinguished throughout:
Scale: Over 5 billion people use the internet globally (ITU, 2024). The average knowledge worker checks email or messaging applications approximately 77 times per day (Radicati Group, 2023), switches tasks every 47 seconds during computer‑based work (Mark et al., 2008), and reports persistent subjective "brain fog" despite no clinical diagnosis. This constitutes a civilisation‑scale attentional challenge that existing public‑health approaches address inadequately because they target symptoms rather than dynamics.
Why existing approaches are insufficient: Current interventions are built on implicit models of attention that the framework's Laws challenge:
| Current Approach | Implicit Model | Why the Framework Predicts Failure | Confidence |
|---|---|---|---|
| Screen time limits, willpower coaching | "Attention is a depletable resource — refill it with rest" | Law II (EVC) says stamina reflects opportunity cost, not fuel depletion (Shenhav et al., 2013; Kurzban et al., 2013). Willpower advice tells people to "try harder" at exactly the moment the cost‑benefit calculation rationally favours disengagement. The intervention targets the wrong variable. | 🟢 Grounded |
| Mindfulness‑based attention training | "Attention is a spotlight — train yourself to point it better" | Law I (attractor topology) predicts that when high‑salience digital stimuli create deeper ω‑stability basins than the target task, effortful re‑direction (Mode 2) loses to autonomous recapture (Mode 3) regardless of training quality. The field topology, not the spotlight operator, determines capture (Awh et al., 2012). | 🟡 Plausible |
| Digital detox (complete removal) | "Remove the stimulus and attention recovers" | Principle III (θ‑γ capacity) predicts that chronic fragmentation degrades phase‑amplitude coupling, and this degradation does not reverse instantly upon stimulus removal. Recovery requires active restoration of neuromodulatory baseline, not mere absence of distraction (Lisman & Jensen, 2013). | 🟡 Plausible |
The framework predicts a specific dynamical sequence through which digital environments degrade sustained attention. This sequence involves the interaction of all three governing components and cannot be produced by any single component alone:
┌──────────────────────────────────────────────────────────────────────┐ │ │ │ PHASE 1 — Initial engagement │ │ User opens work task. Law I: Mode 2 effortful vortex forms. │ │ Law II: stamina adequate; DoG surround at full radius. │ │ Principle III: θ‑γ coupling intact; WM capacity ~6–7 slots. │ │ │ │ PHASE 2 — First capture event │ │ Notification arrives (high‑salience exogenous stimulus). │ │ Law I: Mode 3 autonomous recapture — attention shifts │ │ WITHOUT effortful decision. The attractor field topology │ │ pulls the spotlight; the user experiences "I just looked." │ │ │ │ PHASE 3 — Accumulating cost │ │ Each switch depletes stamina (Law II). │ │ taskValue for original task DECAYS during distraction. │ │ drain rate INCREASES: drain ∝ 1/(1 + k·taskValue). │ │ Extension III: each capture event incurs switching cost │ │ (C_switch · Δ_switch), accumulating in the SwitchCost buffer. │ │ │ │ PHASE 4 — Inhibitory collapse │ │ Stamina decline weakens DoG surround (Law II → Law I coupling). │ │ dogSurroundScale drops continuously (not binary). │ │ Inhibitory ring narrows → NEXT notification captures │ │ at greater distance → faster drain → faster collapse. │ │ │ │ PHASE 5 — Temporal degradation │ │ After sustained cycling (~15–25 min, depending on salience │ │ density; consistent with Mark et al., 2008): │ │ Law II: stamina below critical threshold. │ │ Principle III: reduced ACh/DA tone → weakened γ power → │ │ θ‑γ coupling degrades → WM capacity drops from ~7 to ~3–4. │ │ User cannot hold task context → "what was I doing?" │ │ │ │ PHASE 6 — Fragmentation equilibrium │ │ User reports: "brain fog," "can't focus," "I keep scrolling." │ │ This is NOT a character flaw. It is the predicted steady state │ │ of a system operating in a high‑salience environment with │ │ insufficient recovery windows (Extension III: Loud channel │ │ with chronic switching‑cost accumulation). │ │ │ └──────────────────────────────────────────────────────────────────────┘
Novel prediction: The framework predicts a specific time‑to‑fragmentation that varies with environmental salience density and individual baseline stamina:
t_fragment ≈ stamina₀ / (drain_rate × salience_density / (1 + k · taskValue₀)) Predicted values (pending empirical validation): High‑salience environments (social media, multi‑tab): ~15–25 minutes Moderate‑salience environments (email, messaging): ~40–60 minutes Low‑salience environments (deep reading, single‑task): ~90–120 minutes Empirical anchor: Mark et al. (2008) observed average task duration of ~11.5 minutes before switching in office environments; Mark et al. (2018) observed increased switching frequency over time. The framework provides a mechanistic explanation for WHY these times differ across contexts, not merely that they do. Confidence: 🟡 Plausible — the directional prediction is grounded in EVC theory; the specific numerical values require parameter fitting.
Each intervention below targets a specific component of the fragmentation cycle. The framework predicts that interventions targeting only one component will be insufficient; effective intervention must address the interaction between components.
| Target | Intervention | Mechanistic Basis | Confidence |
|---|---|---|---|
| Law I (attractor topology) | Salience‑field restructuring: Batch‑process notifications (disable real‑time push; check at fixed intervals). This does not remove stimuli — it reduces their attractor topology so they cannot trigger Mode 3 recapture between check‑ins. | If the notification's ω peak remains below the field's inflection threshold during focus periods, autonomous recapture cannot trigger. Batch processing keeps notifications below threshold → no vortex to capture (Awh et al., 2012; Theeuwes, 2010). | 🟢 Grounded |
| Law II (EVC economics) | TaskValue scaffolding: Break work into micro‑goals with explicit completion markers. Each completion event injects taskValue into the stamina equation, counteracting drain: drain = base_drain / (1 + k·taskValue). |
taskValue accumulation reduces effective drain rate. Micro‑goals with visible completion markers function as taskValue injection events that keep the EVC inequality positive for longer (Shenhav et al., 2013). | 🟢 Grounded |
| Principle III (temporal capacity) | Temporal rhythm alignment: Structure focus periods in blocks matched to individual attention span (~25 min for most adults), with genuine disengagement during breaks. The break must involve low‑cognitive‑demand activity, not task‑switching to a different digital task. | WM capacity degrades as neuromodulatory tone drifts during sustained effort. Breaks allow partial restoration of ACh/DA baseline → partial restoration of θ‑γ coupling → partial WM recovery (Lisman & Jensen, 2013). Note: the specific block duration is an empirical parameter, not a theoretical prediction. | 🟡 Plausible |
| Extension III (channel economics) | Channel‑appropriate environment design: Recognise that digital work environments are inherently Loud‑channel (high salience density, frequent capture events). Design work practices that account for switching costs rather than pretending they are zero: batch communications, protect extended Quiet‑channel blocks for deep work, and track SwitchCost as a legitimate workload metric. | Extension III's dual‑cost structure predicts that Loud‑channel work depletes stamina via switching cost even when control cost is low. Treating switching as "free" systematically underestimates cognitive load (Lang et al., 2000; Monsell, 2003). | 🟡 Plausible |
Scale: Approximately 366 million adults worldwide meet criteria for ADHD (Song et al., 2021, Molecular Psychiatry). The DSM‑5 diagnoses ADHD as a single categorical entity based on symptom counts (≥6 symptoms of inattention and/or hyperactivity‑impulsivity). Yet stimulant medication produces clinically meaningful response in approximately 70% of patients, partial response in ~15%, and no response in ~15% (Faraone et al., 2021). This heterogeneity in treatment response suggests that "ADHD" may encompass multiple mechanistically distinct conditions that the current diagnostic category conflates.
The framework's contribution: The two Laws and Principle III predict three dissociable failure modes, each corresponding to a different component of the attentional architecture. These are presented as candidate mechanistic hypotheses requiring empirical validation, not as established subtypes.
| Candidate Mode | Component | Hypothesised Mechanism | Predicted Presentation | Predicted Treatment Profile | Confidence |
|---|---|---|---|---|---|
| A: Control‑Cost Deficit | Law II (EVC) | The EVC calculation systematically returns negative expected value for low‑reward tasks: the cost of maintaining control exceeds the anticipated reward. Stamina is not structurally impaired; the cost‑benefit ratio is. | Inattentive presentation: cannot sustain focus on low‑interest tasks, easily distracted, forgets instructions. Performs well on high‑interest or high‑reward tasks (hyperfocus). | Stimulants may partially help (↑ DA → ↑ perceived reward) but do not address the core EVC evaluation deficit. Reward‑based interventions (contingency management, gamification, interest‑based learning) should produce larger effects than stimulants alone. | 🟡 Plausible |
| B: Attractor Instability | Law I (attractor topology) | ω‑stability basins are too shallow to sustain Mode 2 voluntary attention. Attention drifts spontaneously to any salient stimulus via Mode 3 capture, even when motivation and stamina are adequate. | Hyperactive/impulsive presentation: rapid attention shifts, difficulty staying on task, acts without apparent forethought. Not a motivation problem — an attractor‑depth problem. | Stimulants should respond well: ↑ catecholamine tone → deeper attractor basins → more stable voluntary attention (Arnsten, 2011). This is the "classic" stimulant‑responsive ADHD. | 🟢 Grounded |
| C: Temporal Binding Deficit | Principle III (θ‑γ capacity) | θ‑γ phase‑amplitude coupling is disrupted → effective WM capacity drops below the task's sequencing demands → cannot hold multi‑step instructions in mind even when motivated and not distracted. | "Working memory" presentation: follows instructions for 2–3 steps then loses the sequence, makes careless errors in multi‑step procedures, needs repetition. May not show classic hyperactivity or distractibility. | Stimulants may improve WM span (↑ DA → ↑ γ coherence) but the improvement is specifically in sequencing capacity, not in distractibility or impulsivity. WM‑targeted training may be more effective than behavioural modification. | 🔴 Speculative |
Key prediction: If these three modes are genuinely dissociable, then stimulant non‑responders should be enriched for Mode A (EVC deficit) — their core problem is not attractor stability or WM capacity (both of which stimulants address), but the evaluation of whether control is worth maintaining. This prediction is falsifiable: if stimulant non‑responders show the same distribution of EVC, attractor, and WM deficits as responders, the subtyping hypothesis is disconfirmed.
A three‑test battery could, in principle, dissociate the candidate modes. This battery is proposed as a research instrument, not a clinical diagnostic tool. It has not been validated against any clinical population.
| Test | Measures | Component Probed | Mode Indicator |
|---|---|---|---|
| Sustained Attention to Response Task (SART) with time‑on‑task analysis | Commission errors as a function of task duration | Law II (stamina/gating threshold) | Errors increase sharply after ~10 min → Mode A (EVC withdrawal over time) |
| Anti‑saccade task with varying inter‑stimulus intervals | Reflexive saccade rate; ability to maintain voluntary fixation | Law I (attractor stability) | High reflexive saccades even at short intervals → Mode B (shallow attractor basins) |
| Digit span backward + operation span under dual‑task load | WM sequencing capacity under interference | Principle III (θ‑γ binding capacity) | Span ≤3 under all conditions, intact attention otherwise → Mode C (temporal binding deficit) |
Critical caveat: ADHD is a neurodevelopmental condition with substantial genetic, structural, and environmental contributors that this framework does not model. The candidate modes above are computational abstractions that may capture one dimension of the heterogeneity. They do not account for comorbidity (anxiety, learning disabilities, autism spectrum), developmental trajectory, medication history, or the substantial role of environmental accommodation. This subtyping proposal is a research hypothesis requiring prospective validation in clinical samples, not a clinical recommendation.
Scale: The WHO included burnout in ICD‑11 (2019) as an occupational phenomenon. Prevalence estimates vary widely by profession: ~40–50% among healthcare workers (Rotenstein et al., 2018), ~35% among technology workers, and ~25–30% among military personnel (Hoge et al., 2007). Current interventions are predominantly symptomatic (rest, therapy, workload reduction) without a mechanistic model of what is failing in cognitive architecture.
The framework's contribution: Most fatigue models treat cognitive impairment as a single dimension (energy level). The framework predicts that burnout involves two distinct but interacting failures — one in Law II (EVC/stamina) and one in Principle III (temporal binding/WM) — whose interaction produces a qualitatively different state from ordinary tiredness.
| Phase | Mechanism | Component | Subjective Experience | What Standard Models Miss |
|---|---|---|---|---|
| 1: EVC reversal | The expected value of maintaining control drops below the expected value of releasing it. Effortful control is rationally withdrawn. DoG surround narrows continuously. | Law II | "I cannot bring myself to focus on this." Avoidance, procrastination, task initiation failure. | Standard models say "tired." The framework says: the cost‑benefit calculation has reversed. This is a rational response to sustained negative EVC, not a failure of will. |
| 2: Temporal binding degradation | Reduced neuromodulatory tone → weakened γ power → θ‑γ coupling degrades → effective WM capacity shrinks from ~6–7 to ~3–4 slots. | Principle III | "I keep losing track of what I was doing." Errors in familiar procedures, forgetting steps, needing to re‑read sentences. | Standard models say "distracted." The framework says: the temporal multiplexing system has degraded. Fewer γ slots per θ cycle means fewer items can be maintained simultaneously. This is a capacity reduction, not an attention allocation failure. |
| 3: Compound interaction | Low stamina (Law II) + reduced WM (Principle III) → cannot sustain focus AND cannot hold context → even simple tasks require more resources than available → catastrophic performance decline → further EVC deterioration. | Law II × Principle III | "Everything feels impossible." The signature burnout experience: not tiredness, but overwhelm. | Standard models cannot explain why burnout feels qualitatively different from ordinary tiredness. The framework predicts: ordinary tiredness is Law II alone (low stamina, adequate WM). Burnout is Law II + Principle III (low stamina AND degraded temporal binding). The compound state is worse than the sum because each failure amplifies the other. |
Novel predictions:
| Target | Intervention | Mechanistic Rationale | Confidence |
|---|---|---|---|
| Law II recovery | EVC recalibration through intrinsically rewarding activity: Engage in activities with high intrinsic reward but low control demand (hobbies, nature, social connection, creative play). The goal is not "rest" but restoration of the expected value of alternatives (Vrelease) to a level where task‑related control becomes worth maintaining again. | During burnout, Vrelease rises (alternatives seem overwhelmingly more valuable than work). Recovery requires Vrelease to normalise, which happens through rewarding non‑work experience that reduces the perceived gap between work and alternatives (Shenhav et al., 2013). | 🟡 Plausible |
| Principle III recovery | Neuromodulatory restoration: Physical exercise (↑ BDNF, ↑ ACh), sleep optimisation (↑ slow‑wave sleep → ↑ next‑day cortical coherence), and musical engagement (rhythmic entrainment may support θ‑γ coupling). These target the neuromodulatory substrate that sustains oscillatory binding. | Nmax ≤ τslow/τfast depends on γ frequency, which depends on neuromodulatory tone. Exercise and sleep restore neuromodulatory baseline → restore γ power → restore WM capacity (Hillman et al., 2008; Walker, 2017). | 🟡 Plausible |
| Compound prevention | Stamina‑aware workload design: Schedule high‑control‑demand tasks (complex decisions, novel problem‑solving, meetings requiring active engagement) in the first portion of work sessions when stamina is highest. Schedule low‑control tasks (routine processing, familiar procedures) for later periods. Monitor for early signs of compound failure (simultaneous motivation loss AND sequencing errors). | Law II predicts a specific stamina depletion curve. Principle III predicts WM degradation as stamina drops. Workload scheduling that aligns task demand with remaining resources prevents the compound failure from initiating (Monsell, 2003). | 🟢 Grounded |
Scale: Approximately 301 million people worldwide experience anxiety disorders in a given year (GBD 2019). The core subjective complaint — "I can't stop thinking about it" — describes a specific attentional dynamic that CBT and pharmacotherapy address empirically but do not explain mechanistically at the level of attentional architecture. The framework's Laws provide a candidate mechanistic account via Law I × Law II × Principle III interaction.
Empirical anchor: Kim et al. (2023, Nature Communications, n=288 across five cohorts) demonstrated that dmPFC‑based dynamic functional connectivity predicts trait rumination. This finding is consistent with the framework's prediction that rumination involves a deep attractor basin (Law I) that autonomously recaptures attention (Mode 3) — the dmPFC hyperconnectivity is the neural signature of an over‑deepened ω‑stability basin.
Rumination is not simply "thinking about negative things." The framework predicts it is a specific dynamical configuration with three interacting components:
┌───────────────────────────────────────────────────────────────┐ │ │ │ COMPONENT 1 — Threat attractor (Law I): │ │ Deep ω‑basin → Mode 3 autonomous recapture │ │ → captures attention WITHOUT effortful control │ │ │ │ COMPONENT 2 — Stamina drain (Law II): │ │ Effortful escape attempts fail → each attempt drains │ │ → less stamina available for next attempt │ │ → EVC inequality deteriorates │ │ │ │ COMPONENT 3 — WM tunneling (Principle III): │ │ θ‑γ coupling degrades → N_max drops │ │ → ~3 slots remaining → all occupied by threat content │ │ → literally no capacity for alternative thoughts │ │ │ │ RESULT: Asymmetric attentional trap │ │ • Threat captures WITHOUT effort (Mode 3, structural) │ │ • Escape requires effort you no longer have (Law II) │ │ • Cannot hold escape plan in mind (Principle III) │ │ │ │ This is NOT "weak willpower." It is the predicted │ │ steady state of three interacting constraints. │ │ │ └───────────────────────────────────────────────────────────────┘
Novel prediction: Effective rumination interventions must address the asymmetry directly. Interventions that require the resources rumination has consumed will fail:
| Common Advice | Why the Framework Predicts Failure | Confidence |
|---|---|---|
| "Just think positive thoughts" | Requires Mode 2 effortful control (Law II: stamina depleted) + available WM slots (Principle III: all slots threat‑occupied). Both resources are unavailable during acute rumination. | 🟡 Plausible |
| "Distract yourself with activities" | Works only if the alternative activity creates a deeper attractor than the threat vortex (Law I: new ω peak > threat ω peak). Most passive distractions (TV, social media) produce shallow attractors that cannot override deep threat basins. High‑engagement activities (intense exercise, immersive creative work) may succeed. | 🟡 Plausible |
| "Challenge your thoughts" (standard CBT) | Requires WM capacity to simultaneously hold the anxious thought AND the rational counter‑thought (≥2 WM slots). During acute rumination, ~3 slots exist and all are threat‑filled. CBT literally requires cognitive resources that rumination has consumed. This predicts CBT should be more effective in prevention (before acute rumination) than in interruption (during acute rumination). | 🟡 Plausible |
| Target | Intervention | Mechanistic Basis | Confidence |
|---|---|---|---|
| Law I (attractor competition) | Create a deeper competing attractor: Do not attempt to suppress the threat vortex (it is structurally deep). Instead, engage in activities that produce ω peaks exceeding the threat basin: intense physical activity, immersive creative engagement, novel environments requiring active navigation. The attention shifts because the new attractor's field topology overpowers the threat, not because the person "chose" to shift. | Two attractors compete; the deeper one captures. Suppression is predicted to fail (Wegner, 1994: ironic process theory). Competition through a stronger attractor is predicted to succeed. This is consistent with behavioural activation research (Jacobson et al., 1996) but provides a mechanistic explanation for why activation works. | 🟡 Plausible |
| Law II (stamina restoration) | Stamina‑free engagement: Choose activities that require minimal effortful control (Mode 3 autonomous engagement): walking in nature, listening to familiar music, repetitive physical tasks, warm social contact. These drain minimal stamina while occupying attention, allowing stamina to accumulate toward the threshold where effortful redirect becomes possible again. | The EVC inequality reverses during rumination because drain exceeds accumulation. Low‑demand activities minimise drain while preventing further threat recapture, allowing gradual restoration of the cost‑benefit balance (Shenhav et al., 2013). | 🟡 Plausible |
| Principle III (WM offloading) | Externalise the counter‑argument: Write the rational response down, record it, place it on a visible card. This removes the WM‑slot requirement that makes CBT fail during acute rumination. The counter‑argument becomes perceptually available without requiring a WM slot — it enters the visual field where Law I's attractor dynamics can capture it. | During rumination, WM has ~3 slots, all threat‑occupied. A fourth slot does not exist. Externalisation converts a WM demand into a perceptual input, bypassing the capacity constraint entirely. This is consistent with research on cognitive offloading (Risko & Gilbert, 2016) but the framework provides a specific mechanistic explanation for why offloading is necessary during acute rumination specifically. | 🟡 Plausible |
Scale: The average adult spends over 7 hours per day with screen media (Ofcom, 2024). The distinction between "active" and "passive" media use is well‑established but poorly mechanised. Extension III (Loud/Quiet channel axis) provides a formal computational account of why different media produce qualitatively different cognitive outcomes, even when total screen time is equivalent.
The framework's contribution: Extension III predicts that the cognitive cost of media consumption is determined not by duration alone but by which channel the media engages and which cost currency is being paid:
| Media Type | Channel | Primary Cost | Predicted Cognitive Outcome | Empirical Anchor |
|---|---|---|---|---|
| Deep reading (book, long‑form article) | Quiet (λ → 0) | Control cost (sustained top‑down maintenance) | Few but durable memory traces; high LTP consolidation; subjective effort; good retention at delay | Rayner (1998): fixation durations 280–480 ms during reading |
| Fast‑cut video (action film, TikTok, YouTube Shorts) | Loud (λ → 1) | Switching cost (accumulated capture penalties) | Many but fleeting impressions; low LTP consolidation; high arousal; poor retention at delay; subjective stimulation without substance | Lang et al. (2000): media with high structural complexity impair information retention |
| Multitasking (reading + notifications) | Channel conflict (simultaneous Quiet demand + Loud intrusion) | Both control cost AND switching cost | Worst outcome: pays both currencies simultaneously. Predicted to be more costly than either pure Quiet or pure Loud engagement | Mark et al. (2018): multitasking increases error rates and subjective workload |
| Subtitle reading during action content | Spatial channel split (Quiet upper zone + Loud lower zone) | Cross‑channel interference | Quiet‑channel consolidation disrupted by Loud‑channel capture events crossing the spatial boundary. Predicted interference proportional to cut rate | Novel prediction — no existing empirical data; testable with eye‑tracking |
Novel prediction: Extension III predicts that "screen time" is a misleading metric because it conflates Quiet‑channel and Loud‑channel engagement. One hour of deep reading and one hour of short‑form video produce qualitatively different cognitive outcomes because they engage different channels with different cost structures. The framework predicts that interventions targeting total screen time will be less effective than interventions targeting channel composition — reducing Loud‑channel time while preserving Quiet‑channel time. (Confidence: 🟡 Plausible)
All five applications share a structural property: they involve multiple components interacting in feedback loops that single‑component approaches cannot address. The framework's contribution is not to any single finding but to the interaction structure — the prediction that effective intervention must target the specific component interaction that sustains the problem, not merely the most visible symptom.
| Issue | Feedback Loop | What Single‑Component Approaches Miss |
|---|---|---|
| Digital fragmentation | Salience capture → stamina drain → inhibition collapse → more capture | Willpower advice targets Law II only; ignores Law I's autonomous capture and Principle III's temporal degradation |
| ADHD heterogeneity | Low EVC → control withdrawal → distraction → WM overload → further EVC decline | Stimulants address attractor depth and WM but not EVC evaluation in Mode A patients |
| Burnout | Stamina depletion → WM degradation → task failure → faster stamina drain | Rest targets Law II only; ignores Principle III's persistent temporal binding deficit |
| Anxiety‑rumination | Threat capture → stamina drain → WM tunneling → cannot hold escape plan | CBT requires WM resources that rumination has consumed; ignores the asymmetry |
| Media effects | Loud‑channel engagement → switching cost accumulation → WM fragmentation → reduced consolidation | Screen‑time metrics conflate channels; ignore cost‑currency distinction |
This is the kind of mechanistic specificity that could, if validated, transform a theoretical framework from "interesting computational metaphor" into a candidate tool for intervention design. The emphasis on could is deliberate: none of these applications has been empirically validated, and the framework's utility depends entirely on its ability to survive experimental testing.
The applications above must be read against the framework's current epistemic status: a computational metaphor grounded in established theories, but not a validated biophysical model. The following limitations are structural, not incidental:
🔬 Roadmap to Empirical Validation
The transition from computational metaphor to empirically grounded tool requires a multi‑step validation pipeline. Each step below is a necessary precondition for the next. None of these steps have been completed.
This roadmap is aspirational. The framework's developers lack the clinical infrastructure to execute steps 3–5 independently. Collaboration with experimental psychologists, clinical researchers, and neuroimaging laboratories is essential. The framework is offered as an open hypothesis, not a finished product.
Note on application status: Every application described in this section is a hypothesis generated from the model's internal logic. None has been empirically validated. The framework's developers present these applications because they are specific enough to be falsified — which is the minimum requirement for a scientific hypothesis — not because they have been confirmed. The framework's ultimate utility will depend entirely on its ability to withstand experimental testing. No clinical recommendation should be derived from this section without independent empirical validation.
A framework that earns the label "theoretical" must risk being wrong. The three retained Laws and their auxiliary Principles make specific, empirically testable predictions that can be evaluated independently of this simulation — through behavioural experiments, electrophysiology, neuroimaging, or cross-species comparisons. Below we state these predictions explicitly, organised by the component that generates them.
Note on verification: None of these predictions can be tested against this browser simulation alone — they are predictions about biological cognitive systems that the simulation is modelled on, not claims the simulation could falsify about itself. Listing them here is intended to keep the theoretical framework honest: a Law that cannot in principle be wrong about anything outside its own code is not yet the kind of Law it claims to be.
The preceding sections present the theoretical framework as it aspires to exist. This section compares that theory against the actual running code in proj2_v69.html. The goal is not to claim the implementation is a perfect instantiation — it is not — but to state, component by component, exactly what is implemented, what is approximated, and what remains an acknowledged gap.
What the theory says: A Lyapunov potential field V(x) is constructed, and vortex stability is proven by showing dV/dt < 0 along trajectories, with the vortex threshold Vcrit determined by the field's own energy landscape (§I.10).
What the code actually does:
df = h > vortexT ? 0.3 : 1.0), which is a discrete CANN implementation (Amari, 1977).vortexT is recomputed every frame as a statistical inflection point of the field (mean(h) + 0.65*(max(h)-mean(h))), clamped to ±50% of a base value — partially closing the "hardcoded constant" gap (§I.11).vortexT uses a fixed mixing coefficient (0.65) and a clamp band (±50%) that are still hand-tuned for visual pacing, not derived from electrophysiological bifurcation data.Fidelity score (self-assessed): 3.6 / 5.0. The attractor dynamics are genuine and implement a CANN-style bump, but the Lyapunov terminology adds precision the code does not actually provide, and the Canvas Problem is a nontrivial representational gap.
What the theory says: Expected Value of Control (EVC) computes Vmaintain, Vrelease, and Ccontrol; the system withdraws control when Vrelease > Vmaintain (opportunity cost exceeds expected value) (§II.10).
What the code actually does:
drain = base_drain / (1 + k·taskValue) where taskValue rises during successful vortex holding or reward capture.dogSurroundScale = 0.5 + 0.5·stamFactor, replacing the previous boolean switch with a monotonic ramp (§II.11).gatingFailureActive), but the underlying geometry is now continuous.taskValue is a scalar accumulator, not a full EVC computation. The code does not compute Vmaintain, Vrelease, or a decision threshold; it uses a reward-weighted proxy.Fidelity score (self-assessed): 3.4 / 5.0. The continuous collapse ramp and reward-modulated drain are genuine improvements, but the EVC implementation remains a proxy, and the clinical metaphors are unvalidated.
What the theory says: Working-memory capacity Nmax is derived from the ratio τtheta / τgamma, and autonomous saccades are phase-locked to the deep theta trough (sin(2πfθt) < −0.90).
What the code actually does:
workingMemory.slots is sized live by getDynamicCapacity(thetaHz, gammaHz), computing floor(θ_period / γ_period) from two adjustable constants (THETA_HZ=6, GAMMA_HZ=40), clamped to 4–7 — this closes the hardcoded-capacity gap.sin(2π·6·t) < -0.90 gates macro-movements, producing realistic burst-pause dynamics.sin < -0.90 threshold is a computational approximation, not a biophysically measured parameter. No paper establishes that saccades are restricted to exactly 15% of the θ cycle; the general principle of θ-phase influence is supported, but the quantitative gate is a design choice.Fidelity score (self-assessed): 3.5 / 5.0. The live computation of capacity and the phase-locked gating are substantial improvements, but the gate parameters are not derived from measurement, and the capacity is asserted from constants rather than emerging from oscillator dynamics.
bcmTheta that tracks recent activity and drives LTD in over-active regions. However, this acts on a scalar field at canvas coordinates, not on directed synapses. The "BCM" label is a functional analogue, not a literal synaptic-plasticity rule.γ scales the DoG inhibitory amplitude, producing an inverted-U effect on focus clarity. This is implemented, but all cells share the same global gain — no local heterogeneity.R and u per cell and gates heat deposition with their product R·u. However, all cells share uniform TM rate constants, whereas biological STP parameters are highly heterogeneous.| Component | Core Theory Claim | Code Implementation | Fidelity (1‑5) | Gap Summary |
|---|---|---|---|---|
| Law I | Lyapunov attractor basin | Vorticity‑based bump with adaptive threshold | 3.6 | No V(x) constructed; dV/dt not proven; Canvas Problem |
| Law II | EVC cost‑benefit control | Reward‑modulated drain + continuous collapse ramp | 3.4 | Proxy accumulator, no Vmaintain/Vrelease, unvalidated clinical metaphors |
| Law III | θ‑γ ratio determines capacity | Live ratio evaluation + phase‑locked gate | 3.5 | Constants not derived from oscillators; gate threshold is design choice |
| Principle I | 2D spatial substrate | Full implementation | 5.0 | No gap (design choice, not a mechanistic claim) |
| Principle II | BCM metaplasticity | Sliding threshold on scalar field | 2.8 | No synaptic structure; functional analogue only |
| Extension I | Yerkes‑Dodson gain curve | Global γ modulation | 3.2 | Uniform gain across field; no local heterogeneity |
| Extension II | TM short‑term plasticity | Per‑cell R·u gating | 3.0 | Uniform rate constants; non‑synaptic field |
Summary: The code implements a rich, interactive mesoscale simulation that produces the qualitative behaviours described by the theory (vortices, flow states, gating collapse, saccade bursts, LTP consolidation). However, the fidelity to the mathematical and mechanistic details of the stated theory is partial — in some cases using proxy variables, in others relying on hand-tuned constants that are not derived from first principles. This is an honest, disclosed trade-off for 60 FPS browser performance. The roadmap to higher fidelity involves replacing proxies with derived implementations (e.g., modelling oscillators for Law III, a full EVC comparator for Law II, and a proper Lyapunov function for Law I), as flagged in §§I.11, II.11, and III.5.
This reference list is organized by intellectual role within the framework, reflecting the hierarchical structure of the theory. Papers tagged Foundation provide the core theoretical infrastructure — the "Newtonian" insights the framework builds upon. Papers tagged Implementation correspond to mechanisms directly instantiated in the code. Papers tagged Partial inform the architecture but are represented in simplified form. Papers tagged Conceptual provide historical context, framing, or phenomenological grounding rather than a one-to-one code implementation.
⚙️ A Computational Neuroscience Exploration
A comprehensive deep dive into the emergent dynamics of selective attention, memory consolidation, and executive control — bridging biophysical simulation with cognitive phenomenology at 60 FPS in a browser window.
Comprehensive Enhanced Edition | August 5, 2026
Dedicated to the rigorous pursuit of mechanistic explanation — the conviction that understanding the machinery of attention is not merely an academic exercise, but a step toward building tools that help people think, focus, and flourish.
Toolchain & Presentation: Interactive simulation built with vanilla JavaScript, Canvas 2D, and Tone.js. Documentation styled with custom CSS and rendered as a single self-contained HTML document. Typefaces: Space Grotesk (UI), EB Garamond (headings), IBM Plex Mono (code & stats), Share Tech Mono (technical excerpts). All content is original to this project and reflects the current state of the proj2_v77 codebase as of the date above.
Author's Note: This document is the product of ongoing revision — a living synthesis of computational modeling, theoretical psychology, and the conviction that the best scientific theories are those that risk being wrong, name their limitations honestly, and commit to closing the gap between assertion and implementation one revision at a time.