carlos / platform Public

docs: PDF service copy deck, approved (Luna pass)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 75456074b41bfbf85ad048141bfec0be35b0d61b parent 317bbbf
1 file changed, +34 −0
  • docs/superpowers/notes/pdf-service-copy-deck.md +34 −0
diff --git a/docs/superpowers/notes/pdf-service-copy-deck.md b/docs/superpowers/notes/pdf-service-copy-deck.md
new file mode 100644
index 000000000..7cb61ec5e
--- /dev/null
+++ b/docs/superpowers/notes/pdf-service-copy-deck.md
@@ -0,0 +1,34 @@
+# PDF service copy deck
+
+Every user-facing string the PDF service plan (`docs/superpowers/plans/2026-11-03-pdf-service.md`)
+writes in Tasks 1 to 5. Implementers copy strings from this file.
+
+**Status:** APPROVED 2026-11-03 by delegated Luna pass (Paul's standing rule for
+platform UI and CLI copy inside a plan). Luna changed five strings; its one
+open flag (the banner left out the plan-change exit the spec gives) was settled
+by adding it.
+
+Placeholders: `pdf.busy_account` %d is the configured per-account in-flight
+limit. `pdf.rate` is (per-minute limit, Retry-After seconds).
+`cli.cap.pdf_renders` is (rendered this month, monthly limit).
+
+CLI and JSON errors are lower case with no trailing full stop. Browser strings
+are sentence case. `%d` and `%s` are filled by code.
+
+| Key | Draft |
+|---|---|
+| `pdf.unconfigured` (503) | `no PDF engine is configured for this deployment (CARLOS_PDF_ADDR)` |
+| `pdf.unknown_route` (404) | `that is not a PDF route. the PDFs docs page lists the routes this door carries` |
+| `pdf.webhook` (400) | `webhooks are not available here. send the PDF request without a webhook header` |
+| `pdf.too_large` (413) | `the request is over 32 MiB. send a smaller request` |
+| `pdf.busy_account` (429) | `this account already has %d PDFs rendering. wait for one to finish and try again` |
+| `pdf.rate` (429) | `this account has asked for more than %d PDFs in a minute. try again in %d seconds` |
+| `pdf.busy_engine` (503) | `the PDF engine is busy. try again in a few seconds` |
+| `pdf.engine_down` (502) | `the PDF engine did not answer. try again shortly` |
+| `pdf.engine_timeout` (504) | `the PDF engine took more than 60 seconds and was stopped. try again` |
+| `cli.cap.pdf_renders` (402) | `this account has rendered %d PDFs this month, twice its monthly limit of %d. rendering starts again on the 1st of the UTC month, or move to a larger plan` |
+| `usage.label.pdf` | `PDFs` |
+| `limit.pdf` | `%s PDFs a month` |
+| `usage.pdf` (notice) | `%d of %d PDFs this month` |
+| `banner.pdf_refused` | `This account has used twice its PDF allowance this month. New PDFs are refused until the 1st of the UTC month, or until it moves to a larger plan.` |
+| CLI status lines | `engine: configured at %s` / `engine: not configured` / `health: ok (Gotenberg %s)` / `health: not answering (%s)` / `last 24 hours: %d rendered, %d refused, %d failed` |