Decisions — product
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
What Newspapper is, and the calls not to be reopened casually. Each was expensive to reverse, is surprising without context, or had a real alternative that lost. Don't relitigate one without an explicit revisit and a log.md entry. This page wins over status.md for any choice not formally revisited. How the language actually works: markup.md. Engineering calls: decisions-engineering.md.
Reasons marked (reconstructed) were recovered from log.md and git history
rather than recorded at the time.
No LLM in the product
2026-08-27 — Newspapper does not call a language model. A person writes the words. Two reasons, the second load-bearing: the models available to this project could not hold the structured output at all; and what they did produce read as AI-generated — fake, unattractive, the opposite of what a hand-made daily post is for. That second one no amount of compute fixes on this budget, so the feature isn't worth having even working. Rejected: local Ollama (the v3 design) and Ollama Cloud (intended, never wired up). Supersedes "Ollama is the only LLM backend" (2026-05-12) and everything downstream — system prompt, slide AI, generated caption, Ollama settings.
The human is in the loop by design
2026-08-27 — The workflow is built around a person editing; the editor is the product's centre of gravity. Reverses "no human-in-the-loop", which always contradicted the shipped product. Approval gates remain rejected — no step blocks for a verdict. The distinction is vocabulary, not policy: see editing vs approval gate in glossary.md.
A theme varies the components — there are no presets
2026-08-27 — Variation comes from the theme (colors, typography, spacing)
applied to a fixed, built-in component set. Three themes ship —
warm-industrial-1, -2, -3 — sharing type, spacing, and shape tokens and
differing mainly in primary color. A family, not three designs.
Rejected: shipping preset layouts to drop in and edit (they multiply the surface
and let each post drift further from the last); one theme (monotonous across a
daily feed); a full theme editor (its own feature, and the component library
needs the attention first).
The workstation is redesigned; the slide theme is not
2026-08-27 — Two design systems live in this repo and only one of them
changes. The slide theme (warm-industrial, terracotta on warm off-white,
Inter 400–900) is what the renderer paints into the 1080² JPEG; it carries over
untouched and gains two sibling palettes. The app chrome — the workstation
the operator sits in — is replaced outright, because it was designed around a
four-step pipeline that no longer exists, and its signature components (the
stepper, the wizard shell, the builder toolbar) have nothing left to describe.
Rejected: polishing the incumbent chrome, which would spend effort making a
wizard look better at being a wizard.
The world is The Mechanical — a paste-up board: a 26px non-photo blue grid
under everything, the slide inside crop marks and register targets, the markup
waxed on as a galley, the inspector on a tissue overlay that hinges off the
canvas. Zero radius anywhere; state is a mark (rubylith, wax, stamp, tissue
corner, hatch), never a coloured badge. Chosen 2026-08-27 from two rounds of
fully-drawn editor screens, over The Forme (letterpress lock-up), The Wire Desk
(teleprinter fanfold) and Page 101 (broadcast teletext). The system is
design.md + design-components.md
(moved out of the repo-root DESIGN.md on 2026-08-31); the build is
the chrome build (2026-08-31).
Two consequences worth stating separately, because they are the parts most
likely to be quietly undone: the chrome face is Archivo, and Inter never
appears in the chrome — it is the artwork's voice, and that separation is what
keeps the slide legible as a made thing. And a board has no rounded corners:
border-radius is 0 throughout.
- 2026-11-06 — Selections leave the wax. A text selection anywhere in the chrome is non-photo blue at 80% over paper (
--non-photo-select,#99c5ed) under graphite, not wax: a click selects the element under the caret, so a selection inside the waxed element was wax on wax and showed no extent. Rejected: a deeper wax where the two overlap (one mark would mean two things), and non-photo blue at the grid's strength (1.05:1 against wax, hue alone). The slide themes never show a selection and are untouched.
The template system is removed
2026-08-27 — TemplateDoc, the nine template JSON files, the registry, and
the /builder page are deleted. Layout authoring is not a user activity.
Supersedes "templates are JSON documents, not code" (2026-06-10), whose whole
purpose was to let a builder read and write layouts. The builder's machinery —
canvas, tree panel, token-aware inspector, undo/redo — is not wasted: it becomes
the post editor. The old templates survive as reference for designing the
built-in components.
A saved article is a reference, not a pipeline input
2026-09-01 — The article library holds source material you write from. There is no action that turns one into a post, and there will not be: you read the article and you write the document. Copy and paste is the connection, and that is the answer rather than a gap waiting to be filled.
Rejected: POST /api/articles/:id/start-post, seeding a starter .wzd from
Article.title and Article.url. It is genuinely cheap — the API already holds
both fields, and the route would be additive rather than a redesign — which is
exactly why it kept coming back. It was in scope in the articles work (2026-08-27) and withdrawn at
dispatch, then left to the editor work (2026-08-31), which also did not build it. Twice specced,
twice dropped, and never for a reason anyone wrote down. That is what this entry
fixes.
The reason it stays unbuilt: seeding a document from an article makes the
article an input to a pipeline, and the pivot's whole point was that there is
no pipeline. A post is written, not derived. A start-post button would be the
first step back toward "generate a post from a source", which is the thing the
v4 rebuild removed — the mechanism would be a template rather than a model, but
the shape is the same, and shapes are what come back.
If retyping a title ever genuinely hurts, the smaller answer is to make the article's title and URL easy to copy from the library, not to have the app compose a document.
The Reader stores items; a saved article is still a reference
2026-10-09 — The Reader keeps what the feeds publish in
feed_items, so following a feed no longer means re-running a search. Storing
items does not make them inputs. An Item becomes an Article only when
the writer saves it, and the Reader's only way out is the clipboard: Copy title
- link and Copy quote. The decision above holds for Items as it does for Articles.
Rejected: FreshRSS-style favourites as their own flag (a favourite is a save
to the existing library, with a note, keyed on the same (source_id, guid) so
the list shows it as saved); fetching each item's page for a full body, which
is what makes Search slow (the Reader fetches feed XML only); plain-text items
from stripHtml (the owner chose sanitized HTML with images at dispatch); and
a "start a post from this" action, refused for the reason in the entry above.
Storage, keys and purge: data-reader.md.
Sharp is allowed, for images only
2026-08-27 — sharp may be added. It normalizes uploads (resize, strip EXIF)
and runs the optimization pass on publish. Originals are kept alongside the
normalized copy. Uploads live in uploads/ — gitignored, with an
env-overridable absolute path so the store can sit outside the repo.
This reverses a standing ban: Sharp was forbidden from v2, when the project
had no image support and the rule existed to stop a heavyweight native
dependency creeping in for nothing. Images are now a first-class component, so
the reason is gone. The ban on the rest of that list stands.
Output is JPEG, not PNG
2026-08-27 — Rendered slides are JPEG. No PNGs are kept. Rejected: PNG (the format since v1) and keeping both. PNG is lossless and therefore kind to text-heavy slides, but the files are far larger and Instagram re-encodes everything on upload anyway — so the fidelity is spent for nothing. One artifact per slide, no format to choose at export.
Publishing is a manual state that optimizes the output
2026-08-27 — A post is draft until a person marks it published, meaning
ready to post. Publishing runs the optimization pass over the rendered images.
Rejected: deriving the state from whether the post was rendered or exported,
which is what today's 'draft' | 'rendered' status does. The app cannot know
whether something reached Instagram; only the person can say it's ready.
Posts are titled and unlimited, not one per day
2026-08-27 — A post is identified by its title; make as many in a day as you like. SQLite tracks title, description, datetime, and keywords. Supersedes "one post per day" (2026-05-18), which only made sense when the input was today's feed. The date survives as a label and in the output path, not as an identity or a limit. Still rejected from that same call: entity extraction, clustering, and per-topic splitting.
Access is behind a single account
2026-08-27 — Newspapper requires a username and password. One account, one
person.
Rejected: no auth at all (the v3 assumption baked into PRODUCT.md). Still
rejected: multi-tenancy, roles, and user management — an authenticated app is
not the same thing as a multi-user one, and this stays single-user.
Superseded 2026-09-06 — identity is Ward's. The account, the password and the login page are gone: sign-in is the estate's, and what opens newspapper is a
newspappergrant on a Ward account. It is still single-user in practice and still has no roles of its own. The full posture is in decisions-security.md.Revised 2026-10-13 — local accounts again, Ward as a second way in. The account and the login page are back, on the shared library; it is still single-user in practice. See decisions-accounts.md.
Headless Chromium renders the slides
2026-06-10 — Components compile to HTML, which Playwright Chromium screenshots
at 1080×1080.
Rejected: Satori + resvg (the v2 renderer) and @napi-rs/canvas (v1). Satori
implements a subset of flexbox and no real CSS cascade, which capped how
expressive a layout could be — and expressive layout is the product. The cost is
a ~300MB browser download, accepted deliberately, and the reason Playwright is
the one heavyweight dependency allowed.
Keyword matching is case-insensitive OR substring over title + body
2026-08-28 — A search matches an article when any supplied keyword appears as a case-insensitive substring anywhere in its title or body; results rank by total match count (occurrences summed across all keywords, all fields). No fuzzy matching, no word-boundary requirement.
- Title + body, not title-only: the keyword a person cares about is usually in the copy, not just the headline — title-only would miss most of what they're looking for.
- OR, not AND: a person hunting news gives a few related terms and wants
broad recall (
budget, tax, economy); requiring every term would turn a three-keyword search into one that almost nothing survives. - Plain substring, not word-boundary:
taxshould catchtaxesandtaxation— that's the whole point of typing a bare root rather than a full word, and word-boundary matching would silently defeat it. - Case-insensitive: nobody typing a keyword box thinks about capitalization, and there's no case where matching should fail because of it. Rejected: fuzzy/edit-distance matching (unpredictable — a person filtering today's news wants to know exactly why a result showed up) and AND semantics (too narrow for a handful of loosely related keywords).