The job store is to keep its database in the directory that holds the
ntfy subscriptions' state files, so the directory moves to a section
of its own: [state] dir, or UBERBRINGER_STATE_DIR, in place of
[ntfy] state_dir. For now only the subscriptions use it. It still has
no default and is still required with a subscription, and the checks
at start name state.dir in their errors.
install.sh writes [state] dir into new configs, and the Docker image
sets UBERBRINGER_STATE_DIR. ntfy.state_dir has never been in a
release, so its CHANGELOG entry changes in place and there is no
fallback: a config that still sets it fails to load with an unknown
key until the line moves to [state].
The image itself was not built, since the workstation has no Docker.
Part of stage 1b of docs/plans/job-store.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner has no ARM boards and no Pi-class host, so stage 1a ran its
probe on leil-test-1, an x86_64 AlmaLinux VM on leil-rig with a
virtual disk, on his word. Decision 2 now says so: no build of the
store runs on ARM hardware, and the CHANGELOG will say that the ARM
builds ship it untested. Stage 1d, and the remote-printers plan, which
counted on stage 1a measuring an SD card, say the same.
On that disk, with the schema under RECORDS and 1000 jobs of history,
a text job cost 1.04 flushes, 53.8 KiB of device writes and 11.46 WAL
frames, and its synced commit took 5.0 ms, or 2.9 ms with fdatasync.
Every call the store makes passed the unit's syscall filter, with
SELinux enforcing. The numbers are at or below the earlier estimates,
so none of them argues against decision 1. An SD card, ext4 and ARM
remain unmeasured.
The probe was built on modernc.org/sqlite v1.64.0, released on
2026-12-01, with the same SQLite and libc pin as v1.63.0. It lives
outside the repository, and the rig was left as it was found.
Part of stage 1a of docs/plans/job-store.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phases 1-4 of docs/plans/formatters.md are built and described in
design.md, and every phase 5 item now has a plan of its own, under
Planned next. So the plan goes, and what still matters moves into
design.md.
A new decision says that existing jobs keep their meaning and their
bytes: /print stays strictly decoded, TestRenderCompat and
TestPaperReceipts pin the bytes, and Renderer.Render is the only path
to printer bytes. The labels and footer settings join "Modules build
ordinary jobs". Deferred gains nested boxes and goldmark, and the
geometry checks in the HTTP handler that stay rejected. The plan's
other invariants were already design.md decisions.
The plans that cited formatters.md now cite design.md, or drop the
reference: job-store.md, printers.md, blocks.md and templates.md.
job-store.md's phase 5 list moves to design.md's Deferred section once
its other phases are done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner accepted every proposed default of docs/plans/printers.md on
2026-12-01. Its open questions become numbered decisions, without the
alternatives, and design.md's Planned next item 2 records them.
Decisions 6, 10 and 17 keep the wording that the remote-printers and
templates plans had already settled. Decision 14 amends the owner's
earlier wording: a rule that fails to compile stops the start rather
than being skipped.
The plan's acceptance edits are made, and its list of them goes.
formatters.md loses its open question, which the routing example
answers, and points to this plan for a second printer and per-model
line spacing, without the printer pool's tests. job-store.md points to
these decisions for the deliveries array, the stored route, failover
after a sending mark, the lanes and their content bound, and a printer
removed from the config. Its invariant 2 speaks of the job's bytes,
since an anycast check sends DLE EOT before the mark. Its findings
confirm the TM-m50II's command list and the power-on part of the
automatic-status side finding. Phase 2b, phases 3c and 4 and phase 5
say how they meet several printers.
The other plans cite printers decisions in place of questions, and
templates decision 1 now follows printers decisions 12, 14, 15 and 17
rather than leaning on assumed defaults.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner accepted every proposed default of docs/plans/job-store.md on
2026-12-01. Its open questions become numbered decisions, without the
alternatives, and design.md's Planned next item 1 records them.
Decisions 7 and 21 keep the wording that the remote-printers plan had
already settled. Each stage now follows its decisions, and the
"(assumed)" marks on the plan's own defaults go.
The other plans cite job-store decisions in place of questions:
printers.md, remote-printers.md, templates.md and ntfy.md. Templates
decision 22 now follows job-store decision 10 rather than leaning on an
assumed default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner has accepted the remote-printers, templates and ntfy plans
with every default since docs/plans/job-store.md was written. They
settle two of its questions and lean on the defaults of several more.
Questions 7 and 21 now say they are settled: remote-printers decision
17 ends an unknown remote send as uncertain, never sent again, and its
decision 24 builds Epson's acknowledgement only with phase 5, on the
owner's word. Both keep their numbers, since other plans cite them.
In the questions still open, no default changes. Question 1's GORM
comparison now counts Expr, which templates decision 1 links in.
Question 18 follows ntfy decisions 2 and 8: the cursor moves as during
any replay, and both transports drop priority= through one query
builder. Question 22 counts the larger state saves of ntfy decision 12.
Question 23 points to printers question 22 and to the byte count that
printers stage 3 adds. Questions 6, 10, 18 and 23 name the accepted
decisions that lean on them, and a rule's digest from templates
decision 18 gets the same reference and delete handling as a budget
digest.
The Status line and stages 1d and 4 named a Deferred item in design.md
that is now Planned next item 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner accepted every proposed default of docs/plans/templates.md on
2026-12-01. Its open questions become numbered decisions, without the
alternatives, and design.md's Planned next item 5 records them.
The plan's acceptance edits are made: formatters.md's phase 5 points to
the plan for user templates and webhook sources; printers.md's rules
package also exports the shared compile options, its environment gains
template and the source hook:<name>, and its rule-visibility and reload
questions name the templates plan; blocks.md says templates do not need
the group; job-store.md's duplicate check takes webhook deliveries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner accepted every proposed default of docs/plans/blocks.md on
2026-12-01. Its open questions become numbered decisions, without the
alternatives, and design.md's Planned next item 4 records them.
The plan's acceptance edits are made: formatters.md's phase 5 points to
the plan for more blocks, and its deferred list keeps only nested boxes
and goldmark; job-store.md's phase 3a draws each block that has shipped
in its golden PNGs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner accepted every proposed default of
docs/plans/remote-printers.md on 2026-11-30. Its open questions become
numbered decisions, without the alternatives, and design.md's Planned
next item 3 records them.
The plan's acceptance edits are made: printers.md's seam, question 6,
question 24 and stage 3 point to it, and job-store.md notes that a
remote attempt whose outcome stays unknown turns uncertain during a run
and that the acknowledgement runs at the agent for remote printers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README had grown to 658 lines. It is now a short overview: what
Überbringer is, a quick start, a table of the docs and the licence.
Each topic it held has a document of its own:
- docs/install.md: install.sh, what it leaves behind, and upgrading.
- docs/docker.md: the image behind a reverse proxy, the env file,
health checks, and the ntfy state volume and token file.
- docs/configuration.md: loading, environment variables, a table of
every key in every section, and what is logged. The list of log
messages becomes a summary of what is logged and reported.
- docs/security.md: the API secret, issuing tokens and their scopes,
the header-file recipe that keeps tokens off command lines (moved
from docs/api.md), the reverse proxy, image URLs, and what is never
logged.
- docs/ntfy.md: the ntfy subscriptions, securing the topics and the
printer's token, with the token scripts unchanged.
- docs/cli.md: the command line.
- docs/development.md: running from source, the Go version, make
targets, the gate, generated files, the layout, CI and releases.
CLAUDE.md names the new docs: a config key is now documented in
docs/configuration.md, and the layout and Go version in
docs/development.md. docs/api.md, design.md and the job-store plan
point to the docs that now hold what they referred to in the README.
The release archives also carry the docs on running the daemon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/plans/job-store.md plans a persistent job store and image
previews. It answers the owner's investigation of SQLite in WAL mode
against GORM, bbolt, BadgerDB and a journal, with measurements. It
covers a job state machine that never prints a receipt twice after a
crash, jobs made of one delivery per printer, cancelling a waiting job,
and the image preview. Its open questions each carry an assumed default.
design.md gains a "Planned next" section with the owner's decisions so
far: several printers routed by Expr rules (unicast, multicast,
broadcast and anycast with failover), remote printers through an agent
over Fiber WebSockets and msgp, more blocks, Expr templates and rules,
and the ntfy subscriber's WebSocket transport, replay limits and
publish endpoint. The planned job store and printer items leave the
Deferred list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>