Brightway Flows 1.2.0
GitHub
Issue
#635
Stated in
expectations/0635-a-trisulfide-is-not-a-monosulfide.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

Antimony trisulfide is Sb2S3, and this list published it as a compound with one antimony and one sulfur.

No source list ships a structure, so this project derives them, and for this substance every route is blocked or lies. The name reader cannot read antimony trisulfide at all; the one name of the substance it *can* read is antimonous sulfide, which does not say how many sulfur atoms there are, so it assumes one and returns the same structure it returns for antimony monosulfide. Nothing downstream could catch that: the formula SSb+ and the SMILES [S]=[Sb+] agree with each other perfectly and are both about a different compound.

Three commits settle it, and the claims below are what each leaves true.

**A structure that miscounts its substance's own name is not published.** The name states the atom count and the parser's answer contradicted it. Two other substances were reached the same way -- Dibismuth Trisulphide through bismuth sulfide, Bismuth Trioxide through bismuth(III) oxide -- and their monosulfide readings go too.

**The composition comes from the registry.** Withdrawing left the substance with no formula at all, which this project's own rule calls worse than a disputed one. Common Chemistry has registered 1345-04-6 as S3Sb2 throughout and was never asked.

**The structure is stated by a curator**, because no route in the pipeline reaches it and the composition alone is not enough: with a formula and no SMILES the typing rules read registered, no structure on file as a UVCB, and Sb2S3 is a definite compound rather than a substance of variable composition.

Measured on the unbounded build of 21 August 2026, against the build of the commit each claim's step sits on.

Expectations

5
What should be true State About
Antimony trisulfide publishes one structure, and it is Sb2S3's
0635-the-trisulfide-has-the-trisulfide-s-structure

The defect and its repair in one claim. Before the stack this substance published SSb+ and [S]=[Sb+], a one-antimony cation derived by misreading a synonym; between the withdrawal and the correction it published no structure at all. inchikey_count is the discriminating half. A formula count of one was true throughout -- the wrong formula was also a single value -- but the substance had no InChIKey until a structure was stated for it, and an InChIKey is the field a consumer joins on. One rather than at_least: 1, because two would mean the record answers the identity question twice, which is what #310 is about. flow_count is claimed alongside so that this is the same thirteen flows being corrected rather than a different object that happens to be named this.

met substance
label: Antimony Trisulfide
Antimony trisulfide is published as a definite compound
0635-the-trisulfide-is-not-a-mixture

**The claim only the curated correction can satisfy, and the reason the composition alone was not enough.** Withdrawing the wrong structure left the substance with a registry number and nothing else, and typing rule 10 reads that as a UVCB -- ImpreciseChemicalMixture, a substance of variable composition and unknown stoichiometry. Sb2S3 is neither. So the withdrawal traded one wrong published statement for another, and this claim is what says the trade was finished rather than made. Stated as an expectation rather than left to the unit tests because the class is *published*, and because it is decided by a curated file: an entry that stopped reaching this substance -- a renumbering, a corrected registry number -- would silently return it to being a mixture, and nothing else in the repository would notice.

met substance
label: Antimony Trisulfide
Few substances state a formula their own name contradicts
0635-no-published-structure-miscounts-its-name

The bound on the whole mechanism. Five substances stated a formula their own name counts differently; three of those came from the name reader and are fixed here. The three that remain are known and are a different defect: Molybdenum Disulfide states MoS and Divanadium Trioxide states O3V, both from a PubChem record reached through a **registry number** rather than from a name, and Dibismuth Trisulphide keeps a BiS+ that PubChem supplied independently of the misreading. Molybdenum's is the sharpest -- EF gives it 12612-50-9, which Common Chemistry registers as Mo.S, while molybdenum disulfide is 1317-33-5 -- so it is a question about which of EF's name and EF's number to trust, which is #121's shape. at_most rather than equals because the three are not the claim; the claim is that a fourth appearing is a new defect rather than a known one.

met measure
key: substances.structure_miscounts_the_name
Bismuth trioxide no longer states a one-bismuth formula
0635-the-trioxide-loses-its-monoxide

The second substance the name reader miscounted, and the one that shows the rule is about the reading rather than about antimony. Bismuth(III) oxide was read as BiO+ -- one bismuth, one oxygen -- and that value replaced the correct structures the registry lookups had already supplied, so the published SMILES became the monoxide alone. Six formulas before and five after: the withdrawal removes BiO+ and leaves Bi2O3, Bi4O6 and the hydrated readings, every one of which keeps the 2:3 ratio the name states. A count rather than the value, because what matters is that exactly one value went and the correct ones stayed.

met substance
label: Bismuth Trioxide
Hydrogen sulfide keeps the formula it has always had
0635-a-correct-formula-is-not-withdrawn

**The guard on the half that nearly went wrong.** The first draft of the rule read a missing multiplicative prefix as "one", and on the build that condemned eleven correct formulas: hydrogen sulfide is H2S, lanthanum oxide is La2O3, arsenic trioxide is As2O3 -- traditional names, every one correct, and not one of them counts its first element. Hydrogen sulfide stands for all of them here because it is the plainest: two hydrogens against a name that mentions hydrogen without counting it. A rule that starts reading absent prefixes as counts again would empty this property, and the substances it would empty are ones nobody is watching.

met substance
label: Hydrogen Sulfide

Keyboard

?
Show or hide this map
/
Focus search
Esc
Close