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
@@ -25,7 +25,7 @@ For stage 1:
2. **The messages and their versioning.**
- Each WebSocket binary message holds one envelope: a msgp map with the message's type, as a short string, and its body. Bodies are structs that msgp encodes as maps with short field names (`msg:"k"`). Never tuples (`//msgp:tuple`), which cannot gain a field.
- Generated decoders skip map keys they do not know (findings, MSGP). So a field may be added in any release, and a reader of an older release ignores it. Renaming or removing a field, or changing what one means, takes a new protocol version.
- The protocol version is the WebSocket subprotocol. The agent offers `uberbringer-agent.1` in `Sec-WebSocket-Protocol`, and main accepts the versions it speaks. A later breaking change offers `.2` beside `.1` for at least one release. An agent whose offer main does not speak is refused before the upgrade (decision 7).
- The protocol version is the WebSocket subprotocol. The agent offers `uberbringer-agent.1` in `Sec-WebSocket-Protocol`, and main accepts the one version it speaks. Until v1 a change that needs a new version replaces the old one, so main and its agents move to it together (docs/plans/releases.md decision 19). An agent whose offer main does not speak is refused before the upgrade with an error that names the version main speaks (decision 7).
- `Hello` and `Welcome` carry each side's release version, for the logs. They also carry each side's capabilities as a list of names, so a feature can be added without a new version.
- The message types are under Architecture, MESSAGES.
- Trade-off: field names cost a few bytes per message; job bytes dominate.
@@ -231,7 +231,6 @@ COMPATIBILITY
- New: the route, the code `upgrade_required`, `/healthz`'s `agents` and a remote printer's `agent`. Job status can read `uncertain` during a run, for a remote delivery only (decision 17); its enum already has it from job-store stage 1c.
- What prints does not change: a remote printer gets the bytes a local one with the same table would. TestRenderCompat and TestPaperReceipts keep passing.
- Main and agent of different releases work together while they share a protocol version (decision 2); each logs the other's version at connect.
- A downgrade: an older binary refuses `[agents]` and `agent` as unknown keys, and has no `agent` command.
INVARIANTS
1. Nothing reaches a remote printer unless main rendered the whole receipt for it and the agent holds every byte of it, checked by length and SHA-256.