Record the owner's acceptance of the templates plan
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>
This commit is contained in:
1 parent
4012018e96
commit
c778c3f983
6 files changed
+111
-129
No files matched your search
@@ -42,15 +42,11 @@ INVARIANTS (all match the current code)
|
||||
- ?printer= on print, preview and modules; printer = "name" per subscription; optional priority routes
|
||||
- /healthz per printer, with the status still following the default printer
|
||||
- Jobs stay printer-neutral, so nothing in the block or module code changes.
|
||||
- User templates (Design 2's safety model):
|
||||
- JSON files with a typed payload schema
|
||||
- text/template only inside string values; if and each keys
|
||||
- element keys checked by reflection; templated hex rejected; output capped per field and per job
|
||||
- every template's example run through Format and Validate at startup
|
||||
- User templates: planned in docs/plans/templates.md.
|
||||
- An ntfy-compatible publish endpoint, POST /ntfy/{topic} and POST /ntfy, outside /api/v1. Auth is a Bearer JWT, or Basic with an empty user and the JWT as password. Tools that send to an ntfy server URL could then print directly.
|
||||
- More blocks: planned in docs/plans/blocks.md.
|
||||
- Queue.Cancel so message_delete can cancel a still-queued job.
|
||||
- Webhook sources: /hooks/{name}, with auth always required, HMAC compared with hmac.Equal, and an unknown name rejected with 404 before the body is read.
|
||||
- Webhook sources: planned in docs/plans/templates.md.
|
||||
- Default line spacing per model in escpos.Profile, once calibrated on each model.
|
||||
|
||||
**Tests.**
|
||||
|
||||
Reference in new issue
Block a user