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

Relationships

#1353 Document doctor datastores --repair for namespace contamination cleanup

Opened by stack72 · 7/22/2026· Shipped 7/23/2026

Problem

PR #1930 added swamp doctor datastores --repair which detects and cleans up foreign namespace contamination in giga-swamp repos. This is a critical recovery tool for repos affected by the namespace contamination incidents (#1314, #1320, #1325), but it has no user-facing documentation yet.

Proposed Solution

Add documentation covering:

  1. What namespace contamination is — foreign namespace objects nested under the repo's own namespace on S3/GCS, caused by unscoped pushes before the namespace isolation fix (#1923)

  2. How to detect itswamp doctor datastores now reports contamination as a failing health check with object counts per foreign namespace

  3. How to repair it — the two-step flow:

    • swamp doctor datastores --repair — preview what will be cleaned up
    • swamp doctor datastores --repair -y — execute the 5-step cleanup (delete foreign objects, rebuild remote index, wipe local cache, re-pull scoped, invalidate workflow run + catalog indexes)
  4. What gets recovered — workflow runs that were invisible after contamination, including suspended approval runs that were unreachable via workflow approvals

  5. Error recovery — if repair fails mid-way, the error message tells the user which step failed and how to restore (e.g. swamp datastore sync --pull)

  6. When NOT to use it — only for custom (remote) datastores with a namespace configured; filesystem datastores don't have this problem

Alternatives

Users can read swamp doctor datastores --help for flag descriptions and examples, but this doesn't explain the contamination concept or the recovery workflow end-to-end.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/23/2026, 6:36:24 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/23/2026, 4:47:55 PM

Sign in to post a ripple.