Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:52 • Ticket [9561ac07b1] Field-level capabilities, so private ticket data can be shown to those entitled to it status still Closed with 1 other change artifact: faeb9ea089 user: zeitgeist
2026-09-03
11:54 • Closed ticket [9561ac07b1]. artifact: 473add858c user: ai-local
2026-08-19
12:10 • Ticket [9561ac07b1]: 1 change artifact: 33b3e22723 user: dmestas
11:04 • Ticket [9561ac07b1]: 2 changes artifact: d99208696b user: dmestas
2026-08-18
21:07 • New ticket [9561ac07b1]. artifact: e1204ae114 user: dmestas

Field-level capabilities, so private ticket data can be shown to those entitled to it

Closed9561ac07b182cee167cc07849500463a5d8f5682Created 104.1 days agoUpdated 67.9 days ago
Description2026-08-18 21:07:50
quarry now DROPS `private_contact` and `contact` from ticket pages (check-in 3918395e). That was the right emergency fix — fossil gates them behind capability `e` and we were publishing them, including real e-mail addresses in fossil own tracker — but dropping is cruder than fossil.

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.

2026-09-03 11:54:49

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.