Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e1204ae11442c817dd47208e616a9eb78b4d382a9bf8807a81b060cd0139e1ee
Ticket: 9561ac07b182cee167cc07849500463a5d8f5682
Field-level capabilities, so private ticket data can be shown to those entitled to it
User & Date: dmestas on 2026-08-18 21:07:50
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    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.
    
  3. severity changed to: "Minor"
  4. status changed to: "Open"
  5. title changed to:
    Field-level capabilities, so private ticket data can be shown to those entitled to it
    
  6. type changed to: "Feature_Request"