Record the owner's acceptance of the templates plan
The owner accepted every proposed default of docs/plans/templates.md on 2026-12-01. Its open questions become numbered decisions, without the alternatives, and design.md's Planned next item 5 records them. The plan's acceptance edits are made: formatters.md's phase 5 points to the plan for user templates and webhook sources; printers.md's rules package also exports the shared compile options, its environment gains template and the source hook:<name>, and its rule-visibility and reload questions name the templates plan; blocks.md says templates do not need the group; job-store.md's duplicate check takes webhook deliveries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4012018e96
commit
c778c3f983
6 files changed
+111
-129
No files matched your search
@@ -73,7 +73,8 @@ Before stage 1c:
|
||||
- An age limit, for privacy, would be another key.
|
||||
10. **ntfy replays after a crash.** A subscription saves its state within a second of queueing a message. Today a job lost in a crash is replaced by the replay. Once queued jobs resume, a crash in that second would print the message twice. Assumed:
|
||||
- A `Submit` whose source and reference the queue already holds, from an ntfy subscription, returns the earlier job and queues nothing. Only ntfy jobs take part: on the HTTP routes the reference is a request ID, which a client may set, so a check on it could answer a new request with an old job.
|
||||
- The queue keeps the last 512 (source, reference) pairs of each subscription with their job IDs, apart from the statuses, so `queue.history = 0` cannot defeat the check.
|
||||
- Webhook jobs with a delivery ID take part too (docs/plans/templates.md, decision 22). The ID is the sender's, read only after the delivery's signature passed.
|
||||
- The queue keeps the last 512 (source, reference) pairs of each subscription and each hook with their job IDs, apart from the statuses, so `queue.history = 0` cannot defeat the check.
|
||||
- A digest gets a reference of its own, a TypeID with the prefix `digest`, in place of the fixed `digest`, minted when the digest is made. The subscriber saves the digest with its reference before it submits it, so a restart submits the same digest under the same reference. The window also exists today, for a digest that printed in that second; stage 1c closes it. The saved digest is kept apart from messages held after it: were they added to a digest whose job was queued before the crash, the duplicate check would answer with that job, and they would never print.
|
||||
- Trade-off: a digest can cost one more state save, two fsyncs.
|
||||
11. **A store write that fails after start** (disk full, an I/O error, corruption found mid-run). Assumed: the daemon stops.
|
||||
|
||||
Reference in new issue
Block a user