Files
uberbringer/docs/plans/releases.md
T
57_WolveandClaude Opus 5.5 2497157b36 Record that every install is fresh until v1
The owner decided on 2026-12-01: "No active installs, don't concern
self with upgrade paths, we assume until v1 that every install is
new/fresh/breaking". The releases plan records it as decision 19 and
applies it:

- Until v1 any release may break callers, configs, installs and
  stores, and the CHANGELOG says so once at its top. Entries list what
  each version has, with no upgrade or migration steps and no Breaking
  heading.
- The release checklist tests fresh installs only: install.sh in Debian
  and Ubuntu containers, and the Docker image. The upgrade test, the
  0.1 config check and the open question about 0.1 hosts go.
- No data is migrated. jobstore's schema steps give way to one schema
  and its version, and a binary refuses a jobs.db of any other version,
  naming the file and saying to move it aside or remove it. v0.2.0
  gains that commit and one that rewrites the docs for fresh installs.

The job-store and printers plans now raise the schema version and
refuse an earlier store where they planned schema steps, and drop their
downgrade notes. Phase 2b's cancelled status goes under Changed.
design.md's Why no longer says 0.1 installs are deployed, its 0.1
compatibility bullet becomes the decision, and install.sh migrates
nothing.

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

32 KiB

Plan: tagged releases

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, and decided that until v1 every install is a fresh one, decision 19 (Decisions). 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. 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)

The owner's words: "I'd like to land a tag sooner than later but it must be stable with usable features and any not done hidden".

  • A tag soon.
  • Every tag is stable, with usable features.
  • Anything not finished is hidden from users.

The owner accepted the details below on 2026-12-01 ("Accept all"). They are numbered, so the rest of the plan can refer to them.

  1. The first tag is v0.2.0. [Unreleased] folds into [0.2.0], which takes the tag's date, and lists what 0.2.0 has (decision 19).
  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 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.
  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.
  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.
  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 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.
  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.
  8. The install 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.
  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.
  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.
  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). The printers and remote-printers plans say so. No switch is held back in code, and an unexported handler or command that nothing registers would fail staticcheck (U1000).
  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.
  13. One minor per feature group, once its last stage lands. A patch carries fixes alone.
  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.
  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.
  16. The JSON-body series comes before v0.2.0. It has landed on main, so v0.2.0 carries it.
  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.
  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).

The owner made one more decision on 2026-12-01. It answers whether any 0.1 hosts are in use:

  1. Every install is a fresh one until v1 (owner, 2026-12-01). His words: "No active installs, don't concern self with upgrade paths, we assume until v1 that every install is new/fresh/breaking".
    • Until v1, any release may break callers, configs, installs and stores. The CHANGELOG says so once, at its top.
    • The release checklist tests fresh installs only: install.sh in Debian and Ubuntu containers, and the Docker image.
    • CHANGELOG entries list what each version has, under Added, Changed, Removed, Fixed and Security. They carry no upgrade or migration steps. The Breaking heading goes too: every release may break, so it would hold everything.
    • No data is migrated. A binary that meets a jobs.db of another schema version, older or newer, refuses it with an error that names the file and says to move it aside or remove it. A schema change raises the version; there are no schema steps.
    • The docs describe fresh installs, with no upgrade or downgrade notes and no promise of compatibility with 0.1.

Investigation findings

Checked on main at 188230b, offline. leil-test-1 had one read-only look, which needs no lease. Nothing was printed, the printer was not contacted, and no config.toml was read.

WHERE THINGS STAND

  • The tags are v0.1.1 and v0.1.2, both from 2025-01-12. main holds 78 commits since v0.1.2, none tagged. origin/main, as last fetched, is the same commit.
  • Gitea's latest release is therefore v0.1.2. install.sh downloads latest unless UBERBRINGER_VERSION names a tag (install.sh:37-39), and stops when the archive has no packaging/uberbringer.service (install.sh:170-171), which 0.1.2's archives lack. So the quick start in README.md installs nothing today, and no version that install.sh accepts exists yet.
  • CHANGELOG.md has [Unreleased] (8-175) above [0.2.0] - 2026-11-30 (177-513), which was never tagged. Its links already compare v0.1.2...v0.2.0 and v0.2.0...main (532-533). install.md:20-23 and install.sh:8-10 name v0.2.0 as the first release they install, and design.md:3 calls the code version 0.2.0.
  • The JSON-body series has landed. The module routes take copies and printer in an envelope, {"payload": {...}, "copies": 2, "printer": "default"}, and a query string on any route answers 400 invalid_query (design.md:505-514). The series edited the [0.2.0] entries in place, since no tag carries the module query.
  • main also records the owner's job-store decisions 25-39, the details of reprinting, and plans the job list as POST /api/v1/jobs/list.
  • Job-store phase 1 is done. jobstore's Open creates a new file at user_version 1 through a list of schema steps, and refuses a newer file, naming it (open.go:55-66, 249-266). With decision 19 the steps go: a file of any other version is refused.
  • .gitea/workflows/release.yml has never run on a tag, since none has been pushed while it exists. Its secrets, TOKEN_GITEA and SENTRY_DSN (release.yml:59-66), are untested.

THE CHANGELOG AND THE UPGRADE NOTES

  • [Unreleased] is written as changes to an untagged 0.2.0, and [0.2.0] as changes to 0.1. Both have a Breaking heading (CHANGELOG.md:10, 183), and the top says that breaking changes are listed under it (3-6).
  • Upgrade and 0.1 notes, which decision 19 drops:
    • in CHANGELOG.md: "Going back to 0.2.0" (80-83), the advice to read Breaking before upgrading a 0.1 install (179-181), what 0.1 answered or accepted (189-197), the 0.1 install script and config (201-210), "0.1 config files load as before" (365), and what a 0.1 install must change under Security (493-503);
    • in docs: configuration.md's "Going back to 0.2.0" (212-215); install.md's 0.1 host (5-6), its older config without state.dir (36-43) and "Re-running the script upgrades the install" (56-58); "a newer version" in install.md's and docker.md's "A job store that will not open"; docker.md's "after a pull or an upgrade" (65-66); and README.md's "and upgrading" (48).
  • The Security entry that 0.1.x's tracked config.toml held an API secret, still readable in the history (493-494), stays as a fact: that secret is public.

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. 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. 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). 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. Decision 7.

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:

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 (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.
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 (decision 9).
Upgrade, downgrade and 0.1 notes THE CHANGELOG AND THE UPGRADE NOTES, above Hide: v0.2.0's work drops them (decision 19).
"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 (decision 4).
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 (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 (decision 18).

No feature needs finishing before the first tag. Several docs need fixing, and install.sh needs a place to download from.

THE RELEASE TOOLING

  • release.yml runs on v* tags, refuses a tag whose commit is not on main (release.yml:24-31), checks that the Go release is the one go.mod names (38-46), and runs goreleaser 2.20.3 (50-64). It runs no gate: test.yml does, on every branch push, main's included (test.yml:7-9), and security.yml runs govulncheck on pushes to main and weekly (security.yml:6-10).
  • goreleaser builds linux amd64, armv6, armv7 and arm64 without cgo (.goreleaser.yaml:17-40). It puts the docs it lists in each archive (42-80) and publishes -rc.N tags as prereleases (94-96). The release notes start with a link to the CHANGELOG at the tag (97-100).
  • A tag can come only from main, so any tag, a patch included, carries everything on main. There is no release branch. A feature stage that lands between a minor and its patch turns the patch into a minor.
  • install.sh installs Gitea's latest, the newest release that is neither a draft nor a prerelease (install.sh:37-39). A re-run replaces the binary and keeps the config, an edited Caddyfile and unit drop-ins (11-13), and reads the config with the new binary before it restarts the service (247-261).
  • No image is published. docs/docker.md:7-12 has users build it from the Dockerfile, which sets state.dir to /var/lib/uberbringer (Dockerfile:45-46).

TEST HOSTS

  • The workstation has no Docker, and long runs and Linux tests go to leil-test-1 under its lease.
  • leil-test-1, read on 2026-12-01: AlmaLinux 9.8; no podman, Docker, systemd-nspawn or QEMU user-mode emulator; it reaches git.anomalous.dev and Caddy's apt repository; / is 52% full of 63 GB.
  • install.sh needs apt, so it runs only on Debian or Ubuntu: on the rig, in a container or a VM.
  • There is no ARM hardware.

WHERE THIS IS UNSURE

  • 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 the unit's sandbox starts inside a podman container with systemd. Decision 8 falls back to a VM if not.

Overview

VERSIONING

  • Semantic Versioning, in 0.x. A minor, v0.Y.0, carries new features and any change that breaks a caller, config, install or store. A patch, v0.Y.Z, carries fixes alone: no new key, route, field, enum value, error code or command, and nothing that breaks. Until v1 any release may break anything, and the CHANGELOG says so at its top (decision 19).
  • 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.

THE TRAIN

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.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, a new status value job-store phases 2 and 2b Nothing outside the plan. Phase 2's reprint_of raises jobs.db's schema version, so v0.3.0 refuses v0.2.0's store (decision 19). 2b changes no schema 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.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.6.0 Routing rules in Expr: unicast, multicast and broadcast, a reload on SIGHUP, and uberbringer route printers stages 2a-2c Expr, which adds 5.3-5.8 MB to the binary (printers decision 10). Printers decision 18's columns raise jobs.db's schema version (decision 19)
v0.7.0 Anycast with ordered failover printers stage 3 Printers decision 23's paper check before the stage starts
v0.8.0 Remote printers through an agent, install.sh --agent remote-printers stages 1-5 printers stages 1a and 1b, and stage 3 for anycast to remote printers; a test host behind Caddy (remote-printers stage 2)
v0.9.0 Templates served as modules, rules for ntfy messages, and their digests templates stages 1-3 Expr, from printers stage 2a or templates stage 1, whichever lands first
v0.10.0 Webhooks at POST /hooks/{name} templates stage 4 templates stages 1 and 2
v0.11.0 ntfy over WebSockets, with a fallback to the JSON stream ntfy stages 2 and 3 ntfy stage 1; the WebSocket library, from remote-printers stage 2 or ntfy stage 2
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

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

  • 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.
  • 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.
    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.
    4. Until v1, a later minor may change or remove anything a tag shipped, and its CHANGELOG entry says what the version has (decision 19). A change to jobs.db's schema raises its version, and a plan that changes the schema says so.
  • Where each plan can stop with main releasable:
    • job-store: after each of phases 2, 2b, 3a, 3b, 3c and 4. Phases 3a and 3b are library code, so nothing shows until 3c.
    • printers: stage 1a lands with 1b, since 1a's [printers.<name>] tables configure printers that no request reaches. After 1b, after each of 2a, 2b, 2c and 3, and after 4a and each 4b.
    • remote-printers: stage 1 alone, as library code. Stages 2 and 3 land with 4: stage 2 opens a route for agents that do not exist until stage 3, and an agent prints nothing until stage 4. After 4, an agent set up by hand works as docs/agent.md, new in stage 3, describes it, and stage 5 lands alone.
    • blocks: after each stage.
    • templates: after each stage.
    • ntfy: after each stage. Stage 2 adds transport with json as its default, so stage 3's auto default is a change of its own.

THE RELEASE CHECKLIST Every tag passes it, the patches included. The session preparing the tag checks steps 1-4 and runs steps 5, 7, 8 and the install in step 9. Landing and pushing are the coordinator's, on the owner's word. The owner pushes the tags (steps 6 and 9).

  1. The tag's stages have landed on main, each with its own paper checks passed, and main is pushed. test.yml and security.yml have passed on main's latest commit, the one the tag will name.
  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.
  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, lists what the version has with no upgrade or migration steps (decision 19), and its compare links name the new tag.
  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 (decision 18), the source archive and checksums.txt, and its notes link to the CHANGELOG at the tag.
  7. The install tests, on the test host of decision 8, under the lease, leaving it as found. Fresh installs only (decision 19):
    • 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.
    • 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, and a new container of the same image on the same volume keeps its status.
  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 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

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. The JSON-body series has landed (decision 16). Needs the ARM run of decision 7. Decisions 1, 2, 4-10 and 14-19.

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/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 (decision 10). swagger.json is regenerated.
  • 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.
  • internal/pkg/jobstore (decision 19): Open creates a new file at the binary's schema version and refuses a file of any other version, older or newer, with an error that names the file and says to move it aside or remove it. The list of schema steps becomes one schema and its version.
  • The docs describe fresh installs (decision 19): the upgrade, downgrade and 0.1 notes in install.md, docker.md, configuration.md and README.md go (Investigation findings, THE CHANGELOG AND THE UPGRADE NOTES). install.md's "Upgrading and changing the config" becomes "Changing the config". "A job store that will not open" says "another version" in place of "a newer version".
  • 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. The section lists what 0.2.0 has, under Added, Changed, Removed, Fixed and Security, with no Breaking heading and no upgrade or migration steps (decision 19); decision 6's note joins Changed. The 0.1 and upgrade notes go. The top says once that until v1 any release may break callers, configs, installs and stores.
  • This plan's Status, in the last commit: v0.2.0 is ready to tag.

Commits.

  1. Describe the printer states that /healthz reads as unknown
  2. Describe a printer stuck after a cut-short receipt
  3. Describe the module routes' printer as taking only default
  4. Attach install.sh to each release
  5. Refuse a job store of another schema version
  6. Describe fresh installs only
  7. Record the ARM builds' store tests under emulation
  8. List what 0.2.0 has in its changelog

Tests.

  • jobstore: a new file opens at the binary's version; a file at an older or a newer version is refused, and the error names the file and says to move it aside; the file is left as it was.
  • The release snapshot for commit 4. The ARM run of decision 7 is recorded in commit 7. The rest is docs.

Done when.

  • The full gate passes on each commit.
  • The release checklist passes on v0.2.0-rc.N, and the owner has tagged v0.2.0 on the same commit.

v0.2.1: subscriber and health fixes

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:

  • 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).
  • The route's description (routes.go:173-179), with swagger.json regenerated, docs/api.md § Health and design.md's "Status is read in a way that tolerates a busy printer": a printer that stops answering reads timeout with 503. One that has never answered reads unknown with 200.
  • CHANGELOG.md under Fixed.
  • Once ntfy stage 1 and the fix have landed, [Unreleased] becomes [0.2.1], and this plan's Status says v0.2.1 is ready to tag.
  • Once v0.2.1 is tagged, the plan is folded in as Status says.

Commits.

  1. Report a printer that stops answering status as timed out
  2. Date the 0.2.1 changelog
  3. Fold the releases plan into the docs, after the tag

Tests.

  • A fake printer that answers, then stays silent: timeout and 503. One that never answers: unknown and 200. One that answers again: ready.

Done when.

  • The full gate passes on each commit.
  • With the owner's OK, on the TM-T88IV with no job waiting: the cover opened gives 503 timeout; closed again, 200 ready. No receipt is needed.
  • The release checklist passes on v0.2.1-rc.N, and the owner has tagged v0.2.1 on the same commit.
  • The checklist and the rule have moved as Status says, and this plan is deleted.