Skip to content
Toolkit

ADR-0094 — A splash page is the product's chrome, not the author's document

Status: Accepted · Date: 2026-08-29 · Track: 007 phase 02 · Supersedes nothing · Builds on: ADR-0083, ADR-0092, ADR-0093

Context

The third reason on ADR-0092's mechanism is the first with a row of its own to render. A password gate asks one question and a content warning states one fact; a splash page has a title, a description, an unlock countdown, an auto-redirect setting and a secondary button, all authored per page in a table with its own CRUD and editor.

links.splash_page_id was written by the link form and selected by no serving path in the product's life, so this interstitial — the one a link type is named for — had never rendered for any link. Making it render means the app fetches a splash page it does not own, on the app's own origin, and draws it for an anonymous visitor.

splash_pages.settings collects six keys. Two are content: a secondary button's label and URL. Four are not: custom_js, custom_css, ads_header, ads_footer — script and markup an author supplies. Serving those and executing them is stored cross-account XSS on the origin where every signed-in user's session lives, reachable by anyone who can create a splash page and get a link clicked. ADR-0083 answered the same question one layer up when the biolink payload went out as a settings blob; this is that question again, with a different blob.

Decision

The public splash payload is an allowlist, and it is exactly what the page draws: title, description, link_unlock_seconds, auto_redirect, and the secondary button's label and URL.

The author's script, stylesheet and ad slots are not served. Not escaped, not sandboxed, not served: the splash renders the product's chrome from Studio primitives with its text behind t(), the same as every other public surface. An author who wants to run their own document is asking for hosting, which is track 010's question and not a settings key's.

The secondary button is both halves or neither, and its URL takes the redirect path's own safety test — http/https only, the same guard the destination takes. It is rendered as somewhere a visitor may click, so it is checked like one, and it is drawn as an anchor rather than a button because it goes somewhere.

The countdown is the author's and the answer is the visitor's. The continue control is inert until link_unlock_seconds runs out, auto_redirect continues on its own when it does, and either way the answer is an acknowledgment grant (ADR-0093) — so a visitor cannot skip the page by holding a grant for a different gate, and the splash can never open the password one.

Consequences

  • Four collected settings now render nowhere, demonstrably. They rendered nowhere before too — nothing read this table — but the honesty bar says a control that is collected and served by nothing is either wired or withdrawn. Withdrawing them from the editor is a product call and one PR of its own, recorded in 007's SESSION open items rather than taken here.
  • splash_page_id is selected by GetLinkByURL, which is what makes the branch able to fire at all; the repository integration test holds it there, as it holds the phase-01 columns.
  • The pattern generalises: any later interstitial that renders an author's row serves an allowlist of it, and the question "may this account's markup run on our origin" has one answer.
  • A link whose splash page has been deleted answers 404 at the payload endpoint and the page offers to continue rather than trapping the visitor — a missing splash is not a reason to withhold a destination the author did not withhold.

Source: docs/decisions/0094-a-splash-page-is-the-products-chrome-not-the-authors-document.md

Library