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

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

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

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