Skip to content

id: design: notifications, watch/mute & presence for object discussions (from #5682) #5875

Closed

Description

@dezren39

Summary

Follow-on design ticket from #5682 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.

What this design must settle

Notification posture, watch/mute, presence, and search across anchored conversations.

Context from the parent

The parent design fixes chat's growth from v1 (#2051) — conversation↔object linking, talk pages, and terminal participation — on the #2036 protocol. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.

Decision record expected

Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.

Relations

Parent: #5682. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage)

    Triage findings for issue #5875 (task 10277)

    Verified current (2026-11-05, fresh gh reads): issue #5875 is OPEN, filed 2026-11-05T01:57:58Z in the WS-F gap pass, carrying only task/triage + queue/queued + app/id at claim time — no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit) on issue #5875 itself, and no competing PR or branch for this ticket.

    Routing: follow-on design ticket, ordered behind its parent. Issue #5875 is a decomposition child of issue #5682 — the parent's acceptance required it to be filed and linked, which is satisfied. Its body is explicit that the parent fixes the inputs this design must compose with (chat's growth from v1: conversation↔object linking, talk pages, terminal participation, on the issue #2036 protocol) and must not re-decide them. Issue #5682 is still OPEN and currently parked with work/assigned (status/parked, queue/parked) — another holder has it parked, its design has not closed with a decision record, and this triage does not touch the parent. Notification posture, watch/mute, presence, and search across anchored conversations are defined directly against the parent's conversation↔object linking model, so they cannot be settled independently first.

    Ordering recorded:

    1. Issue id: design: Chat next steps — conversation↔object linking, talk pages, terminal participation #5682 design resumes from its park and closes first (or records its linking / talk-page / terminal-participation decisions).
    2. Then the design pass on issue id: design: notifications, watch/mute & presence for object discussions (from #5682) #5875, closing with the decision record its body requires (chosen shape, alternatives rejected and why, invariants implementation must hold; further splits filed and linked here if it splits).
    3. No implementation issue is filed now: the body itself states implementation timing is a separate decision, possibly months out.

    The issue stays open under programme epic issue #2056, labelled triaged + waiting-dependency to mirror this ordering. No code change in this triage.

  5. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  6. 53 remaining items

  7. added this to the ID platform program milestone on Nov 12, 2026
  8. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — state: blocked (dependency) · task 12839, lane code-a

    Gate revalidated fresh (2026-11-14T04:22Z): issue #5875 is OPEN with no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit), and parent issue #5682 is still OPEN — the #5875 decision record must not start until #5682 closes with its conversation-object linking / talk-page / terminal-participation decisions recorded.

    Task 12839 is re-declared as a broker-watched dependency block (runbook §5b): blocked-by issue #5682, recheck 900s, max TTL until 2026-11-17T04:21Z. The broker returns task 12839 to the pool automatically when #5682 closes; the claiming lane then does the #5875 design pass. No design work was started, per the packet gate. Labels synced: queue/blocked + status/blocked + status/waiting-dependency.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged / queue task done (dependency gate holds)

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (dependency)

  11. removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor
    Freshly verified parent #5682 remains OPEN, so its required design decisions are not yet closed. Per the task gate, no design work was started. Resume condition: after #5682 closes with its conversation/object linking, talk-page, and terminal-participation decisions recorded, re-verify that evidence and then continue #5875.
  13. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 20, 2026
  14. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (dependency)

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Gate moved — parent #5682 is now CLOSED (Lane CK, 2026-11-22)

    The resume condition recorded for task 12839 on this issue — "after #5682 closes with its conversation/object linking, talk-page, and terminal-participation decisions recorded, re-verify that evidence and then continue #5875" — is now met:

    The #5875 decision record (notification posture, watch/mute, presence, search across anchored conversations) is the next step, now unblocked on this gate. This note does not start that design; it records that the gate it was parked on has moved.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Decision record — #5875 notifications, watch/mute, presence, search (Lane CO, archer, 2026-11-22)

    Claimed via queue task 12839 (fleet agent next, archer). Gate revalidated fresh this pass: parent #5682 is CLOSED/completed (2026-11-23T03:10:36Z) with its decisions recorded — Lane CK's reconciliation on #5682 maps every facet: #5870 anchor data model (doc on main), #5871 talk-page semantics, #5872 unification record (chat.anchor.v1, talk_for first-valid-wins) + PR #10761, #5873 terminal participation (PR #7614), #5874 resolution loop (PR #7848). The recorded resume condition for this design is met, and this record is the design it was parked for.

    Parent decisions changed by this record: NONE. Everything below consumes the parent's fixed points — first-class anchors (#5870), a talk page is a conversation with a permanent object anchor on the #2036 protocol (#5871/#5872), full terminal participation (#5873), resolution markers (#5874) — and re-decides none of them.

    1. Notification posture — subscription levels over protocol events

    Chosen: Per-principal subscription state at two scopes — object and conversation (a talk page is a conversation, so object scope covers its talk page plus threads anchored to it). Three levels:

    • watching — all activity in scope: new threads, replies, resolution changes, anchor events.
    • default (participating) — replies in threads you participate in, direct mentions, resolution of threads you authored or participate in. Object owners default to default on their object's talk page.
    • muted — no routine notifications from the scope (see §2).

    Notifiable events: mention, reply-in-participated-thread, activity under watching, thread resolved/reopened (#5874), anchor orphaned/drifted (#5870) for participants of the affected thread. Notifications are derived: an unread view computed from #2036 protocol events + subscription state, coalesced to at most one unread entry per (principal, thread). There is no separate notification store copying message content and no second transport — every client, terminal included (#5873 parity), renders the same derived inbox.

    Rejected: (a) Push-provider/email as the primary channel — breaks terminal parity and adds a transport the protocol doesn't need; may be layered later as a client choice. (b) One notification per message, uncoalesced — noise at talk-page scale. (c) A persisted notification store with copied content — goes stale against visibility changes and risks leaking content after access is revoked (see invariant 1).

    2. Watch/mute — most-specific scope wins, mute is absolute

    Chosen: Precedence is deterministic: thread > conversation/talk page > object > global default. The most specific scope's level governs. muted suppresses all routine notifications from its scope, mentions included — a mute that mentions can break is a filter, not a mute, and produces unpredictable notification behaviour. Subscription state is per-principal and private: no principal can see another's watch/mute state.
    Rejected: (a) Mute-except-mentions — unpredictable, and mention-spam becomes a mute bypass. (b) Object-scope-only subscriptions — a single hot thread on a watched object becomes unmutable without muting the whole object.

    3. Presence — ephemeral, conversation-scoped, opt-in

    Chosen: Presence is an ephemeral protocol signal scoped to one conversation: (principal, conversation, client-kind, here-now). It is visible only to principals who can read that conversation, is never persisted, and has no history or query interface. Terminal clients appear in presence on equal terms (#5873). There is no global online status and no cross-conversation presence. Read receipts are not part of presence: presence answers "who is here now", never "who has read this".
    Rejected: (a) Global presence roster — leaks participation in (and existence of) private conversations/objects. (b) Persisted presence / default read receipts — surveillance surface and storage cost the design doesn't need. (c) No presence at all — the issue explicitly scopes presence in, and talk pages need here-now awareness for live discussion.

    4. Search across anchored conversations

    Chosen: Search runs over conversations and messages the searcher can already read, with visibility enforced at query time (never UI-only post-filtering). Anchor-aware facets are first-class filters: anchored object, link type (about / anchored-to-part / derived-from / resolved-into, #5870), talk page vs free conversation, resolution state (#5874), participant. A result carries its anchor context (object ref + anchor locator); any object-content snippet is included only when the searcher can read the object itself. Searching object content is out of scope — that belongs to object search, not conversation search.
    Rejected: (a) One global index with client-side filtering — counts and snippets leak existence of unreadable material. (b) Folding object-content search into conversation search — scope creep across a decided boundary.

    Invariants implementation must hold

    1. No leak: no notification, presence signal, or search result may reveal the content or existence of a conversation or object the principal cannot read; derived views enforce visibility at read/query time, so revocation takes effect immediately.
    2. Deterministic precedence: thread > conversation > object > global; mute suppresses all routine notifications in its scope.
    3. Private state: watch/mute and subscription state are per-principal and never exposed to other principals.
    4. Presence is ephemeral: never persisted, never historical, conversation-scoped only.
    5. One transport: notifications derive from id: design: ID messaging/relay protocol v1 #2036 events + subscription state; no second messaging/notification system; terminal clients get full notification, watch/mute, presence, and search function.
    6. Coalescing: at most one unread notification entry per (principal, thread); counts may aggregate within it.

    Splits

    The design does not split further at the design level. Implementation timing is a separate decision (per this issue's own framing, possibly months out); when it is taken, the natural decomposition axes are the four sections above, filed then — filing implementation issues now would pre-empt that decision.

    Disposition: decision record delivered on the issue per its acceptance shape; #5875 closes as completed. Task 12839 completes with this record as its artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus/triagedTriaged and routed (see agent note)status/waiting-dependencyWaiting on a dependencystatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions