Repository navigation
Make a disagreement DIFF even when another reference failed, and withhold its timing - #47
Merged
Merged
Conversation
added 7 commits
November 24, 2026 13:26
The shared outcome rule returned REFERENCE_FAILED whenever any reference errored, even when a reference that ran disagreed with BNGsim. The disagreement was masked, and because the timing job runs after PASS or REFERENCE_FAILED it could time a wrong answer: Winter 2017 (libRoadRunner 0.13 and COPASI 1.0 of a species' peak off, AMICI crashed) and Smith 2013 (AMICI off while run_network and libRoadRunner agree, COPASI crashed) were both REFERENCE_FAILED and both timed. A disagreement now takes precedence, as the steady-state and PSA capabilities already had it: when BNGsim ran and a reference that ran disagrees, the outcome is DIFF, and each failed reference is still recorded as <name>_error. REFERENCE_FAILED is left for a failure where every reference that ran agrees. outcome() is told whether anything was compared (all_passed returns None for no verdicts), so a job whose every reference failed stays REFERENCE_FAILED. ode, ssa and nf take the new rule through outcome(); steady and psa already decided DIFF first and are unchanged; sens keeps its own refutation rule. The rule is part of how stored trajectories score, so it moves the correctness-only verdict key: the ODE VERDICT_VERSION goes to 2 and the SSA verdict (and so the network-free one, its copy) gains outcome_rule. Every ode, ssa and nf correctness result goes stale and bench rescore re-scores it from its trajectories; no timing job's key changes. On a copy of results/ode the re-score turns exactly Winter 2017 and Smith 2013 from REFERENCE_FAILED to DIFF.
The core-suites notes gain what each reference failure and disagreement on the SBML suite is, with evidence that does not rest on BNGsim: - Winter 2017 is DIFF with BNGsim right. libRoadRunner and COPASI step over the stimulus a time-dependent assignment rule switches on after a steady state: tightening rtol to 1e-10 changes neither, and a 0.1 s cap on the internal step brings both within 2e-5 of BNGsim's tight run. AMICI 1.1.0's importer cannot read the rate-ruled compartment an initial assignment refers to (getValue on a libsbml Compartment). - Smith 2013 is DIFF with AMICI the outlier: it never fires the trigger time > 0 that SBML fires at once; libRoadRunner and run_network agree with BNGsim. - Koo 2013's COPASI failure is BASICO 0.92 taking two species named Time for the time column, so its frame loses the times; COPASI's own time series is right. - COPASI's missing columns are species no reaction changes; von Dassow 2000's run_network and AMICI failures are their solvers' own. The design's calibration note says which side of the Winter and Smith comparisons is wrong.
gather and publish used every timing record they found. A timing record
can outlive the decision that let it run: Winter 2017 and Smith 2013 were
timed while REFERENCE_FAILED, and once re-scored to DIFF their timing
records stay current by their own key, so the numbers of a wrong answer
would still be shown and published.
Both now use a timing only beside a current correctness result whose
outcome lets it run (PASS or REFERENCE_FAILED), the test bench status
already applies before running one (results.unmet_requirement, which
status now shares). Otherwise the timing reads WITHHELD with the reason
("correctness DIFF", "correctness not current") and none of its numbers:
- gather gives it one summary row, "withheld: correctness DIFF", current
when a current correctness result blocks it (final) and not current
when that result is missing or stale; a blocked member with no timing
record gets the row too, and nothing is shown when neither job decided
anything.
- publish no longer demands a timing for a member whose correctness is
DIFF, EXCEPTION, BAD_TEST or TIMEOUT: the suite publishes, the member's
timing is one timing.csv row (outcome WITHHELD, status withheld, the
reason in error), its manifest entry names the reason, and its record is
not shipped -- nor does it count in the one-node-type check.
DESIGN §5.2 and §6.3 and published_format.md say so.
ssa's scoring moved into one function shared by a run and bench rescore; it now takes the outcome rule's all_passed.
The ODE outcome counts the references of the job's own registry (Antimony members have no run_network) and takes the outcome rule's all_passed.
The network-free outcome keeps main's independent-reference rule (rm_driver, of BNGsim's own lineage, can neither pass nor refute BNGsim alone) with this branch's rule on top: an independent reference that ran and disagrees makes the job DIFF even when another reference failed to run, where main's rule returned REFERENCE_FAILED as soon as any reference had failed. This branch's nf test of rm_driver disagreeing after NFsim failed contradicted the independent-reference rule; it now has NFsim disagreeing after rm_driver failed, and the outcome table gains both cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes how outcomes are scored. Merge only after review: it changes outcomes and re-scores stored records.
The rule
<name>_error._common.outcome; and nf, whose own rule (an independent reference must decide:rm_driver, of BNGsim's own lineage, can neither pass nor refute BNGsim alone) now lets a disagreeing independent reference make the job DIFF even when another reference failed.outcome_rule, sobench rescorere-scores stored records without re-simulating.Timing is withheld unless correctness allows it
correctness DIFF) and no numbers.results.unmet_requirement, shared bybench status, gather and publish.What changes in ode-sbml (attribution in
docs/core_suites.md)getValue()on a Compartment.time > 0, so the first insulin dose is never given.After merging, every stored ODE timing reads WITHHELD ("correctness not current") until
bench rescorebrings its correctness record to verdict 2.The unit suite passes: 789 tests.
What changes in the network-free suites. Re-scoring the stored records should change two:
nf_rejectbecomes DIFF. NFsim disagrees, from the early-transient lag of BNGsim's default NFsim selector.Both were REFERENCE_FAILED only because another reference had failed.