Memory governance skill for OpenClaw with a dry-run → audit gate → guarded apply pipeline.
- Generates a governance plan from memory markdown scope (
dry_run.py) - Audits risk with policy thresholds (
audit.py) - Auto-applies only when decision is
GO(apply.py) - Writes rollback snapshots before mutation (
snapshot.py) - Supports manual rollback (
rollback.py) - Includes a cron wrapper for unattended runs (
wrappers/cron-memory-dream-governance.sh)
- Writable scope is policy-whitelisted (
MEMORY.md,memory/**/*.md, index files) - Forbidden files are blocked by policy (
SOUL.md,AGENTS.md,TOOLS.md,openclaw.json) REVIEW/BLOCKnever applies write actions- Snapshot metadata is persisted in apply reports for rollback traceability
.
├── SKILL.md
├── config/
├── scripts/
├── references/
└── wrappers/
# 1) Dry-run plan
python3 scripts/dry_run.py --workspace /root/.openclaw/workspace --skill-root .
# 2) Audit decision
python3 scripts/audit.py --plan <plan.json> --skill-root .
# 3) Apply (GO only)
python3 scripts/apply.py --plan <plan.json> --audit <audit.json> --workspace /root/.openclaw/workspace --skill-root . --applywrappers/cron-memory-dream-governance.sh executes:
- dry-run plan generation
- audit scoring and decision
- auto-apply when decision=
GOand policy/environment allows - escalation report generation when decision is not
GO
Environment override:
MEMORY_DREAM_APPLY=1 bash wrappers/cron-memory-dream-governance.shRecommended GitHub topics:
openclawopenclaw-skillmemory-governanceaudit-gatecron-automationpython
Initial stable release: v1.0.0
- Auto-apply on
GO - Escalation on
REVIEW/BLOCK - Snapshot-in-report traceability