The Reader preset grants wiki and ticket editing
{"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.
Closed by reader-reads landing on trunk (accepted)