architecture.
12 of 149 decisions. Back to the full index.
| # | Title | Summary | Status |
|---|---|---|---|
| ADR-077 | Publish a nested record as a section of its parent site, staged by its own config | site.include_records mounts a whole record inside another’s vault. Each is staged by its own config, because the source-versus-view test reads from the reading config’s schemes — so a parent publishing a child’s files directly emits both a fragment and the view it renders into. | Active |
| ADR-078 | A nested record’s views are generated and committed with the parent’s | luria index regenerates every nested record’s views from the root, and --check fails on a stale one, so they are committed like this project’s own. include_records moves out of [luria.site] in the same change: it says a project contains other projects, which generation needs as much as publishing does. | Active |
| ADR-094 v2 | A cited document gets a page, and where a citation points is configurable | A render = "document" scheme’s sources are published as pages, and a new cite key chooses whether a citation of its codes resolves to that page or to an anchor in the assembled view. This record sets “page”; unset keeps today’s behaviour. Rejected: emitting anchors that survive each publisher, and shipping the key without the pages, which sends citations off-site. | Active |
| ADR-095 | An acknowledgement can carry its own deadline | A directive may be written until <YYYY-MM-DD>; after that date find stops returning it, so every check behaves as if it were never written, and luria lint reports what expired. Rejected: a relative duration, which needs an anchor the file does not carry; and a version milestone, which needs a project-version concept luria does not have. | Active |
| ADR-127 | A logic core in clingo, behind a procedural shell | The parts of luria that decide things about the record’s graph — converse pairs, invariants, chain edges, config consistency, and which acknowledgement answers for a citation — move from hand-written Python walks to Answer Set Programming rules evaluated by clingo, over facts the Python extracts. Python keeps parsing, rendering, editing, git and the network, and turns derived facts into findings, edits and pages. The move is one subsystem at a time, each held to byte-identical luria lint and luria index output against the last release on every real record. Rejected: a full rewrite, Cypher or an embedded graph database, SQLite recursive CTEs, a hand-rolled Datalog evaluator, and staying in Python. | Proposed |
| ADR-128 | Configuration is the only source of relation semantics | No relation is supplied by the code: the successor and influenced_by become ordinary declared references, roles point at declarations instead of creating them, references may target declared remotes, the facts give every reference value a declared type, and relations.lp no longer infers a type from an absence. luria upgrade explicit-relations writes down what older versions supplied. Rejected: emitting the built-ins as facts, an explicit any-scheme target, and undeclared roles with the old defaults. | Proposed |
| ADR-130 | A view may be a Jinja template over the record | A record may declare views: a Jinja template, rendered by luria index into any file in the repository, with the record as its context. A template selects documents with doc, docs and vocabulary, and walks the graph with match, a path pattern written inline in ADR-129’s syntax. It writes codes bare, and the output passes through the link fixer in the output’s own frame, so no template spells a link target. Templates compose with Jinja’s own include, import and extends, so a hand-written file with a generated region is a template that holds the prose. The environment is sandboxed, strict about undefined names and blind to the clock, so a view stays a pure function of the tree. Rejected: generated regions in hand-written files, str.format, a logic-less engine, a Python hook, a link filter, named patterns only, and a manuscript scheme. | Active |
| ADR-145 | A journal may be consumed into its books on the project’s schedule, and consumption refuses entries a review still holds | Proposed. A journal that sets consume: has its entries folded into its existing period books by luria collect --dir <journal dir>, and then deleted. Folding keeps each entry’s timestamp anchor and rewrites links that pointed at the entry. From then on the book is the entry’s source: append-only, never regenerated. Only closed periods are consumed. A configurable hold keeps back entries a review still needs (for a record running retrospectives: retro-tagged entries filed after the latest accepted RETRO’s coverage). Collection skips and names them, and the lint fails if a book holds one. When collection runs is the workflow’s cron, not luria’s configuration (DP-019). Rejected: partitioned fragment targets (a second period mechanism), consuming open periods, and an unconditional consume. | Proposed |
| ADR-146 | luria export writes the record as a LadybugDB graph | Proposed. luria export --format ladybug writes the same rows the SQLite export does (ADR-116) into one LadybugDB file: documents and journal entries as node tables, each declared relation as its own relationship table, and citations as a relationship carrying file and line. A graph store lets a path pattern run as Cypher, in Python and in the browser, so a view can be computed where it is read. Verified: a file written by ladybug 0.23.0 (Python) is read by @ladybugdb/wasm-core 0.23.0, with the same answer. Rejected: one generic edge table (it loses the relation as a type, which Cypher’s [:a|b] matches on), JSON instead of a database, and SQLite in the browser (a join per hop). | Proposed |
| ADR-147 | Every generated view is a template luria ships, rendered by one view engine | Proposed. The pages luria index derives (a scheme’s index, its per-value pages, a document-rendered scheme like the principles, a journal’s books and their index, the status reports) move from Python generators to templates luria ships, luria:<name>.md.j2. They are rendered by the one view engine of ADR-130 from a context the generator’s data half builds. A project overrides one by naming its own template. This is the path ADR-139 took for the record description, extended to every derived page, and it is what makes the browser-rendered views possible: the same template, in a browser. Rejected: keeping the generators (two rendering paths, neither portable), and porting straight to the browser (no Python reference to test it against). | Proposed |
| ADR-148 | The site is a bespoke shell that renders the record in the browser, replacing Quartz | Proposed. Replace the Quartz build behind actions/site with mantle (github.com/dmarx/mantle), a publisher of its own that luria feeds but does not contain: a small static shell that fetches a document’s markdown on demand and renders it in the visitor’s browser, with search and graph data sharded so no page loads the whole record. Grounded in CI history: nucleation’s site step grew from 61 s to 2731 s between 2026-09-25 and 2026-11-25, near-linear in a 442.9 MB artifact (r = 0.985, n = 18), and Quartz’s emit phase is 84% of the build. Rejected: tuning Quartz (it pre-renders every page on every merge, which is the cost itself), another static generator (the same shape, faster), and the status quo. | Proposed |
| ADR-149 | Views render in the visitor’s browser from the graph, and are not committed as markdown by default | Proposed, and the third step after the site shell and the LadybugDB export. The published site computes a view (a scheme’s index, a field value’s page, a pattern’s page, a chain) when a visitor opens it, by running its selection against the exported graph and rendering the view’s template in the browser. luria index stops committing those views as markdown by default; a record can still ask for them. In nucleation, generated views are 66 MB of 159 MB of markdown, and the largest is 4.9 MB. Rejected: keeping committed views as the site’s source (the size and the bot commits stay), and computing views on a server (Pages has none). | Proposed |