Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6c286780d66433667c9d9e4bac4aa2b148e1754fb5a18de3843d2d72d0ddda01
Ticket: 085786dd870ec1e000094e1acf0154ac71c53b59
The Reader preset grants wiki and ticket editing
User & Date: zeitgeist on 2026-09-12 23:02:24
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    quarry's four role presets are described in `internal/oltp/roles.go`, and
    the first one does not do what its description says.
    
        {"Reader", "reads, asks, discusses — most accounts on a public
         project", "u3bBC78"}
    
    The `u` is fossil's reader CATEGORY, and `effective()` expands it:
    
        if strings.ContainsRune(eff, 'u') {
            eff = capUnion(eff, d.categoryFor(repo, "reader"))
        }
    
    On a repository that has not overridden its categories, that resolves
    through fossil's shipped default:
    
        StockReader = "kptw"
    
        k   edit wiki pages
        p   change own password
        t   create ticket report formats
        w   edit tickets
    
    So granting **Reader** on a stock repository grants **wiki editing and
    ticket editing**. The word on the page is "reads, asks, discusses"; what
    it hands over includes two edits.
    
    This is faithful to fossil — its reader category really does ship those
    letters, and RFC 0004's whole premise is that quarry is a native
    implementation of that model rather than a reinterpretation of it. So
    this is not obviously a bug in the expansion. It is a mismatch between
    the preset's ADVERTISED meaning and its resolved meaning, and the
    advertised meaning is what an admin picks from.
    
    Found while specifying the team membership floor (8318bd2819ca): the
    obvious implementation of "a member can read everything and edit
    nothing" was "membership means Reader", and it is not that.
    
    Worth deciding between:
    
    - Leave the letters, fix the words. Reader's description becomes honest
      about what the category expansion carries. Cheapest, and keeps fossil
      fidelity exactly.
    - Drop `u` from the preset and spell out the read letters. Reader then
      means what it says on any repository regardless of its categories, at
      the cost of no longer tracking a repository's own reader category when
      an admin has deliberately widened it.
    - Leave both and surface the expansion in the editor: show what `u`
      resolves to for THIS repository at the moment of granting, so the
      admin sees `k t w` arrive. The editor already has a raw disclosure to
      hang it on.
    
    Third option is my preference: the information exists, the expansion is
    correct, and the only thing missing is that the person granting cannot
    see it. But the first is a one-line change and removes the surprise
    today.
    
    Related: the same expansion means `u` in ANY string carries the reader
    category, so a hand-written grant has the same surprise. The preset is
    just where it is most likely to be met.
    
    
  3. severity changed to: "Important"
  4. status changed to: "Open"
  5. subsystem changed to: "auth"
  6. title changed to: "The Reader preset grants wiki and ticket editing"
  7. type changed to: "Code_Defect"