Evidence platform and governance
ADR-0048 — A characterization need is derived, and its scope decides whose problem it is
- Repository path
- docs/decisions/ADR-0048-a-need-is-derived-and-its-scope-decides-whose-problem-it-is.md
- Size · SHA-256
- 5.3 KB · 9916b8fe39f9a62d95dac967768dfae6ca2788f63e46eaf65e40111a311a80e2
Status: Accepted · Date: 2026-09-10 · Phase: 38 Extends: ADR-0047 and ADR-0046. Nothing earlier is superseded.
Context
Phase 37 left 129 unresolved requirement rows carrying coarse blockers. Four of those blockers
covered situations that need entirely different things, and one of them —
MEASUREMENT_BASIS_INCOMPATIBLE, 54 rows — turned out to be three separate problems wearing one
name.
The brief offered a first-class ProductCharacterizationNeed and required that it not be
created without demonstrated pressure. It also required, in the strongest terms, that an
available derivation be checked before anything is declared missing.
Decision 1 — the need is a derived INTERNAL record, and it does need to be a record
characterizationneed:* under data/internal/characterization-needs/, entirely recomputed by
its gate from the envelopes, the comparisons and the analysis rows. Nothing may be authored,
including the ordering — of which there is none.
It is a record, and not a field on the quality envelope, for one empirical reason. A need spans envelopes. Seven grades of one issuer each constrain cobalt; that is one absent measurement blocking seven requirements across seven comparisons. Four analytes of one product reported in a liquid share one missing pair of preparation numbers. Neither fact can live inside a single envelope, and computing it on demand would leave nothing to diff and nothing to fail when it goes stale.
It is not an Entity. Nothing in the world corresponds to it: it is a statement about what this corpus does not hold.
Decision 2 — the derivation check runs before anything is called missing
Forty of the 54 basis mismatches are one product's XRF analysis, published expressed as a percentage of oxides, meeting element limits. That phrase states a reporting convention: the instrument measured elements, and the factor recovering the element is fixed by the printed formula alone. Declaring those forty rows "missing measurements" would have created forty needs for data the corpus already holds.
They are recorded as VALID_DERIVATION_FROM_EXISTING_DATA, each carrying the transformation,
the arithmetic and the value that would follow.
The factors are computed from atomic masses and stoichiometry, never typed. A hand-written table was written first and disagreed with the arithmetic in the sixth decimal on nine of twelve rows — which is the entire argument for deriving a constant rather than transcribing one.
Decision 3 — the derivation is NOT performed, and that is the phase's clearest finding
A derived value is arithmetic over a measurement and never becomes one. The comparison gate joins a measured value to an analysis row; a derived row placed there would be indistinguishable from something an instrument produced, and the corpus would have promoted arithmetic to evidence without noticing.
Carrying that distinction is an architecture change. Phase 38 measures the pressure for it — 12 needs, 40 requirements, all decidable — rather than improvising it inside a phase whose mandate is systematization. Each record states why it was not performed, in its own field.
Decision 4 — scope decides whose problem a need is
A need whose type asks for a product measurement belongs to the product. A need for something only the issuer can supply — a limit printed with no unit — belongs to the specification.
This was not obvious until a mutation exploited it. Relabelling a specification's missing unit as an unmeasured analyte passed every rule: the new type had no coherence entry, and the scope checks looked only for a missing id, never a wrong one. So an issuer's own omission became a demand for laboratory work on a product that could not have helped.
The rule now runs both ways: everything a product analysis could answer belongs to the product that would be analysed, and only a specification's own omission belongs to a specification.
Decision 5 — multiple blockers coexist, and the schema does not need to change for it
One requirement may be referenced by several needs, and four are. A limit printed with no unit and measured on an incompatible basis is blocked twice; resolving one leaves it unevaluable.
This needed no new structure. A need lists the requirements it blocks; a requirement is blocked by however many needs list it. The "one fix" fallacy is impossible to express, because nothing anywhere claims a requirement has a blocker.
What has no field, on purpose
No priority. No cost. No score. No rank. No ordering. The schema is strict, so each of those is refused by the shape of the record rather than by a rule about it — a different and stronger kind of protection, and the tests say so in those words.
Consequences
- One new record kind, one new gate, one new pure-derivation module.
- No new entity types, and no change to any Phase 33–37 record.
- Two blocker classes the brief anticipates — source access, product identity — have no instance in this corpus and are asserted absent rather than tested with fabricated data.