Record the owner's acceptance of the printers plan
The owner accepted every proposed default of docs/plans/printers.md on 2026-12-01. Its open questions become numbered decisions, without the alternatives, and design.md's Planned next item 2 records them. Decisions 6, 10 and 17 keep the wording that the remote-printers and templates plans had already settled. Decision 14 amends the owner's earlier wording: a rule that fails to compile stops the start rather than being skipped. The plan's acceptance edits are made, and its list of them goes. formatters.md loses its open question, which the routing example answers, and points to this plan for a second printer and per-model line spacing, without the printer pool's tests. job-store.md points to these decisions for the deliveries array, the stored route, failover after a sending mark, the lanes and their content bound, and a printer removed from the config. Its invariant 2 speaks of the job's bytes, since an anycast check sends DLE EOT before the mark. Its findings confirm the TM-m50II's command list and the power-on part of the automatic-status side finding. Phase 2b, phases 3c and 4 and phase 5 say how they meet several printers. The other plans cite printers decisions in place of questions, and templates decision 1 now follows printers decisions 12, 14, 15 and 17 rather than leaning on assumed defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f302b76ef4
commit
68bce4db59
6 files changed
+224
-263
No files matched your search
+31
-15
@@ -480,26 +480,42 @@ not yet written is described here until it is.
|
||||
preview by ID.
|
||||
- Epson's acknowledgement, ntfy state in the store and an age limit
|
||||
wait for phase 5.
|
||||
2. **Several printers**: `docs/plans/printers.md` (written; its open
|
||||
questions await the owner).
|
||||
- Printers are named TOML tables, with named groups.
|
||||
2. **Several printers**: `docs/plans/printers.md` (written; the owner
|
||||
accepted every proposed default, 2026-12-01).
|
||||
- `[printer]` stays, as the printer `default`, and `[printers.<name>]`
|
||||
tables add the others, from the file only. Each takes every key of
|
||||
`[printer]`; no two local printers share an address and port.
|
||||
- One queue with a lane per printer: its own worker, renderer and
|
||||
connection, and `queue.size` per lane. History, references and the
|
||||
store stay shared.
|
||||
- `?printer=` on `/print`, `/preview` and the module routes is a direct
|
||||
unicast; any other query parameter is refused (**Breaking**). Every
|
||||
job status gains `deliveries`. `/healthz` lists every printer, and
|
||||
its code follows the default printer alone.
|
||||
- Routing is done by rules written in Expr
|
||||
(`github.com/expr-lang/expr`), modelled on Kanrisha's policy engine:
|
||||
compiled once against a typed environment, ordered, reloaded
|
||||
atomically, with a dry-run.
|
||||
`[[routing.rules]]` and `[routing.groups]`, compiled once against a
|
||||
typed environment of routing facts, never print content, with a
|
||||
unique `order`, first match wins. A rule that fails to compile stops
|
||||
the start; one that fails at run time counts as no match. The
|
||||
compile options and iteration guard are templates' `rules.Options`.
|
||||
- A rule sends a job unicast (one printer), multicast (each printer of
|
||||
a set), broadcast (every printer) or anycast (one printer of an
|
||||
ordered list).
|
||||
- Anycast is a priority list with failover: the first printer, on
|
||||
failure the second, then the third.
|
||||
ordered list). A job no rule matches goes to the default printer, so
|
||||
a single-printer config keeps working.
|
||||
- A multicast or broadcast job is one job with several deliveries, one
|
||||
per printer, each tracked on its own.
|
||||
- `?printer=` on a request is a direct unicast. A job no rule matches
|
||||
goes to the default printer, so a single-printer config keeps
|
||||
working.
|
||||
- Also covered: `/healthz` per printer, a printer per ntfy subscription
|
||||
through rules, per-model line spacing, and the TM-T88VII's paper
|
||||
near-end (`GS r 1`).
|
||||
per printer, each tracked on its own, accepted while any of its
|
||||
printers has room. The route is decided once, when the job is
|
||||
accepted, and stored with it.
|
||||
- SIGHUP reloads the rules. `uberbringer route` and the JSON preview's
|
||||
`route` show what the rules decide.
|
||||
- Anycast is a priority list with failover: the first printer, on
|
||||
failure the second, then the third. It checks status before it
|
||||
sends, passes over a printer marked down for 30 s, and fails over
|
||||
after bytes went out only once that printer's retries are spent.
|
||||
- The profile keeps the exact model, so a TM-T88VII reports its paper
|
||||
near-end through `GS r 1`. Per-model defaults come only when a paper
|
||||
check needs one.
|
||||
3. **Remote printers**: `docs/plans/remote-printers.md` (written; the
|
||||
owner accepted every proposed default, 2026-11-30).
|
||||
- Printers on other networks are reached through an Überbringer agent
|
||||
|
||||
Reference in new issue
Block a user