ADR 0167: A reader's credit is opt-in, bound to the text it was agreed for, and shown only in the link view
- Status: Accepted
- Date: 2026-10-26
- Decision issue: #228
- Parent story: #204
- Parent epic: #16
- Builds on: ADR 0155, ADR 0162
Context#
The story says public credit is opt-in and revision-bound. ADR 0155
made credit opt-in (publishName) but a clarification replaces the text and raises the revision,
and the old publishName stayed in force for words the reader had not agreed to be credited for.
Decision#
- Consent is recorded for a revision. A suggestion keeps
creditRevision, the text revision the reader agreed to be credited by name for, in the row'sdetails(no schema change;detailsis already read strictly and now also allowscreditRevision). It is set to 1 when they send the suggestion withpublishNameand a name. - A clarification that changes the text needs fresh consent. It raises the revision and leaves
creditRevisionbehind, so the old agreement no longer matches. It never carries consent with it: the reader agrees again by their receipt, for the text as it now stands. - A changed consent is the reader's own act, by their receipt. The new
creditaction sets or clearspublish_nameandcreditRevisiontogether, guarded by the row's version. Agreeing binds it to the current revision and needs a name; withdrawing clears both. An agreement with no binding offers nothing. - A credit is exposed only when it matches.
Suggestion::credit(and the hostedsuggestionCredit) returns the name only whenpublishNameis set andcreditRevisionequals the currentitem_revision. A coordinator or contributing author sees a name only under the same rule. - It is shown in one place. The Admin's link view says "The reader agreed to be credited as X for this text. Nothing credits them unless you do." beside the link form, and nowhere else: not in the receipt shown to others, a library candidate, a research-note export, the audit event, a feed or any public page. Nothing publishes it automatically, and nothing in the system acts on it.
- Withdrawal and retention remove it. A withdrawal or a retention purge deletes the text,
detailsand name (publish_nameis reset), so there is nothing to credit and no view to show it in. The clearing of private identity after a link (ADR 0163) is unchanged: it keeps the name a reader agreed to show and clears the rest, but the agreement still has to match the text to be offered. - The stored record's size is unaffected in practice.
creditRevisionadds under 30 bytes todetails, which the room kept for links (ADR 0165) covers, and a test includes it.