OpenClaw Memory Pensieve v2
Use this skill to run memory in two lanes: ultra-fast capture and bounded consolidation.
Core architecture
- Capture lane (hot path):
capture_event.py- O(1) append to
events.jsonl+ledger.jsonl - no LLM, no network, no summarization
- O(1) append to
- Consolidation lane (cold path):
dream_cycle_budgeted.py- runs on schedule
- hard caps for scanned events and promotions
- Anchoring lane (optional): encrypted Algorand note anchors with external signing
Setup
scripts/init_memory_layers.py --root <workspace>/memory- Capture writes via:
scripts/capture_event.py --root <workspace>/memory --content "..." --tags a,b
- Schedule daily consolidation:
scripts/dream_cycle_budgeted.py --root <workspace>/memory
Daily performance pipeline
- dream cycle (budgeted)
- build anchor payload
- build unsigned tx
- sign externally
- submit signed tx
- record tx map
- periodic fetch/decrypt/verify audit
Required rules
- Never rewrite
*.jsonlhistory (append-only only). - Keep capture lane deterministic and minimal.
- Keep dream-cycle bounded by explicit caps.
- Anchor hashes/roots only; never plaintext memory on-chain.
Read order
self_model.jsonlprocedural.jsonlsemantic.jsonlevents.jsonl(time-bounded)
References
references/architecture.mdreferences/operations.mdreferences/algorand.md