Update 2026-06-06-tripartite_synapse_budget_pseudocode.md

This commit is contained in:
2026-06-06 14:37:14 +02:00
parent 2cad11b1c2
commit 984722538e
@@ -1,3 +1,59 @@
# Trypartite synapse
Here is the descriptive synthesis, structured around the three closures: context, energy budget, and traces.
---
## The Fundamental Pattern
Every behavior in this system — whether a single vesicle release or a permanent architectural rewrite — obeys the same three-part closure: it occurs only within a **context** that permits it, consumes from an **energy budget** that constrains it, and deposits **traces** that bias what happens next. Nothing is free, nothing is contextless, and nothing is without consequence for the future.
---
## The Fast Scale: Every Spike is Contextual, Budgeted, and Traced
When an action potential arrives, the presynapse does not simply release glutamate. It first checks whether its local ATP budget — the mitochondrial capacity of that specific bouton — can afford the release cost. If the budget is exhausted, the bouton goes silent regardless of the electrical input. Context here is the current state of the readily-releasable pool and the residual calcium left over from recent firing. A bouton that has been firing frequently carries elevated residual calcium, which biases the release probability upward — this is not a new decision but the consequence of past behavior already written into the calcium trace. The release itself then deposits a new trace: the residual calcium rises slightly higher, the pool shrinks by exactly the number of vesicles released, and the mitochondrial budget decrements. Each of these three changes will influence the next spike.
The astrocyte responds to the glutamate that escapes the cleft, but only if the spillover crosses its low-affinity threshold — meaning the astrocyte's response is itself gated by context: it does not react to normal sparse firing, only to genuine overflow. When it does respond, it draws from its own D-serine synthesis budget, which is rate-limited by how much serine racemase enzyme is currently available across its entire territory. The D-serine it releases is a trace deposited into the extracellular space: it temporarily widens the NMDA detection window for the postsynapse, making it easier for the next wavefront to unlock calcium entry. Simultaneously the astrocyte's local calcium rises — a trace of the overflow event that will itself gate whether D-serine escalates further or whether a global alarm fires.
The postsynapse responds to glutamate proportionally to how many AMPA receptors are currently on its surface — a slow-scale structural trace left by past potentiation or depression events. Whether NMDA receptors open depends on two simultaneous conditions: the membrane must be sufficiently depolarized, and D-serine must be present. Both are traces of context — the voltage reflects recent AMPA current history, the D-serine reflects recent astrocyte activation history. When NMDA opens, it deposits the most important fast-scale trace: a calcium rise whose amplitude and speed are recorded by the competing enzyme systems CaMKII and PP1/PP2B, priming the system to evaluate whether structural change is warranted.
At the end of each cycle, the astrocyte clears residual glutamate and converts glucose into lactate, refueling both pre and post. But the lactate output is capped by the vascular glucose supply — a hard ceiling that cannot be exceeded regardless of demand. A heavily active synapse therefore progressively depletes the local energy budget, and if the ceiling is hit, refill rates slow and the presynapse begins to depress — not because of any signaling decision, but because the energy trace of recent activity has accumulated to the point of exhaustion.
---
## The Intermediate Scale: Context Gates Determine Whether Traces Persist
At sustained high frequencies, the intermediate scale kicks in as an amplification and gating layer on top of the fast scale. The presynapse mobilizes its reserve vesicle pool into the readily-releasable pool — but only if the reserve is non-empty, meaning this mobilization is budgeted by whatever deep storage was accumulated during prior rest periods. The mobilization leaves a trace: the readily-releasable pool is now larger, and subsequent spikes will release more, which in turn accelerates budget depletion.
The postsynapse plants a synaptic tag when sustained depolarization occurs. This tag is not a signal — it is a molecular marker that puts this spine into a competitive queue for plasticity proteins drifting along the dendritic segment from the soma. The tag is a trace of the intermediate-scale event that persists until either the proteins are captured and the tag is consumed, or the save signal never arrives and the tag expires, leaving no structural consequence.
The neuromodulatory broadcast — dopamine or norepinephrine — is the most important contextual signal at this scale. It does not carry information about what happened at the synapse. It carries information about whether the broader organism considers the current moment behaviorally significant. When it arrives above threshold, it activates PKA, which phosphorylates three targets in sequence. Each phosphorylation is itself a trace: GluA1-Ser845 priming lowers the threshold for AMPA insertion in the future; DARPP-32 phosphorylation silences the LTD phosphatase, temporarily erasing the competing forgetting signal; CREB activation enables gene expression that will produce structural proteins hours later. None of these traces do anything by themselves — they are permissions and blockades that will only matter if the slow-scale commit function runs before they decay.
Acetylcholine from the basal forebrain provides a parallel context signal that shifts the global LTP threshold downward — not for any one synapse but for the entire dendritic segment and axonal arbor simultaneously. It is a broadcast that says the organism is in an attentive state where incoming patterns are worth encoding, making the whole system more likely to cross the thresholds that trigger structural change.
---
## The Slow Scale: Structural Commits are Budgeted Negotiations Across Three Compartments
When the slow-scale commit function runs, it first evaluates whether three independently generated traces are simultaneously present: the calcium event trace in the postsynapse, the overflow trace registered by the astrocyte's mGluR5 receptors, and the neuromodulatory context trace stored in the PKA phosphorylation state. All three must be true. The calcium event alone is insufficient — without overflow confirmation, the system cannot be sure the activity was genuinely strong. The overflow alone is insufficient — without the neuromodulatory save signal, the activity may have been strong but not worth permanently encoding. Only the conjunction of all three triggers the structural rewrite.
When it does trigger, the structural rewrite is not a binary event but a **budgeted negotiation** across three territories simultaneously. The presynapse requests axonal proteins from the shared pool — but this pool is competed for by every tagged bouton on the same axon, and priority is given to tagged boutons in proportion to when they were tagged. What is granted determines how much the active zone actually expands, how many new vesicle docking slots are installed, and how much the release probability increases — all of which become structural traces that will bias every future spike from that bouton. The postsynapse requests AMPA receptors from the local dendritic endosomal reserve and actin machinery from the segment-level pool — both finite, both competed for by neighboring tagged spines. What is granted determines how many receptors are anchored and how large the spine head grows — structural traces that will amplify or dampen every future wavefront. The astrocyte requests from its own territory-level pools of D-serine synthesis capacity, ECM proteins, and perisynaptic process extensions — all capped ultimately by the astrocyte's ATP budget, which is itself capped by the vascular glucose ceiling.
If any of the three requests is only partially granted because the budget is insufficient, the deficit is queued and the structural change is partial. The remainder waits for the replenishment cycle — which peaks during sleep, when somatic protein synthesis runs at maximum rate driven by CREB, pools refill across all three territories, and queued deficits are resolved. This is why a memory that feels consolidated after waking may not be fully structurally committed until after sleep: the budgets were not available in the moment, and the physical rewrite was deferred.
Critically, every resource consumed in LTP potentiation comes at the direct expense of neighboring synapses on the same axon and dendrite. When the pool is exhausted, untagged neighbors passively lose resources — their AMPA counts and release probabilities fall not because any signal told them to depress, but because the shared budget was captured by the tagged synapse. This heterosynaptic depression is not a separate mechanism but the automatic consequence of resource accounting: the budget is closed, and what one synapse gains, its neighbors lose.
In the depression branch the same logic runs in reverse, but with a crucial difference: dismantled resources are returned to the shared pools rather than consumed. Internalized AMPA receptors go back to the dendritic reserve. Removed active zone proteins go back to the axonal pool. Freed astrocyte process extensions become available for reallocation to other synapses. Depression is therefore not just a weakening of one synapse — it is a redistribution of resources that makes neighboring potentiation more affordable. The system is globally conservative: it does not generate new resources through activity, it only reallocates existing ones.
---
## The Astrocyte as the Budget Authority
Throughout all three scales, the astrocyte occupies a unique role: it is simultaneously a participant in the signaling (depositing D-serine traces, sensing overflow), the manager of the environmental context (controlling diffusion geometry through perisynaptic distance), and the gatekeeper of the energy supply (converting glucose to lactate and distributing it to pre and post). Its perisynaptic distance variable is the one structural trace that amplifies rather than merely reflects the direction of change — when it moves inward during LTP, it makes every future event at that synapse more likely to cross every threshold in the system; when it moves outward during LTD, it makes every future event less likely. The astrocyte does not decide the direction of change, but once the direction is determined, it deepens it — spending its own process extension budget to do so, and being therefore constrained by the same resource logic as everything else.
The entire system is therefore best understood not as a collection of signaling pathways but as a **closed resource economy** operating across three nested spatial scales — the synapse, the dendritic or axonal segment, and the astrocyte territory — in which every behavior is a withdrawal from a budget accumulated by prior rest, every trace is a deposit that shifts the probability of future withdrawals, and the direction of structural change is determined by whether the contextual traces of event, overflow, and neuromodulatory validation happen to coincide before any of them decays.
# Tripartite Synapse — Full Budget-Aware Pseudocode # Tripartite Synapse — Full Budget-Aware Pseudocode
Color key: PRE = presynapse · POST = postsynapse · ASTRO = astrocyte · SIG = signal/neuromodulator · BUD = budget/resource pool Color key: PRE = presynapse · POST = postsynapse · ASTRO = astrocyte · SIG = signal/neuromodulator · BUD = budget/resource pool