Dynamics
Dynamics
Section titled “Dynamics”MindFry’s dynamics module handles time-based processes: decay and propagation.
Decay Engine
Section titled “Decay Engine”The Decay Engine reduces lineage energy over time.
Formula
Section titled “Formula”E(t) = E₀ × e^(-λt)
where: E₀ = initial energy λ = decay coefficient (default: 0.001/tick) t = time since last accessLazy Evaluation
Section titled “Lazy Evaluation”Decay is lazy — computed only when accessed:
fn compute_decay(&self, lineage: &mut Lineage, now: u64) { let elapsed = now - lineage.accessed_at; let decay_factor = (-self.lambda * elapsed as f32).exp(); lineage.energy *= decay_factor; lineage.accessed_at = now;}Benefit: Zero CPU cost for dormant memories.
Synapse Engine
Section titled “Synapse Engine”The Synapse Engine propagates energy through bonds.
Cascade Formula
Section titled “Cascade Formula”δ_target = δ_source × strength × polarity × damping| Parameter | Default | Description |
|---|---|---|
strength | 0.0-1.0 | Bond intensity |
polarity | +1/0/-1 | Synergy/Neutral/Antagonism |
damping | 0.5 | 50% loss per hop |
Blast Radius
Section titled “Blast Radius”With 50% damping, propagation is limited:
| Hop | Energy Remaining |
|---|---|
| 1 | 50% |
| 2 | 25% |
| 3 | 12.5% |
| 4+ | < 7% (negligible) |
This prevents runaway activation cascades.
See Persistence for storage layer details.