Skip to content
quarry View Ticket
Login

View Ticket

Readable ticket identifiers: research complete, decision shelved

Closed54c5175f905f6cf8a5b7d6c3de9586f4afaaf14bCreated 98.2 days agoUpdated 61.5 days ago
Description2026-08-24 19:07:45
Research and mockups are done; the decision is deliberately parked.

MEASURED, on the local mirrors of fossil/sqlite/tcl:

- Prose handles derived from an id PREFIX are unsafe. 6,708 of tcl's 8,929 ticket ids are imported legacy bug numbers padded with f, so their leading bytes are a counter: 149 collisions where uniform ids predict 2.4. Hash the whole id instead and it drops to 0 at 4 words. - At equal 32 bits every encoding collides identically (2 in tcl's 94,133 artifacts). Only the length differs: 4 words 27ch, 2 words + hex 18ch, proquint 11ch, base32 7ch. - Two words alone already uniquely name 88-100% of tickets per repo, so in speech the words are the identifier and the tail is for URLs. - Adaptive shortest-unique is out. Minting from 2 words made 44,188 of 94,133 published names ambiguous later. It also disagrees between clones at different sync depths, and leaks private artifacts through handle length (tcl has 33 private tickets). - Time-derived numbers are out as IDENTITY: the D card is author supplied, so one backdated artifact renumbers every ticket. tcl's real 6,708-ticket import carried 2000-2013 dates.

WHERE IT LANDED

Two doors, and a distributed-counter CRDT argues there is no third: conflict-free increments require per-actor slots, so either accept coordination (a claimed counter written into the ticket artifact as a J field, with block reservation for offline use) or accept a per-actor prefix (#drh-412, conflict-free with no authority at all).

Both keep: fixed length, monotonic lengthening only, resolver accepts shorter forms forever, clash suffix ordered by timestamp, imported tickets keep their original numbers.

NOT DECIDED: which door. Also unresolved: the wordlist needs a pass to drop adjectives that combine badly, and any wordlist scheme is English-only where the identicon it was compared against is not.

2026-09-12 19:28:36

Direction chosen (dmestas): explore this against the LOCAL tier, which changes the premise.

The research concluded a distributed-counter CRDT leaves exactly two doors -- accept coordination, or accept a per-actor prefix -- because a DAG-native ticket is minted by whoever holds a clone, with no authority in the middle. That constraint does not apply to a local ticket. It lives in one forge's OLTP, which IS an authority, so a plain monotonic sequence is conflict-free by construction: #412 with no block reservation, no per-actor prefix, no clone-depth disagreement.

Since new tickets now default to local, the short readable name is available for free on the door people actually file through.

What promotion does: when a local ticket is promoted into the store, the name it was published under is written onto the ticket artifact as a J field, so the artifact carries its own readable identity and a clone can resolve the name without asking the forge that minted it. The number stops being authoritative at that moment -- it becomes a recorded fact about what this ticket was called -- which is the honest shape, because after promotion no single forge owns the ticket any more.

The measured findings still hold and still rule things out: adaptive shortest-unique is out (44,188 of 94,133 names later ambiguous, and it leaks private artifacts through handle length), time-derived numbers are out as identity (the D card is author-supplied), and prose handles from an id PREFIX are out (tcl's 6,708 padded legacy ids make leading bytes a counter -- 149 collisions where uniform ids predict 2.4).

Open, not decided here: what a promoted ticket shows when the store holds two tickets promoted from different forges that both claimed #412. Neither is wrong and the resolver has to say so.

2026-09-23 21:18:16

Decision (dmestas, 2026-09-23): option C, every ticket numbered and the number recorded.

Measured before deciding: quarry had 151 store tickets and 69 local ones, 30 store tickets filed since local became the default (13 of them by jva), and no local ticket promoted. A local-only number (the 2026-09-12 direction) would have shown #71 beside e3dfc93f in one list.

Shape:

  • A forge numbers every ticket in a repository it owns (writable here), one sequence per repository, in creation order, local and store together. Mirrors are never numbered.
  • The forge's database is the allocator. The number is also written onto the ticket as a field (number): a store ticket gets one ticket change by the forge when it is numbered; a local ticket carries it into the artifact at promotion. So a clone learns the name without asking the forge.
  • The hex id stays the permanent address: /ticket/ and /ticket/ open the same page.
  • A name two writable forges both claimed resolves to a chooser listing both, never a guess.

Mockup of the three options compared: https://claude.ai/artifact/S9mqJ1wRZFr5BhHZ46kcNx

2026-09-30 12:23:17

Superseded by what shipped: tickets carry numbers, a #N reference shows the number and state with a hover card, and "closes #N" resolves by number. The shelved decision is made.