Skip to main content
← Back to list
01Issue
FeatureOpenSwamp Club
AssigneesNone

Relationships

#1012 Docs: document swamp data prune (orphaned-data reclamation)

Opened by keeb · 7/7/2026

Problem

A new CLI command swamp data prune was added (fixes #1009, PR swamp-club/swamp#1786). It reclaims orphaned data — persisted data whose owning model definition no longer exists in its namespace (definition deleted, or model migrated to a different namespace leaving historical data behind). Previously such data could be neither GC'd nor deleted: swamp data delete <id> returned Model not found and swamp data gc reclaimed nothing. The user-facing manual (swamp-club repo, content/manual/) has no entry for it.

Proposed solution

  • Reference (content/manual/reference/data.md, and/or operational-commands.md): add swamp data prune alongside data gc / data delete. Flags: --dry-run (preview, deletes nothing), -f/--force (skip confirmation prompt), --json, --repo-dir.
  • Distinguish from data gc: gc enforces each model's declared lifetime + version-cap (safe to run unattended); prune removes data whose owning model definition is gone. Deliberately separate commands.
  • Safety framing: reclamation is irreversible and inferential (a definition can be transiently absent — a branch switch or in-flight migration), so prune defaults to a confirmation prompt and supports --dry-run. Recommend --dry-run first.

Suggested snippet:

# Reclaim orphaned data (owning model definition no longer exists)
swamp data prune --dry-run   # preview
swamp data prune --force     # reclaim

Alternatives

Design reference already added in-repo: design/datastores.md -> section 'Orphaned data reclamation (swamp data prune)'. (Could not be filed as a GitHub issue — issues are disabled on swamp-club/swamp-club; filing here in the Lab instead.)

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

7/7/2026, 3:41:05 AM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.