ADR 0141: A reading mode only shows or hides supplements, and every representation stays complete without it
- Status: Accepted
- Date: 2026-10-26
- Decision issue: #68
- Parent story: #26
- Parent epic: #16
- Builds on: ADR 0140, ADR 0004
- Amended by: ADR 0142
- Contract: Reading modes
Context#
Controls (#69), progressive rendering (#70) and safeguards (#71) need one agreed meaning of the three modes and one static markup to enhance. The epic's invariant is that every capability has a native accessible experience and a deterministic portable fallback, and that no authored content disappears silently.
Decision#
- Three modes, cumulative.
standardshows no supplement,guidedshowsguidedones, anddeep-diveshows both.ReadingMode::showsis the one rule; the names are exactlystandard,guided,deep-dive. - A mode is a visibility choice and nothing more. It does not reorder, rewrite, summarise, personalise or remove anything, and it does not change the article's HTML, text, citations, footnotes, headings, links or ids. Nothing in the contract claims a supplement is true, agreed or permitted to copy, and a mode never ranks or filters by viewpoint.
- The page is complete without JavaScript: every supplement is written out visible. The build
never writes
hidden. A reader without script, a feed reader, a search engine and a printout all get every labelled supplement in document order. Standard mode being "uninterrupted" is therefore an enhancement applied by the control (#69/#70): it hides the supplements the chosen mode does not show, from the preference the reader keeps locally (or the author's default mode, ADR 0142), and shows all of them again if script is unavailable. A supplement that holds a warning or caution callout is never hidden by any mode. A reader's choice is a local presentation preference and is never sent anywhere. - The static markup is one
div.ob-supplementper supplement, withid="ob-supplement-N",role="group",aria-labelledbyits label,data-ob-supplement,data-ob-kind(the kind word) anddata-ob-level(the effective level,guidedordeep-dive). Its first child is a label paragraph: the kind instrong, then "guided supplement" or "deep-dive supplement", then the title. Then the author's words in a realblockquote, then a closing paragraph<p class="ob-supplement-end"><strong>End of definition supplement.</strong></p>. The quote and thestronglabels are structure that a feed reader and a page with no stylesheet both keep, so the boundary is visible without CSS (ADR 0142). It is a group, not a landmark, so many supplements do not flood a screen reader's landmark list. All text is escaped; the marker line is replaced by the label. A supplement that holds a warning or caution callout also hasdata-ob-always. - Portable copies. Portable HTML, RSS and JSON Feed carry the same visible labelled groups;
portable Markdown carries the quote with its marker line exactly as written; plain text (and the
JSON Feed
content_text) carries the words between a line naming the supplement and a lineEnd of ... supplement.. All are fully portable: no link to the canonical article is needed to keep the meaning. The registered capabilityguided-reading-supplementsis reported for a post with supplements, with its own fallback and levelfully-portable. It is no longer a planned capability: the registry marks itimplementation_status: implementedwith animplemented_fallback, and the planned-capability tests skip the canonical-only label for it while still requiring the public prose to survive. - Semantic-loss checks treat the supplement words as ordinary content: the marker line is not a fact a representation must carry, the words are.
- Failure scope. A malformed marker is a finding about that marker; the rest of the post and the other supplements are unaffected. Nothing writes a file, so no canonical file or browser data can be left changed.
Consequences#
- #69 can build the control from the three names and
ReadingMode::shows; #70 hides by thedata-ob-levelattribute; #71 can check that the article text is identical whichever mode is on. - The no-script page is longer than the standard reading. That is the price of never hiding authored words from a reader who cannot run script, and a post author controls it by how much they write in supplements.
Domain language#
Reading mode is defined in CONTEXT.md.