ADR 0113: Third Perspectives are one feedback row, submitted through the one route with a receipt, and approved at the consent the moderator saw
- Status: Accepted
- Date: 2026-10-26
- Decision issue: #221
- Parent story: #201
- Parent epic: #16
- Builds on: ADR 0080, ADR 0081, ADR 0101, ADR 0105, ADR 0106, ADR 0107, ADR 0110, ADR 0111, ADR 0112
- Coordinates with: #222 (status and the canonical page's rendering), #214 (featured reflections)
Context#
ADRs 0109 to 0112 define what a Third Perspective is and how its consent and lifecycle work, with
storage left as a one-way door. #221 opens it: readers submit without an account where the
optional service is configured, the submission always enters pending, and moderators decide in
RD12's one inbox. B5 already has one private feedback table whose kind and status check only
their shape, one transport route, a shared browser and function validator, and the copy-and-send
fallback; RD12 has one policy seam, receipts, the inbox, retention and abuse reports.
Decision#
-
One route, one store. A Third Perspective is sent to the hosted function's existing
POST /feedback. The function routes it by itskindto its own reader,readThirdPerspectiveSubmissionJson(web/components/third-perspective.js), which appliesSubmissionRequest::from_jsonandreceive's checks in the same order; both are held totests/fixtures/third-perspective-submissions.json. It is then gated exactly like passage feedback: the post's mode for the kind fromopenblog-participation.jsonmust beopen(ADR 0101), the hourlyfeedbackquota and replay bound apply (409 duplicate), and it is stored aspending, never anything else. No rank, rating, vote or score exists anywhere in the submission, the row or the inbox. -
Storage (the exact schema). One
openblog_feedbackrow per copy:kind=third-perspective;format_version1;work,revision,target,seen_at,received_at,channel,reader_nameandpublish_namefrom the provenance as received (B5's record, ADR 0078);bodythe current text;item_revisionits revision;statusRD12's state;clarification_consentthe consent in effect's clarification;receipt_hashthe receipt's digest.details={"category"?, "intake": {"receiptDigest"}, "consents": [...], "revisedAt"?}(SubmittedCopy::stored_details;SubmittedCopy::from_storedreads a row back with every rule). The only schema change is additive and opt in, insupabase/feedback.sql:alter table public.openblog_feedback add column if not exists approved_consent integer check (approved_consent >= 1);create or replace function public.openblog_moderate_third_perspective(text, uuid, integer, text, text, text, text, text, text, timestamptz, integer), which takes every inbox decision on a row of this kind while its state, version and text are as both Admin and the function saw them, setsapproved_revisionandapproved_consentonly on approval, refuses whatopenblog_moderate_feedback_itemrefuses, and refuses an approval unless the consent record it names is the last one and still agrees to publish (details->'consents'->-1). It records the same audit event.
supabase/third-perspective-rollback.sqldrops exactly those two;feedback-rollback.sqldrops the function with the table, and the moderation and protection rollbacks say to run it first. -
Opt in, and only with receipts. The function takes Third Perspectives only with
OPENBLOG_THIRD_PERSPECTIVES_ENABLED=trueon top of passage feedback, the inbox's schema and protection, because every hosted copy must have a receipt (itsIntake::Hosteddigest), the only proof that lets the reader take it back. Without it the route answers404 unavailableand the reader gets the copy-and-send path. Pages offer the hosted form only withengagement.receipts(ADR 0114). -
Receipts are RD12's.
POST /receiptworks as for every reader kind, with these differences for this kind:readreturns the category only, never the consent records or the digest;consent(agreeing or declining to be asked, while pending) appends a consent record asSubmittedCopy::revise_consentwould (reviseClarificationConsent, held to the same fixture) and raises the row's version, so an approval made on the earlier record is refused;clarifyreplaces only the text and addsrevisedAt, keeping the category, intake and consent records whatever the reader sends;withdrawis RD12's withdrawal and purge, which is the revocation of ADR 0112. -
Moderation is RD12's inbox. The function lists rows of this kind with the inbox's facts and
approvedConsent, and B5's own/admin/feedbacklists only B5's kinds and refuses to decide a Third Perspective (409 useModerationInbox). Admin reads each row back into aHostedPerspective(moderation_inbox::Content::Perspective), decides with RD12's policy, and before an approval callsInbox::check_perspective_approval(SubmittedCopy::check_approvalwith the signed-in account as the moderator) for the text revision and consent record the card showed, which the request carries asseenRevisionandseenConsent. The function checks them again (checkThirdPerspectiveApproval), and the database a third time. An approval is offered only where the page says the service records it (thirdPerspectivesin the inbox page). The view shows the category, what it is about and whether that section changed, the consent in effect, the credit-name hint and how it would read; the reader's name follows RD12's rules, and the receipt's digest is never shown. Approving publishes nothing yet: the canonical page renders approved responses in #222, and nothing is written toreader-feedback.json. -
Nothing is e-mailed, and nothing identifies a reader beyond what they chose to give.
Considered options#
- A separate route and table. Rejected: B5 and RD12 deliberately made one store and one route for every reader kind; a second would duplicate quotas, receipts, retention and reports.
- Hosted copies without receipts. Rejected: ADR 0110 promises the reader can take it back at any time, and only a receipt proves the submitter; without one the conservative path is the copy to the author.
- Binding the approval by the version alone. Rejected as the only guard: the version does
bind it (consent changes raise it), but storing
approved_consentis what lets the page later require that the approved and current consent agree (ADR 0111), and lets the database refuse an approval of a revoked or superseded consent outright. - Keeping the receipt's digest only in
receipt_hash. Rejected: the record's intake is part of the checked copy (ADR 0110); the duplicate is a one-way digest of a random secret, never returned to the reader or shown in the inbox.
Consequences#
- A site turns Third Perspectives on in three steps (SQL, environment,
participation.kinds) and off by removing the environment variable; rows stay and stay private. - #222 renders approved responses from the hosted rows with
approved_response, usingapproved_consent; until then an approved reflection is shown nowhere. - Retention, deletion requests and abuse reports treat these rows like every reader kind.
Domain language#
Third Perspective region and Perspective consent record are defined in
CONTEXT.md.