Field-level capabilities, so private ticket data can be shown to those entitled to it
An admin or a maintainer legitimately needs the reporter contact: that is what it is FOR. Today nobody can see it through quarry at all.
## What fossil has
A per-user capability string. The ticket-relevant letters: `r` read tickets, `n` create, `w` append/write, `e` view private e-mail addresses, `a`/`s` admin/setup. `e` is separate from admin precisely because "may contact reporters" and "may reconfigure the tracker" are different jobs.
## What quarry has
`repo_role` with read | write | admin per account per repository, plus a site-admin flag. Three levels, nothing field-scoped — which is why the fix had to be all-or-nothing.
## Shape
Do NOT import fossil letters. They are a compact encoding of a permission set, and quarry roles are already the same idea in words. Add one capability rather than a system:
- `repo_role` gains an optional capability set beside the role: initially just `contact` ("may see reporter contact fields"). - Ops that render tickets consult it; the field list becomes a function of the caller rather than a constant. - Site admins hold it implicitly, as they hold everything else.
## Why it stays small
The moment this is a general capability system it needs a UI to manage it, docs, and an answer for every field a repository invents. One named capability covering the fields fossil itself singles out is the whole real requirement, and it can grow later without redesign — 0001 §8 already says role granularity "adds tables, not architecture".
## Depends on
Nothing. Lower priority than reports and the schema-driven form: the current behaviour is SAFE, merely inconvenient, and the inconvenience falls on exactly the small group who can read the artifact directly.
Landed: fossil capability e is honoured. private_contact and contact are dropped for readers without it and shown (ShowPrivate) on the ticket page and timeline to accounts that hold e on the repository, per the capability model in Settings > Capabilities.