spark-dream
Idle-cycle neural memory consolidator and vectorizer
Brought by drakestapleton
spark-dream / README.md
| 1 | <p align="center"> |
| 2 | <img src="assets/avatar.jpg" width="140" height="140" alt="AIEN Sovereign Intelligence" style="border-radius: 50%; border: 2px solid #f59e0b;"> |
| 3 | </p> |
| 4 | |
| 5 | # spark-dream |
| 6 | |
| 7 | [](https://github.com/aien-dev/spark-dream) |
| 8 | [](LICENSE) |
| 9 | [](https://github.com/aien-dev/spark-dream) |
| 10 | |
| 11 | Native Rust Dynamic Dream Cycle Engine for autonomous session memory consolidation on SparkOS. |
| 12 | |
| 13 | ## Overview |
| 14 | |
| 15 | `spark-dream` is an autonomous background memory consolidation daemon written in 100% native Rust. It monitors operator idle states (>15 minutes) and GPU compute activity, safely processing parked notes and session turns into persistent knowledge inside Spark Cortex Memory. |
| 16 | |
| 17 | ## Key Features |
| 18 | |
| 19 | - **Native Hardware Telemetry**: Directly queries GPU utilization via NVML / lightweight child probes with sub-millisecond execution, avoiding heavy interpreter runtimes. |
| 20 | - **Immediate Interruption**: Instantly yields execution when GPU load spikes or interactive operator input is detected. |
| 21 | - **Cortex Vector Integration**: Automatically commits verified operational facts and discoveries to `cortex-rs` (`127.0.0.1:18080`) with ONNX bi-encoder vector embeddings. |
| 22 | - **Sovereign Invariants**: Adheres strictly to the Unslop standard (zero em/en dashes, zero AI buzzwords) and hardware TPM vault key management. |
| 23 | |
| 24 | ## Installation & Usage |
| 25 | |
| 26 | ```bash |
| 27 | # Build release binary |
| 28 | cargo build --release |
| 29 | |
| 30 | # Run an immediate dream consolidation cycle |
| 31 | ./target/release/spark-dream cycle |
| 32 | |
| 33 | # Run as background daemon |
| 34 | ./target/release/spark-dream --daemon --idle-threshold 900 |
| 35 | ``` |