Curated research context
Status: implemented for v1 of the format (#197). Decisions: ADR 0197, ADR 0198, ADR 0199, ADR 0200 and ADR 0201.
A site that sets curatedContext.publish and has selections (see Curated research
context) publishes two things from one public value:
curated-context.json, a versioned data file that Reader Discovery and any other tool can fetch and reuse without reading a private store; and- on each post's page, a static Research context section that says the same thing in readable HTML, complete without JavaScript.
Both are read from the one public curated value the boundary manifest lists, so they never disagree and neither can reach a private object. A site that curates but publishes no selection writes neither.
curated-context.json#
Compact JSON, deterministic (the same site builds the same bytes), with <, > and & written as
escapes so authored text can never close a <script> element the file is embedded in. At most 1 MiB
and 2,000 posts; a projection over either bound, or one that does not agree with itself, is left out
whole and the build says why (boundary:); the pages are unaffected.
| Member | Meaning |
|---|---|
format, formatVersion | openblog-curated-context-file and 1 (distinct from the public value's own openblog-curated-context: the file is a projection of it). A reader of another version declines. |
section | The id of the section on a post's page (ob-research-context). |
anchorPrefix | The prefix of each item's fragment (ob-curated-). |
items | Every published selection, whole-site first, then by first post and the author's order there. Each carries id, kind, target, revision (the revision that was selected, which is the one published), content (only the fields the author listed, plus the attribution, doubt, dissent and evidence the kind always carries), provenance (authored, imported with where from, or unrecorded), missing (selected details the source lacks: never invented), requires, posts, positions and notices. |
context | The approved sources, entries and relationships a published item needs to be understood, sorted by kind then id, each with the ids it is via. |
posts | For each published post that offers anything, sorted by slug: post, its url, its items in that post's own order (id and the canonical url of the item's anchor on the post's page) and the context it needs. |
An item is published once; requires and via name published items only; a selection that is
withdrawn, stale, missing, unapproved, cyclic or for no published post is not in the file (the
boundary preview says why). Nothing in it can be queried for more: its only addresses are
public pages. Relationships keep their stored direction and assertion; nothing says one is true.
The page section#
A <section id="ob-research-context" aria-labelledby="ob-research-context-title"> after the post's text. It
holds an <h2>, a note that nothing in it is a verdict, an ordered list with one <li id="ob-curated-ID">
per item (an <h3>, then a definition list of the selected fields), and a "What these refer to" list of
the sources and entries the items cite, which the items link to. Every string is escaped; the only links
are to this site's pages and to a source's own https address. The order in the document is the reading
order. It wraps anywhere (so it reflows at 320 pixels and at 400% zoom), keeps each item whole in print,
and needs no script. A post that is offered nothing has no section and is byte for byte what it was.
Portable copies#
Portable HTML, Markdown and text, syndicated copies, full-content feeds and llms-full.txt carry the same
section as labeled sequential sections (ADR 0202 to 0206): no ids, scripts or data attributes, absolute links,
a link to the section and to each item's anchor on the canonical page, and the same words as the page. A
summary-only feed links to the section (<atom:link rel="related">, _openblog.researchContext). A copy that
would lose anything it shows is refused for that post. Formats say what they cannot carry
(curated-context-sequenced, -address-text, -held-back). Bibliography exports add the selected references
and list every other item as omitted. With curation off or empty every copy is byte for byte unchanged.