Configuration
Configuration
Section titled “Configuration”MindFry configuration options and environment variables.
Environment Variables
Section titled “Environment Variables”| Variable | Default | Description |
|---|---|---|
MINDFRY_HOST | 0.0.0.0 | Bind address |
MINDFRY_PORT | 9527 | Listen port |
MINDFRY_DATA_DIR | /data | Persistence directory |
MINDFRY_LOG_LEVEL | info | Log verbosity |
MINDFRY_MAX_LINEAGES | 1048576 | Max lineages (1M) |
MINDFRY_MAX_BONDS | 4194304 | Max bonds (4M) |
Rust Config Struct
Section titled “Rust Config Struct”pub struct MindFryConfig { pub max_lineages: usize, // Default: 1M pub max_bonds: usize, // Default: 4M pub strata_depth: usize, // Default: 64 pub decay: DecayConfig,}
pub struct DecayConfig { pub lambda: f32, // Default: 0.001 pub min_energy: f32, // Default: 0.01}Physics Parameters
Section titled “Physics Parameters”Tunable at runtime via PHYSICS.TUNE:
| Parameter | ID | Default | Description |
|---|---|---|---|
| Decay Multiplier | 0x01 | 1.0 | Global decay rate |
| Trauma Threshold | 0x02 | 0.8 | Rigidity trigger point |
| Bond Prune Threshold | 0x03 | 0.1 | Min bond strength |
| Min Energy | 0x04 | 0.01 | Floor for decay |
// Slow down decay (less forgetting)await brain.system.tune(0x01, 0.5)
// Speed up decay (more forgetting)await brain.system.tune(0x01, 2.0)Default Personality
Section titled “Default Personality”The default personality Octet:
personality.set(dimension::CURIOSITY, Trit::True); // +1personality.set(dimension::PRESERVATION, Trit::True); // +1// All others: Trit::Unknown (0)This creates a “curious but preserving” default character.