Skip to content
Toolkit

ADR-0165: A bio page setting is written and read, or it is not there

  • Status: Accepted
  • Date: 2026-09-17
  • Deciders: Workstream 012, NEXT row "A bio page's theme settings reach the page"; owner requests of 2026-09-17 (editor settings, preview, duplication, top bar)

Context

An upload picker was put on the bio page's image-background field, the page was opened, and the background was drawn nowhere. The census that followed found the editor's Settings panel writing 36 page-level keys of which 5 were read by anything; the renderers reading 11 of which 5 could be written — the page header's name, line and picture had no control at all — and three more things the census only surfaced:

  • The directory lists by the column links.directory_is_enabled, which defaults to TRUE. The editor's toggle wrote a settings key nothing read, so a page its author had switched off stayed in the public directory.
  • GET /api/v1/directory, unauthenticated, served whole models.Link rows: owner and workspace ids, display rules, and the full settings blob with the gate password digest, the expiration URL and the author's custom script — ADR-0083's leak on the endpoint that review did not open.
  • The editor was as tall as its canvas's min-height: 70vh, so preview left a blank band; its settings rail scrolled five of eight tabs out of sight, and its first tab was "Settings" inside "Settings".

Decision

  1. check:biolink-settings-reach holds the census (rules B1–B4, scripts/biolink-settings-ledger.json): every key the panel writes is read by a renderer and served, or acted on by the server; every key a renderer reads is written; served and read agree. A row closes by wiring the key through or by removing the control.
  2. The page header is three keys — title, description, image — for every reader. The panel writes them; the public page, the editor canvas and the directory read them; the directory's search and spotlight use them. name, bio and profile_image are gone.
  3. The directory serves a card: id, address, the public settings, clicks, date. Nothing else of the row leaves the server.
  4. Listing is the column. directory_is_enabled on a bio page update writes it through SetDirectoryListing, its own statement, because the shared Update writes the whole row from structs most callers load without that column.
  5. Backgrounds are drawn, from validated strings: a gradient stop is a hex colour, an image an http(s) or /uploads/ address, quoted with JSON.stringify. Video, the PWA tab and nothing else were removed; they had never been drawn and the PWA resource (ADR-0054) superseded the tab.
  6. The editor owns the viewport (.ed-root), its panels and stage scroll inside it, and its settings rail wraps.
  7. A resource can be duplicated: POST /api/v1/links/{id}/duplicate. A copy is a create — plan count, name allowance and address claim all apply — takes <address>-copy, carries the definition (and a bio page's blocks) and none of the history, and starts disabled and unlisted. file and static are refused: they own stored bytes (ADR-0130/0131).

Consequences

  • 21 written-unread rows remain: branding (6), SEO (3), typography (3), motion (2), shape (2), custom code (2, ADR-0096's owner decision), three behaviour toggles. Each is a NEXT slice: wire or remove.
  • Rows written before this change may hold settings.directory_is_enabled = false for a page that is still listed. Unlisting them is a one-off statement over live data and is the owner's (ROADMAP → DEFERRED).
  • The top bar is a three-column grid: the search sits on the bar's centre line; New, notifications and the account are three floating controls; the theme is switched in the account menu only.

Verification

Go: directory card (all seven leak assertions watched failing on the old response), listing on update, duplicate (six cases). PostgreSQL 16: unlisting survives an update; CopyBlocks. Web: backgroundFromSettings (five cases, hostile strings among them). Gate: B1, B3 and both directions of B4 watched failing. Running stack: evidence .station/jobs/012-steady-state/evidence/visual-2026-09-17.md.

Source: docs/decisions/0165-a-bio-page-setting-is-written-and-read-or-it-is-not-there.md

Library