Evidence platform and governance
ADR-0061 — A number must say what kind of number it is
- Repository path
- docs/decisions/ADR-0061-a-number-must-say-what-kind-of-number-it-is.md
- Size · SHA-256
- 4.7 KB · 5dc4a8fbab9db1861c14841567f3f955365ea2100485b5bbe878e92d25092f0b
Status
Accepted, Phase 72.
Context
processQuantitySchema has carried this comment since Phase 30:
What the value is a value OF — the material, stream or product. Required, because "recovery 90%" and "grade 6%" mean nothing until this is filled in.
The comment names exactly the right discrimination — a recovery is not a grade — and the field it
justifies, materialScope, records the material, not which of the two the number is. The
discrimination was named and never made.
Fifty-seven quantities have gone through that field, and reading them shows what it absorbed. In a
slot documented as "the material, stream or product" the corpus holds calcination temperature,
cone crusher product size, jaw crusher gap width, output impulse generator voltage,
desliming efficiency and pulses applied. Temperatures, sizes, voltages and counts, alongside
product purities and extraction yields, with nothing distinguishing them but prose.
Two consequences, one already real and one latent.
basis: null meant two different things. A temperature HAS no denominator; an efficiency whose
denominator the source never printed is a fact this corpus does not hold. Both were the same empty
field, and seven quantities are in the second position.
demonstratedScale is recomputed from a route's quantities and did not care which. A furnace
temperature recorded at pilot scale could have established that a route was demonstrated at pilot
scale. No route in this corpus was in that position — checked before the change, and every one of
the seventeen stored values is unchanged by it — so the hole was in the schema and not yet in the
data.
The programme this phase belongs to needs the distinction for a third reason. A recycling corpus turns on figures like "ninety-five per cent lithium recovery", and such a figure is not a result until it says what the lithium ends up AS: lithium in a leach solution, lithium carbonate and lithium hydroxide monohydrate are three different products of three different difficulties.
Decision
Add PROCESS_QUANTITY_KINDS with six values, derive PERFORMANCE_QUANTITY_KINDS from it, and add
BASIS_UNKNOWN_REASONS. Add four fields to processQuantitySchema — kind, targetSpecies,
recoveredIntoForm, basisUnknownReason — and backfill all fifty-seven quantities. Add one gate,
check-quantity-contract.ts, and narrow demonstratedScale to performance quantities.
Why these six kinds and no seventh
Every value was read off the records rather than designed in advance, and every one has an instance: there is no bin for leftovers, because a bin is where a classification goes to stop working.
The axis separating MASS_OR_THROUGHPUT from RECOVERY_OR_SPLIT is not absolute-versus-fraction,
which was the first draft and was wrong. It is whether the number is about a named substance.
"Nine per cent old tailings added to the slag" and "fifteen per cent mass yield" are about mass;
"ninety-six per cent of the lithium" is about lithium. The first draft had no home for a blend
proportion and would have forced one into a recovery.
ENRICHMENT_OR_RELATIVE_CHANGE exists because of a single record that would otherwise be read
wrongly for the life of the corpus. The Bor route carries a figure of twenty per cent whose
materialScope reads "RELATIVE increase in copper recovery from the blended feed against recovery
from pure copper slag". It is a change measured against a baseline. Classified as a recovery it
would read as a recovery of twenty per cent, which is not what the source says and not close to it.
Why basisUnknownReason rather than making basis required
Making it required would have forced a denominator onto seven figures whose sources never printed one — which is inventing science to satisfy a rule, and is the thing this corpus exists to refuse. Making it required for recoveries alone would have done the same to four of them.
Instead the empty field must now say which kind of empty it is. Nothing was invented, seven gaps
became visible that were previously indistinguishable from facts, and the rule that refuses an
operating condition recorded as SOURCE_STATES_NO_DENOMINATOR stops a setting from ever being
written down as a missing measurement.
What this decision does not do
It does not normalise the corpus's existing unevenness about basis on contents. Some contents
carry PER_TONNE_ORE or PER_TONNE_CONCENTRATE and others carry none, and this phase records the
reason for each empty one rather than retyping the others to match. Retyping would be editing
scientific records to make a new rule look tidy.
It adds no ranking, no score and no judgement of a route. It asks what each number is a number of.