Skip to content

Move to BioNetGen 2.9.4 (NFsim 2.0.1), answer run_network's edgepop questions, and record BNGsim's refusals as UNSUPPORTED - #59

Merged
wshlavacek merged 6 commits into
mainfrom
nf-investigate
Nov 25, 2026
Merged

wshlavacek merged 6 commits into
mainfrom
nf-investigate

Conversation

@wshlavacek

Copy link
Copy Markdown
Collaborator

Moves the harness to BioNetGen 2.9.4, which bundles NFsim 2.0.1, and fixes two things in the network-free capability.

BioNetGen 2.9.4

Network-free fixes

  • run_network's edgepop questions are answered. run_network writes edgepop: <species> when a species no reaction consumes first appears, then waits for BNG2.pl's reply. We gave it no input, so it crashed; that is why Rohrs 2018's exact-SSA reference failed. It now gets BNG2.pl's own reply, "continue". The nf harness version becomes 3.
  • BNGsim's refusal is UNSUPPORTED. When BNGsim refuses a parameter change mid-session (Chylek 2014, Creamer 2012 nf_exact), the job is now UNSUPPORTED rather than EXCEPTION, as the sensitivity capability records a refusal. The rule is in the verdict, so stored records re-score.

Against NFsim 2.0.1, all 20 network-free members were re-run. BNGsim is wrong only on Macken 1982 nf_reject: the reactant-pick bias of NFsim #124, which is still in bngsim's vendored NfsimSession (lanl/bngsim#1438). The disagreements on Creamer 2012 nf_reject, Dolan 2015 and Arkin 1998 were NFsim 1.14.3's. Posner 2004, Mitra 2019 and Rohrs 2018 differ only in how a non-integer seed amount is counted (RuleWorld/nfsim#160, lanl/bngsim#1954).

Published index: regenerated. Six suites read OUT OF DATE for BioNetGen 2.9.4, and the two network-free suites also for their harness and verdict, until the release run republishes them.

The unit suite passes.

The nf capability's exact-SSA reference ran run_network with no stdin. Its
stochastic methods write "edgepop: <species>" when a species no reaction
consumes first becomes populated, and then wait for BNG2.pl's reply; reading
end of file instead, run_network is killed by signal 11. That was Rohrs
2018's "run_network failed: edgepop: CD3z(...)" in both network-free
settings, a harness failure recorded as the reference's. Each trajectory now
gets BNG2.pl's own reply when it simulates from a finished network
("continue", BNGAction.pm), once per species and once more, as the ssa
capability does, and runs in its scratch directory, so a crash's core file
stays there rather than in the worktree. HARNESS_VERSION 2 -> 3: every nf
result goes stale.

A stand-in run_network that crashes without the reply, and an integration
test with the real binary on a two-species network that asks once (signal 11
bare, ten molecules conserved once answered).
BioNetGen 2.9.4, released 2026-11-25, is the latest release and the first to
bundle NFsim 2 (2.0.1), so under the latest-release rule it is the BNG2.pl,
run_network and standalone NFsim every job runs. The sha256s pinned are those
of its Linux and macOS assets, which agree with GitHub's own digests. Its
run_network and NFsim need what 2.9.3's did (GLIBC_2.34, GLIBCXX_3.4.29,
CXXABI_1.3.9), so the Rocky 9.5 loader swap serves them unchanged; bench
doctor: "OK NFsim 2.0.1 loads". In pixi.toml only BNGPATH and the
fetch-bionetgen description change.

2.9.4 moves results beyond NFsim: run_network's if() is true for any nonzero
condition (bionetgen#342), (-2)^k is written as such rather than -2^k
(#341), and && and || reach NFsim's XML in a form it reads (#343). And NFsim
2 enforces + and . by default (-cb and -bscb are no-ops), counts a
whole-species deletion once per complex, and draws every number from one
generator. BioNetGen's sha256 is in every fingerprint, so every result goes
stale.

NFsim 1.14.3 (2.9.3) stays usable for comparison runs: env.NFSIM_VERSION
knows both, and the nf same-seed check runs BNGsim's v1143_compat mode only
where the reference is 1.14.3; against NFsim 2 it runs BNGsim as it is and
records which.
RuleMonkeySession takes set_param before initialize only (RuleMonkey's own
library refuses a parameter change on a live session), so nf_exact cannot run
a protocol that sets a parameter between network-free steps. Chylek 2014's
and Creamer 2012's nf_exact jobs recorded that as EXCEPTION. It is BNGsim
refusing the protocol in its own words, which the sens capability records
as UNSUPPORTED, so the nf capability does too: the adapter rewords the
refusal with an UNSUPPORTED prefix, and verdict_outcome maps EXCEPTION or
BAD_TEST to UNSUPPORTED when BNGsim's error is such a refusal. The session
is not saved and reloaded around the change: a refusal is never worked
around.

The message itself is matched as well as the prefix, so a record written
before the rule is reclassified by bench rescore; the rule is in the verdict
(bngsim_refusal_rule), so every nf correctness record goes stale for it.
DESIGN 5.5 says so.
bench publish --index --offline after the move to BioNetGen 2.9.4 and the
network-free harness and verdict changes: six suites read OUT OF DATE for
BioNetGen 2.9.4, and the two network-free suites also for their harness and
verdict, until the release run republishes them.
Two tests held today's facts: that 2.9.4 would be a newer BioNetGen, and that
every committed snapshot is current. With BioNetGen at 2.9.4 neither holds. One
now bumps whatever the pin is; the other checks that no snapshot is out of date
because of a release skipped on purpose, which other reasons may still make it.
@wshlavacek
wshlavacek merged commit a73dba9 into main Nov 25, 2026
2 checks passed
@wshlavacek
wshlavacek deleted the nf-investigate 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