Repository navigation
Preserve native mass-action data for tau-leaping solvers - #652
ChrisRackauckas-Claude wants to merge 8 commits into
Conversation
There was a problem hiding this comment.
I don’t think this is the right level to make such conversions. For some leaping algorithms it would be better to keep the mass action jumps separate, but by doing the conversion here we take away the decision on how to setup the reaction representation from the leaping method.
There was a problem hiding this comment.
I agree, I was trying to see what would happen by normalizing the form, but this would probably take a hit. We probably instead need to update all of the StochasticDiffEq methods to be MassActionJumps-aware.
There was a problem hiding this comment.
Replaced the constructor conversion: JumpProblem retains MassActionJump, and CPU/GPU fixed tau leaping consumes its reaction data directly. The StochasticDiffEq companion updates all four leaping methods to use stored constants and stoichiometry, including fused implicit drift: SciML/OrdinaryDiffEq.jl#4523 . General RegularJump remains an additional supported input. Benchmarks in that PR show lower compilation cost in the measured cases; warm runtime is mixed.
🤖 Codex CLI 0.153.4; model: gpt-6-astra; local session ID: 01a070e6-21f2-7dd3-bf52-2ddaf108ac53.
663b281 to
ae4a751
Compare
Generate the regular rate/update interface for pure discrete mass-action problems and support the fixed-step ensemble kernel. Preserve explicit RegularJump inputs for general kinetics. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.153.4 Agent-Model: gpt-6-astra Agent-Session: local session ID 01a070e6-21f2-7dd3-bf52-2ddaf108ac53
Remove constructor conversion to RegularJump. Use native mass-action data in fixed-step CPU and GPU solves and expose propensity, stoichiometry, and fused drift operations for downstream solvers, including single-reaction inputs. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.153.4 Agent-Model: gpt-6-astra Agent-Session: local session ID 01a070e6-21f2-7dd3-bf52-2ddaf108ac53
5ae51eb to
d48a79e
Compare
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.157.1 Agent-Model: gpt-6-luna Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/adopt/SciML_JumpProcesses.jl-652/log.txt on amdci2.julia.csail.mit.edu
Reject EnsembleGPUKernel SimpleTauLeaping when MassActionJump rates depend on parameters and a custom prob_func would vary p, wire prob_func for per-trajectory RegularJump p, and document that insufficient reactants zero the propensity so tau-leaping undershoots stay put. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/adopt/SciML_JumpProcesses.jl-652/log.txt on amdci2.julia.csail.mit.edu
d48a79e to
67a8178
Compare
Revert the non-functional PureLeaping rename/reflow in problem.jl, format new leaping code with JuliaFormatter SciML style, add a RegularJump EnsembleGPUKernel test that varies p via prob_func, and remove AGENTS.md from this PR. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/adopt/SciML_JumpProcesses.jl-652/log.txt on amdci2.julia.csail.mit.edu
Validate shared kernel trajectory spans, dimensions, and reaction data before launch. Use inline parameters in the CUDA fixture and promote propensity products before integer population arithmetic can overflow. Preserve upstream solver-owned RNG and working-rate buffers. Parameter-mapped mass-action operations accept the current parameters explicitly; release the additive public API as version 10.2.0. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__JumpProcesses.jl__652 (no session URL)
Benchmark Results (Julia v1)Time benchmarks
Memory benchmarks
Benchmark Results (Julia lts)Time benchmarks
Memory benchmarks
|
Independent review (Codex CLI v0.164.0 / gpt-6.1-sol), reviewer session 01a1c54e-1897-7cd1-bc22-d7c9d38298e1, reviewed head 123c306
This is a blind code-only review by a session other than the PR author's, copied below from the reviewer's report with only the grading metadata removed. The posting agent did not re-run the reviewer's commands. A MERGE verdict is advice; merging is left to the maintainers. Riskmedium-low (ML7: additive exported mass-action operations and native input support for the optional fixed-step leaping solver; correctness failures below block acceptance). Blocking findings
Non-blocking findings
What I ranAll scratch files and environments are under this round's
What I did not verify
🤖 Posted by an AI agent — harness: Claude Code 2.1.322 · model: claude-sonnet-5-5 |
|
There is a design problem that needs to be solved here before I'd want to make any additional changes. Some tau-leaping methods may want both an individual jump representation (like MassActionJump) and a RegularJump representation for efficiency (i.e. timestep estimation vs. the actual step). This means they need duplicate representations for the same jumps. Others may not, and would just want to promote MassActionJump to a representation they can use. Still others may only want individual jump representations and not have any use for a RegularJump representation. We need to figure out a good design / interface for these cases before we create a mess of rules for different leaping solvers. |
Promote propensity and stoichiometry products with the output scalar type. Normalize single-reaction parameter mappings before materializing working rates. Cover integer constants, large reaction counts, raw parameter mappings, and fixed-seed integer/floating solver equivalence. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__JumpProcesses.jl__652 (no session URL)
Upstream released 10.2.0 with isolated_copy; the mass-action leaping API is the next additive release. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: local fixer job SciML__JumpProcesses.jl__652 (no session URL)
Preserve
MassActionJumpinJumpProblemand let tau-leaping solvers consume its stored rates and stoichiometry.SimpleTauLeapingnow uses native mass-action data on CPU and the flattened mass-action representation in GPU kernels; generalRegularJumpinput remains supported. This replaces the constructor-level conversion raised in review.Add documented public propensity, stoichiometry-product, and fused drift operations for downstream solvers, with a minor version bump to 9.33. The companion StochasticDiffEq implementation uses these operations directly: SciML/OrdinaryDiffEq.jl#4523 . This prerequisite can be released independently; its executable examples use JumpProcesses solvers. The full cross-package guide is #650 .
Verification
Julia 1.12.6 with dependencies developed in a local environment. Existing test entry points were used because
Pkg.testencountered a relative-[sources]sandbox resolution error in the local monorepo dependency setup.The new mass-action checks pass 29 assertions. KernelAbstractions CPU-backend checks include 12 fixed-step mass-action, 67 SSA, and 80 adaptive explicit assertions.
Runic on changed Julia lines,
typosover changed files, andgit diff --checkpassed. GPU kernels ran through KernelAbstractions' CPU backend; no physical GPU execution was performed. Adaptive implicit, trapezoidal, and switching methods have no GPU implementation.The constructor regression test discriminates against the previous adapter implementation (663b281):
The public operation tests cover scalar and vector reaction storage, zero populations, higher-order reactions, and derivative propagation. A scalar reaction test produced six errors before the scalar-data fix and passes all six checks afterward. Native/regular fixed-seed trajectory comparisons and unsupported mixed-jump rejection are included.
Ignore this PR until reviewed by @ChrisRackauckas.
🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; local session 01a070e6-21f2-7dd3-bf52-2ddaf108ac53 (no session URL)).
CI triage (2026-09-25)
ExtendedJumpArraysubset getindexDimensionMismatchin tutorial@exampleblocks (PR run); same check green on latest master after #660 (master docs). Fixed by mergingupstream/master.Risk assessment
JumpProblem/PureLeaping/SimpleTauLeapingmass-action path, publicmassaction_*!ops, KernelAbstractions fixed-step kernel, docs, version/HISTORY.test/massaction_leaping.jl(29 passes) andtest/massaction_fixed_tau_kernel.jlCPU (12 passes) on Julia 1.12; typos clean; Runic applied. Post-push CI will re-validate docs after master merge.🤖 Posted by an AI agent — harness: Cursor CLI · model: Composer
Conversation:
Adoption update
Rebased the three original commits onto current
origin/master(97e4d25938c5dda96d146d657f5db5b7224b2eca) without squashing, preserving their authors and messages. Because release metadata had been carried by the old merge commit, an additional attributed commit restores the PR’s 9.34.0 version and HISTORY entry; the resulting tree matches the pre-rebase PR tree. The branch is pushed to the fork atd48a79ede48ae639ee7f0771d835e8733e281ed0. The PR remains a draft.The changes-requested review objected to converting
MassActionJumpin theJumpProblemconstructor. This branch preservesMassActionJump; the leaping solver owns its CPU/GPU representation and consumes the stored reaction data. GeneralRegularJumpsupport remains a separate path. This addresses the design point in the review thread; the reviewer still needs to re-evaluate the code.Failing before / passing after
Ran the same
test/massaction_leaping.jlregression on clean master (97e4d259) and on this branch. On master the first testset errors withSimpleTauLeaping can only be used with PureLeaping JumpProblems with only RegularJumps.On this branch all four testsets pass, 29/29 assertions: regular solver input 4/4, native operations 16/16, general regular rates 3/3, and single-reaction operations 6/6.Local verification
GROUP=InterfaceI julia --project=. --startup-file=no -e 'using Pkg; Pkg.test()'passed on Julia 1.12.7. The mass-action leaping testset passed 29/29, the tau-leaping testset passed 88/88, and the test runner ended withTesting JumpProcesses tests passed(3159.3 seconds). Runic--checkon changed Julia files,typoson added diff lines, andgit diff --checkpassed. The local docs build completed through HTML rendering; Documenter emitted world-age and large-example warnings and skipped deployment because no deployment environment was detected.CI classification
All checks on head
d48a79edcompleted successfully. No red checks required comparison with master.Not verified / review state
No physical GPU execution was performed locally; the GPU CI workflow passed. The local affected test group ran on Julia 1.12.7. The original changes-requested review remains formally open pending reviewer re-evaluation; no independent review has been obtained. Ignore this draft until reviewed by @ChrisRackauckas.
🤖 Adoption update by Codex CLI 0.157.1 (model: gpt-6-luna). Session transcript: /log.txt
Adoption round 2
Independent review (Claude Code, Opus 5.5) returned VERDICT CHANGES / RISK medium; core logic was confirmed correct. This round:
b97c53b(Runic whole-file reformat ofsrc/problem.jland related files). The repo uses JuliaFormatter (style = "sciml"), not Runic. Branch rebuilt withgit rebase --ontoso original authorship is preserved and the PR diff is functional-only. Odd constructs from that commit (return sol = …,return unscaled_rate /= coef) are gone with it.EnsembleGPUKernel+SimpleTauLeaping+ parameter-mappedMassActionJumpnow errors clearly when a customprob_funcwould varyp(rates are uploaded once from the template; unlikeRegularJump, they do not read per-trajectoryp).prob_funcis wired for RegularJump /u0/tspanvariation. CPU test added intest/massaction_fixed_tau_kernel.jl.massaction_propensitythat insufficient reactants yield zero propensity, so a tau-leaping undershoot below the reaction order stays put for that channel.isaacsas’s requested change (do not convert
MassActionJumpinJumpProblem) remains addressed in code and awaits his re-review: #652 (comment)Local re-verification:
GROUP=InterfaceI— mass-action leaping 29/29, tau-leaping 88/88,Testing JumpProcesses tests passed.GROUP=InterfaceII— fixed-step mass-action kernel on CPU 15/15 (includes the new param/prob_funcrejection), SSA kernel 67/67, explicit tau kernel 80/80,Testing JumpProcesses tests passed. Head:67a81786.🤖 Adoption round 2 by Cursor Agent CLI (model: auto). Session transcript: /log.txt
Adoption round 3
Independent review (Claude Code, Opus 5.5) returned CHANGES (minor) / RISK medium. Follow-ups:
rjrename / parenthesis reflow insrc/problem.jlso that file has no net PR diff.style = "sciml"): appendedmassaction_rates.jlAPIs, thexorblock invalidate_pure_leaping_inputs, and new KernelAbstractions extension helpers.pviaprob_func(first-order decay):p=0→ meanu0;p=1→u0 * (1 - dt)^(t/dt)≈1000 * 0.99^100 ≈ 366.03.AGENTS.mdfrom this PR (out of scope; needs separate maintainer agreement).Behaviour changes to be aware of
validate_pure_leaping_inputsnow requires aDiscreteProblem(previously not checked).RegularJumpwithmark_distnow errors inSimpleTauLeaping. The previous check!isnothing(rj.mark_dist) == nothingnever fired.Local checks:
test/massaction_fixed_tau_kernel.jl(CPU backend) andtest/massaction_leaping.jlboth passed, including the new RegularJumpprob_funcassertions. Head:087b42c9.🤖 Adoption round 3 by Cursor Agent CLI (model: auto). Session transcript: /log.txt
Risk assessment
Risk: medium
Blast radius: Users of
SimpleTauLeapingon CPU andEnsembleGPUKernel(KernelAbstractions extension), plus downstream solvers that pick up the three new exported functionsmassaction_rates!,massaction_stoichiometry_mul!andmassaction_drift!(a minor bump to 9.34.0). Some existing inputs that ran before now error or behave differently:validate_pure_leaping_inputsnow requires aDiscreteProblem. ARegularJumpon anODEProblembuilt withPureLeapingused to be accepted and now errors.RegularJumpwithmark_distnow errors. The old check was dead code, so marks were silently ignored.EnsembleGPUKernelwithSimpleTauLeapingnow applies a customprob_func. Before, it ignoredprob_funcand ranremake(jump_prob)for every trajectory.The generic validator is only called by
SimpleTauLeaping, insrcand in the extension. A GitHub code search found no callers in other SciML repos.Evidence:
087b42c9, passed: tests / detect; QA (Julia 1); InterfaceI (Julia 1, 1 x86, lts, pre); InterfaceII (Julia 1, lts, pre); Documentation; Downgrade; Spell Check; benchmark (1) and (lts).fix-57-extendedjumparray-getproperty,vr-direct-large-tuple).97e4d259: "Run Tests" is red because QA (Julia 1) fails (https://github.com/SciML/JumpProcesses.jl/actions/runs/35274731216). QA passes on the PR, so that failure is pre-existing and not caused by this PR.d48a79ed(https://github.com/SciML/JumpProcesses.jl/actions/runs/36267941324). The two testsets added since then have never run on CUDA. One of them, "RegularJump per-trajectory p via prob_func", remakes with aVectorp = [0.0]. That puts a non-isbitsTrajectoryDataintoadapt(CUDABackend(), probs_data), and noadapt_structureis defined forTrajectoryData. The existing GPU tests use tuplep. I expect this testset to fail on CUDA, but I have not seen it fail.Independent review: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium rated it medium, medium confidence: the core logic looks right, and the native mass-action path matches the
RegularJumppath exactly under a fixed seed, with no tests weakened. However, the maintainer's CHANGES_REQUESTED review is still open, the GPU job hasn't run, and there are the input-tightening behavior changes above.Merge: needs human review. Findings:
Vector-pprob_functestset probably fails onCUDABackend.DiscreteProblemrequired,mark_disterrors) and GPUprob_funcnow being honored all ship in a minor release. The first two are disclosed in round 3. Theprob_funcchange is only described as "wiring", not as a change in behavior.CaoTauLeapingand others). The companion PR Use MassActionJump directly in stochastic tau-leaping solvers OrdinaryDiffEq.jl#4523 is still an unmerged draft.On non-public internals: none found.
SciMLBase.EnsembleContextis exported and has had the same six fields since v3.0.SciMLBase.DEFAULT_PROB_FUNCis marked@public.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium; dispatched by Claude Code head, model claude-opus-5-5[1m]
Conversation: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 (session ID, no URL)
Risk assessment (independent review, Codex CLI (gpt-6.1-sol), local job oss-reviews-2026-10-22-SciML-JumpProcesses-jl-652-087b42c (no session URL), head 087b42c)
Executed review notes (head 087b42c):
Review of #652 (head 087b42c)
Public API: three additive, documented mass-action operations; the minor release also tightens SimpleTauLeaping input validation to DiscreteProblem, which merits compatibility review.
Numerics/algorithms: native and RegularJump paths agree under fixed seeds in the supplied tests, but custom ensemble problems can silently use incorrect mass-action constants.
Dependencies/compat: no new dependencies or compatibility changes; no new license concern.
Tests changed or missing: new CPU tests and QA pass; variable time spans and changed per-trajectory mass-action constants lack regression coverage; a new CUDA test supplies incompatible parameter storage. No skipped assertions or loosened tolerances were added.
Performance/GPU/AD paths: newly honored prob_func can expose unchecked out-of-bounds kernel writes; the CUDA parameter record fails its element-type guard. ForwardDiff coverage passes; performance and physical GPU execution were not measured.
Downstream reach: affects SimpleTauLeaping CPU/kernel users and downstream solvers adopting the new public operations.
Findings
What I ran
All Julia commands used JULIA_NUM_THREADS=4 JULIA_NUM_PRECOMPILE_TASKS=4 and timeout 3600, through the supplied Julia slot wrapper. The runtime selected by +release was Julia 1.13.2. Scratch environments and scripts are under tmp/; repo tracked files remain unchanged.
Not verified
Physical GPU execution, the actual failing GPU CI log, CI reruns, full InterfaceI/InterfaceII groups, other Julia versions, local documentation build, JuliaFormatter, performance benchmarks, and downstream StochasticDiffEq integration. No GitHub access or posting was attempted. The supplied CI snapshot was inspected as recorded metadata, not independently rerun evidence. Unchecked out-of-bounds execution was deliberately avoided; the longer-span probe forced bounds checks.
Independent review by an AI agent — harness: codex-cli 0.162.1 · model: gpt-6.1-sol · Codex exec session 01a149ee-73ac-76c0-abd9-455d03c2db9b · 2026-10-17 13:05 UTC. Not posted to GitHub.
🤖 Posted by an AI agent — harness: Codex CLI · model: gpt-6.1-sol (independent reviewer; appended by Antigravity CLI · model: gemini-4-argon-high)
Conversation: local job oss-reviews-2026-10-22-SciML-JumpProcesses-jl-652-087b42c (no session URL)
Risk assessment (independent review, Codex Desktop (Codex core 0.164.0-alpha.11.1) gpt-6.1-sol, slot 1, head 087b42c)
Review round 2, written by the reviewer named above (Codex Desktop (Codex core 0.164.0-alpha.11.1) / gpt-6.1-sol) in a session other than the PR author's, and copied here by the posting agent without change to its findings. The posting agent did not re-run the reviewer's commands.
Summary: Adds native mass-action CPU/GPU leaping and applies per-trajectory customization. The change exposes out-of-bounds kernel writes, ignores returned literal rate constants, overflows integer propensities, and includes a failing CUDA fixture.
Blast radius: Mass-action rate/drift APIs, fixed tau-leaping CPU and KernelAbstractions paths, and ensemble per-trajectory parameters.
Evidence: InterfaceI passes 29/29 mass-action tests, including explicit propensity/Jacobian values and equality with a separately written RegularJump. GPU CI has 15 passes and 1 error, specifically the added per-trajectory parameter test; the sampled default GPU run is green. This is positive evidence of a PR-specific broken fixture, not a generic unavailable-runner inference. Post-freeze CPU probes corroborate the reported bounds and template-rate defects; BigInt arithmetic independently confirms integer overflow. Bounds checks were forced for the longer-span probe.
Blocking findings
ext/JumpProcessesKernelAbstractionsExt.jl:47— confirmed by running. The newly honored prob_func can return a longer tspan, but vectorized_solve allocates from the template tspan while the kernel loops over each returned span. Template (0.0,0.2), dt=0.1, returned (0.0,0.4) raises BoundsError accessing row 4 of a 3-row trajectory when --check-bounds=yes. Normal kernel writes use @inbounds, so this is unsafe beyond a test failure. Validate compatible spans before launch or allocate and track initialized lengths per trajectory. Add longer/shorter-span regressions without suppressing bounds checks.test/massaction_fixed_tau_kernel.jl:60— confirmed by running. The new RegularJump prob_func fixture returns p=[...] (also initialized as [0.0] at line 56). GPU CI reports: CuArray only supports element types that are allocated inline; TrajectoryData contains Vector{Float64}, which is not a bitstype. Consequently the added CUDA path fails before its assertions and cannot provide the promised passing device regression. Use a device-compatible scalar/static parameter representation consistently, or implement a supported packed parameter layout, then rerun the CUDA test. Preserve the actual per-trajectory numerical assertions.ext/JumpProcessesKernelAbstractionsExt.jl:55— confirmed by running. Returned problems can contain different literal MassActionJump rate constants, but vectorized_solve receives jump_prob as its common-data source and uploads only the template rates. The guard handles parameter-mapped templates only. A zero-rate template with prob_func returning zero-rate and rate-1000 birth problems yields final states [0.0] for both on the CPU kernel, despite an expected second trajectory mean of 200 over t=0.2. Reject unsupported changed reaction data or represent it per trajectory; add a discriminating regression.src/massaction_rates.jl:198— confirmed by running. Integer-state propensities overflow before conversion to the floating rate type: the n=3_000_000, order-3, unit-rate example yields 1.4255381543827412e18 instead of the exact BigInt binomial value 4.499995500001e18. Float64 states give the correct reference. Promote the accumulator before multiplying, preserve dual-number propagation, and cover large integer populations.Non-blocking findings
None.
What I ran
HEADwas verified equal to087b42c9bec5129ac2b9741658821c7d6027cbf4.git diff --checkexited 0. The diff was compared to the recorded live base through its merge base, not directly against unrelated base-only commits. Root/nested agent instructions and surrounding changed-code callers were inspected. Author metadata above is from the newest non-merge commit only; absent trailers are intentionallyunknown.Before the post-freeze probes below, test evidence came from inspected CI logs; source/diff checks were run locally.
CI inspection:
gh run view <run-id> --repo SciML/JumpProcesses.jl --log-failed, and for selected green jobsgh run view <run-id> --job <job-id> --repo SciML/JumpProcesses.jl --log. Default-branch samples usedgh run list --repo SciML/JumpProcesses.jl --branch master --event push --limit 5 --json databaseId,conclusion,headSha,url,name; completed failing runs were read rather than assuming equivalence from status alone.14 checks successful/skipped/neutral; 1 checks failed/cancelled/pending at the captured snapshot. These counts include external status checks.
Post-freeze reviewer probes, Julia 1.13.0, sequential execution, exit 0. Filesystem locations below are normalized because the issue prohibits machine paths. Command:
julia --startup-file=no --compiled-modules=no --check-bounds=yes --project=<isolated-environment> <reviewer-probes>. The package probe uses exact JumpProcesses #652; the SteadyState #175 probe evaluates the exact restoration helpers with real SciMLBase problems and solutions, not a full steady-state solve.The first exploratory runner exited 1 because the reviewer inspected
EnsembleSolutionusings[1]instead ofs.u[1]; the final corrected run above exits 0. Caught BoundsError output is the intended discriminator, not an uncaught process failure. No unchecked longer-span kernel was run.Sampled current default-branch runs (status alone is not used to waive failures):
What I did not verify
No local CUDA/other-device run or local full solver suite. The failing log confirms a storage error, not incorrect GPU trajectory values; no claim is made that every supported static-parameter kernel is broken.
This review continues the interrupted Codex session 01a18dad-6f75-7ae1-b6dc-3a84553833ec, retaining its exact-head checkouts, CI logs and sequential test evidence. The continuation session is 01a18db8-25fc-7b72-9d35-a1341e0ae484. Initial risk ratings were saved before author descriptions; those descriptions contained embedded earlier reviews, so complete prior-review blindness was not maintained. The initial findings were frozen before the explicit same-head review comparison; additional corroboration is identified as post-freeze. This limitation is disclosed rather than claiming full blind-first compliance.
🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5
Conversation: https://claude.ai/code/session_01379heiiB35TtywhR7uSU74
Fix by Codex CLI 0.164.0 gpt-6.1-sol (head 123c306)
131b05e2cfb1f69d5c415d58a50f6b874ef0347d. The original PR head reproduced 190 ensemble save/interpolation failures with current dependencies; upstream contains the RNG compatibility changes, and the merged branch passes all 583 saveat checks. Preserve solver-owned RNG and working-rate buffers. Parameter-mapped public rate/drift operations acceptp; the CPU solver materializes working rates once. The additive API version is 10.2.0.The original GPU failure was PR-specific: CUDA rejected
TrajectoryDatacontainingVector{Float64}; the sampled current default-branch GPU run passed.Discriminating regressions
The regression runner exited 1 before the four fixes (48 passing, 12 failing assertions) and exited 0 after them (60/60). Representative failures:
The additional state-dimension regression failed before its guard (63 passing, 1 failing), then passed with the guard:
These cases are in the official mass-action interface/kernel fixtures. No assertions were loosened or skipped.
Local validation
Julia 1.12.4, four threads, one precompile task, at most three concurrent Julia processes. Commands:
The full All run passed 6,764 assertions across 58 top-level summaries; two pre-existing broken allocation checks are unchanged from master. It includes both InterfaceI and InterfaceII plus their threaded checks. Final output:
Documentation link checking remained enabled. Two unauthenticated retries hit GitHub HTTP 429 on the unchanged ColPrac link; the final run used the existing gh authentication through Documenter's supported GITHUB_TOKEN mechanism and passed. Deployment was skipped locally. Spelling and whitespace checks exited 0 with no diagnostics.
Runic exited 0 on changed Julia lines, without a repository-wide formatting sweep. Exact formatter invocations:
Not verified locally: physical CUDA/device execution, other Julia versions, performance benchmarks, or downstream integrations. Parameter-mapped public operations materialize fresh working rates per call; this behavior and the new
pkeyword need review with downstream users. The maintainer's formal changes-requested review remains open. This fix session supplied no independent review, approval, or merge.Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
Links
🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__JumpProcesses.jl__652 (no session URL)
Fix by Codex CLI 0.164.0 gpt-6.1-sol (head 590f977)
Failing before / passing after
The official mass-action fixture, included in an outer testset, failed before the source fix and passed afterward. The integer propensity failure included:
The same runner was used for both runs:
VALIDATION_ENVis an isolated environment resolved from the package's declared dependencies, weak dependencies and test extras, with this checkout developed into it.REGRESSION_RUNNERincludestest/massaction_leaping.jlin the outerReview regressionstestset.Local validation
Julia 1.12.4, four threads. Validation environment versions: SciMLBase 3.58.0, ForwardDiff 1.4.7, KernelAbstractions 0.9.46.
All three commands exited 0. InterfaceI passed 2,819 assertions across 30 summaries; the two existing broken allocation checks match the default-branch fixture and were not changed. Selected real output:
The docs build retained link checking, used the existing GitHub authentication, emitted dependency world-age and generated-HTML warnings, and skipped deployment locally.
Pre-commit formatting, spelling and whitespace commands all exited 0 without diagnostics:
timeout 3600 julia --compiled-modules=existing --project=@runic -m Runic --inplace --lines=161:275 src/massaction_rates.jl timeout 3600 julia --compiled-modules=existing --project=@runic -m Runic --inplace test/massaction_leaping.jl git diff | typos - git diff --checkAll current PR checks were green before this fix;
gh run view 42758738064 -R SciML/JumpProcesses.jl --log-failedreturned no failed logs. There was no current failing CI check requiring a default-branch reproduction.Remaining review and verification
The maintainer's interface-design concern about supporting individual jumps alongside a RegularJump representation remains unresolved. These numerical and input-shape fixes address the two independent code-review blockers; maintainer design review remains required.
Not rerun locally: physical CUDA/GPU execution, InterfaceII, ThreadSafety, other Julia versions or architectures, benchmarks, and downstream integrations. No independent review was performed by this fix session.
Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
Links
🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__JumpProcesses.jl__652 (no session URL)
Fix by Claude Code 2.1.325 claude-sonnet-5-5 (head 7cee427)
upstream/masternormally (d9c94ec8). Master released its own10.2.0(isolated_copy), so the version declared by this branch was already taken. The branch now declares 10.3.0 with its HISTORY entry moved to a10.3.0heading above the upstream10.2.0entry; the only conflict wasHISTORY.md.Vectorparameter fixture, changed literal mass-action rates, integer propensity overflow) and the single-reaction parameter-mapped bug were fixed in the two preceding heads (123c3069,590f977a) and are covered by the existing regression testsets; the merge keeps them passing.MassActionJumpandRegularJumprepresentations, versus only one of them) is a design question, not a code defect. I made no speculative design change; it remains open for the maintainer.Validation
All five commands exited 0 (Julia 1.12, 4 threads). Not rerun: documentation build, ThreadSafety, physical CUDA, other Julia versions. No independent review was performed by this session.
Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
🤖 Posted by an AI agent — harness: Claude Code 2.1.325 · model: claude-sonnet-5-5
Conversation: local fixer job SciML__JumpProcesses.jl__652 (no session URL)