Apply the fresh-install rule to remote printers and templates

Until v1 every install is a fresh one and any release may break
anything (owner, 2026-12-01). The remote-printers plan no longer offers
a new agent protocol version beside the old one for a release: main
speaks one version, main and its agents move to a new one together, and
an agent that offers another is refused with an error naming the
version main speaks. Its downgrade note goes.

The templates plan's trade-off, a later built-in module that takes a
template's name, becomes an ordinary CHANGELOG entry instead of a
Breaking one, and its downgrade note goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 23:06:27 -06:00
1 parent 2497157b36
commit 31a41c71de
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -34,7 +34,7 @@ For stage 1:
- So a script that can send a bearer token uses a template without a webhook, a token from `uberbringer token --modules <name>` limits it to that template, and the preview route is the dry-run over HTTP (decision 10). `uberbringer token` reads the config before it checks the names, which today it checks against the built-in modules only (internal/app/uberbringer/cli.go:156-161).
- Emoji are removed from the text fields of what a template returns (`text`, `title`, `footer`, `key`, `value`, list items and the card's fields), as on the notification path (design.md:134-138), rather than printed as `?`. `url`, `data` and `base64` are left as they are. The `note` module keeps printing them as `?`.
- `GET /api/v1/modules` lists every template's name and description to any token, those limited to other modules included. docs/security.md says so.
- Trade-off: the module list now depends on the config, and a later release whose new built-in module takes a template's name refuses that config at start, which is **Breaking** for it.
- Trade-off: the module list now depends on the config. A later release whose new built-in module takes a template's name refuses that config at start, and the CHANGELOG entry that adds the module says so.
5. **What a template sees.** A template sees a typed environment per input, a Go struct whose `expr` tags name the variables, as printers.md's `routing.Env` is. Architecture, THE ENVIRONMENTS, lists them.
- `json`: `body`, the decoded body; and `now`. Stage 4 adds a webhook's `hook`, `event`, `delivery` and `headers`, which are empty on a module route.
- `ntfy`: a message's fields, those `FromNtfy` uses (modules/ntfy.go:85-119), the subscription's name and `now`. `http`, `broadcast` and `copy` actions stay out, since their headers, bodies and values can hold secrets (ntfy/message.go:104-116).
@@ -220,7 +220,6 @@ WHAT SHIPS WHEN
COMPATIBILITY
- Nothing breaks. Every key, route and code is new, and a config without `[[templates]]`, `[[ntfy.rules]]` or `[webhooks]` behaves as today. The CHANGELOG lists each user-visible commit under Added.
- `GET /api/v1/modules` lists the templates with the built-in modules, sorted by name as today.
- A downgrade refuses the new sections as unknown keys. After stage 3 it keeps the ntfy state: an older binary ignores the new fields, and the messages a rule held are lost.
- What prints does not change: no block or card code changes, so TestRenderCompat and TestPaperReceipts keep passing.
INVARIANTS