phago-runtime
Colony management, scheduling, and runtime for Phago biological computing.
Overview
This crate provides the execution environment for Phago agents:
- Colony: Main entry point managing agents, documents, and knowledge graph
- Substrate: Shared environment with signals, traces, and documents
- Topology: Graph implementation with Hebbian wiring and synaptic pruning
- Session: Save/restore colony state across sessions
- Metrics: Quantitative measurement of colony behavior
Usage
use *;
use Digester;
use Position;
// Create a colony
let mut colony = new;
// Ingest documents
colony.ingest_document;
// Spawn agents
colony.spawn;
// Run simulation
colony.run;
// Check stats
let stats = colony.stats;
println!;
Colony Lifecycle (per tick)
- Sense — Agents observe substrate (signals, documents, traces)
- Act — Colony processes agent actions (move, digest, present, wire)
- Transfer — Agents export/integrate vocabulary, attempt symbiosis
- Dissolve — Mature agents modulate boundaries, reinforce graph nodes
- Death — Remove agents that self-assessed for termination
- Decay — Signals, traces, and edge weights decay; weak edges pruned
Part of Phago
This is a subcrate of phago. For most use cases, depend on the main phago crate instead.
License
MIT