Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [66925a7add] Quarry-managed tickets: keep triage out of the DAG, promote what belongs in it status still Closed with 1 other change artifact: 3cf0df9132 user: zeitgeist
2026-09-23
00:32 • Closed ticket [66925a7add]. artifact: 10edf7fe64 user: zeitgeist
2026-08-19
17:02 • Ticket [66925a7add]: 1 change artifact: 575625587f user: dmestas
12:10 • Ticket [66925a7add]: 1 change artifact: 3ec96b14be user: dmestas
11:04 • Ticket [66925a7add]: 2 changes artifact: fcb6ed19f1 user: dmestas
10:10 • New ticket [66925a7add]. artifact: bbd23464e0 user: dmestas

Quarry-managed tickets: keep triage out of the DAG, promote what belongs in it

Closed66925a7add00292620cbb488b72cc4a3730b5fb8Created 103.5 days agoUpdated 67.9 days ago
Description2026-08-19 10:10:13
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).

2026-09-23 00:32:50

Closing on measurement: the proposal is built and serving on build e53836294974.

  • The forge tier exists. ticket.intake records a ticket on the forge's own tier — no artifact, no clone carries it, local: true on the answer (measured on dantest-sandbox: 1 of its 5 tickets is local). It can be edited, and it is gated by capability rather than by clone.
  • Promotion is opt-in. ticket.promote writes a local ticket into the store as an artifact; until then nothing enters the DAG.
  • The two tiers share one tracker. The same vocabulary gates both (0c4bf1d5); a local ticket cannot invent a column or a status the tracker it will be promoted into does not have; ticket.set says local: true so an empty hash is explicable.
  • Attachments follow the ruling made today: a forge-tier ticket holds its files on the forge and writes the A cards at promotion (31ea1267, dmestas's call on 9e628be2).
  • docs/local-tickets.md records the tier.

What the ticket listed as the DAG's costs — volume in every clone, nothing unsayable, filing implying trust, all-or-nothing privacy — are each answered by the tier: a local ticket is carried by no clone, is deletable, is written by a caller who holds a forge capability rather than a commit bit, and can be kept out of the store entirely. Backlinks from check-in comments to local tickets (linkage level 1 "reference") I have not measured separately; if that half is not resolving, it wants its own ticket rather than this one staying open for it.