Record the owner's release decisions 1-18

The releases plan left eighteen choices as open questions, each with an
assumed default. The owner accepted all of them as proposed on
2026-12-01.

They become decisions 1-18 under the plan's Decisions, without the
alternatives, and the open questions section goes. The Status line
says the plan is accepted, and the rest of the plan cites decisions in
place of questions. One point stays open: whether any 0.1 hosts are
still in use. Until the owner says they are, the upgrade check for a
0.1-style config does not run.

design.md's Planned next records the decisions in brief.

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:26 -06:00
1 parent 376c85f2c5
commit 25a3c76700
2 files changed
+78 -55

No files matched your search

+29 -1
View File
@@ -715,7 +715,35 @@ before anything is built. They come in this order.
Tagged releases follow `docs/plans/releases.md`, which maps these plans Tagged releases follow `docs/plans/releases.md`, which maps these plans
onto `vX.Y.Z` tags. The owner decided on 2026-12-01 that a tag comes onto `vX.Y.Z` tags. The owner decided on 2026-12-01 that a tag comes
soon, that every tag is stable with usable features, and that anything soon, that every tag is stable with usable features, and that anything
not finished stays hidden from users. not finished stays hidden from users. The same day he accepted the
plan's details as proposed (its decisions 1-18):
- v0.2.0 is the first tag: main as it stands, with `[Unreleased]`
folded into `[0.2.0]` and written against 0.1.2. v0.2.1 follows as a
patch, with ntfy stage 1 and a `/healthz` that reports a printer which
stops answering. After that, each feature group is a minor of its own,
in the order below, and a patch carries fixes alone.
- Each tag goes out first as `vX.Y.Z-rc.N`, and the owner tags the same
commit once the plan's checklist passes. The checklist covers the gate,
CI on main and the release snapshot, and one smoke receipt on paper
with the owner's OK. It also runs install and upgrade tests in podman
containers of Debian and Ubuntu on leil-test-1, under its lease, with
a fake printer.
- v0.2.0 documents that the TM-T88IV reads `unknown` with `200` while
its cover is open, and that a printer stuck after a cut-short receipt
needs switching off and on. v0.2.1 fixes the first; the second waits.
Its CHANGELOG says under **Breaking** that a printer that does not
answer status prints nothing unless `printer.confirm = false`. The
ARM builds ship once the store's tests pass under QEMU.
- A stage lands on main usable, or as library code that nothing calls.
A stage whose wiring would show a half-made feature lands with the
stage that completes it: printers 1a with 1b, and remote-printers 2
and 3 with 4. Between a minor and its patch, only fixes land.
- The module routes' reserved `printer` and `queue.content_bytes` stay.
The Docker image is not published. Each release attaches its
install.sh.
- Whether any 0.1 hosts are still in use is open. Until the owner says
they are, no upgrade check for a 0.1-style config runs.
1. **Job store and print previews**: `docs/plans/job-store.md` (written; 1. **Job store and print previews**: `docs/plans/job-store.md` (written;
the owner accepted every proposed default, 2026-12-01). The store is the owner accepted every proposed default, 2026-12-01). The store is
+49 -54
View File
@@ -1,6 +1,6 @@
# Plan: tagged releases # Plan: tagged releases
Status: **planned; no tag is cut.** The owner decided on 2026-12-01 that a tag comes soon, that every tag is stable with usable features, and that anything not finished stays hidden from users (Decisions). The open questions below await him, each with the default this plan assumes. The plan maps what the feature plans build onto `vX.Y.Z` tags, says where each tag can land and what it needs first, and gives the checklist every tag passes. It builds nothing. Only the owner tags; landing and pushing are the coordinator's, on the owner's word. The preparation for v0.2.0 and for v0.2.1 each runs in its own session, briefed from its section. Once v0.2.1 is out, the checklist moves into docs/development.md, the rule for keeping main releasable into CLAUDE.md, and the rest of the train into design.md's Planned next, and this plan is deleted. Status: **accepted; no tag is cut.** The owner decided on 2026-12-01 that a tag comes soon, that every tag is stable with usable features, and that anything not finished stays hidden from users. The same day he accepted every proposed default, decisions 1-18 (Decisions), and design.md's Planned next records them. The plan maps what the feature plans build onto `vX.Y.Z` tags, says where each tag can land and what it needs first, and gives the checklist every tag passes. It builds nothing. Only the owner tags; landing and pushing are the coordinator's, on the owner's word. The preparation for v0.2.0 and for v0.2.1 each runs in its own session, briefed from its section. One point stays open: whether any 0.1 hosts are still in use. Until the owner says they are, the upgrade check for a 0.1-style config does not run. Once v0.2.1 is out, the checklist moves into docs/development.md, the rule for keeping main releasable into CLAUDE.md, and the rest of the train into design.md's Planned next, and this plan is deleted.
## Decisions (owner, 2026-12-01) ## Decisions (owner, 2026-12-01)
@@ -11,32 +11,27 @@ be stable with usable features and any not done hidden".
- **Every tag is stable, with usable features.** - **Every tag is stable, with usable features.**
- **Anything not finished is hidden from users.** - **Anything not finished is hidden from users.**
The phase for v0.2.0 applies the first. The release checklist applies the The owner accepted the details below on 2026-12-01 ("Accept all"). They
second, the hide audit and KEEPING MAIN RELEASABLE the third. How they do are numbered, so the rest of the plan can refer to them.
so rests on the open questions' defaults.
## Open questions 1. **The first tag is v0.2.0.** `[Unreleased]` folds into `[0.2.0]`, which takes the tag's date, and the folded entries compare against 0.1.2, the last release.
2. **Release candidates.** Every tag goes out first as `vX.Y.Z-rc.N` on the commit meant for the release. Gitea publishes it as a prerelease, which install.sh installs only by name. The install and upgrade tests run against it, and once they pass, the owner tags `vX.Y.Z` on the same commit. A fix moves the commit, and `rc.N+1` follows.
Each has the default the plan assumes unless the owner says otherwise. Each answer goes into design.md at once and becomes a decision here under its number. 3. **ntfy stage 1 is v0.2.1,** a patch soon after v0.2.0. v0.2.0 ships the two faults it fixes. A subscription prints an empty card on each reconnect while ntfy writes an error into the stream after `open` (ntfy.md decision 3). A drop or restart mid-replay can lose the rest of that replay (ntfy.md decision 2). Both need the server to fail or the link to drop mid-replay.
4. **`/healthz` while the cover is open: v0.2.0 documents it, and v0.2.1 fixes it.** Once a printer has answered a status read since the start, a read it leaves unanswered is `timeout` with `503`. A printer that has never answered stays `unknown` with `200`, so after a restart with the cover already open it reads `unknown` until the cover closes. A status check on the TM-T88IV, with the owner's OK, proves the fix. Until v0.2.1 a monitor sees `200` while the TM-T88IV's cover is open and no job waits, and while the printer is stuck after a cut-short receipt.
1. **The first tag's number.** Assumed: v0.2.0. `[Unreleased]` folds into `[0.2.0]`, which takes the tag's date, and the folded entries compare against 0.1.2, the last release. Trade-off: the 0.2.0 section changes in place. A v0.3.0 would keep a section for a version nobody could install, and install.md, install.sh and design.md would name a release that never existed. 5. **A printer stuck after a cut-short receipt: v0.2.0 documents it, and the fix waits.** With `printer.confirm`, every later job fails as not ready with nothing sent, and `/healthz` reads `unknown`. Switching the printer off and on clears it, and nothing prints as noise meanwhile. No plan holds a fix. Job-store decision 39 names one, a real-time clear (`DLE DC4` fn 8), and leaves it out of reprints, since it also drops whatever else the printer holds.
2. **Release candidates.** Assumed: every tag goes out first as `vX.Y.Z-rc.N` on the commit meant for the release. Gitea publishes it as a prerelease, which install.sh installs only by name. The install and upgrade tests run against it, and once they pass, the owner tags `vX.Y.Z` on the same commit. A fix moves the commit, and `rc.N+1` follows. Trade-off: two release runs per tag, and prereleases pile up on the releases page. Without them the install test could run only once the release is public and install.sh's `latest` already points at it. 6. **Printers that do not answer status.** `printer.confirm` is on by default (owner, 2026-12-01; design.md, "Done means the printer confirmed it"). v0.2.0's CHANGELOG says under **Breaking** that a printer that does not answer `DLE EOT` and `GS r 1` prints nothing. Every job then fails as not ready, and `printer.confirm = false` restores printing.
3. **ntfy stage 1.** Assumed: v0.2.1, a patch soon after v0.2.0, not part of it. Trade-off: v0.2.0 then ships two known faults, which weighs decision 2 against decision 1. A subscription prints an empty card on each reconnect while ntfy writes an error into the stream after `open` (ntfy.md decision 3). A drop or restart mid-replay can lose the rest of that replay (decision 2). Both need the server to fail or the link to drop mid-replay. Building it first costs one more session and its checks before the first tag. 7. **The ARM builds.** v0.2.0 ships armv6, armv7 and arm64 with the CHANGELOG's note that the store is untested on ARM hardware. Before the tag, the jobstore and printqueue tests, cross-compiled for all three, run under QEMU's user-mode emulation. Debian's `qemu-user` runs them inside decision 8's Debian container on leil-test-1, under the lease, so the rig itself gains only podman. Emulation catches faults of the instruction set and the Go runtime, not those of a real board, an SD card or its timing.
4. **`/healthz` while the cover is open.** Assumed: v0.2.0 documents it; v0.2.1 fixes it. Once a printer has answered a status read since the start, a read it leaves unanswered is `timeout` with `503`. A printer that has never answered stays `unknown` with `200`. A status check on the TM-T88IV, with the owner's OK, proves it. Trade-off: v0.2.0 ships a known fault, which weighs decision 2 against decision 1. Until v0.2.1 a monitor sees `200` while the TM-T88IV's cover is open and no job waits. It sees the same while the printer is stuck after a cut-short receipt. After a restart with the cover already open, the printer has not answered yet, so it still reads `unknown` until the cover closes. Fixing it before v0.2.0 adds a session and a status check before the first tag. 8. **The install and upgrade tests run on leil-test-1,** under the lease, in rootful podman containers. One runs the current Debian stable and one the current Ubuntu LTS, each with systemd as its first process and a fake printer inside. podman comes from AlmaLinux's own repositories for the test and goes afterwards, with the owner's OK as a change to the rig. The same podman builds and runs the Docker image. If the unit's sandbox will not start in a container, a throwaway Debian VM on pve-1 takes over, with the owner's OK. Caddy gets no certificate in a container, since it has no public name, so the test checks that Caddy's config validates and Caddy starts, not HTTPS.
5. **A printer stuck after a cut-short receipt.** Assumed: v0.2.0 documents it, and the fix waits. With `printer.confirm`, every later job fails as not ready with nothing sent, and `/healthz` reads `unknown`. Switching the printer off and on clears it. No plan holds a fix. Job-store decision 39 names one, a real-time clear (`DLE DC4` fn 8), and leaves it out of reprints, since it also drops whatever else the printer holds. Trade-off: v0.2.0 ships a known fault, which weighs decision 2 against decision 1, and a person has to power-cycle the printer. Nothing prints as noise meanwhile. A fix before v0.2.0 would be a new stage: the clear, sent when a printer that answered stops answering, with its own paper checks. 9. **`queue.content_bytes` stays as built and documented.** It bounds the content of finished jobs, which job-store phases 2 and 4 read for reprints and previews by ID. Until v0.3.0 nothing reads that content.
6. **Printers that do not answer status.** `printer.confirm` is on by default (owner, 2026-12-01; design.md, "Done means the printer confirmed it"). Assumed: v0.2.0's CHANGELOG says under **Breaking** that a printer that does not answer `DLE EOT` and `GS r 1` prints nothing. Every job then fails as not ready, and `printer.confirm = false` restores printing. Trade-off: 0.1.2 printed on any printer, so a user with an untested model must read the CHANGELOG before upgrading, and **Breaking** grows by one entry. Under Changed, that user could miss it and find a printer that stopped printing with no reason given. 10. **The reserved `printer` on the module routes stays,** since the owner put it in the module envelope (design.md, "Inputs go in the JSON body"). It is described only as taking `default`, without "for a second printer". v0.3.0's reprint body (job-store decision 30) takes its `printer` the same way until printers stage 1b.
7. **The ARM builds.** Assumed: v0.2.0 ships armv6, armv7 and arm64 with the CHANGELOG's note that the store is untested on ARM hardware. Before the tag, the jobstore and printqueue tests, cross-compiled for all three, run under QEMU's user-mode emulation. Debian's `qemu-user` runs them inside question 8's Debian container on leil-test-1, under the lease, so the rig itself gains only podman. Trade-off: emulation catches faults of the instruction set and the Go runtime. It does not catch those of a real board, an SD card or its timing. Leaving the ARM tarballs out would drop platforms that 0.1.2 shipped. 11. **How a stage stays hidden.** A stage lands on main either usable, or as library code that nothing in the binary calls. A stage whose own wiring would show a half-made feature stays on its topic branch, and is rebased as main moves. It lands with the stage that makes the feature usable: printers stage 1a with 1b, and remote-printers stages 2 and 3 with 4 (Overview, KEEPING MAIN RELEASABLE). No switch is held back in code, and an unexported handler or command that nothing registers would fail staticcheck (`U1000`).
8. **Where the install and upgrade tests run.** Assumed: leil-test-1, under the lease, in rootful podman containers. One runs the current Debian stable and one the current Ubuntu LTS, each with systemd as its first process and a fake printer inside. podman comes from AlmaLinux's own repositories for the test and goes afterwards, with the owner's OK as a change to the rig. The same podman builds and runs the Docker image. If the unit's sandbox will not start in a container, a throwaway Debian VM on pve-1 takes over, with the owner's OK. Trade-off: a container's systemd, network and sandboxing differ from a real host's. Caddy gets no certificate there, since the container has no public name. So the test checks that Caddy's config validates and Caddy starts, not HTTPS. A VM is faithful but adds a machine to a rig built for LeilFS. 12. **The train's order** is design.md's Planned next order, with ntfy stage 1 first as a patch, and each block riding on the minor that follows it (Overview, THE TRAIN). No dependency fixes it, so an independent group can move earlier if the owner wants it sooner.
9. **`queue.content_bytes`.** Assumed: kept as built and documented. It bounds the content of finished jobs, which job-store phases 2 and 4 read for reprints and previews by ID. Trade-off: until v0.3.0 nothing reads that content, yet up to 64 MiB of it rests in `jobs.db`, or in memory without `state.dir`. Hiding the key would need a code change before the tag, and jobs that finished under v0.2.0 could then not be reprinted later. 13. **One minor per feature group,** once its last stage lands. A patch carries fixes alone.
10. **The reserved `printer` on the module routes.** Assumed: kept, since the owner put it in the module envelope (design.md, "Inputs go in the JSON body"), and described only as taking `default`, without "for a second printer". v0.3.0's reprint body (job-store decision 30) takes its `printer` the same way until printers stage 1b. Trade-off: a field that takes one value. Removing it would hide the printers plan's first step, and adding it back with that plan would be an addition, not a break. 14. **The Docker image is not published.** Users build it from the tag's Dockerfile, as docs/docker.md says, and each tag's checklist builds and runs it.
11. **How a stage stays hidden.** Assumed: a stage lands on main either usable, or as library code that nothing in the binary calls. Some stages' own wiring would show a half-made feature. Such a stage stays on its topic branch, and is rebased as main moves. It lands with the stage that makes the feature usable: printers stage 1a with 1b, and remote-printers stages 2 and 3 with 4 (Overview, KEEPING MAIN RELEASABLE). Once this is decided, the Status lines of printers.md and remote-printers.md say which stages land together. Trade-off: long-lived branches, their rebases and a larger landing. The other way, holding a switch back in code, costs code and tests of its own, and an unexported handler or command that nothing registers fails staticcheck (`U1000`). 15. **Paper for each tag.** Each stage's own paper checks pass before it lands. Each tag adds one short smoke receipt, printed from the tag's commit on the workstation with the owner's OK: internal/pkg/receipt/testdata/paper/note.json, whose bytes note.hex pins. The owner checks the box's borders and corners, the wrapped text, the checkboxes and the cut against the receipt he passed, and the job reads `done`. The receipt comes from a Windows build of the tag's commit, not from the Linux release binary.
12. **The train's order.** Assumed: design.md's Planned next order, with ntfy stage 1 first as a patch, and each block riding on the minor that follows it (Overview, THE TRAIN). Trade-off: independent groups, such as the image previews, templates 1-3 or ntfy over WebSockets, could go first if the owner wants them sooner. No dependency fixes this order. 16. **The JSON-body series comes before v0.2.0.** It has landed on main, so v0.2.0 carries it.
13. **One minor per feature group.** Assumed: each group in the train is a minor of its own once its last stage lands, and a patch carries fixes alone. Trade-off: more tags, each costing the checklist and the owner's time for paper checks and the tag itself. Fewer, larger tags would mean longer waits and larger upgrades. 17. **Docs and plans just outside the binary archives stay.** README.md and api.md keep their links to design.md, whose Planned next describes unfinished work. The source archive, the whole tree at the tag (.goreleaser.yaml:82-84), keeps docs/plans/. The links point at the repository's pages and explain why the daemon works as it does, and a plan says that it is a plan.
14. **The Docker image.** Assumed: not published. Users build it from the tag's Dockerfile, as docs/docker.md says, and each tag's checklist builds and runs it. Trade-off: no `docker pull`. Publishing needs a registry, its credentials in CI and a rule for image tags. 18. **Each release attaches its tag's install.sh,** with `release.extra_files`, and lists it in `checksums.txt`. README.md and install.md download it from the latest release with curl, or from a named release. Today no doc says where to get it, and the archives do not carry it (.goreleaser.yaml:50-79).
15. **Paper for each tag.** Assumed: each stage's own paper checks pass before it lands. Each tag adds one short smoke receipt, printed from the tag's commit on the workstation with the owner's OK: internal/pkg/receipt/testdata/paper/note.json, whose bytes note.hex pins. The owner checks the box's borders and corners, the wrapped text, the checkboxes and the cut against the receipt he passed, and the job reads `done`. Trade-off: the receipt comes from a Windows build, not from the Linux release binary, but from the same commit. A receipt from a release binary would need a Linux host on the printer's network.
16. **The JSON-body series before v0.2.0.** The series has landed on main, so v0.2.0 carries it and the module routes do not break again just after the tag.
17. **Docs and plans just outside the binary archives.** README.md and api.md link to design.md, whose Planned next describes unfinished work. The source archive is the whole tree at the tag (.goreleaser.yaml:82-84), docs/plans/ included. Assumed: both stay. The links point at the repository's pages and explain why the daemon works as it does, and a plan says that it is a plan. Trade-off: unfinished features are one step away from a shipped doc. Dropping the links means editing README.md and api.md, and losing the reasons they point to. `docs/plans export-ignore` in .gitattributes would drop the plans from goreleaser's and Gitea's source archives.
18. **Where users get install.sh.** No doc says, and the archives do not carry it (.goreleaser.yaml:50-79). README.md and install.md only run `./install.sh`. Assumed: each release attaches the install.sh of its tag (`release.extra_files`, and in `checksums.txt`). README.md and install.md download it from the latest release with curl, or from a named release. Trade-off: a goreleaser change in v0.2.0's work, with a snapshot. A link to the file at the tag instead needs no build change, but the docs must name a tag, and the file is not in `checksums.txt`.
## Investigation findings ## Investigation findings
@@ -72,28 +67,28 @@ WHAT A USER OF 0.1.2 MEETS
- "Going back to 0.2.0" (80-83; configuration.md:212-215) names a release that does not exist, and install.sh refuses anything older than v0.2.0. - "Going back to 0.2.0" (80-83; configuration.md:212-215) names a release that does not exist, and install.sh refuses anything older than v0.2.0.
THE FOLLOW-UPS FROM JOB-STORE STAGE 1D THE FOLLOW-UPS FROM JOB-STORE STAGE 1D
- **A cut-short receipt.** When a write stops part-way, through a kill, a power cut or a dropped link, the printer can wait inside an image command for bytes that never come, and answers no status until it is switched off and on. With `printer.confirm`, the ready wait then sends nothing (design.md:73-77), and each job fails as not ready. `/healthz` reads `unknown` with `200`. `Status` gets no answer within its 2-s `statusTimeout` and reports the printer as one that does not answer status (printer.go:19, 531-535; handlers.go:250-252). configuration.md:265-269 still says the next receipt prints as noise, which holds only with `printer.confirm = false`. Question 5. - **A cut-short receipt.** When a write stops part-way, through a kill, a power cut or a dropped link, the printer can wait inside an image command for bytes that never come, and answers no status until it is switched off and on. With `printer.confirm`, the ready wait then sends nothing (design.md:73-77), and each job fails as not ready. `/healthz` reads `unknown` with `200`. `Status` gets no answer within its 2-s `statusTimeout` and reports the printer as one that does not answer status (printer.go:19, 531-535; handlers.go:250-252). configuration.md:265-269 still says the next receipt prints as noise, which holds only with `printer.confirm = false`. Decision 5.
- **`/healthz` with the cover open.** The TM-T88IV answers no `DLE EOT` while its cover is open. Job-store stage 1d's review saw it on paper, and no doc records it yet: design.md:140-145 says only that the TM-T88IV answers `DLE EOT`. With no job waiting, `/healthz` reads `unknown` with `200`, by the same path. While a job waits for the printer, the job holds its connection, and `/healthz` answers `503` `timeout` (design.md:146-148; api.md:274-279). api.md:237-238 says an open cover gives `503`, and api.md:280-281 and CHANGELOG.md:243-244 describe a cover flag that the TM-T88IV never sends. Question 4. - **`/healthz` with the cover open.** The TM-T88IV answers no `DLE EOT` while its cover is open. Job-store stage 1d's review saw it on paper, and no doc records it yet: design.md:140-145 says only that the TM-T88IV answers `DLE EOT`. With no job waiting, `/healthz` reads `unknown` with `200`, by the same path. While a job waits for the printer, the job holds its connection, and `/healthz` answers `503` `timeout` (design.md:146-148; api.md:274-279). api.md:237-238 says an open cover gives `503`, and api.md:280-281 and CHANGELOG.md:243-244 describe a cover flag that the TM-T88IV never sends. Decision 4.
- **`printer.confirm` needs a printer that answers.** It needs `DLE EOT` answered on receipt and `GS r` answered with bits 4 and 7 clear (design.md:110-117; configuration.md:91). Only the TM-T88IV is checked; the TM-T88VII and TM-m50II wait for printers stage 4a's probe. A printer that answers neither fails every job as not ready, with nothing sent (printer.go:237-246). Question 6. - **`printer.confirm` needs a printer that answers.** It needs `DLE EOT` answered on receipt and `GS r` answered with bits 4 and 7 clear (design.md:110-117; configuration.md:91). Only the TM-T88IV is checked; the TM-T88VII and TM-m50II wait for printers stage 4a's probe. A printer that answers neither fails every job as not ready, with nothing sent (printer.go:237-246). Decision 6.
- **ARM.** The armv6, armv7 and arm64 builds ship the store untested on ARM hardware (CHANGELOG.md:78-79; design.md:261-264). CI cross-compiles armv6 and arm64 on every push (test.yml:82-88); armv7 is built only by goreleaser. The owner has no ARM boards. Question 7. - **ARM.** The armv6, armv7 and arm64 builds ship the store untested on ARM hardware (CHANGELOG.md:78-79; design.md:261-264). CI cross-compiles armv6 and arm64 on every push (test.yml:82-88); armv7 is built only by goreleaser. The owner has no ARM boards. Decision 7.
THE HIDE AUDIT THE HIDE AUDIT
The search covered README.md, every doc the archives carry (.goreleaser.yaml:50-79), configs/config.example.toml, the route table (routes.go:133-313), the error codes (errors.go:25-47), the CLI's commands (cli.go:66-148, preview.go:23, licenses.go:20), the enum tags and docs/swagger.json. No route, error code, command or enum value of a planned stage is on main: there is no `cancelled` status (queue.go:87), and no `job_started`, `job_content_expired`, `job_not_finished`, `preview_too_long` or `invalid_body` code. No doc the binary archives carry points into docs/plans/. What remains: The search covered README.md, every doc the archives carry (.goreleaser.yaml:50-79), configs/config.example.toml, the route table (routes.go:133-313), the error codes (errors.go:25-47), the CLI's commands (cli.go:66-148, preview.go:23, licenses.go:20), the enum tags and docs/swagger.json. No route, error code, command or enum value of a planned stage is on main: there is no `cancelled` status (queue.go:87), and no `job_started`, `job_content_expired`, `job_not_finished`, `preview_too_long` or `invalid_body` code. No doc the binary archives carry points into docs/plans/. What remains:
| What | Where | Recommendation | | What | Where | Recommendation |
|------|-------|----------------| |------|-------|----------------|
| The module routes' `printer`, which takes only `default` and is described as "Reserved for a second printer" | handlers_modules.go:35-37; swagger.json:489; api.md:649 | Keep as reserved and documented, worded as taking only `default` (question 10). The CHANGELOG entry (CHANGELOG.md:324-327) already says so; v0.2.0's work rewords the rest. | | The module routes' `printer`, which takes only `default` and is described as "Reserved for a second printer" | handlers_modules.go:35-37; swagger.json:489; api.md:649 | Keep as reserved and documented, worded as taking only `default` (decision 10). The CHANGELOG entry (CHANGELOG.md:324-327) already says so; v0.2.0's work rewords the rest. |
| `unknown_printer` | errors.go:30 | Keep: the module routes answer it for any other printer name. | | `unknown_printer` | errors.go:30 | Keep: the module routes answer it for any other printer name. |
| `invalid_query` | errors.go:29 | Keep: it answers a query string on any route. | | `invalid_query` | errors.go:29 | Keep: it answers a query string on any route. |
| `queue.content_bytes`, whose content nothing reads until job-store phase 2 | configuration.md:178; config.example.toml:152; queue.go:808 | Keep (question 9). | | `queue.content_bytes`, whose content nothing reads until job-store phase 2 | configuration.md:178; config.example.toml:152; queue.go:808 | Keep (decision 9). |
| "Going back to 0.2.0" | configuration.md:212-215; CHANGELOG.md:80-83 | Hide: the fold drops it. | | "Going back to 0.2.0" | configuration.md:212-215; CHANGELOG.md:80-83 | Hide: the fold drops it. |
| "An older config without that setting", a config without `state.dir` that no release wrote | install.md:36-38 | Hide: v0.2.0's work drops it. | | "An older config without that setting", a config without `state.dir` that no release wrote | install.md:36-38 | Hide: v0.2.0's work drops it. |
| 0.1 users sent to "README § Quick start", which has nothing for a 0.1 host | CHANGELOG.md:201-202 | Fix in the fold. | | 0.1 users sent to "README § Quick start", which has nothing for a 0.1 host | CHANGELOG.md:201-202 | Fix in the fold. |
| "v0.2.0 or later" | install.md:20-23; install.sh:8-10, 170-171 | Keep: true once v0.2.0 is tagged (question 1). | | "v0.2.0 or later" | install.md:20-23; install.sh:8-10, 170-171 | Keep: true once v0.2.0 is tagged (decision 1). |
| An open cover said to give `503`, and a cover flag the TM-T88IV never sends | api.md:237-238, 280-281; CHANGELOG.md:243-244 | Fix the docs before v0.2.0 (question 4). | | An open cover said to give `503`, and a cover flag the TM-T88IV never sends | api.md:237-238, 280-281; CHANGELOG.md:243-244 | Fix the docs before v0.2.0 (decision 4). |
| A stuck printer said to print the next receipt as noise | configuration.md:265-269 | Fix the doc before v0.2.0 (question 5). | | A stuck printer said to print the next receipt as noise | configuration.md:265-269 | Fix the doc before v0.2.0 (decision 5). |
| Links to docs/development.md and docs/design.md, which the binary archives leave out | README.md:55-56; install.md:7; api.md:142-145 | Keep (question 17): they resolve on the repository's pages, and design.md's Planned next stays out of the binary archives. | | Links to docs/development.md and docs/design.md, which the binary archives leave out | README.md:55-56; install.md:7; api.md:142-145 | Keep (decision 17): they resolve on the repository's pages, and design.md's Planned next stays out of the binary archives. |
| `./install.sh` with no word on where to get it | README.md:36-38; install.md:9-11 | Finish before v0.2.0 (question 18). | | `./install.sh` with no word on where to get it | README.md:36-38; install.md:9-11 | Finish before v0.2.0 (decision 18). |
No feature needs finishing before the first tag. Several docs need fixing, and install.sh needs a place to download from. No feature needs finishing before the first tag. Several docs need fixing, and install.sh needs a place to download from.
@@ -111,16 +106,16 @@ TEST HOSTS
- There is no ARM hardware. - There is no ARM hardware.
WHERE THIS IS UNSURE WHERE THIS IS UNSURE
- Whether release.yml works on a tag, and whether its secrets hold. The first release candidate shows it (question 2). - Whether release.yml works on a tag, and whether its secrets hold. The first release candidate shows it (decision 2).
- Whether Gitea serves `releases/download/latest/...` as install.sh's comment says. It was not checked; step 9 of the release checklist covers it. - Whether Gitea serves `releases/download/latest/...` as install.sh's comment says. It was not checked; step 9 of the release checklist covers it.
- Whether the unit's sandbox starts inside a podman container with systemd. Question 8 falls back to a VM if not. - Whether the unit's sandbox starts inside a podman container with systemd. Decision 8 falls back to a VM if not.
- Whether 0.1 hosts are still in use. The upgrade check for a 0.1-style config runs only if the owner says so. - Whether 0.1 hosts are still in use. The upgrade check for a 0.1-style config runs only if the owner says so.
## Overview ## Overview
VERSIONING VERSIONING
- Semantic Versioning, in 0.x. A minor, `v0.Y.0`, carries new features and anything under **Breaking**. A patch, `v0.Y.Z`, carries fixes alone: no new key, route, field, enum value, error code or command, and nothing under **Breaking**. CHANGELOG.md:3-6 already says a minor may break callers until 1.0. - Semantic Versioning, in 0.x. A minor, `v0.Y.0`, carries new features and anything under **Breaking**. A patch, `v0.Y.Z`, carries fixes alone: no new key, route, field, enum value, error code or command, and nothing under **Breaking**. CHANGELOG.md:3-6 already says a minor may break callers until 1.0.
- Tags are `vX.Y.Z` on main, cut by the owner, each after a release candidate (question 2). - Tags are `vX.Y.Z` on main, cut by the owner, each after a release candidate (decision 2).
- In the last commit before a tag, `[Unreleased]` becomes the version's section, dated the day the owner means to tag, and an empty `[Unreleased]` stays above it. If the tag slips, a one-line commit moves the date. - In the last commit before a tag, `[Unreleased]` becomes the version's section, dated the day the owner means to tag, and an empty `[Unreleased]` stays above it. If the tag slips, a one-line commit moves the date.
THE TRAIN THE TRAIN
@@ -128,7 +123,7 @@ THE TRAIN
| Tag | What a user gets | Stages | Needs first | | Tag | What a user gets | Stages | Needs first |
|-----|------------------|--------|-------------| |-----|------------------|--------|-------------|
| v0.2.0 | Everything on main: elements and blocks, previews, the note, notify and ntfy modules, scoped tokens, ntfy subscriptions, jobs that survive a restart, confirmed jobs, the Caddy installer, the hardened unit, the Docker image | What main has | Phases, v0.2.0 | | v0.2.0 | Everything on main: elements and blocks, previews, the note, notify and ntfy modules, scoped tokens, ntfy subscriptions, jobs that survive a restart, confirmed jobs, the Caddy installer, the hardened unit, the Docker image | What main has | Phases, v0.2.0 |
| v0.2.1 | A subscriber that keeps its replay and prints nothing for ntfy's errors; `/healthz` that reports a printer that stops answering | ntfy stage 1; the fix of question 4 | Phases, v0.2.1 | | v0.2.1 | A subscriber that keeps its replay and prints nothing for ntfy's errors; `/healthz` that reports a printer that stops answering | ntfy stage 1; the fix of decision 4 | Phases, v0.2.1 |
| v0.3.0 | The job history (`POST /api/v1/jobs/list`), a job's `ref`, the `uncertain` count in `/healthz`, reprints by ID and by category, cancelling waiting jobs over HTTP and by ntfy deletes; `cancelled` under **Breaking** | job-store phases 2 and 2b | jobs.db's first schema step, to `user_version` 2, for `reprint_of` and the mark (job-store decisions 28 and 32), which phase 2 must add, since v0.2.0 ships the store, and which job-store.md does not name yet. 2b needs no step and can go alone first, as v0.3.0, if the owner wants cancelling sooner | | v0.3.0 | The job history (`POST /api/v1/jobs/list`), a job's `ref`, the `uncertain` count in `/healthz`, reprints by ID and by category, cancelling waiting jobs over HTTP and by ntfy deletes; `cancelled` under **Breaking** | job-store phases 2 and 2b | jobs.db's first schema step, to `user_version` 2, for `reprint_of` and the mark (job-store decisions 28 and 32), which phase 2 must add, since v0.2.0 ships the store, and which job-store.md does not name yet. 2b needs no step and can go alone first, as v0.3.0, if the owner wants cancelling sooner |
| v0.4.0 | Image previews as PNG, and previews of stored jobs by ID | job-store phases 3a-3c and 4 | A bitmap font that meets job-store decision 19; phase 3a stops and asks the owner otherwise | | v0.4.0 | Image previews as PNG, and previews of stored jobs by ID | job-store phases 3a-3c and 4 | A bitmap font that meets job-store decision 19; phase 3a stops and asks the owner otherwise |
| v0.5.0 | Named printers, each chosen per request; `deliveries` in job status; `/healthz` per printer | printers stages 1a and 1b | job-store stage 1c, which is done | | v0.5.0 | Named printers, each chosen per request; `deliveries` in job status; `/healthz` per printer | printers stages 1a and 1b | job-store stage 1c, which is done |
@@ -141,12 +136,12 @@ THE TRAIN
| The next minor after each | A block of its own: the rule character, the table, the banner, spans, the group | blocks stages 1-5 | A need for that block (blocks.md, Status) | | The next minor after each | A block of its own: the rule character, the table, the banner, spans, the group | blocks stages 1-5 | A need for that block (blocks.md, Status) |
| The next minor after each printer arrives | The exact model's status, and each new model checked on paper | printers stages 4a and 4b | The TM-T88VII on hand for 4a; each new model for 4b | | The next minor after each printer arrives | The exact model's status, and each new model checked on paper | printers stages 4a and 4b | The TM-T88VII on hand for 4a; each new model for 4b |
Each row's stages land on main in the plans' own order. A tag lands once its last stage has landed and the checklist passes. Rows whose dependencies are met can swap (question 12). Each row's stages land on main in the plans' own order. A tag lands once its last stage has landed and the checklist passes. Rows whose dependencies are met can swap (decision 12).
KEEPING MAIN RELEASABLE KEEPING MAIN RELEASABLE
- A tag comes only from main, so main must be releasable after every landing, not only before a planned tag. - A tag comes only from main, so main must be releasable after every landing, not only before a planned tag.
- Between a minor and the patch planned after it, only fixes land on main. - Between a minor and the patch planned after it, only fixes land on main.
- The rule, as question 11 assumes: - The rule, by decision 11:
1. A stage lands on main in one of two shapes. Usable: wired, with its docs and CHANGELOG entries. Or library code that nothing in the binary calls, with its tests and no docs or CHANGELOG entry. 1. A stage lands on main in one of two shapes. Usable: wired, with its docs and CHANGELOG entries. Or library code that nothing in the binary calls, with its tests and no docs or CHANGELOG entry.
2. A stage whose own wiring would show a half-made feature stays on its topic branch, rebased onto main as main moves, and lands with the stage that makes the feature usable. Such wiring is a config key that configures what no request reaches, a route for a peer that does not exist yet, or a command that has nothing to drive. 2. A stage whose own wiring would show a half-made feature stays on its topic branch, rebased onto main as main moves, and lands with the stage that makes the feature usable. Such wiring is a config key that configures what no request reaches, a route for a peer that does not exist yet, or a command that has nothing to drive.
3. No doc, schema description, error message or CHANGELOG entry describes planned work as if it exists, and the binary archives carry no plan. A stage that adds a user doc under docs/ adds it to the archives' file list (.goreleaser.yaml:50-79) and to CLAUDE.md's list of docs. 3. No doc, schema description, error message or CHANGELOG entry describes planned work as if it exists, and the binary archives carry no plan. A stage that adds a user doc under docs/ adds it to the archives' file list (.goreleaser.yaml:50-79) and to CLAUDE.md's list of docs.
@@ -165,30 +160,30 @@ Every tag passes it, the patches included. The session preparing the tag checks
2. go.mod's go line names the latest Go release. If a newer one is out, the bump comes first, with the tool modules (CLAUDE.md, Go version). 2. go.mod's go line names the latest Go release. If a newer one is out, the bump comes first, with the tool modules (CLAUDE.md, Go version).
3. The full gate on that commit, as CLAUDE.md's Gate lays it out, with `go tool govulncheck ./...` and `goreleaser release --snapshot --clean`. The snapshot builds four tarballs, and each lists the docs that .goreleaser.yaml names. 3. The full gate on that commit, as CLAUDE.md's Gate lays it out, with `go tool govulncheck ./...` and `goreleaser release --snapshot --clean`. The snapshot builds four tarballs, and each lists the docs that .goreleaser.yaml names.
4. Docs: README.md and the docs under docs/ describe what the tag ships and nothing it does not (KEEPING MAIN RELEASABLE). The CHANGELOG's section is complete and dated, its **Breaking** says what a caller, config or install must do, and its compare links name the new tag. 4. Docs: README.md and the docs under docs/ describe what the tag ships and nothing it does not (KEEPING MAIN RELEASABLE). The CHANGELOG's section is complete and dated, its **Breaking** says what a caller, config or install must do, and its compare links name the new tag.
5. Paper, with the owner's OK, one receipt at a time, waiting for his report (question 15). 5. Paper, with the owner's OK, one receipt at a time, waiting for his report (decision 15).
6. The owner pushes `vX.Y.Z-rc.N` on that commit. The prerelease page then shows the four tarballs, install.sh (question 18), the source archive and `checksums.txt`, and its notes link to the CHANGELOG at the tag. 6. The owner pushes `vX.Y.Z-rc.N` on that commit. The prerelease page then shows the four tarballs, install.sh (decision 18), the source archive and `checksums.txt`, and its notes link to the CHANGELOG at the tag.
7. The install and upgrade tests, on the test host of question 8, under the lease, leaving it as found: 7. The install and upgrade tests, on the test host of decision 8, under the lease, leaving it as found:
- A fake printer in each test's network, a scratch program that answers `DLE EOT` and `GS r 1` as the TM-T88IV does. In the install containers it listens on 127.0.0.1:9100, which install.sh takes as the printer's address. Never the live printer. - A fake printer in each test's network, a scratch program that answers `DLE EOT` and `GS r 1` as the TM-T88IV does. In the install containers it listens on 127.0.0.1:9100, which install.sh takes as the printer's address. Never the live printer.
- A fresh install with `UBERBRINGER_VERSION` set to the candidate, on Debian and on Ubuntu. The service runs as `uberbringer`; the config is 0640 `root:uberbringer`; `initial-token` is 0600; `/var/lib/uberbringer` is 0700 and `jobs.db` 0600; Caddy's config validates and Caddy starts; `uberbringer version` names the candidate; a job sent to `127.0.0.1:8080` reads `done`. The job's token comes from `initial-token` into a 0600 header file that curl reads (`-H @file`), never onto the command line or into output. - A fresh install with `UBERBRINGER_VERSION` set to the candidate, on Debian and on Ubuntu. The service runs as `uberbringer`; the config is 0640 `root:uberbringer`; `initial-token` is 0600; `/var/lib/uberbringer` is 0700 and `jobs.db` 0600; Caddy's config validates and Caddy starts; `uberbringer version` names the candidate; a job sent to `127.0.0.1:8080` reads `done`. The job's token comes from `initial-token` into a 0600 header file that curl reads (`-H @file`), never onto the command line or into output.
- A re-run with the same version keeps the config and a drop-in, and restarts the service. - A re-run with the same version keeps the config and a drop-in, and restarts the service.
- An upgrade: the previous tag installed by name, with `printer.retries` raised in its config so that jobs outlast a stopped printer. With the fake printer stopped, a few jobs are sent and the service is stopped, so they wait in `jobs.db`. Then the fake printer starts, and the candidate's install.sh runs with the candidate. The waiting jobs print once each, in order, and their statuses and the config are kept. For v0.2.0, whose previous tag is v0.1.2, install.sh does not upgrade. Only if the owner says 0.1 hosts are still in use: a 0.1-style config with a `[printer]` section with `address`, and a fresh secret that is never printed, loads with `uberbringer config get` (CHANGELOG.md:203-207, 365-366). - An upgrade: the previous tag installed by name, with `printer.retries` raised in its config so that jobs outlast a stopped printer. With the fake printer stopped, a few jobs are sent and the service is stopped, so they wait in `jobs.db`. Then the fake printer starts, and the candidate's install.sh runs with the candidate. The waiting jobs print once each, in order, and their statuses and the config are kept. For v0.2.0, whose previous tag is v0.1.2, install.sh does not upgrade. Only if the owner says 0.1 hosts are still in use: a 0.1-style config with a `[printer]` section with `address`, and a fresh secret that is never printed, loads with `uberbringer config get` (CHANGELOG.md:203-207, 365-366).
- The image: built with podman from the candidate's commit, run with a named volume and `--stop-timeout 40`. It runs in a podman pod beside a fake printer of its own, with its config from a 0600 env file whose secret is never printed. A job reads `done`; a new container on the same volume keeps its status. From v0.2.1 on, the previous tag's image runs first and is stopped with a job left waiting, as above, and the new one prints it once. - The image: built with podman from the candidate's commit, run with a named volume and `--stop-timeout 40`. It runs in a podman pod beside a fake printer of its own, with its config from a 0600 env file whose secret is never printed. A job reads `done`; a new container on the same volume keeps its status. From v0.2.1 on, the previous tag's image runs first and is stopped with a job left waiting, as above, and the new one prints it once.
8. For v0.2.0 alone: the ARM run of question 7. 8. For v0.2.0 alone: the ARM run of decision 7.
9. The owner pushes `vX.Y.Z` on the same commit. The release page shows its assets. Then the session, on question 8's host under the lease, fetches install.sh as README.md says and runs it without a version in a fresh container. It installs the tag as `latest`. 9. The owner pushes `vX.Y.Z` on the same commit. The release page shows its assets. Then the session, on decision 8's host under the lease, fetches install.sh as README.md says and runs it without a version in a fresh container. It installs the tag as `latest`.
## Phases ## Phases
### v0.2.0: the first tag ### v0.2.0: the first tag
**Goal.** A user can install a tagged release of everything main holds, with install.sh, the tarballs or the Docker image, and upgrade from it later. The JSON-body series has landed (question 16). Needs the owner's answers to questions 1, 2, 4-10 and 14-18, or his acceptance of their defaults. Needs the ARM run of question 7, unless the owner drops it. Decisions; questions 1, 2, 4-10 and 14-18. **Goal.** A user can install a tagged release of everything main holds, with install.sh, the tarballs or the Docker image, and upgrade from it later. The JSON-body series has landed (decision 16). Needs the ARM run of decision 7. Decisions 1, 2, 4-10 and 14-18.
**Work.** One session, briefed from this section: **Work.** One session, briefed from this section:
- docs/api.md § Health: a printer that answers no status reads `unknown` with `200`. On the TM-T88IV that includes an open cover while no job waits, and a printer stuck inside a cut-short receipt. While a job waits for the printer, the reading is `503` `timeout`. api.md:237-238 changes with it. The cover flag (api.md:280-281; CHANGELOG.md:243-244) is not sent by the TM-T88IV, whose cover stops its status answers. design.md's status section (478-488) records that. - docs/api.md § Health: a printer that answers no status reads `unknown` with `200`. On the TM-T88IV that includes an open cover while no job waits, and a printer stuck inside a cut-short receipt. While a job waits for the printer, the reading is `503` `timeout`. api.md:237-238 changes with it. The cover flag (api.md:280-281; CHANGELOG.md:243-244) is not sent by the TM-T88IV, whose cover stops its status answers. design.md's status section (478-488) records that.
- docs/configuration.md § Logs (265-269): with `printer.confirm`, a stuck printer gets nothing sent, and each job fails as not ready, until it is switched off and on. With `printer.confirm = false`, it prints the next receipt as noise. - docs/configuration.md § Logs (265-269): with `printer.confirm`, a stuck printer gets nothing sent, and each job fails as not ready, until it is switched off and on. With `printer.confirm = false`, it prints the next receipt as noise.
- The module routes' `printer`, in its doc comment (handlers_modules.go:35-36) and api.md:649: it takes only `default` (question 10). swagger.json is regenerated. - The module routes' `printer`, in its doc comment (handlers_modules.go:35-36) and api.md:649: it takes only `default` (decision 10). swagger.json is regenerated.
- install.sh's download (question 18): `release.extra_files` and `checksum.extra_files` in .goreleaser.yaml; README.md § Quick start and install.md show the download; a CHANGELOG entry under Added. - install.sh's download (decision 18): `release.extra_files` and `checksum.extra_files` in .goreleaser.yaml; README.md § Quick start and install.md show the download; a CHANGELOG entry under Added.
- design.md's ARM paragraph (261-264) and the CHANGELOG's ARM entry: the store's tests pass under emulation, which is not hardware. - design.md's ARM paragraph (261-264) and the CHANGELOG's ARM entry: the store's tests pass under emulation, which is not hardware.
- CHANGELOG.md: `[Unreleased]` folds into `[0.2.0]`, dated the day the owner means to tag. Each folded entry compares against 0.1.2 (Investigation findings, WHAT A USER OF 0.1.2 MEETS). **Breaking** keeps only what breaks a 0.1.2 caller, config or install, and question 6's wording joins it. The rest moves under Added or Changed, into the features they belong to. The "Going back to 0.2.0" entry goes, with configuration.md:212-215. The entry at CHANGELOG.md:201-202 says what a 0.1 host does instead of pointing at the quick start. install.md:36-38's older config goes. - CHANGELOG.md: `[Unreleased]` folds into `[0.2.0]`, dated the day the owner means to tag. Each folded entry compares against 0.1.2 (Investigation findings, WHAT A USER OF 0.1.2 MEETS). **Breaking** keeps only what breaks a 0.1.2 caller, config or install, and decision 6's wording joins it. The rest moves under Added or Changed, into the features they belong to. The "Going back to 0.2.0" entry goes, with configuration.md:212-215. The entry at CHANGELOG.md:201-202 says what a 0.1 host does instead of pointing at the quick start. install.md:36-38's older config goes.
- This plan's Status, in the last commit: v0.2.0 is ready to tag. - This plan's Status, in the last commit: v0.2.0 is ready to tag.
**Commits.** **Commits.**
@@ -199,7 +194,7 @@ Every tag passes it, the patches included. The session preparing the tag checks
5. Record the ARM builds' store tests under emulation 5. Record the ARM builds' store tests under emulation
6. Write the 0.2.0 changelog against 0.1.2 6. Write the 0.2.0 changelog against 0.1.2
**Tests.** None beyond the gate, with the release snapshot for commit 4; the rest is docs. The ARM run of question 7 is recorded in commit 5. **Tests.** None beyond the gate, with the release snapshot for commit 4; the rest is docs. The ARM run of decision 7 is recorded in commit 5.
**Done when.** **Done when.**
- The full gate passes on each commit. - The full gate passes on each commit.
@@ -207,7 +202,7 @@ Every tag passes it, the patches included. The session preparing the tag checks
### v0.2.1: subscriber and health fixes ### v0.2.1: subscriber and health fixes
**Goal.** ntfy stage 1's fixes, and `/healthz` reporting a printer that stops answering (question 4). A patch: no new key, route, field, enum value, error code or command. Needs v0.2.0 tagged. ntfy stage 1 runs in its own session from docs/plans/ntfy.md and lands on its own. No feature stage lands on main until v0.2.1 is tagged. Questions 3 and 4. **Goal.** ntfy stage 1's fixes, and `/healthz` reporting a printer that stops answering (decision 4). A patch: no new key, route, field, enum value, error code or command. Needs v0.2.0 tagged. ntfy stage 1 runs in its own session from docs/plans/ntfy.md and lands on its own. No feature stage lands on main until v0.2.1 is tagged. Decisions 3 and 4.
**Work.** One session, briefed from this section, for the health fix and the tag: **Work.** One session, briefed from this section, for the health fix and the tag:
- internal/pkg/printer: the client remembers whether the printer has answered a status read since it was made. Once it has, a read it leaves unanswered within `statusTimeout` returns an error that wraps `context.DeadlineExceeded`, never `ErrStatusUnsupported`. The `/healthz` handler then gives `timeout` with `503` (handlers.go:253-261). - internal/pkg/printer: the client remembers whether the printer has answered a status read since it was made. Once it has, a read it leaves unanswered within `statusTimeout` returns an error that wraps `context.DeadlineExceeded`, never `ErrStatusUnsupported`. The `/healthz` handler then gives `timeout` with `503` (handlers.go:253-261).