ADR 0158: Suggestions are sent through the one feedback route, behind their own opt-in, with the page as work
- Status: Accepted
- Date: 2026-10-26
- Decision issue: #227
- Parent story: #204
- Parent epic: #16
- Builds on: ADR 0154, ADR 0113, ADR 0107, ADR 0108
Context#
RD13.1 defined the record. RD13.2 lets a reader send one. Passage feedback and Third Perspectives already share one hosted route, one quota and replay design, one receipt and one set of rules for who is asked what; a second route would be a second way to get each of those wrong.
Decision#
- The same route, read by its own contract.
POST /feedbacktakes a body whosekindisfuture-suggestionand reads it withweb/components/future-suggestion.js, which the build'sSubmission::from_jsonand a shared fixture (tests/fixtures/future-suggestion-submissions.json, generated by the Rust side) hold to the same codes, records and rows case by case. It is refused with 413 over 12 KiB and 422 with the code of the first broken rule, a message that names the field and never repeats what the reader wrote. - The page is the request's
work, not part of the reader's submission. The version 1 record has no page (a reader does not say which page they are on; the receiver does). The route reads it from the query string,?work=/posts/tides/, checks it is a site-relative published path, and then asks the site's own manifest (openblog-participation.json) whether that page has the kindopen; a page the site does not publish with the kind open takes nothing (403), so a hostileworkcan only name a page where suggestions are already welcome. - Its own opt-in, on top of the receipts.
OPENBLOG_SUGGESTIONS_ENABLED=truetakes effect only with passage feedback, the inbox's schema and engagement protection on, because every hosted suggestion has a receipt so the reader can always take it back (the inbox'sissues_receiptsrule). Without it the route answers 404unavailableand the reader gets the copy-and-send path. The only schema change is the loosened check of ADR 0154, with its rollback. - A quota and a replay bound of its own. Five suggestions an hour per client and 500 per site
(bucket
suggestions), and the same suggestion for the same page from the same client once an hour (bucketsuggestions-repeat), whose claim is released if storing fails so a retry is never told it was already sent. Only hourly digests are kept, never the address. - Always pending, with a receipt. A suggestion is stored
pendingwithreader_nameandpublish_nameas given,clarification_consentfalse (the reader may agree through the receipt), the receiver's time and the digest of a receipt returned once. ThroughPOST /receiptthe reader reads it (their own text and contact are theirs to see), agrees to be asked, answers a clarification (the new text replaces the old as the next revision; the link, hints, page and contact stay) or withdraws it, which deletes its text, name and contact at once. Nothing is e-mailed. - Nothing is fetched. The route calls only the database and the site's own manifest; the link a reader gave is stored, never opened.
Consequences#
The route's refusals, quotas and replays are tested against the same fixture as the build, with the
opt-in off, the page closed or hidden, a failing store and a reader who retries. A site whose function
is older than this release answers a suggestion as it answers any unknown body (422 wrongKind from
passage feedback's reader), and the form falls back to copy-and-send.