Brightway Flows 1.2.0
GitHub
Issue
#425
Stated in
expectations/invariants.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

Things that should be true of any build, belonging to no one issue. They hold today; they are written down because each has been false at some point and nothing but a passing test suite stood between that and a published export. Unlike the issue files, nothing here is pending: an invariant that is not true is a regression, and assess --strict should fail on it.

Expectations

3
What should be true State About
Every deprecated flow names the flow that replaces it
invariant-deprecations-have-somewhere-to-go

A deprecation is a redirect. One without a target removes a flow from the list and tells its consumer nothing, which is worse for them than leaving the duplicate in place. 0 of 169 deprecations in the 2026-08-14 build.

met measure
key: flows.deprecated_without_replacement
Every elementary flow resolves to a substance
invariant-every-flow-has-a-substance

The two-layer model is the whole design: a flow is a substance in a context, and a flow with no substance has no identity to link to any other list. 0 of 95,193 in the 2026-08-14 build.

met measure
key: flows.without_substance
A row filing uranium under a land compartment still reaches the uranium resource
invariant-uranium-in-land-is-a-resource-not-a-land-use

BAFU files uranium under resources / land, which reads as a use of land rather than as something taken from the ground. It lands on the Uranium flow in Resource → Ground through the prepared table. Held so that a change to how land compartments are read cannot quietly send it back to being a land use, which is what #83 was about.

met source_row
list: bafu
name: Uranium
context: ["resources","land"]

Keyboard

?
Show or hide this map
/
Focus search
Esc
Close