Artifacts Associated With Ticket a5211ae04830bb70440249665c804b2d60b50dca
Ticket change [f665e01793] (rid 2170) by ai-local on 2026-08-23 18:36:49:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized to:
One open landing per branch — zit#127 left this as "probably yes, refused by name on the second" and neither side enforces it today. zit's writer does not check for an existing open landing on the branch, and quarry's fold (internal/index/landing.go) keys landings by thread, not by branch, so two threads naming one branch produce two landings and both list as open. Nothing then says which one `accept` should honour. Cheap to settle now, ugly after there are landings in stores. Two candidate rules: 1. **Refuse at open** (zit#127's lean): `landing open` scans for an open landing on that branch and refuses the second by name. Costs a scan zit already does for every read. 2. **Fold-level tie-break**: allow the artifacts to exist (they are ordinary forum threads and cannot be prevented from arriving out of order or from two peers) and have both readers agree on which wins — newest root by (date, hash), the same rule the state fold already uses. These are not exclusive and probably both belong: (1) is the courtesy, (2) is the correctness. Sync makes (1) unenforceable on its own — two people can open a landing for the same branch in separate clones and both are valid artifacts when they meet.
- status initialized to: "Open"
- subsystem initialized to: "index"
- title initialized to:
landings: decide the rule for two landings on one branch
- type initialized to: "Feature_Request"
Ticket change [a33f2a4cd9] (rid 2244) by ai-local on 2026-08-23 21:38:00:
- icomment:
Half of this is answered upstream: zit refuses a second open landing on a branch by name ("already has an open landing"), verified in its e2e suite. So rule (1) exists and quarry inherits it. Rule (2) — the fold-level tie-break — still stands and is still ours. Sync makes refuse-at-open unenforceable on its own: two people can open a landing for the same branch in separate clones, and both are valid artifacts when they meet. quarry's fold keys landings by thread, so both would list as open with nothing saying which accept should honour. - mimetype: "text/x-markdown"
- icomment:
Ticket change [1536b60e47] (rid 2846) by dmestas on 2026-08-26 12:59:19:
- comment changed to:
Both rules, as the ticket suspected. landing.open refuses the second by name; the fold marks a winner regardless, since sync makes refusal unenforceable alone. Newest root wins — the ticket's proposal and the rule the state fold already uses. Recomputed each fold so a record revives if the one that displaced it settles; settled landings never take part; nothing is deleted.
- resolution changed to: "Fixed"
- status changed to: "Fixed"
- comment changed to:
Ticket change [8de1998234] (rid 12514) by zeitgeist on 2026-09-24 00:53:53:
- Untracked field number: "79"