Skip to content

M3: Dataset snapshot + tags (versioning safety net) for openclaw-mem-engine #61

@phenomenoner

Description

@phenomenoner

Summary

We have strong system-level rollback today (switch plugins.slots.memory), but we lack a dataset-level versioning safety net for the openclaw-mem-engine LanceDB dataset.

This issue proposes an M3 v0 implementation: filesystem snapshots + manifest with operator-grade commands to create/list/checkout/delete snapshots (tagged).

Spec

  • Draft spec committed: docs/specs/mem-engine-versioning-safety-net-v0.md
  • Commit: 7a06818

Goals (v0)

  • Snapshot LanceDB dbPath before risky behavior/data changes (auto-capture rule changes, regrading, mass writeback, reindex/optimize)
  • Deterministic, bounded receipts (no raw memory text)
  • Safe defaults: tag validation + path traversal prevention + fail-closed for destructive ops

Acceptance checklist

  • Create snapshot + manifest + receipt
  • List snapshots deterministically
  • Checkout switches engine dbPath to a snapshot and remains functional
  • One-screen rollback instructions
  • Tests: tag validation + traversal prevention

Notes

Implementation preference: python CLI in openclaw-mem for filesystem ops; engine config update via openclaw config set (optional) + gateway restart as explicit step.}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions