Skip to content

Add MOOSE234 embedded BDF method (conflict-resolved #3746) - #4483

Open
ChrisRackauckas wants to merge 18 commits into
masterfrom
merge-3746
Open

ChrisRackauckas wants to merge 18 commits into
masterfrom
merge-3746

Conversation

@ChrisRackauckas

@ChrisRackauckas ChrisRackauckas commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Brings #3746 by @KeshavVenkatesh up to current master. #3746 went CONFLICTING and cannot be merged as-is; this branch is a real merge of KeshavVenkatesh:moose234 into master, so the original commits and authorship are preserved in the history.

Conflicts and how they were resolved

All three conflicts were additive — MOOSE234 and the newly landed NordsieckBDF/DNordsieckBDF both extend the same three places. Both sides are kept in each:

  • OrdinaryDiffEqBDF.jl — export list now carries MOOSE234 alongside NordsieckBDF, DNordsieckBDF
  • alg_utils.jl — has_stiff_interpolation(::Union{QNDF, FBDF, DFBDF, MOOSE234}), plus both solvers' trait blocks
  • bdf_caches.jl — git interleaved the two solvers' alg_cache boilerplate, so this file was reconstructed from each side rather than by editing conflict markers: master's file in full, plus the self-contained MOOSE234 block (cache structs and both alg_cache methods)

What I verified

What I did NOT verify

  • The package was not loaded or tested locally. Resolving a dev environment for the sublibrary from this checkout failed with Unsatisfiable requirements detected for package SciMLBase, so using OrdinaryDiffEqBDF and the MOOSE234 convergence tests were never run on my machine. CI is the first real check.
  • The numerical content of MOOSE234 is unreviewed by me; this PR only restores mergeability.

Because the resolution touches solver cache internals, the bdf_caches.jl result deserves a look before merging.

Supersedes #3746.

🤖 Generated with Claude Code (model: claude-opus-5[1m])

https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Regression fix

The CI failures on this PR (Documentation, Runic, lib/OrdinaryDiffEqBDF [QA]) were all caused by the MOOSE234 changes; master passes all three. This update:

  • merges current master into the branch (merge, no rebase). The new conflicts were with NordsieckBDF/DNordsieckBDF in stiff_addsteps.jl (both solvers' _ode_addsteps! methods are kept) and in bdf_interpolants.jl (master's const cache unions, with the MOOSE234 caches added to FBDF_CACHES). The diff against master is still +1313/-8 across the same 12 files before the fixes below.
  • Docs (:missing_docs for OrdinaryDiffEqBDF.MOOSE234): adds MOOSE234 to the @docs block in docs/src/implicit/BDF.md.
  • BDF QA / JET (local variable est2/est3 may be undefined in perform_step!(::MOOSE234ConstantCache)): each error estimate is now used only inside the branch that defines it. The error-estimate selection is unchanged: order 2 uses est2, order 3 uses est3 when the FBDF4 filter is available and est2 otherwise, order 4 uses est3, and the predictor-corrector estimate covers the remaining cases.
  • Runic: formats controllers.jl, bdf_convergence_tests.jl and bdf_regression_tests.jl.

Verification (Julia 1.13.2):

  • GROUP=QA for lib/OrdinaryDiffEqBDF on the merged branch before the fix: JET Tests | 17 pass, 1 fail with the same three est2/est3 may be undefined reports as CI. After the fix: Allocation 5 pass / 18 broken (already marked broken), JET 18 pass / 0 fail, Aqua 21/21, OrdinaryDiffEqBDF tests passed.
  • GROUP=Core for lib/OrdinaryDiffEqBDF after the fix: all testsets pass (BDF Convergence 113/113, BDF Regression 72/72, Nordsieck 140/140, …), OrdinaryDiffEqBDF tests passed.
  • MOOSE234 solutions before and after the perform_step! change are bit-identical (same sol.t/sol.u hashes, step counts and final values) on u' = -u, Van der Pol (μ = 100, out-of-place) and ROBER (out-of-place).
  • Runic --check is clean on all 12 changed Julia files, and typos is clean.

Reviewer note: MOOSE234 rejects more steps than it accepts on these problems (e.g. 70 accepted / 90 rejected on u' = -u at tol 1e-8; 2604 / 2888 on Van der Pol), so its step-size and order controller deserves a look before merging. The fix above does not change this behaviour.

Not verified: the Documentation build was not run locally. The MOOSE234 docstring still says TBD for the nlsolve, extrapolant and controller keywords, and that text now renders in the manual. A reviewer may want those filled in. The controller and extrapolant fields do not appear to be read by MOOSE234's perform_step!.


🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless, no URL)

Review findings addressed (round 2)

An independent review (codex-cli, gpt-6.1-sol) of 1dce380a4 returned two findings. Both are fixed:

  1. The in-place startup error estimate was identically zero (commit 5084ec2c4). perform_step!(::MOOSE234Cache) stored the BDF3-Stab result y2 in u₀, overwriting the predictor. Until the filters have enough history (the first steps and after every restart), the error estimate is u - u₀, so it was zero and every step was accepted. y2 now lives in terkp1_tmp, and u₀ keeps the predictor as the out-of-place path does. New tests in bdf_regression_tests.jl cover an oversized initial dt = 1 and a restart from a DiscreteCallback that doubles u at t = 0.5, for both in-place and out-of-place problems at tol 1e-10. The in-place 2D accuracy test in bdf_convergence_tests.jl is tightened from rtol = 1e-2 to 1e-5.
    • Before the fix, the in-place testset fails 3 of 5 checks: Evaluated: 0 > 0 (nreject), Evaluated: 0.13212055882855767 < 1.0e-6, and Evaluated: 0.0019007047230116259 < 1.0e-6 (restart). The 2D test fails with [0.3688355585087698, 0.7376711170175396] vs [0.36787944117144233, 0.7357588823428847]. The out-of-place testset passes.
    • After the fix, both testsets pass 5/5 and the 2D test passes 2/2. In-place errors are now 9.5e-9 (oversized dt) and 1.7e-8 (restart), against 8.5e-9 and 1.2e-8 out-of-place. The 2D relative error is 5.3e-7, down from 2.6e-3.
  2. TBD keyword documentation (commit f47396b23). Nothing in the package reads MOOSE234's extrapolant or controller fields, so both keywords and fields are removed. nlsolve and step_limiter! are now documented with what the solver does with them; step_limiter! is only called for in-place problems. MOOSE234 is new in this PR, so no released API changes and no version bump is needed.

Verification on f47396b23 (Julia 1.13.2): GROUP=QA for lib/OrdinaryDiffEqBDF gives Allocation 5 pass / 18 broken (already marked), JET 18/18 non-broken, Aqua 21/21, tests passed. GROUP=Core passes every testset (BDF Regression 82/82, BDF Convergence 113/113, Nordsieck 140/140, …). Runic --check and typos are clean on the changed files.

Not fixed here: the shared BDF_docstring helper in algorithms.jl (already on master) joins the extra keyword list with the literal string "/n" instead of "\n". As a result, the first extra keyword (here nlsolve) renders inside the linsolve bullet, for every BDF solver. That belongs in its own PR. The step-acceptance ratio noted above is unchanged by these fixes: about 196 accepted / 273 rejected on u' = -u with dt = 1 at tol 1e-10, for both paths.


🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless, no URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.164.0 gpt-6.1-sol (head 2234e6a)

MOOSE234 requires adaptive stepping: both cache initialization paths throw ArgumentError("MOOSE234 requires adaptive=true.") for adaptive=false. This addresses the blocking fixed-step review finding through the reviewer's explicit-rejection option. The docstring and rendered BDF manual state the restriction. Six regression assertions cover init and solve for scalar, out-of-place array, and in-place array problems. The numerical kernels and controllers are unchanged.

Failing before / passing after

Executed the new MOOSE234 requires adaptive stepping testset unchanged before and after the guards, with Julia 1.13.3 and the local BDF project. Verified that the extracted testset matches the committed official testset byte-for-byte.

Unfixed head f47396b237ccb1847c4338b1919de7f3d550beb3, exit 1 (the exception check fails for all six assertions):

    Expected: ArgumentError("MOOSE234 requires adaptive=true.")
  No exception thrown
Test Summary:                       | Fail  Total   Time
MOOSE234 requires adaptive stepping |    6      6  14.4s

With the guards, exit 0:

Test Summary:                       | Pass  Total  Time
MOOSE234 requires adaptive stepping |    6      6  8.6s

Local validation

Julia commands used the Juliaup launcher, Julia 1.13.3, four threads, one automatic precompilation task, automatic package precompilation disabled during testing, and one OpenBLAS thread. Commands below omit shell log redirections.

GROUP=Core timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(;julia_args=`--compiled-modules=existing`)'

Exit 0: 854 passing assertions across 14 testsets, two existing broken assertions. Selected real output:

BDF Convergence Tests |  113    113  3m09.3s
BDF Regression Tests |   88     88  2m53.8s
Nordsieck BDF Tests |  140    140  2m09.3s
     Testing OrdinaryDiffEqBDF tests passed
GROUP=QA timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(;julia_args=`--compiled-modules=existing`)'

Exit 0; all broken assertions below are existing:

Test Summary:    | Pass  Broken  Total     Time
Allocation Tests |    5      18     23  2m07.6s
Test Summary: | Pass  Broken  Total   Time
JET Tests     |   18      23     41  43.2s
Test Summary: | Pass  Total   Time
Aqua          |   21     21  45.1s
     Testing OrdinaryDiffEqBDF tests passed
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=@runic -m Runic --inplace lib/OrdinaryDiffEqBDF/src/algorithms.jl lib/OrdinaryDiffEqBDF/src/bdf_perform_step.jl lib/OrdinaryDiffEqBDF/test/bdf_convergence_tests.jl lib/OrdinaryDiffEqBDF/test/bdf_regression_tests.jl
git show --format= HEAD | typos -
git show --format= --check HEAD

All exited 0 with no output.

timeout 7200 julia +1.13.3 --compiled-modules=existing --project=docs docs/make.jl

Exit 0 with ChainRules 1.74.10, matching the successful default docs job. Fresh resolution selected ChainRules 1.74.11 and failed importing TaylorDiff before Documenter started: TypeError: non-boolean (Symbolics.Num) used in boolean context, in ChainRules' derivatives_given_output for tanh. Resolving the local docs manifest with 1.74.10 allowed the complete docs build to pass. The docs Project was restored before the build; no dependency declarations or bounds are committed. Real successful output includes:

[ Info: Doctest: running doctests.
[ Info: CheckDocument: running document checks.
[ Info: RenderDocument: rendering document.
[ Info: Automatic `version="7.8.1"` for inventory from ../Project.toml

Documenter emitted HTML/search-index size warnings and skipped deployment in the local environment. Verified that the built BDF page contains the adaptive-stepping restriction. A fresh unconstrained docs environment with ChainRules 1.74.11 is not validated as passing.

Core4 baseline classification

The reported SciMLSensitivity Core4 failure is pre-existing. Independently retrieved the PR failure and the exact merge-base master push failure: both use Julia 1.13.2, Enzyme 0.13.216, EnzymeCore 0.8.23, Enzyme_jll 0.0.303+0, SciMLSensitivity 7.119.13 and SciMLBase 3.58.0. Both report AssertionError: mi2 !== nothing in Enzyme threadsfor_common, parallelrules.jl:233, at the threaded ensemble test ensembles.jl:19; the stack uses Tsit5. This also matches the existing RAT685 investigation, which was read rather than duplicated.

The latest default Core4 job passes with Julia 1.13.3, Enzyme 0.13.217 and SciMLSensitivity 7.119.14 (16 pass / 2 existing broken). This is different dependency/runtime evidence, not a demonstrated OrdinaryDiffEq code fix. The downstream workflow is identical between the PR head and current master; no unrelated master merge or Core4 code change was made.

Not rerun locally: the downstream Core4 group, GPU paths, LTS Julia, or all monorepo groups. No benchmark or independent review of this fix was performed in this author 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__OrdinaryDiffEq.jl__4483 (no session URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Muse CLI Code muse-wonder-full-1.0 (head 0704b03)

Merged current master (6343f5a0b) into merge-3746 (merge commit, no rebase, no conflicts). The PR head was 66 commits behind master. No MOOSE234 code was changed: the net diff against master after the merge is the same 13 files (+1353/-8), and upstream's BDF changes in the merged range (QNDF/FBDF reinit history resets, FBDF/QNDF resize.jl, NLNewton stage-value Jacobians) do not touch the MOOSE234 caches, controllers, or perform_step! paths.

CI classification of the previous head (2234e6a15), from rack ci compare --no-record:

  • Base-green (stale, fixed on master by the merge): Documentation, downgrade-sublibraries for OrdinaryDiffEqTaylorSeries and OrdinaryDiffEqTaylorSeriesImplicit. All three fail with TypeError: non-boolean (Symbolics.Num) used in boolean context while precompiling TaylorDiff (ChainRules derivatives_given_output for tanh). The merge brings 760d93062 ("Raise TaylorDiff compat floors to 0.3.6"), and both Taylor Project.toml files now require TaylorDiff = "0.3.6".
  • Pre-existing on the default branch (no code change made): lib/OrdinaryDiffEqDefault [GPU], Tests - GPU, Tests - AD (Julia lts), and SciMLSensitivity.jl/Core2 downstream — each has a matching default-branch failure with a shared error signature.
  • Different: ProbNumDiffEq.jl downstream failed on both the PR and the default branch without a shared signature. This PR touches no ProbNum code; reclassification is left to the new CI runs on this head.

Local validation

Julia 1.13.3, JULIA_NUM_THREADS=4, on the merged tree before committing:

GROUP=Core timeout 3600 julia +1.13.3 --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test()'

Exit 0:

BDF Convergence Tests |  113    113  3m19.0s
BDF Regression Tests  |  164    164  3m18.1s
BDF Reinit Tests      |  754    754  1m17.9s
BDF Restart Tests     |  521    521  26.4s
Nordsieck BDF Tests   |  140    140  2m01.6s
     Testing OrdinaryDiffEqBDF tests passed
GROUP=QA timeout 3600 julia +1.13.3 --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test()'

Exit 0; all broken assertions are pre-existing:

Test Summary:    | Pass  Broken  Total     Time
Allocation Tests |    5      18     23  2m08.3s
Test Summary: | Pass  Broken  Total   Time
JET Tests     |   18      23     41  48.7s
Test Summary: | Pass  Total   Time
Aqua          |   21     21  47.2s
     Testing OrdinaryDiffEqBDF tests passed
julia +1.13.3 --project=@runic -m Runic --check <the 12 PR Julia files>
julia +1.13.3 --project=@runic -m Runic --inplace <the 12 PR Julia files>
git diff upstream/master | typos -
git diff --check upstream/master

All exited 0 with no output and no formatting changes.

Not rerun locally: the Documentation build, the Taylor downgrade jobs, and the downstream/GPU/AD groups. The Documentation and Taylor failures are addressed only through the upstream TaylorDiff floor in the merge; the remaining failures above are pre-existing on the default branch. No failing-before/passing-after test applies: this change is a merge with no code edits.

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: Muse CLI Code · model: muse-wonder-full-1.0
Conversation: local fixer job SciML__OrdinaryDiffEq.jl__4483 (no session URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.170.0 gpt-6.2-sol (head 44e57ad)

MOOSE234 uses the same actual time nodes for the implicit BDF weights and both filters. Callback interpolation uses the degree of the step being shortened. History insertion is idempotent on a retry, both adaptive controller paths compare step magnitudes, and state resizing updates the nested buffers and invalidates history.

The regression suite checks a quartic on uniform and unequal meshes, shortened startup interpolation, a one-shot domain rejection, backward order and step selection, and callback growth and shrinkage. Van der Pol and ROBER now have componentwise comparisons to independently converged KenCarp4 trajectories. OrdinaryDiffEqBDF is version 2.5.0 for the new public export.

Failing before and passing after

Ran the same two test files on the starting head with the new assertions and on the corrected tree. A byte-for-byte comparison confirmed the test files were identical.

timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Test, OrdinaryDiffEqBDF; println("Loaded ", Base.pkgversion(OrdinaryDiffEqBDF)); flush(stdout); @testset "MOOSE234 review regressions" begin; include("lib/OrdinaryDiffEqBDF/test/moose234_tests.jl"); include("lib/OrdinaryDiffEqBDF/test/resize_tests.jl"); end'

Starting head, exit 1:

Evaluated: -0.0017533735795454552 ≈ 0.000244140625 (rtol=1.0e-10)
Evaluated: NaN ≈ 1.125
Evaluated: SciMLBase.ReturnCode.Unstable == SciMLBase.ReturnCode.Success
Evaluated: 4 == 2
Evaluated: -0.07007470127114289 ≈ -0.1
BoundsError: attempt to access 2-element Vector{Float64} at index [3]
Test Summary:                                     | Pass  Fail  Error  Total   Time
MOOSE234 review regressions                       |   36    16      1     53  41.7s

Corrected tree, exit 0:

Test Summary:               | Pass  Total   Time
MOOSE234 review regressions |   58     58  41.3s

Local validation

Commands use the Juliaup launcher and Julia 1.13.3 with four Julia threads and one OpenBLAS thread. Automatic package precompilation was disabled for the test runs.

GROUP=Core timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'

Exit 0, with 2,732 passes and two existing broken assertions. Selected output:

BDF Convergence Tests |  113    113  5m12.6s
BDF Regression Tests |  173    173  3m22.1s
BDF Resize Tests |   18     18  12.7s
MOOSE234 Tests |   40     40  11.7s
     Testing OrdinaryDiffEqBDF tests passed 
GROUP=QA timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'

Exit 0. The broken assertions in the output are existing QA expectations.

Allocation Tests |    5      18     23  3m25.5s
JET Tests     |   18      23     41  28.3s
Aqua          |   21     21  2m43.6s
     Testing OrdinaryDiffEqBDF tests passed 
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=docs docs/make.jl

Exit 0. The generated BDF manual contains the updated MOOSE234 text.

[ Info: Doctest: running doctests.
[ Info: CheckDocument: running document checks.
[ Info: RenderDocument: rendering document.
[ Info: Automatic `version="7.8.2"` for inventory from ../Project.toml
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=@runic -m Runic --inplace \
    lib/OrdinaryDiffEqBDF/src/{algorithms,bdf_caches,bdf_perform_step,bdf_utils,controllers,resize,stiff_addsteps}.jl \
    lib/OrdinaryDiffEqBDF/test/{bdf_regression_tests,moose234_tests,resize_tests,runtests}.jl
git show --format= HEAD | typos -
git show --format= --check HEAD

All three commands exited 0 with empty output. GPU, downstream, Julia LTS, and broader monorepo groups were outside the local validation.

Starting-head CI

The two GPU jobs, Julia LTS AD, and SciMLSensitivity Core2 matched default-branch failures in rack ci compare. Rack could not identify the failing ProbNumDiffEq assertions. Direct inspection found the same six DiffEqDevTools assertions in both jobs.

Next counted review must come from a smart model in a fresh session, not this fix session.


🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2000a-5015-7623-8eda-ed8465b2ad59 (no session URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.170.0 gpt-6.2-sol (head 5c86940)

Merged master ace83e014 into merge-3746 with 44e57adac as the first parent. Git merged the overlapping BDF files automatically, preserving both the master QNDF resize fix and the PR's MOOSE234 resize coverage. The PR patch matches the reviewed patch after removing blob IDs and hunk positions. git merge-base --is-ancestor origin/master HEAD returned 1 on the starting head and 0 on this head.

The six red jobs on the starting head match master failures. Five match the current master tip and the Default sublibrary GPU job last ran on its immediate parent. The matching failures are the two GPU autoswitch warnings, LTS AD, SciMLSensitivity Core2, ProbNumDiffEq Downstream, and FIRK downgrade.

Local validation

Julia 1.13.3, four Julia threads, one OpenBLAS thread, and automatic Pkg precompilation disabled. All commands below exited 0.

GROUP=Core timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=QA timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=QA timeout 7200 julia +1.13.3 --compiled-modules=existing --project -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=docs -e 'using Pkg; Pkg.instantiate()'
CI=false GITHUB_ACTIONS=false timeout 7200 julia +1.13.3 --compiled-modules=existing --project=docs docs/make.jl
BDF Convergence Tests |  113    113  4m51.2s
BDF Regression Tests |  173    173  3m16.7s
BDF Resize Tests |   29     29  17.5s
MOOSE234 Tests |   40     40  10.5s
     Testing OrdinaryDiffEqBDF tests passed
Allocation Tests |    5      18     23  2m32.7s
JET Tests     |   18      23     41  29.7s
Aqua          |   21     21  2m47.0s
     Testing OrdinaryDiffEqBDF tests passed
Quality Assurance Tests |  111    111  30.3s
     Testing OrdinaryDiffEq tests passed
[ Info: Doctest: running doctests.
[ Info: CheckDocument: running document checks.
[ Info: RenderDocument: rendering document.
[ Info: Automatic `version="7.8.2"` for inventory from ../Project.toml

Runic reported no edits across 47 Julia files. Spelling and whitespace checks over both the staged PR patch and the staged merge delta passed with empty output. The following commands ran on the staged merge before commit.

mapfile -d '' -t changed_julia < <({ git diff --cached --name-only -z origin/master -- '*.jl'; git diff --cached --name-only -z HEAD -- '*.jl'; } | sort -zu)
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=@runic -m Runic --inplace "${changed_julia[@]}"
git diff --exit-code
for base in origin/master HEAD; do
  git diff --cached --no-color --unified=0 "$base" | awk '/^\+[^+]/{sub(/^\+/, ""); print}' | typos -
  git diff --cached --check "$base"
done

The GPU, downstream, LTS AD, and FIRK downgrade jobs were verified against baseline CI logs. Local verification covered the BDF groups, root QA, formatting, spelling, and documentation.

Next counted review must come from a smart model in a fresh session, not this fix session.

Links


🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2018e-fd77-7cc2-a842-d776a4ec6a30 (no session URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.170.0 gpt-6.2-sol (head 29de1c7)

  • Each dense interval stores the active interpolation samples for MOOSE234, FBDF and DFBDF. DelayDiffEq preserves the sample count when copying history.
  • MOOSE234 rejects singular mass matrices during initialization. The solver documentation states the restriction.
  • MOOSE234 uses the configured safety factor to select an order and applies step bounds after the steady-step decision. The capped solve measured a maximum growth ratio of 1.100000000000001 in both implementations.

Failing before and passing after

The regression files were identical in the starting-head and fixed checkouts. The BDF assertions ran under the sublibrary project.

timeout 3600 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Test; @testset "BDF review regressions" begin; include("lib/OrdinaryDiffEqBDF/test/moose234_tests.jl"); end'

The starting head 5c869402f exited 1. The fixed tree exited 0.

   Evaluated: 0.7071067811865475 ≈ 0.3535533905932738
   Evaluated: 0.0 ≈ 0.1464466094067262
  No exception thrown
   Evaluated: 302.79554925176154 ≈ 1.1 (rtol=1.0e-12)
   Evaluated: 0.05374119101746977 < 0.05374119101746977
Test Summary:                                     | Pass  Fail  Total     Time
BDF review regressions                            |   48    26     74  1m02.5s
Test Summary:          | Pass  Total     Time
BDF review regressions |   74     74  1m00.7s

The matching DelayDiffEq file was replayed in local environments using each tree's packages. The starting head exited 1. The fixed tree exited 0.

Test Summary:                     | Pass  Fail  Total   Time
FBDF delay regressions            |   12     4     16  21.7s
Test Summary:          | Pass  Total   Time
FBDF delay regressions |   16     16  20.5s

Local validation

Julia 1.13.3 via Juliaup with four Julia threads, one OpenBLAS thread, and automatic package precompilation disabled.

GROUP=Core timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=QA timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=Integrators timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/DelayDiffEq -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=QA timeout 7200 julia +1.13.3 --compiled-modules=existing --project=lib/DelayDiffEq -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
GROUP=QA timeout 7200 julia +1.13.3 --compiled-modules=existing --project=. -e 'using Pkg; Pkg.test(; julia_args=`--compiled-modules=existing`)'
CI=false GITHUB_ACTIONS=false timeout 7200 julia +1.13.3 --compiled-modules=existing --project=docs docs/make.jl
mapfile -d '' -t changed < <(git diff --cached --name-only -z -- '*.jl')
timeout 3600 julia +1.13.3 --compiled-modules=existing --project=@runic -m Runic --inplace "${changed[@]}"
git diff --exit-code
git diff --cached --check
git diff --cached --no-color --unified=0 | typos -

All validation commands exited 0. Runic, spelling, and whitespace checks produced no output. BDF Core reported 2,777 passes and two existing broken assertions. DelayDiffEq Integrators reported 385 passes. Selected output follows.

BDF Core
BDF Convergence Tests |  113    113  2m53.0s
BDF Regression Tests |  173    173  2m57.1s
BDF Resize Tests |   29     29  15.9s
MOOSE234 Tests |   74     74  32.8s
     Testing OrdinaryDiffEqBDF tests passed 

BDF QA
Allocation Tests |    5      18     23  1m55.7s
JET Tests     |   18      23     41  39.8s
Aqua          |   21     21  40.3s
     Testing OrdinaryDiffEqBDF tests passed 

DelayDiffEq Integrators
FBDF Tests    |   16     16  17.6s
     Testing DelayDiffEq tests passed 

DelayDiffEq QA
QA Tests      |   20     20  2m28.5s
     Testing DelayDiffEq tests passed 

Root QA
Quality Assurance Tests |  111    111  25.7s
     Testing OrdinaryDiffEq tests passed 

Documentation
[ Info: Doctest: running doctests.
[ Info: CheckDocument: running document checks.
[ Info: RenderDocument: rendering document.
[ Info: Automatic `version="7.8.2"` for inventory from ../Project.toml

The six starting-head failures match default-branch CI. The BDF test groups, DelayDiffEq Integrators and QA, root QA, and documentation ran locally. GPU, Julia LTS AD, downstream and downgrade jobs were compared with default-branch logs.

Next counted review must come from a smart model in a fresh session, not this fix session.

Links


🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2025f-7000-7d13-a4e2-235f076b7ae9 (no session URL)

KeshavVenkatesh and others added 13 commits June 12, 2026 07:19
…sol[end] flattened indexing

sol[end] does flattened linear indexing and returns the final scalar
component (y3 ~= 0.982), so sum(sol[end]) checked y3 alone instead of the
state vector. Use sol.u[end] so the conservation law y1+y2+y3 = 1 is
actually asserted. Mirrors the earlier fix to the 2D accuracy test
(74ee189); this testset was overlooked there.
Resolves the conflicts #3746 developed against current master. All three were
additive: MOOSE234 and the newly landed NordsieckBDF/DNordsieckBDF both extend
the same export list, the has_stiff_interpolation Union, and bdf_caches.jl.
Both sides are kept in each case.

Resulting diff versus master is +1313/-8 across the same 12 files as #3746,
matching that PR's diffstat exactly.

Co-Authored-By: Keshav Venkatesh <KeshavVenkatesh@users.noreply.github.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R
Resolves conflicts with NordsieckBDF/DNordsieckBDF: both solvers'
_ode_addsteps! methods are kept in stiff_addsteps.jl, and the cache
unions in bdf_interpolants.jl take master's `const` declarations with
the MOOSE234 caches added to FBDF_CACHES.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless claude -p, no URL)
- Add MOOSE234 to the @docs block of the implicit BDF page so the
  docstring is included in the manual (:missing_docs).
- In perform_step!(::MOOSE234ConstantCache), use est2/est3 only inside
  the branches that define them. JET typo mode reported both as possibly
  undefined. The error-estimate selection is unchanged, and solutions are
  bit-identical on the scalar decay, Van der Pol and ROBER problems.
- Runic formatting of controllers.jl and the MOOSE234 tests.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless claude -p, no URL)
perform_step!(::MOOSE234Cache) stored the BDF3-Stab result y2 in u₀,
overwriting the predictor. The predictor-corrector estimate used before
the filters are available (the first steps and after every restart) then
evaluated u - u₀ = 0, so in-place solves accepted any step there: dt = 1
on u' = -u at tol 1e-10 was accepted in one step with error 0.13.

y2 now lives in terkp1_tmp and u₀ keeps the predictor, matching the
out-of-place path. Adds oversized-dt and restart tests for both paths
and tightens the in-place 2D accuracy test from rtol 1e-2 to 1e-5
(it gave 2.6e-3 relative error at tol 1e-8 and gives 5.3e-7 now).

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless claude -p, no URL)
The MOOSE234 docstring listed `nlsolve`, `extrapolant` and `controller`
as TBD. Nothing in the package reads the `extrapolant` or `controller`
fields: the predictor is always the Lagrange extrapolation of the
history, and step and order control always go through the MOOSE234
controller. Both keywords and fields are removed. `nlsolve` and
`step_limiter!` are now documented with what the solver does with them.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID 5b7a8715-a0b0-4569-be37-62de5219fbb0 (headless claude -p, no URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Contractor review (ai-requests#58) of this PR, copied by the posting agent without change to its findings: reviewer Codex CLI 0.164.0-alpha.11.1 / gpt-6-astra, session 01a18da8-0055-70e2-850a-45982d205850, reviewed head f47396b, round 1, verdict CHANGES, risk medium-low.

Risk assessment (independent review, Codex CLI 0.164.0-alpha.11.1 gpt-6-astra, slot 1, head f47396b)

  • Risk: medium-low (ML7: Adds a documented optional solver without changing existing defaults; reviewer execution exposes an unsupported fixed-step behavior that is currently accepted silently.)
  • Verdict: CHANGES
  • Session: 01a18da8-0055-70e2-850a-45982d205850
  • Blocking priorities: P2

Review round 1, written by the reviewer named above (Codex CLI 0.164.0-alpha.11.1 / gpt-6-astra) 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: The PR adds the variable-order MOOSE234 solver with analytic accuracy, restart, and stiff-problem coverage. Reviewer execution confirms that adaptive=false never advances history and silently runs first-order backward Euler on every step.

Blast radius: The new MOOSE234 cache, startup/history handling, step/order controllers and interpolation; existing default algorithm selection is unchanged.

Evidence: Analytic exponential tests provide G1 evidence, and BDF Core/QA/downgrade CI passes. A reviewer Julia 1.13.3 probe at the exact head confirms first-order fixed-step error and iters_from_event=0 for scalar and in-place cases. Restart/callback tests provide G3 coverage, but fixed-step acceptance is omitted from the new test coverage.

Blocking findings

  1. [P2] lib/OrdinaryDiffEqBDF/src/controllers.jl:934 and lib/OrdinaryDiffEqBDF/src/bdf_perform_step.jl:833 — confirmed by running: iters_from_event advances only in step_accept_controller!, which Core does not call when adaptive=false. Consequently n_hist remains 1, bdf_order remains 1, and neither higher-order history nor the filters become available. Solving u'=-u, u(0)=1, to t=1 with steps 0.1, 0.05, 0.025 gives errors 0.0176638483, 0.0090100417, 0.0045511825; the results match backward Euler and converge at first order. Both scalar and in-place runs keep the counter at zero after 10/20/40 steps. The documented solver is order 2/3/4, so an accepted fixed-step configuration must not silently degrade permanently to order 1. Advance valid-history bookkeeping on every accepted step, including fixed-step execution, and add an analytic refinement test; if fixed stepping is deliberately unsupported, reject adaptive=false clearly and document that restriction.

Non-blocking findings

  1. lib/OrdinaryDiffEqBDF/test/bdf_convergence_tests.jl:120: “fixed dt is not applicable” leaves an accepted public configuration untested. Even for an adaptive-order method, fixed-step tests can validate history advancement or the intended explicit rejection policy.

What I ran

  • git rev-parse HEAD returned f47396b237ccb1847c4338b1919de7f3d550beb3; exact detached PR head verified (exit 0).
  • git diff origin/master...HEAD and git diff --check origin/master...HEAD completed (exit 0); changed files, tests, callers, and repository instructions inspected. Root AGENTS.md and CLAUDE.md are absent. Risk was frozen before opening the description.
  • git rev-parse origin/master returned 14b964b315e1310b5e3621a1bcfe6b92e9e506aa; GitHub's PR metadata base is d727918100dce066e1bcbfebf2b458c267397b40. The review diff uses the three-dot merge base; the header records the fetched base-branch tip.
  • git log -1 --first-parent --no-merges --format=%B inspected (exit 0); author trailers recorded below, or unknown when absent.
  • gh pr view 4483 --repo SciML/OrdinaryDiffEq.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid,title,files,statusCheckRollup and the subsequent PR body read succeeded. Live state was OPEN.
  • Inspected gh pr checks 4483 --repo SciML/OrdinaryDiffEq.jl data: 136 success, 1 failure, 1 skipped. BDF Core (current/LTS/prerelease), QA, GPU and downgrade checks report success. BDF Core.
  • Reviewer Julia tool session: Julia 1.13.3, JULIA_NUM_THREADS=4, OPENBLAS_NUM_THREADS=1, isolated depot/project and TMPDIR; exact-head BDF and local sibling packages developed. The following commands were executed inline successfully (the tool call returned normally; there was no separate script-process exit status):
using OrdinaryDiffEqBDF
for iip in (false, true), dt in (0.1, 0.05, 0.025)
    prob = iip ? ODEProblem((du,u,p,t)->(du .= -u), [1.0], (0.0,1.0)) :
        ODEProblem((u,p,t)->-u, 1.0, (0.0,1.0))
    integ = init(prob, MOOSE234(); adaptive=false, dt=dt)
    solve!(integ)
    result = iip ? integ.u[1] : integ.u
    println((iip=iip, dt=dt, value=result, error=abs(result-exp(-1)),
        iters_from_event=integ.cache.iters_from_event, nsteps=integ.iter))
end
scalar values: 0.3855432894295316, 0.3768894828730002, 0.3724306236978041
scalar errors: 0.017663848258089254, 0.009010041701557892, 0.0045511825263617744
in-place values: 0.38554328942953175, 0.3768894828730008, 0.37243062369780505
in-place errors: 0.01766384825808942, 0.009010041701558447, 0.004551182526362718
iters_from_event=0 for all six; nsteps=10,20,40 for each case
  • The independent oracle is exp(-1); backward Euler has the closed form (1+dt)^(-1/dt), matching these outputs. No default-branch fail-before run is applicable to this newly added algorithm.
  • gh run view 38918989045 --repo SciML/OrdinaryDiffEq.jl --log-failed and the same command for default IntegrationTest run 41050161729 (retrieval exit 0) show the same EnsembleThreads failure at downstream/test/Core4/ensembles.jl:19: AssertionError: mi2 !== nothing from Enzyme threadsfor_common, parallelrules.jl:233. Thus the sole red check has an independently inspected default counterpart and is not the reason for CHANGES. PR integration, default integration.

What I did not verify

The full BDF suite, long stiff-system runs, backward integration, GPU execution, AD correctness and dense-output order were not rerun locally; CI status is distinguished from reviewer execution. No work-precision or speedup claim is made. The proposed fixed-step correction has not been implemented or tested.

🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5
Conversation: https://claude.ai/code/session_01379heiiB35TtywhR7uSU74

codex and others added 2 commits November 6, 2026 14:51
Require adaptive stepping for both MOOSE234 cache variants and document the
restriction. Cover initialization and solving for scalar, out-of-place array,
and in-place array problems with a regression that fails without the guards.

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__OrdinaryDiffEq.jl__4483 (no session URL)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Muse <noreply@meta.com>
Agent-Harness: Muse CLI Code
Agent-Model: muse-wonder-full-1.0
Agent-Session: local fixer job SciML__OrdinaryDiffEq.jl__4483 (no session URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #4483

Reviewed head: 0704b03
Raw SHA-256: bc34201e98f3531e1ac6137571947c2b23368177be1d61787839acf7e28247c0
Source SHA-256: 2d00c205e95c5611c8a7e270ee0ca5e5f2827dc7dfa539d989e87bcb113bc278
Source: standard-review-v1 (harness-log)
Reviewer session: 01a1ffbf-3cd4-7303-85db-ae83eb7aed77
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: medium-low (ML7)
  • Verdict: CHANGES
  • Reviewed head: 0704b03

Review report

VERDICT: CHANGES
Round: 1
Head: 0704b03
Slot: 1
CI: CI unreadable; review only; merge gates unchanged
Session: 01a1ffbf-3cd4-7303-85db-ae83eb7aed77
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

medium-low (ML7: documented opt-in solver API with defects confined to the new solver path)

Blocking findings

  • Blocking priorities: P1, P1, P1, P2, P2
  • [P1] lib/OrdinaryDiffEqBDF/src/bdf_perform_step.jl:919 and :1161. The corrector uses uniform BDF3 weights on interpolated history, while the fourth-order filter uses the actual time nodes. I advanced the order-four update for u′ = 4t³ from exact past values at (0, -2h, -3h, -4h). Both implementations returned approximately -79h⁴/11 at t = h, where the exact value is h⁴. Each halving of h reduced the defect by 16, and the uniform-step control reproduced the quartic to roundoff. Use the actual-node BDF3 coefficients for the implicit solve and add an unequal-step order regression.
  • [P1] lib/OrdinaryDiffEqBDF/src/stiff_addsteps.jl:249 and :279. Rebuilding dense output after a continuous callback uses the controller order to size the history even on the first step. With u′ = 1, u(0) = 1, dt = 0.5, abstol = 1.0, and reltol = 0.1, a callback terminating at t = 0.25 reached the correct event state but returned NaN at sol(0.125) for both in-place and out-of-place problems. The rebuild reads two history times that both equal zero. Rebuild from the accepted interval's valid points and test dense output on a shortened startup step.
  • [P1] lib/OrdinaryDiffEqBDF/src/bdf_utils.jl:569 and :586. History rotation uses the controller's consecutive failure count to detect retries. The core isoutofdomain rejection path bypasses that controller, so the retry inserts the same time twice and divides by zero in the predictor. A one-shot isoutofdomain rejection of the third trial for u′ = 1 made both in-place and out-of-place solves return Unstable at t = 0.2. MOOSE234 reached t = 0.8 with the rejection disabled, and FBDF reached it with the same rejection enabled. Make insertion idempotent at the current time and cover domain rejection in both cache paths.
  • [P2] lib/OrdinaryDiffEqBDF/src/controllers.jl:829 and :977. The controller ranks signed candidate step sizes. With errors (0.1, 0.5) and enough history, my probe chose order 2 for dt = 0.1 and order 4 for dt = -0.1. In the backward case the unavailable order-four candidate's zero sentinel outranks the negative candidates. Rank and clamp step magnitudes in both controller paths, and apply the direction to the selected step.
  • [P2] lib/OrdinaryDiffEqBDF/src/resize.jl:8. MOOSE234 lacks a resize hook for its state and nested buffers. In a discrete callback, resize!(integrator, 2) returned with the state, history entries, and dense buffers still length one. Initializing the new component then raised BoundsError. FBDF resized all three and reached the analytic endpoint within 1.1e-7 in each component. Add the MOOSE234 resize hook, invalidate the multistep history there, and include it in the state-resize test.

Non-blocking findings

  • lib/OrdinaryDiffEqBDF/test/bdf_regression_tests.jl:240 and :258. The Van der Pol assertions cover termination and ROBER additionally checks total mass. Both can pass for a wrong trajectory. Add componentwise checks against an independently converged reference at fixed times.
  • lib/OrdinaryDiffEqBDF/Project.toml:4. The package still declares version 2.4.14. Release the new public export in a minor version.

What I ran

  • git diff --check origin/master...HEAD exited 0 and git status --short was empty.
  • Julia 1.12.4 ran GROUP=Core julia --project=. -e 'using Pkg; Pkg.test()' from an exact-head scratch copy of the BDF package. It exited 0 with Testing OrdinaryDiffEqBDF tests passed. The changed convergence and regression files passed 113/113 and 164/164 assertions, respectively, in Core and again when run separately in the resolved test environment.
  • julia --startup-file=no --compiled-modules=existing --project=suite/lib/OrdinaryDiffEqBDF moose-probes.jl exited 1 with 12 passes and 12 failures. The uniform-step quartic and Float32 linear time-rescaling controls passed. The unequal-step quartic, callback dense output, and domain retry failed as described above. The separate controller and resize probes printed the results above.
  • uv run --locked python --version reported Python 3.13.13. There is no Python project lockfile and uv reported that --locked had no effect. uv run --locked python quartic-reference.py independently computed exact rational defects of 0 for uniform steps and -90/11 for the unequal mesh at h = 1.

What I did not verify

The docs build, QA and GPU groups, downstream packages, and CI.

AUTHOR_GRADE: {"task":"feature","score":2,"difficulty":4,"rounds":1,"author_harness":"Muse CLI Code","author_model":"muse-wonder-full-1.0","note":"The Core group passed, but targeted checks reproduced an order defect on unequal steps and failures in callback interpolation, domain retries, backward order choice, and state resizing."}

Head link: 0704b03


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a1ffbf-3cd4-7303-85db-ae83eb7aed77 (no session URL)

Use actual-node BDF weights with the time filters. Rebuild dense output
from the step's interpolation degree, keep history consistent on retries,
and handle backward step selection and state resizing. Cover the reviewed
paths with regressions and set the minor version for the new export.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.170.0
Agent-Model: gpt-6.2-sol
Agent-Job: SciML__OrdinaryDiffEq.jl__4483--20261121T213636Z-codex-gpt-6.2-sol
Agent-Session: local session 01a2000a-5015-7623-8eda-ed8465b2ad59 (no session URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #4483

Reviewed head: 44e57ad
Raw SHA-256: 30814ae941a94783d6a7fbd1205055eec44a8ad084a904400402ef6c552e2bc1
Source SHA-256: 9ca1047a80902611a4ecef9aff2c4e9aeaa36c9a603cbc999da8ddf370d66674
Source: standard-review-v1 (harness-log)
Reviewer session: 01a20162-961f-76a3-8a9e-4c97fe5c7b9a
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: medium-low (ML7)
  • Verdict: MERGE
  • Reviewed head: 44e57ad

Review report

VERDICT: MERGE
Round: 2
Head: 44e57ad
Slot: 1
CI: CI unreadable; review only; merge gates unchanged
Session: 01a20162-961f-76a3-8a9e-4c97fe5c7b9a
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

medium-low (ML7: documented additive API for an opt-in BDF solver)

Blocking findings

  • Blocking priorities: none

Non-blocking findings

None.

What I ran

  • On Julia 1.12.4, GROUP=Core julia --startup-file=no --project=. -e 'using Pkg; Pkg.test(julia_args=["--compiled-modules=existing"])' exited 0 with Testing OrdinaryDiffEqBDF tests passed. The four changed test files also passed separately in the resolved test environment: convergence 113/113, regression 173/173, resize 18/18, and MOOSE234 40/40. Core reported two pre-existing broken assertions in lib/OrdinaryDiffEqBDF/test/dae_initialization_tests.jl:119.
  • Replayed the new MOOSE234 tests and a discrete-resize probe on both heads. The earlier head exited 1 with 24 passes, 19 failures, and one error, reproducing all five prior blockers. The current head exited 0 with 44/44 passing. A separate 40/40 probe covered shifted cubic and quartic solutions on unequal forward and backward meshes with a nonidentity mass matrix, and continued integration after shortened startup and consecutive domain rejections.
  • Independently regenerated the Van der Pol and ROBER references with KenCarp4. The largest deviation from a stored reference was 4.33e-11 at reltol=1e-14. The largest change between reltol=1e-13 and 1e-14 was 7.54e-11.
  • Both ProbNumDiffEq CI logs show the same six missing :l2 and :l∞ assertions in test/diffeqdevtools.jl, with 1,730 passes and four broken assertions each. A local Julia 1.13.3 replay held the downstream revision fixed and returned 22 passes and six failures on the exact CI base and reconstructed PR merge. An initial comparison loaded merge sources in both environments. The corrected comparison verified both source paths. PR merge job, CI base job
  • The downstream extension sets the reference's dense flag to false. On base, the nested TestSolution inherits that flag and the fallback compares against the original reference's unset time vector. Substituting only lib/DiffEqDevTools/src/test_solution.jl from the inducing commit's parent gave 28/28 passes. This isolates the downstream failure to a change already present on the CI base. Inducing commit
  • git diff --check passed for both review ranges, git diff --no-color --unified=0 origin/master...HEAD | typos - passed, and the checkout was clean. uv run --locked python --version reported Python 3.13.13 and warned that --locked has no effect outside a project.

What I did not verify

The full downstream suite locally, a local replay on CI's Julia 1.13.4, the docs build, QA, GPU, and CI outside the two selected job logs.

AUTHOR_GRADE: {"task":"feature","score":5,"difficulty":4,"rounds":2,"author_harness":"Codex CLI 0.170.0","author_model":"gpt-6.2-sol","note":"All five prior blockers discriminated between revisions. Core and independent numerical probes passed, and the downstream failure reproduced on the exact CI base."}

Head link: 44e57ad


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a20162-961f-76a3-8a9e-4c97fe5c7b9a (no session URL)

Include the current master tip while preserving the reviewed MOOSE234 patch.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.170.0
Agent-Model: gpt-6.2-sol
Agent-Job: SciML__OrdinaryDiffEq.jl__4483--20261122T044110Z-codex-gpt-6.2-sol
Agent-Session: local session 01a2018e-fd77-7cc2-a842-d776a4ec6a30 (no session URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #4483

Reviewed head: 5c86940
Raw SHA-256: 770617f6434518249c637b4c3197f0cf00255aedbe67860698feba7402890cc7
Source SHA-256: 86d8eee1577f95666f1bf36265ac2487b733319e01b174b05733e7b09de51ed5
Source: standard-review-v1 (harness-log)
Reviewer session: 01a2022a-e939-7660-8e0f-f7f1ed47d10a
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: medium-low (ML7)
  • Verdict: CHANGES
  • Reviewed head: 5c86940

Review report

VERDICT: CHANGES
Round: 3
Head: 5c86940
Slot: 1
CI: CI unreadable; review only; merge gates unchanged
Session: 01a2022a-e939-7660-8e0f-f7f1ed47d10a
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

medium-low (ML7: documented, explicitly selected public MOOSE234 solver with analytic and independent reference tests)

Blocking findings

  • [P1] lib/OrdinaryDiffEqBDF/src/bdf_interpolants.jl:224 misreads a legitimate zero interpolation sample as padding on the newly enabled MOOSE234 path. Solve u' = 1 on (0.0, 1.0) with u0 = -(1 + cospi(3/4))/2, dt = 1.0, abstol = 1.0, and reltol = 1e-6. Both in-place and out-of-place runs had the exact endpoint, but sol(0.5) and saveat = [0.5] returned 0.7071067811865475 instead of 0.3535533905932738. The interpolated derivative was zero instead of one. A terminating callback on u == 0 located the crossing at t = 0.0 instead of 0.1464466094067262. FBDF exhibits the same behavior through the shared interpolation code. Persist the active sample count independently of the sample values and add a regression that checks both the saved value and the state-dependent event time.

  • [P2] lib/OrdinaryDiffEqBDF/src/bdf_perform_step.jl:985 and lib/OrdinaryDiffEqBDF/src/bdf_perform_step.jl:1140 can accept filtered states off a nonlinear algebraic constraint. With mass matrix Diagonal([1.0, 0.0]), right-hand side [1, z - exp(x)], initial state [0, 1], time span (0.0, 2.0) and tolerances of 1e-6, MOOSE234 reported success with maximum saved-node constraint residuals of 8.95e-6 out of place and 8.07e-6 in place. FBDF gave 2.22e-14 and 7.54e-8 respectively. The linear filter acts after the constraint solve. Reject singular mass matrices at initialization and document the restriction, or enforce the algebraic constraint on the filtered state and check it at accepted mesh points.

  • [P2] lib/OrdinaryDiffEqBDF/src/controllers.jl:903 applies the configured step-growth cap only when the proposed error estimate is zero. For u' = -u, u0 = 1.0, tspan = (0.0, 1.0), dt = 1e-4 and both tolerances at 1e-6, setting BDFController(qmax = 1.1, qmax_first_step = 1.1) still allowed consecutive accepted steps to grow by a factor of 302.8 in both implementations. With the default caps, gamma = 0.25 and gamma = 0.9 produced identical first six accepted step sizes and identical accept/reject counts. Apply the configured safety factor consistently in order selection and enforce the controller's step bounds on nonzero estimates. Add a test through solve that checks the accepted step ratios.

  • Blocking priorities: P1, P2, P2

Non-blocking findings

None.

What I ran

  • Replayed the merge in a scratch checkout using git merge --no-commit --no-ff -s ort. The second parent matched origin/master, the merge completed without conflicts, and git write-tree returned the head tree 8dfee0ee017615fa27e2f4b226ed791381def697. The index diff against the reviewed head exited zero. First parent · Merged base
  • Ran GROUP=Core JULIA_PKG_PRECOMPILE_AUTO=0 julia --startup-file=no --project=. -e 'using Pkg; Pkg.test()' from the BDF subpackage on Julia 1.12.4. Exit 0, OrdinaryDiffEqBDF tests passed, with 2,743 passed and two existing broken assertions across 20 testsets. The separate runs of the four affected files under the generated Pkg test environment also passed, with 113 convergence, 173 regression, 29 resize and 40 MOOSE234 assertions.
  • Ran Julia probes for zero-valued dense samples, saveat, callback roots, the controller settings and the singular mass matrix. The observed results are above. Backward integration from an oversized initial step also reached the endpoint in both implementations. Independently solved the stiff Van der Pol and Robertson fixtures with KenCarp4 at tolerances of 1e-11 and 1e-13. The largest refinement change was 2.20e-8, and the MOOSE234 results satisfied the committed componentwise bounds against the tighter reference.
  • Ran git diff --check origin/master...HEAD, Runic --check on changed Julia files and typos on changed files. Each exited zero. uv run --locked python --version printed Python 3.13.13 and warned that the checkout is outside a Python project. The checkout has no uv.lock.
  • Read and compared the requested ProbNumDiffEq Actions logs via gh run view --job … --log. The head and its exact base both had 1,730 passes, six failures and four broken assertions. The normalized DiffEqDevTools compatibility sections matched byte for byte, with failure locations at test/diffeqdevtools.jl:30, :31, :36 twice and :37 twice. The different downstream checkout revisions produced the same observed failure. The evidence classifies it as pre-existing. Head job · Base job

What I did not verify

  • Docs rendering, GPU and QA groups, other local Julia versions, and a local rerun of ProbNumDiffEq.

AUTHOR_GRADE: {"task": "feature", "score": 3, "difficulty": 4, "rounds": 3, "author_harness": "Codex CLI 0.170.0", "author_model": "gpt-6.2-sol", "note": "Core and independent stiff accuracy checks passed. Targeted runs reproduced incorrect interpolation and callback roots, algebraic residuals after filtering, and step growth above the configured cap."}

Head link: 5c86940


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2022a-e939-7660-8e0f-f7f1ed47d10a (no session URL)

Store active interpolation samples per interval and preserve their count
when copying DelayDiffEq history. Reject singular mass matrices for
MOOSE234 and use the configured safety factor and accepted step bounds.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.170.0
Agent-Model: gpt-6.2-sol
Agent-Job: SciML__OrdinaryDiffEq.jl__4483--20261122T082851Z-codex-gpt-6.2-sol
Agent-Session: local session 01a2025f-7000-7d13-a4e2-235f076b7ae9 (no session URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #4483

Reviewed head: 29de1c7
Raw SHA-256: 6e7421b1db0ce6c3532787610969e032a8eadeb991ca54b17c60c7917f0b1c8d
Source SHA-256: c87d11b4cfd02d166fcfd9553a65267bf16d62d2c1eaab025e4ca51ccb322f32
Source: standard-review-v1 (harness-log)
Reviewer session: 01a20344-e293-7452-a71e-fc38f08a167f
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: high (H2)
  • Verdict: CHANGES
  • Reviewed head: 29de1c7

Review report

VERDICT: CHANGES
Round: 4
Head: 29de1c7
Slot: 1
CI: CI unreadable; review only; merge gates unchanged
Session: 01a20344-e293-7452-a71e-fc38f08a167f
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

high (H2: the shared interpolation change alters dense values, derivatives, and event times on the default DFBDF solve path)

Blocking findings

  • [P2] lib/OrdinaryDiffEqBDF/src/bdf_caches.jl:1004 and lib/OrdinaryDiffEqBDF/src/bdf_caches.jl:1081 reject invertible structured mass matrices. I solved M*u′ = -u from [1.0, 1.0] on (0.0, 1.0) with MOOSE234(), dt = 0.001, and both tolerances set to 1e-8. For M = Symmetric([0.0 1.0; 1.0 0.0]) and the same matrix wrapped in Hermitian, both in-place and out-of-place solves succeeded on the previous head with final error below 3.88e-10 against exp(-1) .* [1, 1]. All four wrapped cases throw ArgumentError("MOOSE234 requires a nonsingular mass matrix.") on the reviewed head. The plain matrix still solves. The wrapped matrix has determinant -1.0, and its Bunch–Kaufman factorization reports issuccess == true with a zero stored diagonal. Use a singularity check that handles 2×2 pivots, and add an invertible wrapped-matrix regression alongside the singular diagonal test.

  • Blocking priorities: P2

Non-blocking findings

None.

What I ran

  • Ran JULIA_PKG_PRECOMPILE_AUTO=0 GROUP=Core julia --startup-file=no --project=. -e 'using Pkg; Pkg.test()' in lib/OrdinaryDiffEqBDF and the same command with GROUP=Integrators in lib/DelayDiffEq, from scratch snapshots on Julia 1.12.4. Both exited 0. BDF reported 2,777 passes and 2 broken assertions across 20 testsets. DelayDiffEq reported 385 passes and 36 broken assertions across 15 testsets. Running the complete test/integrators/fbdf.jl separately also passed all 16 assertions.
  • Ran the new regression testsets on both heads with the same resolved dependencies. The previous head failed 26 of 34 BDF assertions (20 for zero-valued dense samples, 2 for singular-matrix rejection, and 4 for controller settings) and all 4 DDE assertions. The previous maximum growth ratio was 302.79554925176154 with a cap of 1.1, and the two safety factors gave identical fifth saved times. The reviewed head passed all 34 BDF and all 4 DDE assertions. Previous head
  • Probed default DAE solve(prob) on both heads using the in-place residual du - 1 and u(0) = -(1 + cospi(3/4))/2. Both selected DFBDF. The midpoint and saveat value changed from 0.7071067811865475 to 0.35355339059327373, the midpoint derivative from 0.0 to 1.0, and the terminating root time from 0.0 to 0.1464466094067262. The new values agree with the analytic solution.
  • Ran the structured mass-matrix comparison on both heads and checked det, diag(F.LD), and issuccess(F) independently with LinearAlgebra. The results are in the finding above.
  • git diff --check origin/master...HEAD, Julia Runic --check, and typos on changed files exited 0. uv run --locked python --version printed Python 3.13.13 and warned that --locked has no effect outside a Python project. The checkout has no uv.lock.
  • Ran rack ci compare --no-record --json. It classified five failures as pre-existing and flagged ProbNumDiffEq as different. I fetched both ProbNumDiffEq job logs and verified the run SHAs against the reviewed head and its exact base. The normalized 105-line DiffEqDevTools compatibility blocks matched byte for byte, with the same six failing assertions at test/diffeqdevtools.jl:30, :31, :36 twice, and :37 twice. Both runs reported 1,730 passes, six failures, and four broken assertions. That failure is pre-existing. Head job · Base job

What I did not verify

  • Local documentation rendering, GPU, QA, other Julia versions, and a local ProbNumDiffEq rerun. The out-of-place default DAE callback probe reached the same get_tmp_cache MethodError on both heads.

AUTHOR_GRADE: {"task": "feature", "score": 3, "difficulty": 4, "rounds": 4, "author_harness": "Codex CLI 0.170.0", "author_model": "gpt-6.2-sol", "note": "The new tests discriminate all three prior defects and both local groups pass. The new mass-matrix guard rejects valid structured inputs."}

Head link: 29de1c7


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a20344-e293-7452-a71e-fc38f08a167f (no session URL)

This branch has not been deployed

No deployments
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.

4 participants