Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f665e01793482bd740ccc1994fdda4a752dd3840c347cf0d171745195eb29a49
Ticket: a5211ae04830bb70440249665c804b2d60b50dca
landings: decide the rule for two landings on one branch
User & Date: ai-local on 2026-08-23 18:36:49
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed 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.
    
  3. status changed to: "Open"
  4. subsystem changed to: "index"
  5. title changed to:
    landings: decide the rule for two landings on one branch
    
  6. type changed to: "Feature_Request"