Skip to content

Add a purge / right-to-be-forgotten path across the local ledgers #5564

Description

@JSONbored

Problem: Found during a third-pass gap audit across Miner Waves 1-4. Every local ledger (claim-ledger, event-ledger, governor-ledger, attempt-log, prediction-ledger) is deliberately insert-only — zero DELETE FROM anywhere in any of them — and none of their CLI wrappers expose a way to purge a specific repo's or miner-login's rows. There's no operator-facing way to fully remove a repo's or a contributor's local history (e.g. after offboarding, a mistaken target, or a privacy request).

Area: AMS / Miner (local stores)

Proposal: Add a gittensory-miner purge --repo <owner/repo> [--miner-login <login>] [--dry-run] [--json] command that deletes every row referencing the given repo (optionally scoped further to a miner login) across claim-ledger, event-ledger, governor-ledger, attempt-log, and prediction-ledger.

Deliverables:

Acceptance criteria:

  • Running the purge command removes every row for the given repo (and login, if specified) from all five ledgers, and reports exactly what was deleted.
  • --dry-run makes zero writes and reports what would be deleted.
  • A purge is itself observable after the fact (not silent).

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions