ADR 0045: Citation locators are the notebook's locators, with the same ambiguity rules
- Status: Accepted
- Date: 2026-10-25
- Decision issue: #40
- Parent story: #19
- Parent epic: #15
- Builds on: ADR 0034, ADR 0009
- Contract: Citation format
Context#
ADR 0034 defined compound, open locators for passages. A citation needs the same precision, and the same refusal of locators that mean nothing without knowing the edition. Two locator types would diverge.
Decision#
- A citation carries up to eight ordered
research_notes::Locatorvalues. Kinds are the library's location schemes plusx-extensions; kinds are never merged. - The page and folio rules are one shared function used by the notebook and by citation
resolution: a page needs an edition, translation or witness (a reference resolves through its
ofchain), and a folio needs a witness. A violation drops that citation with anambiguous-locatordiagnostic and does not stop other citations. - Written form is
kind valueorkind value to end, joined by;. Timestamps use seconds orh:mm:ss. Values are Unicode text up to 200 characters. - The notebook's
extralocator fields are not part of a citation and are never public.
Consequences#
- A passage's locators can be copied into a citation unchanged.
- Locator semantics have one home; changing a rule changes both places in one edit.
Domain language#
Locator and Source location are defined in CONTEXT.md.