8000 fix(mfile): say when one vars_lenient list names a variable twice · gominimal/minimal@4fc1447 · GitHub
[go: up one dir, main page]

Skip to content

fix(mfile): say when one vars_lenient list names a variable twice

Minimal Arch / arch-review succeeded Dec 3, 2026 in 0s

PASS (the design is silent)

Inputs. Re-review of #3974 at 4fc14471 on arch c73026f5, the same arch as the baseline PASS at e9bf896e. since-conditions.json is [], and the earlier PASS closed the conditions before it, so this ruling is on since.diff. No findings.json or arch-map.md is staged. The PR names no covers: id.

Compare. One commit, two files. crates/mfile/src/error.rs Error::VarSetTwice's Display now prints "the variable A twice in vars_lenient ... Keep one of them." when first == second. Otherwise the text is unchanged. crates/mfile/src/legacy.rs adds a test that pins the text and exit 3.

Check. first == second can occur only for vars_lenient. legacy_vars in crates/mfile/src/legacy.rs and Loadout::read_legacy_var_keys in crates/boxes/src/core/loadout.rs both record the key that set a name first, and a TOML vars table cannot repeat a key. So the new branch is reachable only by the case it names. The path still fails closed with exit 3. The message still names the table, the file and the variable, as spec 29 BOX-206's sub-bullet (line 534) requires. No doc or spec quotes the old text.

Ruling. The design of record says nothing about this error's wording, so this is a PASS by absence for the compare. Everything else keeps the status of the PASS at e9bf896e. No departure from precedent.

Not checked. I did not run the new test. It needs a build.

Ruled at 4fc1447 against gominimal/arch@c73026f5ba2b by claude-opus-5-5; arch_rulings 1866, job b173cf1a-7cfa-42a1-b937-bc8dd2b30189.

0