This is the second-track manual for Echo. Use it when you need the deeper doctrine behind the theoretical foundations (AION Foundations), Wesley schema integration, and internal Spec details.
For orientation and the productive-fast path, use the GUIDE.md.
Echo implements ideas from the AIΩN Foundations paper series.
A worldline algebra for recursive provenance. State is a finite directed multigraph where nodes and edges can contain nested graphs.
Independent rewrites commute under footprint conflict rules. State convergence does not imply provenance convergence—two worldlines can arrive at the same state through different histories.
An observer is a structural five-tuple (Projection, Basis, State, Update, Emission). Echo surfaces what survives each layer of observation.
- warp-core spec: The transactional kernel and commit semantics.
- Tick Patch spec: The binary boundary for causal transitions.
- Merkle Commit: Snapshot hashing and state integrity.
- Deterministic Math: Rules for 0-ULP cross-platform math.
Echo enforces a strict 'No-Network' and 'No-Entropy' policy in core paths to preserve causal replayability. This is verified in CI via scripts/ban-nondeterminism.sh.
- Network I/O:
std::net,reqwest,ureq, and other network crates are banned from deterministic paths. Causal history must be self-contained. - Entropy & Time:
std::time::SystemTime,Instant::now,rand, andgetrandomare prohibited. Use the deterministicTickandSeedprovided by the kernel. - Unordered Collections:
std::collections::HashMapandHashSetare banned due to iteration order nondeterminism (DoS resistance/hashing variability). UseBTreeMap,BTreeSet, or stable-sort patterns on vectors before iteration. - Floating Point: Direct use of
sin,cos,sqrt, etc., is restricted. Use theFixedTrigoracles indocs/determinism/SPEC_DETERMINISTIC_MATH.mdto ensure bit-exact convergence across platforms.
The simulation protocol and graph schemas are increasingly defined via Wesley.
- Schema:
schemas/runtime-schema.graphql - Compiler: Wesley generates bit-exact Rust/TS bridges and Zod validators.
Echo uses WSC (Write-Streaming Columnar), a zero-copy snapshot format for fast state reload and verification. The hot render loop is optimized through reusable framebuffers and footprint-based scheduling.
The goal is inevitability. Every continuation from the past is explicit, capability-gated, and provenance-bearing.