This guide is for AI agents and human operators recovering context in the Echo repository.
Echo is not a graph database, app framework, sync daemon, or mutable state server. Echo is a deterministic WARP runtime over witnessed causal history.
The durable territory is admitted causal history: transitions, frontiers, lane identities, payload hashes, receipts, witnesses, checkpoints, suffixes, and retained boundary artifacts. Graphs, files, editor buffers, UI state, and debug views are materialized readings emitted by observers or optics over that history. They may be cached, retained, transported, compared, or revealed, but they are not the substrate ontology.
Public Echo surfaces should follow the WARP optic shape:
explicit causal basis/site
+ bounded aperture
+ law
+ support, capability, budget, and evidence posture
-> witnessed hologram
External callers propose explicit-base intents or observe through bounded optics. Echo admits, stages, pluralizes, conflicts, or obstructs those claims under named law and emits receipts, reading envelopes, witnesses, or retained shells. Transport is witnessed suffix admission, not state sync. Application nouns belong in authored contracts and generated adapters, not in Echo core.
Keep these sentences in view when changing architecture, docs, or APIs:
There is witnessed causal history.
WARP optics chart it.
Holograms witness those charts.
Materialized graphs are optional readings.
Continuum is the protocol for lawful causal-history exchange.
- NEVER amend commits.
- NEVER rebase or force-push.
- NEVER push to
mainwithout explicit permission. - Always use standard commits and regular pushes.
Do not audit the repository by recursively walking the filesystem. Follow the authoritative manifests:
README.md: Public front door, core value prop, and quick tour.GUIDE.md: Orientation and productive-fast path.docs/index.md: VitePress documentation map.
ARCHITECTURE.md: Authoritative structural reference (Hexagonal, Core, Memory).VISION.md: Core tenets and the causal mission.METHOD.md: Repo work doctrine (Backlog lanes, Cycle loop).
docs/BEARING.md: Current execution gravity and active tensions.docs/design/ROADMAP.md: Broad strategic horizon and targets.backlog/: The active source of truth for pending work.
CHANGELOG.md: Historical truth of merged behavior.cargo xtask dind: Determinism convergence verification.
When starting a new session or recovering from context loss:
- Read
docs/BEARING.mdto find the current execution gravity. - Read
METHOD.mdto understand the work doctrine. - Check
backlog/asap/for imminent work. - Check
git log -n 5andgit statusto verify the current branch state.
Engineering work must converge around executable evidence, not broad repository interpretation. Before editing code, reduce the task to one executable claim:
- Bound the Claim: State the behavior, invariant, or artifact that must change.
- Name the Witness: Identify the smallest test, check, script, compile contract, golden vector, schema validation, or artifact inspection that can prove the claim.
- Run the Witness When Feasible: Prefer a failing witness before the fix. If the witness cannot execute because the repository is already broken, repair only the minimal compile/runtime blocker required to run it.
- Do Not Expand from an Unblocker: Do not turn a compile blocker into nearby architecture cleanup, docs cleanup, lint cleanup, migration sweep, or opportunistic refactor.
- Green the Claim: Implement the smallest fix, rerun the witness, and run only directly relevant surrounding checks unless broader validation is explicitly requested.
- Stop on Green: When the witness passes and the requested scope is satisfied, stop. Do not inspect more PR comments, audit more files, or clean unrelated residue without a new executable claim.
If unrelated failures remain, isolate them in the final report instead of absorbing them into the task. Report files changed, symbols or behavior changed, witness commands, pass/fail results, and intentional non-actions such as no commit, no push, or no PR comment.
After altering files:
- Verify Truth: Ensure documentation is updated if behavior or structure changed.
- Log Debt: Add follow-on backlog items to
bad-code/orcool-ideas/. - Commit: Use focused, conventional commit messages. Propose a draft before executing.
- Validate: Run
cargo checkand relevant tests.
The goal is inevitability. Every feature is defined by its tests.