ADR-0054: A PWA references the page it installs
- Status: Accepted
- Date: 2026-08-23
- Deciders: Repository owner, via decision 003 of
001-renaissance/decisions.station/jobs/001-renaissance/decisions/README.md(answered 2026-08-14); recorded here as the descriptor forpwaenterspackages/product-model(track 003 phase 00, ADR-0030)
Context
The PWA page promises "make your biolink installable", but the pwas table
holds no reference to links — the user hand-types start_url and maintains
it by hand, so the copy describes a relationship the model does not have
(Audit 04). Whether to add the relationship was decision 003, answered by the
operator in 001-renaissance's decisions log; per that log's rule, an answered
decision of architectural consequence graduates to an ADR. This is that ADR,
written when the answer stopped being prose and became a registry entry — the
last declared product leaves catalogue.ts, and the note that carried the
question retires with it.
Decision
Yes — a PWA models its relationship to the page it installs, as a nullable
pwas.link_id.
- Nullable, so a PWA that installs something other than a bio page stays legal. The reference is an offer, not a constraint.
- When
link_idis set,start_urlis derived from the referenced resource rather than hand-typed — it stops drifting when the resource's slug changes, and the page's promise becomes true.
Consequences
pwamoves intopackages/product-modelwith the descriptor the decision supports: category Resources,createPath: '/pwas?new=1',opens: 'panel', and the description "An installable app built from a page you already have" — copy the reference makes true rather than aspirational.- The schema work the decision names — one migration adding the nullable
link_id(at the next free number, with.down.sql), one picker in the create panel, derivation ofstart_urlwhen set — is implementation that follows this ADR; it is not part of the registry move and lands under the migration rules, not silently with a descriptor. - With
pwaderived, nothing in the catalogue is declared: every card comes frompackages/link-modelorpackages/product-model, andcheck:catalogue's declared-product count reaches 0, closing track 003 phase 00's scoreboard. A new product joins by joining a registry.
Source: docs/decisions/0054-a-pwa-references-the-page-it-installs.md