Expand description
§Phago Runtime
Colony management, scheduling, and host runtime.
The runtime is the “organism” — it manages the lifecycle of agents (cells), runs the tick-based simulation, and maintains the substrate (shared environment).
§Quick Start
use phago_runtime::prelude::*;
// Create a colony
let mut colony = Colony::new();
// Ingest a document
colony.ingest_document("title", "content", Position::new(0.0, 0.0));
// Spawn a digester
colony.spawn(Box::new(Digester::new(Position::new(0.0, 0.0))));
// Run the simulation
colony.run(50);Modules§
- bench
- Benchmark harness for running and comparing colony simulations.
- colony
- Colony — agent lifecycle management.
- community
- Community detection via label propagation.
- corpus
- Corpus loader — replaces hard-coded documents in POC.
- curriculum
- Curriculum ordering for training data.
- export
- Triple exporter — extract knowledge graph triples with Hebbian weights.
- metrics
- Quantitative metrics for proving biological computing model correctness.
- prelude
- Phago Runtime Prelude — convenient imports for common usage.
- project_
context - Project context — file tree awareness for code indexing.
- session
- Session persistence — save/load colony graph state.
- substrate_
impl - Concrete implementation of the Substrate trait.
- topology_
impl - Concrete implementation of the TopologyGraph trait using petgraph.
- training_
format - Training data format generators.