Repository navigation
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
Conversation
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.
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.
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
bench doctorreports NFsim 2.0.1.v1143_compatonly when the NFsim reference is 1.14.3.pixi.toml: only the BNGPATH line and the task description change. There is no dependency or lock change.Network-free fixes
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.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 2012nf_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.