0805-every-quantity-kind-crossing-is-recorded met
- Issue
- #805
- Stated in
- expectations/0805-every-quantity-kind-crossing-is-recorded.json
- Graded against
- Statuses are those of the build recorded on 2026-11-24 07:55 UTC (run 20261124T0755302069730000, merging ecoinvent-3.13, ecoinvent-3.12, ecoinvent-3.8, bafu-2026-v1, stepwise-2006-1.09, agribalyse-3.2).
Why this file exists
BAFU ships a flow called Water, process, unspecified natural origin, measured in kilograms. The merge puts it on this list's Water, measured in cubic metres. A mass on a volume. That particular pair is fine -- water has a density, the merge records 0.001 m³ per kg, and #78 decided this list publishes water by volume -- but nothing in the build had to say so, and a mapping that is simply wrong is published in the same shape as one that is right.
unit-change-allowlist.json is the file that tells them apart: one entry per pair, with a mandatory comment, asserting that a dimensionally impossible mapping is nonetheless correct. What it never had was a way of knowing what it had missed. has_unit_mismatch counts every unit disagreement, and most of those are harmless -- 159 of the 177 on the four-list build of 2026-08-29 (20260829T1158418340740000) are becquerels against kilobecquerels, one quantity at two scales, which units.json converts by itself.
So the population is narrowed to the one that needs a curator: a mapping whose two units have different quantity_kind_iri -- a mass onto an energy, a volume onto a standard volume, an activity onto a mass. There were 40 of those, and 15 had no entry.
#805 asked whether such a crossing should stop the merge, require an entry, or go on being annotated. The answer is the middle one, warning rather than raising: refusing the merge would make a new source list unmergeable until every crossing it happens to produce had been argued, and a crossing is usually the vendor's accounting convention rather than a defect. What stops one being forgotten is the measure below, and a unit_crossing_without_a_ruling warning per pair while the build runs.
The measure is computed from the stored build against the ruling files as they stand, so a curator who writes an entry can watch the number fall without rebuilding.
Expectations
2| What should be true | State | About |
|---|---|---|
|
Every mapping that crosses from one kind of quantity to another has a written reason
0805-no-quantity-kind-crossing-is-unrecorded
15 on the four-list build of 2026-08-29, all answered here. Twelve are Stepwise 2006's energy carriers -- hard and brown coal, crude oil, peat, uranium and six spellings of natural gas, each mapped from a mass or a volume onto EF 3.1's flow in megajoules, which is the assertion already accepted for ecoinvent and BAFU. Each of the twelve also gains the conversion the method states for it, read off Stepwise's own |
met |
measure
key: merge.unit_crossings_unrecorded
value_when_absent: 0
|
|
The build says how many of its mappings cross from one kind of quantity to another
0805-the-crossings-themselves-are-counted
40 on the four-list build of 2026-08-29. Claimed as a floor rather than pinned, because the number is a fact about the source lists rather than about this repository -- a release that stops accounting coal by energy content would lower it honestly -- and the number that must not move is the one above. The floor is here so that the measure vanishing, or the population collapsing because the quantity-kind test stopped working, reads as a failure rather than as a build with nothing left to rule on. |
met |
measure
key: merge.unit_crossings
value_when_absent: 0
|