Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bbd23464e00f274c69695e01800c66528e408f65dcac3c61c69251221bf042e3
Ticket: 66925a7add00292620cbb488b72cc4a3730b5fb8
Quarry-managed tickets: keep triage out of the DAG, promote what belongs in it
User & Date: dmestas on 2026-08-19 10:10:13
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    Fossil's tracker puts every ticket into the DAG: an artifact, synced to
    every clone, permanent. That is the right trade for some projects and
    visibly the wrong one for large ones — canonical SQLite does not use the
    built-in tracker at all, and several projects stand up a *second* fossil
    purely to hold tickets, which is the same admission by a different route.
    
    What the DAG-native tracker costs at scale:
    
    - **Volume lands in every clone.** Tickets outnumber check-ins, and they
      are carried by everyone who clones, forever, whether or not they care.
    - **Nothing can be unsaid.** Spam, a pasted credential, a contributor's
      personal data, a mistaken paste of a customer log — an append-only
      artifact history has no answer but "it is in there now". Fossil's own
      hedge is hashing `private_contact`, which tells you where the pressure
      is.
    - **Filing implies trust.** Writing a ticket writes an artifact, so the
      bug reporter sits inside the same boundary as the code history.
    - **Privacy is all-or-nothing.** The only reliable way to keep something
      out of every clone is not to file it.
    
    ### Proposal
    
    Let a repository keep tickets in **quarry** rather than in the store, with
    an explicit opt-in to put a ticket into the code history.
    
    This does not invent a new tier: 0001 §8 already names the forge OLTP as
    the only authoritative non-DAG state, and `internal/oltp` already holds
    accounts, sessions, webhooks and CI rows. Quarry-managed tickets are that
    tier used for what it is for. They are mutable, deletable, cheap, and
    scoped by capability rather than by clone.
    
    Two levels of linkage, both opt-in:
    
    1. **Reference.** The ticket stays quarry-only; check-in comments may
       cite it and backlinks resolve. Nothing enters the store.
    2. **Promotion.** The ticket is written into the store as a real ticket
       artifact and from then on ships with the code. Irreversible by
       construction — which must be said plainly in the UI, because it is the
       one action here that cannot be undone.
    
    The promotion criterion is a good one and worth stating in the interface:
    promote a ticket when it answers "why is this code like this". Triage
    chatter, duplicate reports, and support questions never needed to be in
    anyone's clone.
    
    ### What this costs us — the honest part
    
    **It breaks disposability.** 0001 §5 and §11 say derived state is wipeable
    and rebuildable, and the harness enforces it. Quarry-managed tickets would
    be the first content quarry *owns* — a wipe-and-reingest cannot rebuild
    them, because the store never had them. That makes backup and replication
    load-bearing rather than a deployment nicety (`oltp.go` already gestures
    at litestream "when deployment warrants it"; this would be the thing that
    warrants it). This is the real price of the feature and should be paid
    deliberately, not discovered later.
    
    **They do not follow the store.** Two quarries fronting the same zit repo
    would not see each other's tickets. Whether quarry-managed tickets should
    replicate between quarry instances at all — and if so, over what — is the
    open question I cannot answer from the code. It decides whether this is a
    forge-local convenience or a second sync problem.
    
    ### What it simplifies
    
    `#8518c09b21` (private tickets) largely dissolves. Today the plan is to
    write a ticket into the DAG and then filter it on read everywhere, forever
    — a privacy property enforced at every call site. In this model a private
    ticket simply never enters the store, and the filter has nothing to guard.
    `#9561ac07b1` (field capabilities) shrinks the same way.
    
    ### Decisions needed before any code
    
    - **Authority after promotion.** If both sides stay editable they diverge.
      Cleanest is that promotion transfers authority to the DAG and quarry
      keeps only a pointer; the alternative is promoting an immutable snapshot
      ("this discussion happened") while working state stays in quarry.
    - **Identity.** Fossil ticket ids are 40-hex artifact-derived. Quarry ids
      must be distinguishable at a glance, so nobody cites a quarry id in a
      check-in comment believing it will resolve in a clone.
    - **Default per repository.** A repo dogfooding the store probably wants
      DAG-native; a large public project probably wants quarry-managed with
      explicit promotion. This should be a repo setting, not a global.
    - **Provenance in the interface.** List, detail and global search must all
      mark which world a ticket lives in. A reader has to know without
      clicking what survives a clone.
    
    Related: `#dd828b32a1` (capability audit — the field-level findings apply
    either way), `#aa28c880b6` (reports), `#0c731b1455` (the same
    can-we-unsay-things question, asked about repositories).
    
  3. status changed to: "Open"
  4. title changed to:
    Quarry-managed tickets: keep triage out of the DAG, promote what belongs in it
    
  5. type changed to: "Feature_Request"