Each policy (walk, skip, run, stroll) is scored by its expected free energy:
where the cost terms are Risk, Ambiguity, Energy, Social, Injury, and .
The policy with the lowest is selected. Costs (risk, energy, social penalty, injury, ambiguity, arousal mismatch) increase ; information gain decreases it, rewarding exploratory behaviour.
Each gait is parametrised by six numbers that feed into the EFE terms:
| Spec | Walk | Skip | Run | Stroll |
|---|---|---|---|---|
| impact | 0.25 | 0.75 | 0.90 | 0.15 |
| signalAmp | 0.35 | 0.85 | 0.80 | 0.20 |
| energyPerDist | 0.25 | 0.55 | 0.75 | 0.15 |
| conspicuous | 0.20 | 0.85 | 0.65 | 0.10 |
| complexity | 0.25 | 0.75 | 0.45 | 0.10 |
| speed | 0.35 | 0.55 | 0.85 | 0.20 |
impact drives injury probability; signalAmp is proprioceptive richness (high for skip); conspicuous feeds the social penalty; complexity determines how much there is to learn.
Both a child and an adult share the same EFE equation and the same four policies. The difference is the weight vector . A child operates with high (curiosity) and low (social cost), so skipping wins: it is complex, proprioceptively rich, and novel. An adult raises , , and , which penalises skipping enough that walking takes over. Try the Child and Adult presets and sweep mastery or normPressure to watch the crossover happen.