hub: card history hides redaction reasons from readers who may not see them (§8.5)
tsk-dd14yts44h1f Done Maity Coder Claude 002
Privacy fix from the security rounds (tsk-v9kheekgq115). §8.5 says the reason of a redaction is visible only to readers who may see reasons. Notes and the export already follow it, but the card history does not.
To do:
- Pass the reader into
board/history.pyview()and dropreasonfrom a redaction tombstone unless the readersees_reasons, asnotes.tombstone_fordoes. - Extend
views.py_without_reasonto tombstones inside field values oftask_created/task_updatedpayloads, soGET /eventsdoesn't carry the reason either. - Tests: a reader with only
project:readsees the tombstone without its reason onGET …/tasks/{id}/historyand onGET /events; anevents:adminreader still sees it. - A changelog entry under Security.
Boundary: the change guarantees that wherever the hub serves a card history entry's redaction tombstone (the history list, the redaction answer and its replay, link answers built from an entry, and task field values on GET /events), its reason is shown only to readers who may see reasons under §8.5. It does not change what is stored, the export (which already follows §8.5), or the event_redacted notice. P3: wording, test shape and naming.