Artifacts Associated With Ticket 085786dd87
Ticket change [6c286780d6] (rid 7731) by zeitgeist on 2026-09-12 23:02:24:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized 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. - severity initialized to: "Important"
- status initialized to: "Open"
- subsystem initialized to: "auth"
- title initialized to: "The Reader preset grants wiki and ticket editing"
- type initialized to: "Code_Defect"
Ticket change [aa55516458] (rid 8204) by dmestas on 2026-09-13 18:32:51:
- icomment: "Closed by reader-reads landing on trunk (accepted)"
- mimetype: "text/x-markdown"
- status changed to: "Closed"
Ticket change [1faa36a939] (rid 12571) by zeitgeist on 2026-09-24 00:57:14:
- Untracked field number: "138"