9 Commits
Author SHA1 Message Date
57_WolveandClaude Opus 5.5 31a41c71de 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>
2026-12-01 23:06:27 -06:00
57_WolveandClaude Opus 5.5 c60d7531b2 Plan the printer choice in the JSON body
The printers plan named a request's printer with ?printer= on /print,
/preview and the module routes. The owner's rule puts every API input
in the JSON body, so the plan now takes printer in the body: beside
elements and copies on /print and /preview, and in the module routes'
body beside payload and copies, where it already sits.

Decision 7 says so. The field belongs to the request, not the receipt,
so receipt.Job gains none. An empty printer is the same as none, since
JSON makes the two easy to confuse, and "default" names the default
printer itself. Its Breaking item goes: every route already refuses a
query string. route.by names a request's choice "request" in place of
"query". Stage 1b, its tests, the compatibility notes and stage 2a
follow.

The templates plan's modules take the same body, and design.md's
Planned next says printer goes in the body. The rule's list of plans
that break it loses the printers plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:29:02 -06:00
57_WolveandClaude Opus 5.5 cee528aa83 Record that a person, not the daemon, reprints a job
The owner decided that the daemon never reprints a job by itself. It
cannot tell a receipt that printed from one that is missing: an
uncertain job may have printed, and in two narrow cases a job reads
done before it has printed. A reprint when the cover closes would not
reach the second of those, whose job reads done, and it would print
duplicates, since the printer resumes its own buffer when the cover
closes, as stage 1d's third paper check showed; after a cut-short image
the printer can also still be inside the image command. So those cases
stay as they are, by design.

A person reprints instead, through the API, by ID or by category.
POST /api/v1/jobs/{id}/reprint reprints one stored job, as often as
asked. In place of the ID, last reprints the last completed job, one
that read done and never one still waiting or printing; failed retries
the last failed print; and uncertain reprints every uncertain job. A
job a category reprints is marked, so no category takes it again, and
each answer names the new job, so a person can print it again by its
ID. A reprint takes a job from any source: a print or module route, an
ntfy card or digest, and later a webhook. The routes take no query
parameters: every input goes in the JSON body, an empty body or none
means the defaults, and the printer, with several, is a body field. No
message a source receives, an ntfy message included, makes the daemon
print a job again.

design.md records the decision beside the confirmation and rewords the
open cases as accepted choices; its Planned next item 1 names the
routes and says their questions await the owner. docs/plans/job-store.md
gains decision 24 in phase 2 and open questions 25-39 on its details,
each with an assumed default and its trade-off: last after a reprint,
which failed jobs failed takes, the order of uncertain reprints, when a
job is marked, an age limit for uncertain, several printers, an empty
category, the answer, which jobs an ID may name, the tokens, pruned
content, repeats and the duplicate check, a REPRINT mark, a CLI command
and clearing the printer first. The Status line, the overview and phase
2, its tests and paper check included, take them in, and phase 5 no
longer lists a reprint route. docs/plans/templates.md says that a
webhook replay is the sender's resend, not a reprint command. No code,
route or API document changes until phase 2 builds the routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:28:38 -06:00
57_WolveandClaude Opus 5.5 709e7904e9 Fold the formatters plan into design.md
Security / Vulnerability check (push) Successful in 43s
Test / Lint and test (push) Successful in 2m6s
Phases 1-4 of docs/plans/formatters.md are built and described in
design.md, and every phase 5 item now has a plan of its own, under
Planned next. So the plan goes, and what still matters moves into
design.md.

A new decision says that existing jobs keep their meaning and their
bytes: /print stays strictly decoded, TestRenderCompat and
TestPaperReceipts pin the bytes, and Renderer.Render is the only path
to printer bytes. The labels and footer settings join "Modules build
ordinary jobs". Deferred gains nested boxes and goldmark, and the
geometry checks in the HTTP handler that stay rejected. The plan's
other invariants were already design.md decisions.

The plans that cited formatters.md now cite design.md, or drop the
reference: job-store.md, printers.md, blocks.md and templates.md.
job-store.md's phase 5 list moves to design.md's Deferred section once
its other phases are done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:09:30 -06:00
57_WolveandClaude Opus 5.5 68bce4db59 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>
2026-12-01 11:07:58 -06:00
57_WolveandClaude Opus 5.5 f302b76ef4 Record the owner's acceptance of the job-store plan
The owner accepted every proposed default of docs/plans/job-store.md on
2026-12-01. Its open questions become numbered decisions, without the
alternatives, and design.md's Planned next item 1 records them.
Decisions 7 and 21 keep the wording that the remote-printers plan had
already settled. Each stage now follows its decisions, and the
"(assumed)" marks on the plan's own defaults go.

The other plans cite job-store decisions in place of questions:
printers.md, remote-printers.md, templates.md and ntfy.md. Templates
decision 22 now follows job-store decision 10 rather than leaning on an
assumed default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:03:30 -06:00
57_WolveandClaude Opus 5.5 b06f2d8d65 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>
2026-12-01 10:34:27 -06:00
57_WolveandClaude Opus 5.5 c778c3f983 Record the owner's acceptance of the templates plan
Security / Vulnerability check (push) Successful in 41s
Test / Lint and test (push) Successful in 2m12s
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>
2026-12-01 09:30:08 -06:00
57_WolveandClaude Opus 5.5 64481fafc3 Plan Expr templates and rules for ntfy and webhooks
docs/plans/templates.md plans design.md's Planned next item 5 in four
stages: templates in Expr served as modules, rules that print or drop
ntfy messages, a digest action, and signed webhooks at /hooks/{name}.
It records the owner's two decisions and asks 29 open questions, each
with an assumed default and its trade-off.

It shares Expr and internal/pkg/rules with docs/plans/printers.md and
says where it leans on that plan's assumed defaults, and on job-store's
duplicate check for webhook repeats. The signature formats were checked
against GitHub's, Gitea's, Forgejo's and GitLab's own documents and the
Standard Webhooks specification. An engineering review and a review
against the house rules were folded in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:24:21 -06:00