OpenClaw Memory Pensieve v2.1 (hardening)
Run this workflow when the goal is reliable long-term memory with disaster recovery from blockchain anchors.
Workflow
- Ensure memory layers exist in
memory/. - Capture important events into
events.jsonl(append-only, hash-chained). - Run daily dream cycle to promote stable patterns.
- Anchor daily memory to Algorand with encrypted notes (full content, multi-TX if needed).
- Run v2.1 hardening validator after anchoring.
- If recovery is needed, reconstruct and verify from on-chain notes.
Mandatory operational rules
- Keep all
*.jsonlappend-only. Never rewrite or delete lines. - Keep secrets local in
.secrets/and never print them in chat. - Anchor encrypted payloads only (never plaintext memory).
- Treat hardening failures as blocking for “recovery-fidelity” claims.
Prerequisites (explicit)
- Python environment with
algosdkandcryptography - Local secret files (not packaged):
.secrets/algorand-wallet-nox.json.secrets/algorand-note-key.bin
- Optional explicit env vars for endpoints/auth:
ALGORAND_ALGOD_URL,ALGORAND_ALGOD_TOKENALGORAND_INDEXER_URL,ALGORAND_INDEXER_TOKEN
Run preflight first:
scripts/preflight_requirements.py
Runtime commands (current implementation)
Use interpreter:
<workspace>/.venv-algo/bin/python
Bundled scripts in this skill (scripts/):
auto_capture_daily.pydream_cycle_daily.pyanchor_daily_algorand.pyread_anchor_latest.pyhardening_v21_validate.pyrecover_from_blockchain.pycapture_from_logs.pypreflight_requirements.py
Main pipeline:
scripts/auto_capture_daily.pyscripts/dream_cycle_daily.pyscripts/anchor_daily_algorand.pyscripts/read_anchor_latest.pyscripts/hardening_v21_validate.py
Recovery/debug:
scripts/recover_from_blockchain.pyscripts/capture_from_logs.py
Read next
references/architecture.mdfor layer model and guarantees.references/ops-runbook.mdfor day-to-day run commands and outputs.references/hardening-v21.mdfor strict post-anchor validation policy.references/security-prereqs.mdfor explicit dependency/secret contract.