Record the owner's acceptance of the ntfy plan
Security / Vulnerability check (push) Successful in 45s
Test / Lint and test (push) Successful in 2m0s

The owner accepted every proposed default of docs/plans/ntfy.md on
2026-12-01, keeping WebSockets first. Its open questions become
numbered decisions, without the alternatives, and design.md's Planned
next item 6 records them.

The plan's acceptance edits are made: design.md gives the conditions
under which ntfy replays a topic's whole history for a message ID;
formatters.md's phase 5 loses its publish endpoint item, since there is
none; templates.md's findings lose the open point on that endpoint.
formatters.md is not yet folded into design.md: printers.md and
job-store.md, not yet accepted, still plan edits to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 10:34:27 -06:00
1 parent c5c629b257
commit b06f2d8d65
4 files changed
+94 -104

No files matched your search

+32 -12
View File
@@ -315,11 +315,13 @@ client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (
stop reading (TCP backpressure) while the print queue is full, and
every timer (reconnect, stall, retry, digest, save) is one deadline
in it.
- The cursor is ntfy server time, never `since=<id>`: an unknown or
expired ID makes ntfy replay the topic's whole history. ntfy sends
`open` before the replay, so only a keepalive or a dealt-with message
moves the cursor, except on a first start without `since`, where
nothing is replayed and `open`'s time is safe. ntfy dates a message
- The cursor is ntfy server time, never `since=<id>`: an ID ntfy does
not know, expired or not yet stored on the node asked, makes ntfy
replay the topic's whole history, unless that node delivered it in
the last two minutes. ntfy sends `open` before the replay, so only a
keepalive or a dealt-with message moves the cursor, except on a first
start without `since`, where nothing is replayed and `open`'s time is
safe. ntfy dates a message
before it stores its attachment, so one can arrive after others dated
later; a reconnect therefore asks for two minutes before the cursor.
The IDs of the messages a replay could send again, those dated at or
@@ -544,19 +546,37 @@ not yet written is described here until it is.
raw body first. A repeated delivery gets its first answer, and a
template that fails prints a fallback receipt.
- Templates do not need the `group` block.
6. **ntfy**: `docs/plans/ntfy.md` (written; its open questions await the
owner).
6. **ntfy**: `docs/plans/ntfy.md` (written; the owner accepted every
proposed default, 2026-12-01).
- The subscriber prefers ntfy's WebSocket endpoint (`/<topics>/ws`),
falls back to the JSON stream, and the transport is chosen per
subscription in the config.
subscription in the config: `transport` is `auto` (the default),
`websocket` or `json`. The owner keeps WebSockets first, although
behind Caddy the JSON stream does as well or better.
- `auto` falls back when the WebSocket itself is refused, such as by a
proxy that drops the upgrade, not on ordinary failures, and tries it
again on the first reconnect an hour later. `/healthz` shows each
subscription's transport.
- A WebSocket answers ntfy's pings, which reset the stall timer and
never move the cursor, and learns the server's clock from `open`
alone. The client is fasthttp/websocket's, as for the remote agents,
with the token in the `Authorization` header, never in `?auth=`.
- On a connection that asked for a replay, no message moves the cursor
until the first keepalive, so a message that arrives during a replay
cannot skip its rest. A WebSocket has no keepalives, so its cursor
stays put for the connection, and the floor follows `max_backlog`
while connected, which bounds the next replay and the saved IDs.
- It handles ntfy's replay limits: `X-Messages-Truncated: 1` on a
replay cut at 10 MB, and `429` with error code `42905` when the daily
bandwidth budget is spent.
- Resuming by `since=<message ID>` is checked in ntfy's source first,
including what ntfy does once that ID has expired from its cache.
bandwidth budget is spent. ntfy 2.38.3 sends both on polls only, so
the stream keeps its replay; a cut replay is logged, `42905` is
named in `last_error`, and an error ntfy writes into a stream ends
the connection and prints nothing.
- The cursor stays a server time, never `since=<message ID>`, as
checked in ntfy's source.
- docs/ntfy.md advises, for ntfy behind Caddy, `behind-proxy: true` in
ntfy, and a `stream_close_delay` so that Caddy's reloads do not drop
streams.
streams at once; and no `response_buffers`.
- There is no ntfy-compatible publish endpoint (owner, 2026-12-01).
Once every phase 5 item has its plan, `docs/plans/formatters.md` folds