You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: collect_all_diagnostics is not reproducible run-to-run (unit pass names a different variable each run) #999
Two runs of the same binary over the test/ corpus produce diagnostic sets differing by ~184 lines. All the differences are unit warnings, differing both in which variable is named and in row count.
Example: scirev8.mdl names ada_average_difficulty_of_anomalies on one run and ardp_anomalies_relative_to_dominant_paradigm on the next.
Found incidentally while measuring the blast radius of #994's codegen-diagnostic change — the sweep had to be run twice to notice that the baseline itself moved. Not caused by that change.
Why it matters
Not currently user-visible in a damaging way: libsimlin's collect_models_with_unit_warnings already works around it by keying on model name rather than on the reported variable. But:
any future "diagnostics are stable across an edit" gate on the unit pass will flap;
it made an unrelated measurement harder to trust, which is how it was found;
The likely cause is the same: an unordered collection somewhere in unit inference or its conflict reporting, whose iteration order decides which member of a conflicting set gets named. units_infer's find_constraint_mismatches and the conflict-clarification path are the places to look first.
Reproduce
Run whole-corpus diagnostic collection twice in the same binary (or two invocations) and diff the output. Every test/ model that produces a unit warning with more than one candidate variable in its conflict set is a potential differ.
Activity