From ed5400395f9f2bab2ed60e17ae40c68dfefebaf5 Mon Sep 17 00:00:00 2001 From: repo-worker-code-k Date: Sun, 8 Nov 2026 02:43:46 -0600 Subject: [PATCH 1/2] doc: decision record for board subscription, discovery & feed integration (#5862) --- doc/2026-11-08_design_id5862.md | 172 ++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 doc/2026-11-08_design_id5862.md diff --git a/doc/2026-11-08_design_id5862.md b/doc/2026-11-08_design_id5862.md new file mode 100644 index 0000000000..28ce37479b --- /dev/null +++ b/doc/2026-11-08_design_id5862.md @@ -0,0 +1,172 @@ +# Design decision record: board subscription, discovery & feed integration + +Issue: #5862 (follow-on design from parent #5680, decomposition item 6). +Programme: epic #2056. Boards v1: #2054. Status: decided (this record), +2026-11-08. Implementation is a separate, later decision — this record +settles the shape only, per the parent issue's filing note. + +## Scope and non-goals + +This record settles how shared board posts surface to people other than +the poster: (1) subscription — how a viewer follows a board; (2) +discovery — how a viewer finds boards and posts they do not already +follow; (3) feed integration — how posts from followed boards appear in +a viewer's feed. + +Not settled here, and not re-decided: post semantics (reference vs +snapshot) and posting permissions (#5856); curated-board submission +queues (#5857); theme format and precedence (#5858); the live-object +embed contract (#5859); board moderation hooks and roles (#5861, on +#835). Where this record depends on one of those, the dependency is +named and the other ticket's eventual decision plugs in unchanged. + +## Decision 1 — Subscription is an explicit, private follow object + +- Following a board creates a first-class subscription object: + `{subscriber, board, created_at, notify_mode, muted}`. It is created + only by an explicit follow action by the subscriber. Nothing else + creates one: not posting to a board, not having a post reposted, not + being a board member, not viewing a board. +- A subscription is the subscriber's private data. Board owners see an + aggregate follower count only where the board is discoverable + (Decision 2); they never see the follower list of a non-public board, + and no surface exposes who follows what to third parties. +- Unfollow deletes the subscription and takes effect immediately on + every surface (feed, discovery "following" shelf, notifications). + Mute is a subscription state, not a separate system: a muted + subscription keeps the follow (and the board in the viewer's board + list) but removes its posts from the feed and silences its + notifications. +- Subscribing never grants anything. A subscription to a board the + subscriber cannot read is allowed to exist (e.g. a follow placed + while access was held) but surfaces nothing until read authority + exists, and confers no read authority itself. + +## Decision 2 — Discovery is authority-filtered, in three shelves + +Discovery shows a viewer exactly three shelves, in this order: + +1. **Following** — boards the viewer subscribes to, most recent post + first. +2. **Shared with you** — boards the viewer's read authority reaches + that they do not follow, most recent share/post first. +3. **Public directory** — boards whose owner has set + `discoverability = public`. Public is an explicit per-board opt-in + by the owner; the default for every board is not-public, and + changing it is an owner action recorded on the board. + +- Search and directory listing index only what the requesting viewer + may read: board title/description and post metadata for public + boards; nothing at all for non-public boards the viewer cannot read. + There is no global index of private board metadata. +- Ranking inside a shelf is recency only (latest post/share time). + There is no engagement-based ranking, no trending computation, and + no personalised recommendation in this design; adding any of those + later is a new design decision, not an implementation detail. +- Discovery never surfaces a post the viewer cannot read, even as a + teaser: no title, no excerpt, no thumbnail of an unreadable post + appears in any shelf. + +## Decision 3 — The feed is a viewer-side, chronological aggregation of references + +- The feed is computed for a viewer from: their unmuted subscriptions, + plus boards they own. It is a view, not a stored stream: no per-user + feed copies are materialised, so unfollow, mute, revocation, and + deletion take effect on the next render with no cleanup pass. +- Ordering is strictly chronological by post time (newest first). + Reposts surface at repost time with the full attribution chain + (original author, original board, reposting board) per the parent + issue's repost model; the same post arriving via several followed + boards appears once, with all arrival paths listed. +- A feed item is a reference to the post, rendered under the post + semantics #5856 settles (live reference or snapshot). This record + deliberately does not pick that default; the feed stores no copy of + its own, so either #5856 outcome plugs in without a feed redesign. +- Read authority is checked at render time, every render. If the + underlying object or post is withdrawn, deleted, or the viewer's + authority lapses, the item disappears from the feed — including from + positions the viewer has already scrolled past on a later visit. + There is no "you saw it once, so it stays" rule. +- Playable posts render in the feed as their static fallback + (per the #5859 embed contract) with a clear "open on board" path; + live embeds run only on the board surface itself, never inline in a + feed. Themes render per #5858 precedence; a viewer's accessibility + overrides beat every theme, in the feed as everywhere. +- Feed is not notification. Following a board puts its posts in the + feed and nothing more. Notifications are a separate opt-in per + subscription (`notify_mode`: off (default), digest, immediate), + set at follow time and changeable after; the default for every new + subscription is off. Post/discussion surfaces are the discussion + design's, per the parent — the feed adds no comment system. + +## Invariants implementation must hold + +1. **No authority widening.** Subscription, discovery, and feed never + widen any object's or board's read audience beyond its own + read-authority (the parent issue's posting rule, applied to every + surfacing path). Any implementation that needs a wider audience + must go through the owner's explicit widening confirmation, which + lives in #5856's flow, not here. +2. **Render-time authority check.** Every surface re-checks read + authority when rendering; cached or indexed data is never trusted + as proof of authority. +3. **Revocation is total and prompt.** Unfollow, mute, object + withdrawal, post removal (via #5861/#835 moderation), and authority + loss all remove the item from feed and discovery on the next + render, with no residual metadata (title/excerpt/thumbnail) left + behind. +4. **Subscription privacy.** Follower identity is visible to no one + but the follower, except aggregate counts on public boards. +5. **No silent subscriptions.** No code path creates a subscription + as a side effect of another action. +6. **Chronology honesty.** Feed order is post time; no ranking signal + may reorder it without a new recorded design decision. + +## Alternatives considered and rejected + +- **Algorithmic / ranked feed** (engagement or interest ranking): + rejected — needs behavioural profiling the platform has not agreed + to collect, breaks chronology honesty, and is disproportionate for + boards' current scale. Recency shelves deliver the discovery value + without it. +- **Auto-subscribe on interaction** (posting to, being posted on, or + viewing a board follows it): rejected — violates subscription + privacy and predictability; produces feeds users never asked for + and cannot explain. +- **Materialised per-user feed streams** (fan-out on write): rejected + — makes revocation and deletion a distributed cleanup problem and + directly endangers invariant 3; viewer-side aggregation keeps one + authority check in one place. +- **Feed copies posts (snapshot-by-default for feed only):** rejected + — would silently fork #5856's post-semantics decision and keep + withdrawn content visible. The feed references; #5856 decides what + a reference renders as. +- **Global public directory of all boards** (opt-out instead of + opt-in): rejected — board titles and membership are metadata owners + have not consented to publish; opt-in public is the only default + consistent with invariant 1. +- **Notifications on by default for follows:** rejected — follow is a + reading preference, not a request for interruption; default-off + with digest/immediate opt-ins covers both audiences. + +## Parent-decision check + +Nothing in this record changes a decision in parent #5680. It adopts +the parent's positions as constraints: posting never widens read +audience (parent §1, restated as invariant 1); repost attribution +chains (parent §1); discussion lives in the discussion design, not in +boards (parent §5); moderation of surfaced posts is #5861/#835's +system, invoked here only as a removal input to invariant 3. The +parent's open question about board discovery/subscription ("following +a board, board posts in a feed, mute/unfollow", parent §5) is the +question this record answers. + +## Follow-on + +Implementation is filed as a single linked follow-on issue from this +record (subscription object + three-shelf discovery + chronological +reference feed, invariants 1–6 as its acceptance core), to be +prioritised on its own merits; per the parent, implementation timing +may be well after this design. No further design splits are needed: +notification modes, mute, and directory opt-in are settled above at +implementation-ready granularity. From ca99cf5ab07a603d3892e516af7cf74b4e0461af Mon Sep 17 00:00:00 2001 From: repo-worker-code Date: Sun, 8 Nov 2026 03:07:36 -0600 Subject: [PATCH 2/2] doc: disposition Codex review on board feed design (#5862) - scope mute exclusions to the combined subscribed+owned board set so an owner muting their own board actually removes its posts from the feed - distinguish unfollow (Following shelf + feed only) from authority revocation (feed and discovery) and clarify mute keeps the listing --- doc/2026-11-08_design_id5862.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/doc/2026-11-08_design_id5862.md b/doc/2026-11-08_design_id5862.md index 28ce37479b..43942f708a 100644 --- a/doc/2026-11-08_design_id5862.md +++ b/doc/2026-11-08_design_id5862.md @@ -66,11 +66,17 @@ Discovery shows a viewer exactly three shelves, in this order: - Discovery never surfaces a post the viewer cannot read, even as a teaser: no title, no excerpt, no thumbnail of an unreadable post appears in any shelf. +- Unfollowing removes a board from the Following shelf only. A board + the viewer can still read may still appear in "Shared with you" or + the public directory; unfollow is a reading preference, not an + authority change. Muting likewise does not remove a board's listing. ## Decision 3 — The feed is a viewer-side, chronological aggregation of references -- The feed is computed for a viewer from: their unmuted subscriptions, - plus boards they own. It is a view, not a stored stream: no per-user +- The feed is computed for a viewer from: their subscriptions, plus + boards they own; mute exclusions apply to that combined set, so a + muted board they own contributes nothing. It is a view, not a stored + stream: no per-user feed copies are materialised, so unfollow, mute, revocation, and deletion take effect on the next render with no cleanup pass. - Ordering is strictly chronological by post time (newest first). @@ -110,11 +116,16 @@ Discovery shows a viewer exactly three shelves, in this order: 2. **Render-time authority check.** Every surface re-checks read authority when rendering; cached or indexed data is never trusted as proof of authority. -3. **Revocation is total and prompt.** Unfollow, mute, object - withdrawal, post removal (via #5861/#835 moderation), and authority - loss all remove the item from feed and discovery on the next - render, with no residual metadata (title/excerpt/thumbnail) left - behind. +3. **Revocation is total and prompt.** Unfollow removes the board from + the Following shelf and its posts from the feed; it does not remove + a board the viewer may still read from the "Shared with you" or + public directory shelves (Decision 2), and it is not an authority + change. Mute removes the board's posts from the feed and silences + notifications while leaving the subscription and the board's listing + in place. Object withdrawal, post removal (via #5861/#835 + moderation), and authority loss remove the item from feed and + discovery on the next render, with no residual metadata + (title/excerpt/thumbnail) left behind. 4. **Subscription privacy.** Follower identity is visible to no one but the follower, except aggregate counts on public boards. 5. **No silent subscriptions.** No code path creates a subscription