spark-crumbs
Deterministic append-only operational event ledger
Brought by drakestapleton
spark-crumbs / README.md
| 1 | # spark-crumbs |
| 2 | |
| 3 | High-speed native Rust distributed breadcrumb, agent scent, and repository topography engine for Sovereign SparkOS. |
| 4 | |
| 5 | ## Capabilities |
| 6 | |
| 7 | 1. **Topographic Scent Grounding**: Automatically discovers, senses, and maintains directory hierarchy (`above` parent and `below` children) with architectural purpose declarations. |
| 8 | 2. **Dual-Layer Architecture**: |
| 9 | - Durable `.crumb`: Canonical repository architectural metadata and directory roles. |
| 10 | - Ephemeral `.crumb.local`: High-frequency agent actions, vectors, timestamps, and whispers with automated TTL expiration. |
| 11 | 3. **Peer Agent Sniffing**: Inspects target file or directory for recent peer modifications, intents, and whispers before modifying files. |
| 12 | 4. **Inter-Agent Whispering**: Non-blocking asynchronous message bus planted in directory roots. |
| 13 | 5. **Parallel Recursive Seeding**: Blazingly fast multi-threaded crawler to seed breadcrumbs across massive codebases. |
| 14 | |
| 15 | ## CLI Usage |
| 16 | |
| 17 | ```bash |
| 18 | # 1. Seed breadcrumbs recursively across repository |
| 19 | spark-crumbs seed . --recursive --whisper "Initial repository scent planted" |
| 20 | |
| 21 | # 2. Sniff peer agent scent on a file |
| 22 | spark-crumbs sniff crates/spark-adapters/src/lib.rs |
| 23 | |
| 24 | # 3. View rich topographic inspection card |
| 25 | spark-crumbs show . |
| 26 | |
| 27 | # 4. Plant an inter-agent whisper |
| 28 | spark-crumbs whisper . --message "Refactor in progress for microservices architecture" |
| 29 | |
| 30 | # 5. Record agent action vector |
| 31 | spark-crumbs record . --action edit --target lib.rs --intent "Refactor" --vector "Native Rust microservices" |
| 32 | ``` |
| 33 | |
| 34 | ## Architecture |
| 35 | |
| 36 | - `spark_crumbs::models`: Common schema for DirCrumb, LocalCrumbData, CrumbPurpose, CrumbHistoryItem, and CrumbWhisper. |
| 37 | - `spark_crumbs::engine`: Fast parallel directory scanner, purpose sensor, action recorder, and whisper bus. |
| 38 | - `spark_crumbs::tui`: Rich colored ANSI terminal formatting and topographic summary views. |
| 39 | |
| 40 | ## License |
| 41 | |
| 42 | MIT OR Apache-2.0 |