Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/crumb-spec # crumb-spec Crumb Protocol specification and filesystem standard for sovereign AI agents Brought by drakestapleton Unfinished: not checked yet There is no published receipt of a rebuild from its source yet. What a receipt is Get this repository Git over HTTPS `git clone --no-checkout https://interplane.io/projects/crumb-spec/repo.git crumb-spec && git -C crumb-spec checkout --detach 6de4aa27f3e3fc57680a73cf634ba890fb4fa458` Source archive of `6de4aa27f3e3fc57680a73cf634ba890fb4fa458` Download ZIP · tar.gz Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers README.md # The Crumb Protocol (RFC-0001) An open, vendor-neutral filesystem standard for autonomous AI agent spatial grounding, architectural memory, and peer pheromone coordination. Free and open for anyone to adopt, implement, extend, and embed across all agent frameworks, IDEs, and autonomous developer swarms. ``` ┌────────────────────────────────────────────────────────┐ │ The Crumb Paradigm │ ├────────────────────────────┬───────────────────────────┤ │ Durable Topography │ Ephemeral Scent │ │ (`.crumb`) │ (`.crumb.local`) │ ├────────────────────────────┼───────────────────────────┤ │ • Checked into git │ • Ignored by git │ │ • Defines directory purpose│ • Real-time agent scents │ │ • Spatial parent (`above`) │ • Inter-agent whispers │ │ • Architecture invariants │ • Read/write leases │ │ • Exported interfaces │ • Rolling action vectors │ └────────────────────────────┴───────────────────────────┘ ``` ## The Problem: Agent Amnesia and Context Collapse Existing AI software development agents suffer from three structural flaws: - Context Collapse Across Subdirectories: LLM context windows degrade when stuffed with arbitrary file trees. When an agent enters a nested subdirectory, it loses awareness of parent boundaries, domain invariants, and global architecture. - Multi-Agent Race Conditions: When multiple autonomous agents (coder, reviewer, verifier, tester) operate simultaneously in a repository, they have no shared physical presence. Agents blind-overwrite each other's work, duplicate tasks, or break assumptions established by a peer. - Database Disconnect: External vector databases or centralized state stores create an out-of-band dependency. When a human developer or another machine clones the repository, that external memory is absent. ## The Solution: Filesystem-Native Memory The Crumb Protocol solves these flaws by anchoring agent intelligence directly into the filesystem itself using two lightweight JSON files placed in relevant directories: - `.crumb` (Durable Repository Topology): Checked into source control. Establishes the purpose of the directory, its architectural layer, explicit non-negotiable invariants, and pointers to parent and child domains. - `.crumb.local` (Ephemeral Agent Pheromones): Kept in `.gitignore`. Acts as a live pheromone trail tracking which agents are currently active, what intent vectors they are executing, non-blocking inter-agent whispers, and operational locks. ## Core Specification Overview Full details are documented in SPEC.md . ### 1. The Durable Crumb (`.crumb`) Located at directory roots. Must be valid JSON matching schema/crumb.schema.json . ``` { "schema_version": "1.0.0", "name": "spark-adapters", "layer": "core/runtime", "purpose": "Provider adapters for frontier LLMs and local MAX distillation", "above": { "name": "aien-sovereign-core", "path": "../../", "invariants": ["Pure native Rust", "Zero disk secrets"] }, "below": [ { "name": "providers", "role": "API translation modules for third-party endpoints" }, { "name": "distill", "role": "Dual-rollout consensus engine" } ], "invariants": [ "All network calls must support cancellation tokens", "Secrets must resolve dynamically via hardware TPM vault, never .env files" ], "exports": [ "spark_adapters::router::route_completion", "spark_adapters::distill::run_dual_rollout" ] } ``` ### 2. The Ephemeral Crumb (`.crumb.local`) Located alongside `.crumb`. Never committed to git. Must match schema/crumb-local.schema.json . ``` { "schema_version": "1.0.0", "directory": "crates/spark-adapters", "active_scents": { "AIEN": { "focus": "Refactoring OpenAI adapter error handling", "updated_at": "2026-09-18T20:30:00Z", "ttl_seconds": 3600 } }, "locks": { "src/router.rs": { "holder": "AIEN", "intent": "Adding Anthropic Claude 3.7 hybrid reasoning token schema", "acquired_at": "2026-09-18T20:28:15Z" } }, "whispers": [ { "from": "VerifierAgent", "message": "Verify test_anthropic_thinking passes before merging router changes", "target_file": "src/router.rs", "timestamp": "2026-09-18T20:25:00Z" } ], "history": [ { "agent": "AIEN", "action": "modify", "target": "src/router.rs", "intent": "Implement adaptive temperature scaling", "vector": "inference-stability", "timestamp": "2026-09-18T20:20:00Z" } ] } ``` ## The Four Axioms of the Crumb Rule Any autonomous agent operating in a Crumb-enabled repository must adhere to four axioms: - Sniff Before Touch: Before opening or modifying any file, the agent must check for `.crumb` and `.crumb.local`. If a peer agent holds an active lock on the file, the agent must yield, collaborate, or wait. - Respect Invariants: The `invariants` block in `.crumb` is authoritative. An agent must never introduce code, dependencies, or patterns that violate declared directory invariants. - Leave a Scent: When starting a non-trivial task, the agent registers its presence in `active_scents`. When finishing or pausing, it appends an action entry to `history`. - Whisper on Transition: When delegating work to a subagent or completing a step that requires review, the agent leaves an explicit message in `whispers`. ## How to Adopt and Extend The Crumb Protocol is intentionally simple and dependency-free. You do not need any specific library to read or write crumbs: - Any language can parse it: It is standard JSON. - Reference Clients: See examples/reference-clients/ for zero-dependency Python, TypeScript, Shell, and Rust implementations. - CLI Tooling: An ultra-fast native Rust implementation is available at spark-crumbs . - Custom Extensions: Teams can add custom keys under `extensions` or create new dialects. See EXTENDING.md . ## Documentation Roadmap - SPEC.md : Formal RFC-0001 specification. - WHY.md : Deep architectural rationale comparing crumbs to vector search and prompt stuffing. - ROLES.md : Complete operational manual for autonomous agents adopting the Crumb role. - EXTENDING.md : Guide for creating custom crumb schemas and tool integrations. - SECURITY.md : Guidelines on credential isolation and zero disk secrets. ## License Dual-licensed under MIT and Apache-2.0. Free for commercial, personal, academic, and sovereign agent use. ## For developers: proof and records The full record of this project. Words that are used only here are explained once: ID The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:19f45f30b323d1616221ebf7d9c0181c9289a951b665dba1914326a90af7fd98`. Its old id, kept only so that old links still work: `z3w694J42BU3ztSSkBz319tb7pHky`. Owner The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`. Refs and HEAD Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch. Patch A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes . Receipt A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet. Clones and fetches over HTTPS: 0 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired) Downloads: 1 by visitors (1 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07) commit `6de4aa27f3e3fc57680a73cf634ba890fb4fa458` Branches Tags History `6de4aa2` docs: first person, Drake's own voice (L422) Drake Stapleton committed 2026-11-09 ``` .github/ examples/ schema/ src/ .gitignore 33 AGENTS.md 3973 AGENT_CODE_OF_CONDUCT.md 3493 CONSTITUTION.md 8401 CONTRIBUTING.md 1036 Cargo.lock 9295 Cargo.toml 585 EXTENDING.md 2248 LICENSE 16797 README.md 7418 ROLES.md 3972 SECURITY.md 1134 SPEC.md 10030 WHY.md 4460 agent.json 506 llms.txt 1241 ``` Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON