Brightway Flows 1.2.0
GitHub
Issue
#398
Stated in
expectations/0398-a-reused-uuid-is-two-flows.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

ecoinvent 3.8 ships 6a903634-c97f-4c49-a7c0-88f0e6ac7a23 as Lead, emitted to urban air close to ground, under 7439-92-1 -- lead the metal. ecoinvent 3.9.1 ships the same uuid as Lead II under 14280-50-3, the lead(2+) ion, and 3.10.1 and 3.12 keep it that way. The canonical identities read the newer statement as the vendor correcting the older one, so on the full build of ad57820 (run 20261014T1414435780790000) 3.8's row was matched as Lead II and published as Lead(2+), while BAFU 2026 v1's Lead in high-population air, under the same name and the same number, reached Lead beside EF 3.1's lead. The ruling on #398: a uuid whose registry number moves from the element to an ion is two flows. 3.8's rows keep the element they were published with, and whatever links them to the ion goes through a recorded correspondence, not the shared uuid. merge/species.py:redefines is the test; the derived file no longer lists those 308 3.8 rows, nor 34 of 3.9.1's.

Expectations

8
What should be true State About
ecoinvent 3.8's Lead to urban air close to ground reaches lead, the metal 3.8 named
0398-ecoinvent-38-lead-in-urban-air-is-the-metal

The row the issue is written around: air / urban air close to ground, kg, 7439-92-1. On the build of ad57820 it was algorithm on basis: cas too -- but on 14280-50-3, the number 3.12 writes, landing on Lead(2+) (fo-250b361dd7295454), flow b01ef1c9-3904-446e-98ae-8a6a9ad407fd, and recorded under the name Lead II. basis: cas with the element's number is the claim: the row's own registration answered, not a name. fo-4ec5c05a87990179 is the substance BAFU's fifteen Lead rows reached on the same build.

met source_row
list: ecoinvent
version: 3.8
uuid: 6a903634-c97f-4c49-a7c0-88f0e6ac7a23
Every ecoinvent 3.8 row named lead reaches the same substance as BAFU's Lead
0398-ecoinvent-38-and-bafu-lead-are-one-substance

Fourteen emissions -- five to air, four to soil, five to water, the uuids 3.9.1 reused for Lead II -- and the Lead, in ground resource, which the merge records as Lead. Selected by name, not number: 7439-92-1 is also on 3.8's three ore-grade lead resources, which reach the same metal but are not this question. On the build of ad57820 only the resource row was recorded as Lead: the fourteen were recorded as Lead II, under 3.12's number, and reached Lead(2+).

met source_row
list: ecoinvent
version: 3.8
name: Lead
ecoinvent 3.12's Lead II under the same uuid still reaches lead(2+)
0398-ecoinvent-312-lead-ii-is-still-the-ion

The other half. The ruling says the uuid names two substances, one per reading; it does not move the release that wrote the ion.

met source_row
list: ecoinvent
version: 3.12
uuid: 6a903634-c97f-4c49-a7c0-88f0e6ac7a23
ecoinvent 3.8's bare Copper rows reach copper, not 3.12's ion of unstated charge
0398-ecoinvent-38-copper-is-the-metal

The shape where the newer release deletes the number rather than writing the ion's: nine air and soil uuids that 3.9.1 calls Copper ion with no CAS, plus Copper, in ground. Selected by name: 7440-50-8 is also on 3.8's fourteen ore-grade copper resources. On the build of ad57820 the nine were recorded as Copper ion with no number and reached Copper, Ion (fo-436304b385710fab), the substance ecoinvent 3.12's rows minted. fo-a9a85c11aea1c46a is where BAFU's fourteen Copper rows are.

met source_row
list: ecoinvent
version: 3.8
name: Copper
ecoinvent 3.8's bare Vanadium rows reach vanadium, not vanadium(5+)
0398-ecoinvent-38-vanadium-is-the-metal

Nine air and soil uuids 3.12 calls Vanadium V, and the resource. These rows were the case ecoinvent-match-overrides.json already guarded with only_when_named: Vanadium V -- the overrides were written for 3.12's name and must not reach a release that said something else -- and the guard was being satisfied by the canonical name the substitution gave the 3.8 rows, not by anything 3.8 wrote. On the build of ad57820 eight of the nine were prepared onto Vanadium(5+) that way -- the eight the thirteen guarded overrides name among 3.8's bare rows, which is why this change moves the merge's prepared count from 194 to 186 -- and the ninth, which no override names, reached the same substance by the substituted number. The other five of the thirteen are 3.8's Vanadium, ion rows in water, which satisfy the guard on 3.8's own name and are still Vanadium V at matching: 3.8 already called them an ion.

met source_row
list: ecoinvent
version: 3.8
name: Vanadium
ecoinvent 3.8's nine bare Chromium emissions still reach chromium(3+), on the override that records why
0398-chromium-keeps-its-recorded-correspondence

The ruling's exception, and the ruling's own words: a recorded correspondence links 3.8 to the ion, not the uuid. Nine Chromium rows under 7440-47-3 in air and soil have overrides that send them to chromium (iii) with carries_when_registered_as: [7440-47-3, 16065-83-1], because 3.8 also shipped a separate Chromium VI in those nine contexts, so its unspeciated chromium already meant trivalent (#45, #109). They stay where the override puts them; the tenth row is Chromium, in ground, the metal. Two substances among ten rows, then, on purpose. Which substance each of the nine reaches is a claim a count cannot make, and 0561-renumbered-corrections.json makes it, one uuid at a time; this one says that the resource row did not follow them.

met source_row
list: ecoinvent
version: 3.8
name: Chromium
ecoinvent 3.8's bare Chromium to forestry soil reaches chromium(3+) on its curated override
0398-ecoinvent-38-chromium-forestry-is-trivalent

One of the nine rows the exception is about, soil / forestry, 7440-47-3. prepared is the claim: the override answered, not the shared uuid. On the build of 43403ac it was prepared too, but recorded as Chromium III, the identity the substitution gave it.

met source_row
list: ecoinvent
version: 3.8
uuid: 591de726-f2c7-43ba-8e22-15fd08acc8dc
The uuids the ruling splits are recorded as redefined, not counted as conflicts between the lists
0398-a-redefined-uuid-is-not-a-conflict

The ruling places one uuid on two flows on purpose, and the conflict check groups the outcomes by uuid, so every split it makes is one uuid with two targets. On the five-list build of bb21bfa (run 20261019T0726568423740000) that was 284 more divergent-target reports -- 3.8's Lead on lead and 3.12's Lead II on lead(2+), and so on -- taking merge.conflicts from 185 to 469 and filling 284 of the 299 entries on the conflicts page with questions already answered. They are the 299 moved 3.8 rows less the 15 whose uuid 3.12 no longer ships. merge/store.py now records a uuid as redefined-uuid when its two targets are, on every row, the bare element on one and the ion on the other with the number moved -- the same test merge/species.py:redefines applies -- and merge.conflicts counts every other kind. On the same build: 284 redefined, and 185 conflicts, the 170 unit disagreements and 15 divergent targets main already had. A bound rather than a count, because the failure this guards against is the splits going back to being reported as disagreements, which takes this to 0.

met measure
key: merge.redefined_uuids
value_when_absent: 0

Keyboard

?
Show or hide this map
/
Focus search
Esc
Close