Skip to main content

Module colony

Module colony 

Source
Expand description

Colony — agent lifecycle management.

The colony is the organism. It manages the birth, life, and death of agents, runs the tick-based simulation loop, and coordinates agent access to the shared substrate.

Each tick:

  1. All agents sense the substrate and decide an action
  2. The colony processes all actions (moves, digestions, signals)
  3. Dead agents are removed, death signals collected
  4. The substrate decays signals and traces
  5. The tick counter advances

Structs§

AgentSnapshot
A serializable snapshot of an agent’s state.
Colony
The colony — manages agent lifecycle and simulation.
ColonyConfig
Configuration for colony simulation parameters.
ColonySnapshot
A complete serializable snapshot of the colony at a point in time.
ColonyStats
Statistics about the colony.
EdgeSnapshot
A serializable snapshot of a graph edge.
NodeSnapshot
A serializable snapshot of a graph node.

Enums§

ColonyEvent
Event emitted by the colony during simulation.