0869-prepared-decisions-carry-their-place met
- Issue
- #869
- Stated in
- expectations/0869-prepared-decisions-carry-their-place.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
When the build attaches a source row to the flow a curator had already chosen, it writes a record of the decision. Every other kind of record has always carried the place the build read the row's compartment as; the prepared kind alone did not, and on the build of 30 August 2026 that left 427 of the 23,005 stored decisions with no place written down. Whoever reads those decisions back must work the place out a second time, outside the build, where a rule that fired during the build -- one keyed to a vendor's flow identifier, say -- cannot fire again.
#869 adds the missing field. This file claims the result as data: on a build made with the field in place, no stored decision needs its place re-derived. The count means exactly that: it counts matched records whose detail carries no place field at all. A record whose field is present but empty -- the build itself could resolve no place -- is not counted, because remaking the build would not change it; and rows the merge refused are not decisions and are outside the count entirely. The shared build of 1 September 2026 was the first made with this code and read zero; the field itself is covered by tests/test_merge_store.py against a fresh database.
Expectations
1| What should be true | State | About |
|---|---|---|
|
Every stored decision carries the place the build resolved
0869-no-stored-decision-needs-its-place-re-derived
427 on the build of 30 August 2026, all of them prepared rows -- the one record kind that did not write its resolved place down. Zero on the build of 1 September 2026, the first made with the field in place, and the pending flag was dropped with that recording as this comment prescribed. The reader's re-derivation stays as a fallback for builds made before the field existed, so old builds keep working; this claim is about builds made after. No value_when_absent on purpose: the measure is emitted (at zero included) whenever the merge tables can be read, so its absence means the assessment never computed it -- a partial build, or the recorded-name measures skipped on a database error -- and that must read as unresolved, not as this claim being met. |
met |
measure
key: lookup.recorded_name.resolved_without_recorded_context
|