Skip to content

Add resumable session storage migration and compaction #589

Description

@JAORMX

Part of #583. Depends on v2 snapshots and indexed inventory.

Problem

Historical v1 stores need a semantics-preserving way to reclaim repeated full snapshots without blocking startup or risking all-at-once rewrites.

Acceptance criteria

  • Authenticated server-side plan/apply job; the client never edits store files.
  • Dry-run reports family count, v1/v2 counts, current/reclaimable bytes, invalid/skipped rows, and temporary-space requirement.
  • Bounded batches with durable progress, cancellation, resumability, and per-item failures.
  • Verify each v2 replacement before removing v1 data.
  • Crash leaves v1 or verified v2 authoritative; reruns converge idempotently.
  • Peak temporary space is bounded to one session family.
  • Sidecars and logical timestamps are preserved.
  • Physical migration never changes durable kind or adopts unknown sessions.
  • Corrupt/torn records are reported or quarantined, never silently discarded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions