Skip to main content
← Back to list
01Issue
FeatureShippedSwamp Club
Assigneesstack72

Relationships

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

Opened by keeb · 7/7/2026· Shipped 7/8/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+ 1 MOREASSIGNED+ 4 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/8/2026, 8:09:51 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/8/2026, 7:07:51 PM

Sign in to post a ripple.