ADR 0053: Keep Knowledge Atlas entries typed, private by default, and the home of notebook concepts
- Status: Accepted
- Date: 2026-10-25
- Decision issue: #48
- Parent story: #21
- Parent epic: #15
- Builds on: ADR 0009, ADR 0034
- Contract: Knowledge Atlas format
Context#
Research notes may link concepts, but ADR 0034 only checked their shape because nothing
defined a concept. The Knowledge Atlas describes the people, works, concepts, movements and
events a writer reasons about, and relates them. Two risks shape it. A generic "node" record
loses what each thing is, so a person can be "part of" a concept and a translation can pass
for a work. And a file that anyone can later flag public invites a path to publication that
skips review.
Decision#
The atlas is a private, versioned JSON document owned by openblog_core::knowledge_atlas:
{ "version": 1, "entries": [...], "relationships": [...] }. Entries and relationships share
one identifier space of immutable lowercase slugs.
- Five kinds, no generic record. An entry is a
person,work,concept,movementorevent. Anything else is refused. Kind is immutable for an id, because relationships were checked against it; a different kind of thing is a new entry. Only aworkentry may carrysource, which must be a source-library record of kindwork(ADR 0009): editions, translations and witnesses are cited as evidence, never made entries, so a translation is not an original work. - Concept entries are what notebook concepts mean. A note's
conceptsid resolves to the concept entry with that id. The notebook format and parser are unchanged, so an existing notebook stays valid with no atlas, and a link to a missing concept is reported (Atlas::concept_links,missing_concepts) rather than refused. A link whose id names a person, work, movement or event is reported as the wrong kind. Removing a concept entry that notes link to is allowed, because an unresolved link is valid and nothing invariant depends on it; the removal reports the notes whose link became unresolved (EntryRemoval::unresolved_notes), and writing the concept again resolves them. - Entry prose is the author's.
label,aliasesandsummaryare the author's words; quotation belongs in notebook passages. Contributor credit fields are refused, as in the notebook, because attribution here is about who asserts, not who is credited. - Private by default, consent is explicit.
visibilityisprivateunlessapproved, and is always written.approvedis only the author's recorded consent for the publication projection (#51); this module copies nothing, and the source and notebook stay private. An approved relationship cannot be an unsourced draft and cannot carry a pointer into the private notebook; both are refused, because approving them could only ever leak or mislead. Whether an approved relationship reaches public output is a projection rule, not a validation rule: it is projected only when it and both entries it joins are approved (Atlas::is_projected,Atlas::projected). An approved relationship that touches a private entry is valid, stays private, and is reported as a non-blocking notice (Atlas::notices, codeprivate-endpoint). So withdrawing approval from an entry is an ordinary edit that withdraws every relationship touching it, re-approving restores them, and a hand edit of onevisibilityvalue never makes the file unreadable. Unlike the notebook, which has no switch at all, the atlas needs per-entry approval (#51); the conservative choice is a field that only a projection may act on, and which is reversible by editing the value. - Dates are context, not structure.
boundsis an optional coarse year range (negative is BCE, no year 0) kept for display. Nothing orders or relates entries by it. Cited, uncertain and competing dates are the chronology contract (#56), which supersedesboundswith a version bump rather than overloading it. (Superseded by ADR 0095: atlas version 2 replacesboundswith attributed, cited datings, and a version 1boundsis upgraded to a private, unsourced dating of the entry's span.) - Validation is all-or-nothing and scoped. Diagnostics name the collection, index, id and
field and never repeat authored text.
upsert_*andremove_*change the in-memory atlas only when the whole result is valid; removal is refused while relationships depend on the entry. Unknown fields are preserved at every level but may not reuse a defined name, serialization is deterministic, and the 4 MiB limit applies to the written form. A newer version is refused rather than reinterpreted; control and bidirectional override characters are refused in text.
Storage, revision checks and atomic writes (following ADR 0010 and 0035, decided in ADR 0055), Admin UI and the publication projection are separate slices.
Consequences#
- A person can never be "part of" a concept or be a work; the table of allowed endpoints is one place to read and extend.
- The storage slice (#49) must check library, notebook and atlas together before deleting a
source or passage (
uses_of_source,uses_of_passage). - Approval is a reviewable field, not a bypass: the projection (#51, #72) must re-check it,
may copy only approved entries, and copies a relationship only through
is_projected. Removing approval removes the output, never the data.