phago_core/lib.rs
1//! # Phago Core
2//!
3//! Core traits and types for Phago biological computing primitives.
4//!
5//! This crate defines the ten biological primitives as Rust traits,
6//! along with shared types used across the entire framework:
7//!
8//! - **DIGEST** — Consume input, extract fragments, present learnings (phagocytosis)
9//! - **APOPTOSE** — Self-assess integrity, gracefully self-terminate (programmed cell death)
10//! - **SENSE** — Detect environmental signals, follow gradients (chemotaxis)
11//! - **TRANSFER** — Export/import capabilities across agents (horizontal gene transfer)
12//! - **EMERGE** — Detect quorum, activate collective behaviors (phase transitions)
13//! - **WIRE** — Strengthen used connections, prune unused ones (Hebbian learning)
14//! - **SYMBIOSE** — Integrate another agent instead of consuming it (endosymbiosis)
15//! - **STIGMERGE** — Coordinate through environmental modification (stigmergy)
16//! - **NEGATE** — Define identity by exclusion, detect anomalies (negative selection)
17//! - **DISSOLVE** — Modulate agent-substrate boundaries (holobiont)
18//!
19//! ## Quick Start
20//!
21//! ```rust
22//! use phago_core::prelude::*;
23//!
24//! // Create a position
25//! let pos = Position::new(0.0, 0.0);
26//!
27//! // Create a deterministic agent ID (for testing)
28//! let id = AgentId::from_seed(42);
29//! ```
30
31pub mod primitives;
32pub mod types;
33pub mod agent;
34pub mod substrate;
35pub mod signal;
36pub mod topology;
37pub mod error;
38pub mod prelude;