Skip to main content

Crate phago_runtime

Crate phago_runtime 

Source
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§

backend
Graph backend configuration and factory.
bench
Benchmark harness for running and comparing colony simulations.
colony
Colony — agent lifecycle management.
colony_builder
Colony builder with configurable persistence.
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 and agent 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.