decisions DECIDED

243. Notices for people: programs publish, users curate, displays show

Section number provisional: §241 (threadbare) is claimed by #1421 and §242 (a system log) by #1423, so this took 243 on 2026-09-27 (UTC) and may move at merge. The slug and every wire value and constant stay provisional; the name and the service, ratified below, do not.

Raised 2026-09-27 (UTC) by calef in the maintainer session: "We want components to be able to publish notifications for systems users. We want users to be able to curate the types of notifications they receive. We want different displays to be able to display the notifications." His examples: a notice in every session that the system is going down for reboot, an update poller telling an appropriate user that packages are out of date, and a background job that ended. Written by the lane proposal/user-notifications (pull request #1424), which builds nothing.

The ruling

calef ruled all six questions below on 2026-09-27 (UTC), each as a maintainer comment on pull request #1424 (gh pr view 1424 --comments has the full text). §243 moves to DECIDED, and the sections that follow keep each question's reasoning with the ruling folded in.

  1. A. A separate service, notice_board, which also writes each notice to §242's system log as history. Retention decided it: the log's ring would drop a notice before an absent owner reads it.
  2. N1, ratified. The item is a notice, the service notice_board, the contract notice_protocol.
  3. Yes, as recommended. A publisher holds a badged endpoint; its spawner registers the badge's program, audience and bypass right, and the board stamps the rest. Only a bypass-registered badge may publish critical.
  4. W1 and R1. Publish is the 16-byte binary header plus class, key and text; read is JSONL, the same split §242 ruled for the log the same day.
  5. Four levels. low, normal, high and critical, kept separate from §242's severity; the board writes both into the log record.
  6. A. A critical notice prints at the next line boundary over a full-screen program, as wall does, accepting a corrupted screen for critical only.

The name comes first, because the obvious one is taken

"Notification" is a kernel object: §101 (notification objects), milestone 151 (notification objects), objtype::NOTIFICATION = 4 in crates/moho_abi/src/lib.rs:512, with SIGNAL, WAIT, POLL and BIND, and Received::Notification in crates/user_mode_runtime. The design below uses that object as a display's doorbell, so the two would meet in one sentence, and the person-facing thing needs another word. Names are calef's call (design/naming.md, CLAUDE.md's naming authority); these were the options:

option concept, service, contract crate collides with
N1 notice, notice_board, notice_protocol syslog's severity 5 is named "Notice" (RFC 5424), and §242 ruled syslog's eight levels. It is a value in one field, not a type. As a noun it is unused in code; the 41 hits are the verb.
N2 bulletin, bulletin_board, bulletin_protocol nothing in the tree or in RFC 5424; reads as a broadcast, which two of three examples are not
N3 memo, memo_board, memo_protocol nothing; reads as addressed to someone, which fits, and as informal
refused alert RFC 5424 severity 1, "action must be taken immediately"; a job that ended is not an alert
refused message an IPC message is Received::Message beside Received::Notification

Ratified: N1. It parses without Unix exposure, which design/naming.md asks of a component name, and its collision is a severity value rather than a second kind of object. This file uses "notice" throughout.

Name: ratified 2026-09-27 (calef, pull request #1424, Q2); why the runners-up lost is in the table above.

What the tree has today

Nothing person-facing. Lookups on base 995ac5bce:

Prior art, read

Read from primary sources by this lane; "(memory)" marks what was not verified.

system who names the sender who controls loudness replace or dedupe no display attached
freedesktop Notifications (D-Bus Notify) the caller's own app_name string the sender's urgency hint: low, normal, critical replaces_id from an earlier Notify not handled; a persistence capability is optional
Apple UserNotifications the app bundle per app; interruptionLevel passive/active/timeSensitive/critical, critical needs an entitlement a request with the same identifier replaces the pending one not handled
Android channels the package the user, per channel, fixed once the channel is created same notify() id updates; setOnlyAlertOnce; setTimeoutAfter is a TTL not handled
wall, write, mesg the kernel's uid the recipient, with mesg n; "only the superuser" writes past it none lost
systemd shutdown and logind the privilege to power off none; --no-wall is the sender's warnings repeat as the deadline nears (logind-wall.c's interval table) lost
Ubuntu update-notifier and update-motd root scripts at login none regenerates only when the package lists or dpkg status change the next login's message of the day
Fuchsia no user notification library found in the FIDL index

What carries over: Android's user-owned channel is curation by (program, class); Apple's entitlement makes bypass a granted right; update-notifier republishes only when its inputs change. Every desktop system assumes an attached display, so the headless case has only motd.

Question 1: a separate service or a view over the log

Priced both ways. A view over §242 would make a notice a log record with a new body kind (F3 has the byte for it), needing four changes to §242, each measured against what was ruled today:

A notice must outlive the traffic around it, and a log is sized by traffic.

Decided: a separate service, notice_board, that holds the live notices as state and appends every accepted notice to the log as history. The board is one more writer with its own badge, so this costs the log nothing, and its records carry an audience field, which calef's JSONL ruling already allows ("structured fields can join the object later").

Refused: folding the board into the log service as a second front door. It saves a process and couples a fan-out service to the one calef just ruled must fall back to the UART when it wedges.

Refused: writing into each session's terminal, as wall does. That needs every terminal, which is enumeration, and has no curation.

Question 3: the capability shape

Decided, as recommended: a publisher holds a badged endpoint to the board, and the badge names its audience. The writer never states its audience, program or time.

A display is woken with a §101 notification object: it hands the board one with SIGNAL right when it subscribes, and binds it (BIND) so a new notice wakes it out of RECV. That is the tree's doorbell, "a doorbell, not a meeting" (crates/moho_abi/src/lib.rs:520).

Curation

Recommended: a per-user document, stored at <principal root>/<identity>/notices (provisional) beside schedule, written by the user's own session and handed to the board whole, §222 (who holds a user's schedule)'s shape: one document in one shared page, parsed whole or refused.

Question 5: the urgency scale

Decided: four levels, low (listed, never presented), normal (presented), high (presented and kept until dismissed) and critical (presented, cannot be curated away, bypass right required). They map onto Apple's four and onto freedesktop's three with high folded into critical. Android's five include NONE, which is a curation outcome rather than something a sender asks for.

Freedesktop's three would lose the difference between "keep this until I see it" and "this overrides my settings", which the update and reboot examples need.

Urgency is not §242's severity. A job that failed is severity error and urgency normal; a reboot is severity notice and urgency critical. The board writes both into the log record.

Delivery

Recommended:

Question 4: the formats, which are irreversible

Two surfaces become wire formats.

surface who agrees on it options
publish, publisher to board every program that publishes W1: a 16-byte binary header (urgency, flags, class length, key length, time to live in seconds, spare), then class, key and text as UTF-8, 224 bytes in total, in a shared page like §222's REPLACE. W2: one JSON object per notice, parsed by the board.
read, board to display every display, including a remote one R1: JSONL, one object per notice, with the board's stamped seq, time, program and audience, then class, key, urgency, expires, text. R2: the binary record as stored.

Decided: W1 and R1. §242's split, ruled the same day for the log: binary where programs write, JSON where people and tools read, an in-tree JSON writer with no dependency, §46 (thin primitives or whole subsystems). W2 would put a JSON parser in the board, where every publisher's bytes reach it, and make every publisher link a JSON writer; R2 would make the remote client a second binary parser for nothing. W1's 224-byte total means a notice's text always fits F3's text bound when the board logs it.

Displays

Recommended, and reversible:

The three examples, end to end

A reboot. A reboot program (proposed, design/roadmap/0688-build-a-reboot-program.md; name unminted) holds a badge registered "every display, may bypass". It publishes class system.shutdown, key reboot, urgency critical, time to live ending at the deadline: "Rebooting at 14:05 UTC". The board signals every subscribed display's doorbell; the console's terminal prints it at the next line boundary and the toast shows it. The program republishes under the same key as the deadline nears, logind's repeating wall without its interval table in the protocol. A cancel withdraws the key.

An update poller, badged "owners", computes the set of out-of-date packages each hour and publishes class package.updates, key updates, urgency normal only when the set's digest changed, update-notifier's rule. An owner who dismisses it is not told again until the digest changes; a non-owner never receives it.

A job that ended. The timetable reports the job's exit to the session process, which already receives that report (#1377), and it holds the publish badge login registered for its identity. It publishes class job.ended, key the entry's name, urgency low on success and normal on failure. An absent user gets it in their table; at their next login swish prints it before the first prompt. A user who wants only failures sets job.ended's least urgency to normal.

What it costs

Derived, nothing is built or measured.

The seven questions

In seven-questions.md.

What it unblocks, and what remains

All six questions are decided, which unblocks building notice_board and notice_protocol. It gives milestone 152's dropped job reports a consumer and gives §241's P5 a way to tell an owner. Two things still gate a shipped publisher, each with a home: the first example's publisher is proposed at design/roadmap/0688-build-a-reboot-program.md, and a progenitor-registered system publisher waits on pull request #1360 (see "What it costs"). Curation and Delivery can be built as recommended.