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>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 23:06:27 -06:00
1 parent 515d5ae699
commit 2497157b36
4 files changed
+89 -83

No files matched your search

+28 -20
View File
@@ -8,10 +8,11 @@ in docs/ describe how to use it.
## Why
Scripts and services on the owner's network send short JSON jobs, and one
Epson receipt printer prints them. The daemon replaces the 0.1 one on the
same endpoint, `POST /api/v1/print` behind a TLS reverse proxy, and 0.1
installs are deployed. It is one static binary, which keeps its jobs in a
SQLite file of its own, sized for receipt rates on one printer.
Epson receipt printer prints them, through `POST /api/v1/print` behind a
TLS reverse proxy. No 0.1 install is in use, and until v1 every install
is a fresh one (owner, 2026-12-01). It is one static binary, which keeps
its jobs in a SQLite file of its own, sized for receipt rates on one
printer.
```text
client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (1 worker) ◀──▶ jobstore
@@ -233,8 +234,8 @@ client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (
syncs the log's header, three syncs more on a job that should cost
one.
- Open checks every page (`quick_check`), since SQLite would otherwise
meet a damaged page only mid-run, and refuses a schema newer than
the binary's.
meet a damaged page only mid-run, and refuses a file of any other
schema version, naming it: nothing is migrated until v1.
- **Shutdown.** With the store, waiting jobs stay queued and print after
the next start, in order, however old. A job that has not reached
`sending`, still rendering, dialling or waiting to retry, stops and
@@ -523,12 +524,15 @@ client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (
schemas allow fields added later. Nothing in the document is written by
hand. The server gets the document in its config, so the generator does
not build the package that embeds its own output.
- **What stays compatible with 0.1.** The endpoint, the HS256 tokens and the
config keys stay as they were, though a job with raw elements now needs a
token issued with `--raw`. The 0.1 body and its plain-text answer do
not. A 0.1 body gets a `400` that points to the element format in
`docs/api.md`, instead of being translated. Tokens are read only from the header, because tokens in
query strings end up in proxy logs.
- **Nothing stays compatible with 0.1 or between releases before 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". Any release may break callers, configs, installs
and stores; the CHANGELOG lists what each version has, with no upgrade
or migration steps. A 0.1 body gets a `400` that points to the element
format in `docs/api.md`, instead of being translated. Tokens are read
only from the header, because tokens in query strings end up in proxy
logs.
- **Stack choices (owner, 2026-11-29):**
- Fiber v3 instead of Echo.
- TypeID (UUIDv7) job and request IDs instead of snowflakes. They sort by
@@ -560,8 +564,8 @@ client ─HTTPS─▶ Caddy ─▶ server ── validate ──▶ printqueue (
Caddy replaced nginx and acme.sh because it issues and renews
certificates itself, so the installer needs no webroot, cron job or
certificate paths.
- `install.sh` sets up a fresh host, and re-runs upgrade what it set up.
It does not migrate hosts set up by the 0.1 script (owner, 2026-11-30).
- `install.sh` sets up a fresh host. It migrates nothing, from 0.1 or
from an earlier release; a re-run keeps the config.
It reads the settings Caddy needs through `uberbringer config get`, so
the daemon's own loader checks the config before the service restarts
and no TOML is parsed in shell.
@@ -716,23 +720,24 @@ 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
soon, that every tag is stable with usable features, and that anything
not finished stays hidden from users. The same day he accepted the
plan's details as proposed (its decisions 1-18):
plan's details as proposed (its decisions 1-18), and decided that until
v1 every install is a fresh one (its decision 19):
- 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
folded into `[0.2.0]`, listing what it has. 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
with the owner's OK. It also runs fresh-install 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
Its CHANGELOG says 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.
@@ -742,8 +747,11 @@ plan's details as proposed (its decisions 1-18):
- 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.
- Until v1, any release may break anything, and the CHANGELOG says so
once, at its top. Its entries carry no upgrade or migration steps and
no **Breaking** heading. No data is migrated: a binary refuses a
`jobs.db` of another schema version, naming the file to move aside.
The docs describe fresh installs only.
1. **Job store and print previews**: `docs/plans/job-store.md` (written;
the owner accepted every proposed default, 2026-12-01). The store is