Skip to content
LITHOEN

Evidence platform and governance

Document

ADR-0051 — A stage is an operation, a state is a material, and a route is not a line

Repository path
docs/decisions/ADR-0051-a-stage-is-an-operation-and-a-state-is-a-material.md
Size · SHA-256
4.9 KB · 65e1fcab440af2a63cc213232a972ef1ff85b087c18c9657352eb46a2b79289e

Status: Accepted · Date: 2026-09-11 · Phase: 42 Extends: the process-route model. ADR-0041's optional ladder rung and ADR-0044's identifier join are untouched; what changes is what a step is permitted to say.

Context

The route model had carried a step's input material since it was built, and inferred everything else. A step's product was whatever the next step took, a route's shape was whatever its steps implied, and both of those inferences held only because no route in the corpus had ever branched or paused.

Two things broke that at once.

The first was read from a source. The Cínovec gypsum-method precipitation parts one stream into two: a lithium carbonate and a mother liquor that the paper characterises in its own right (Li 3221 mg/l, K 55 600 mg/l), states a precipitation efficiency of about 73 per cent for, and names as the subject of its own intended continuation. The route recorded one output. The stream it dropped is not a detail — it is where the lithium the precipitation did not take goes, and a corpus that cannot hold it cannot later be asked where anything went.

The second was produced by this phase's own backfill. Making a step's output explicit across 17 routes forced a value into every step, including steps whose sources name no material coming off them: milling a slag, extracting from a leachate, purifying a precipitate. Each was filled with its own input. That is a state invented by duplication — four of them — and it went in under a schema comment asserting that a step producing nothing named is not a step.

Decision 1 — a step names its output, and may name none

outputMaterialEntityId is explicit and nullable. Null means the source named no distinct material leaving this operation. It never means nothing left it.

The original required field encoded a claim about the world — that operations and states alternate one for one — which the corpus disproved on first contact. How many operations pass before a material is renamed is the source's business. Continuity is therefore measured against the last state anybody named, not against the previous step's slot.

Decision 2 — a step names its co-outputs

coOutputMaterialEntityIds holds the other materials the step produces where the source names them. Empty is the normal case and means the source names no co-product — not that none exists. The corpus cannot detect a co-output that was never recorded, and the gate says so rather than implying otherwise: a dropped co-output passes every structural check. What the field buys is that a branch, once read, can be written down.

Decision 3 — a material carries its physical form

physicalForm on a Material is one of twelve values, UNSTATED among them. It exists because the solid-versus-solution boundary had by this point been met five times and was still only ever noticed. With a form recorded, it is checkable.

The check runs one way on purpose. A liquid whose composition is filed as a mass fraction of a solid is this corpus having performed a conversion nobody supported, and is refused. A solid whose composition is filed as a concentration is not refused, because that is what one of this corpus's own sources does — Jandová (2009) captions a table "Average content of impurities in Li2CO3", a solid, and heads its columns "Elemental concentration (mg/l)". The corpus recorded that discrepancy against the source instead of resolving it, and a gate failing on it would punish this corpus for reporting somebody else's inconsistency faithfully. One direction is our error; the other is theirs.

Decision 4 — the lineage rules live in one gate

check-material-states.ts owns feed continuity, product continuity, step-to-step continuity, the material-versus-operation distinction, co-output integrity, producer uniqueness, the residue-as-product refusal, the copied-analysis refusal and the form/basis rule.

Three of those had a second implementation in check-material-chain.ts, which was deleted rather than taught the new null semantics. Two gates holding two readings of the same rule drift apart on the first record that exercises the difference, and here the difference was already sitting in the corpus.

What this does not establish

  • That a route is complete. A source naming two outputs where a third existed leaves no trace, and neither does a route recorded from a source that simplified.
  • That a state was read rather than supplied. No structure distinguishes a state taken from a source from one supplied out of general chemistry. Only the claim and support records behind each state carry that, and the mutation tests say so instead of pretending a gate covers it.
  • Anything about operating conditions. A step is a claim about topology. It remains, as before, not a claim about how to run anything.