Skip to content

Make a disagreement DIFF even when another reference failed, and withhold its timing - #47

Merged
wshlavacek merged 7 commits into
mainfrom
ode-triage
Nov 25, 2026
Merged

wshlavacek merged 7 commits into
mainfrom
ode-triage

Conversation

@wshlavacek

@wshlavacek wshlavacek commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Changes how outcomes are scored. Merge only after review: it changes outcomes and re-scores stored records.

The rule

  • Until now, a correctness job was REFERENCE_FAILED whenever any reference failed, even when another reference that ran disagreed with BNGsim.
  • That hid the disagreement. Worse, a timing job runs after PASS or REFERENCE_FAILED, so it could time a wrong answer.
  • Now a disagreement is DIFF even when another reference failed, as the steady-state and PSA capabilities already decide. The failed references are still recorded as <name>_error.
  • REFERENCE_FAILED now means every reference that ran agrees with BNGsim.
  • Changed: ode and ssa, through _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.
  • Unchanged: steady and psa already decided this way, and sens keeps its own refutation rule.
  • The ODE verdict version goes from 1 to 2, and the SSA verdict gains outcome_rule, so bench rescore re-scores stored records without re-simulating.

Timing is withheld unless correctness allows it

  • gather and publish use a timing record only when its correctness record is current and PASS or REFERENCE_FAILED.
  • Otherwise the timing reads WITHHELD, with the reason (for example correctness DIFF) and no numbers.
  • publish no longer demands a timing result for a DIFF, EXCEPTION, BAD_TEST or TIMEOUT member, so such a suite still publishes.
  • The requirement test is now one function, results.unmet_requirement, shared by bench status, gather and publish.

What changes in ode-sbml (attribution in docs/core_suites.md)

  • winter2017 becomes DIFF.
    • BNGsim is right: libRoadRunner and COPASI step over the stimulus at t ≈ 197 at the SED-ML's own tolerances.
    • Capping their step at 0.1 s brings both within 2e-5 of BNGsim.
    • AMICI 1.1.0 cannot import the model: its importer calls getValue() on a Compartment.
  • smith2013 becomes DIFF.
    • AMICI is the outlier: it never fires the trigger time > 0, so the first insulin dose is never given.
    • libRoadRunner and run_network agree with BNGsim.
  • The other failures are crashes or missing output in the engines themselves:
    • BASICO loses the time course on koo2013, where two species are named "Time".
    • COPASI omits constant species.
    • AMICI and run_network report solver errors.

After merging, every stored ODE timing reads WITHHELD ("correctness not current") until bench rescore brings 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:

  • Rohrs 2018 becomes DIFF. NFsim disagrees, consistent with the rounding of a non-integer starting count; run_network failed.
  • Creamer 2012 nf_reject becomes DIFF. NFsim disagrees, from the early-transient lag of BNGsim's default NFsim selector.

Both were REFERENCE_FAILED only because another reference had failed.

Bill Hlavacek 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.
@wshlavacek
wshlavacek merged commit 9e25520 into main Nov 25, 2026
2 checks passed
@wshlavacek
wshlavacek deleted the ode-triage branch November 29, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant