Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 337ad74f8fd4b998cfb0957003262d0f514432a51e6cfc3239b36f8c7698f528
Ticket: 0c731b1455ef5277b789f0c86a7d1e48b214eca4
Should deleted repositories be recoverable, and for how long?
User & Date: ai-local on 2026-08-23 12:15:49
Changes

  1. icomment:
    Decided 2026-08-23. Answering the question this ticket asks, so it closes; the verbs it implies are lifecycle work and belong to a78a1bd913.
    
    **Should deleted repositories be recoverable?** Yes, by moving them aside — never by a timer.
    
    **For how long?** Until an operator says otherwise. quarry makes no retention promise at all.
    
    ## The reasoning
    
    The expensive part of GitHub's 90-day model is the TIMER, not the graveyard. A timer needs a reaper, quota accounting and a disk-full story: three mechanisms to make one undo button work, which fails the smol contract's "programs that can be finished". A graveyard with no timer needs none of them — it is a rename. That is zit's design (purge list / undo / obliterate, explicit-only, never on a clock), and it is why zit's design is right.
    
    A retention window we advertise and do not enforce would also break the standing invariant: never show false data.
    
    ## The decisions
    
    1. **repo.remove is the default verb in the UI.** It already exists — "stop serving a repository; the store on disk is left untouched" — and is already the recoverable path for the common case. Much of the demand for a grace period is met by an operation we shipped and never advertised. The surfaces must say what it leaves behind.
    
    2. **repo.delete moves the store to a graveyard rather than unlinking it.** Three states, zit's: repo.graveyard lists, repo.restore brings one back, repo.obliterate finishes the job. quarry stops being the thing that destroys a store by default.
    
    3. **No retention timer — absent, not merely off.** Retention is the operator's filesystem and backup policy. quarry's job is to REPORT what the graveyard holds, on /fleet beside ingest health, because an invisible store of deleted repositories is how a disk fills. mv and rm already exist and are better at this than we would be.
    
    4. **obliterate: true at the point of deletion**, offered plainly rather than hidden behind a second workflow. The urgent deletion is the leaked-secret one, and for that user "we kept it for 30 days" is the failure, not the feature. A policy built for the accidental case must not slow the deliberate one.
    
    5. **No name reservation.** A name is a mount point; the store is the identity, which is the fossil-compatible view. Restoring into a name something else now occupies requires an explicit new name rather than clobbering or refusing. Deliberately unlike GitHub: reserving means you cannot recreate a repository you just deleted, which surprises the common case to protect the rare one.
    
    6. **The graveyard is local and disposable.** Never an artifact, never syncs, not carried by a clone — zit's rule verbatim. Losing it costs recoverability, not data.
    
    7. **The confirmation states two things**: whether this deletion is recoverable, and that it does not unpublish anything a peer already holds. Deleting from quarry is not a takedown; that is zit shun, and a different ticket.
    
    ## One deviation from the shape proposed above
    
    This ticket proposed repo.restore; zit's word is `purge undo`. Keeping repo.restore: repo.undo reads as "undo the last repository operation", a different and more dangerous-sounding thing. Two verbs match zit exactly, the third is disambiguated deliberately rather than by accident — worth stating, since matching zit's vocabulary was this ticket's own principle.
    
  2. mimetype: "text/x-markdown"
  3. resolution changed to: "Works_As_Designed"
  4. status changed to: "Closed"