ADR 0197: The curated context file is a bounded, versioned projection of the one public curated value
- Status: Accepted
- Date: 2026-10-27
- Decision issue: #197
- Parent story: #190
- Parent epic: #15
- Builds on: ADR 0185, ADR 0168, ADR 0193
Context#
Reader Discovery (#16, #25, #27) needs to enhance curated research context without reading a private store or guessing which selections are public. ADR 0185 made the curated value public and previewable; nothing yet wrote it where a reader's tool can fetch it.
Decision#
- One file, from one value. A site that publishes curated context writes
curated-context.json, projected fromPublicCurationand the published posts' slugs and addresses, and from nothing else: it takes no selections file, library, notebook or atlas, so it cannot name or reach a private object. An addition to what a selection publishes reaches the file only through the selection projection. - Versioned and self-describing.
formatisopenblog-curated-context-file, distinct from the public value's ownopenblog-curated-contextandformatVersionis 1;sectionandanchorPrefixsay where a post's section and an item's fragment are, so a consumer never guesses either. Each item carries the revision that was selected (the one published), its attribution, doubt, dissent and evidence, its provenance, the fields the source lacks (never invented) and its notices. A consumer that does not know the version declines. - Per post, in the author's order.
postslists each published post that offers anything, sorted by slug, with its items in that post's own order (ADR 0193) and the canonical address of each. - Deterministic and safe to embed. The same site builds the same bytes: every list has a defined
order and the JSON is compact with
<,>and&escaped, as the atlas files are. - Bounded, and refused whole. At most 1 MiB (after the base path) and 2,000 posts. A projection over
a bound, or that does not agree with itself (an item published twice, a requirement or context that
names an item that is not published, an item naming a post the build does not publish), is left out
whole with a
boundary:warning that names the limit and ids, never text. The pages are unaffected. - Listed in the manifest. The site manifest gains the
curated-contextprojection (switchcuratedContext.publish) with one item for the file, its address and the posts it lists, or the reason it is withheld. The build summary does not count it twice, as for the atlas query file.