Skip to content

FBDF deleteat!/addat!: edit u, uprev and history arrays (stacked on #4719, #4796) - #4807

Draft
ChrisRackauckas-Claude wants to merge 14 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fbdf-resize
Draft

ChrisRackauckas-Claude wants to merge 14 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fbdf-resize

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Stacked PR. This branch contains #4719 (FBDF/QNDF resize! hooks) and #4796 (FSAL/nlsolver/J-W in deleteat!/addat!), merged locally. Only the last commit, 34b4580, is new here. It touches lib/OrdinaryDiffEqBDF only: src/resize.jl (+36), the SciMLBase import line, and test/resize_tests.jl (+35).

What changed and why

FBDFCache has no u/uprev field, and its history (u_history, u_corrector, dense) is a vector of state-sized arrays, so full_cache reaches none of it. With #4719 and #4796 applied, deleteat!/addat! on FBDF still throw. The generic fallback resizes to length(integrator.u), and integrator.u itself was never edited. This PR adds deleteat_non_user_cache!/addat_non_user_cache! for FBDFCache. They apply the edit once to integrator.u, integrator.uprev and every history array, skipping by identity any array the generic pass already edited, so the kept rows are the right ones. They then call #4719's FBDF resize hook, which resizes the nlsolver and restarts at order 1. QNDF/QBDF need nothing extra: they work through the fallback once #4719 and #4796 are in.

Verification

Scratch env with lib/ packages dev'd, Julia 1.12.4.

New testset "BDF deleteat!/addat! mid-solve" in lib/OrdinaryDiffEqBDF/test/resize_tests.jl. For FBDF and QNDF it steps to t=0.5 on a coupled linear system, calls addat! (2→3) or deleteat!(integ, [2]) (3→2), and solves to t=2. It then checks the result against a fresh solve of the edited system from the same state, and against exp(A_sub (TF-TG)) u_edit, both at rtol=1e-7, atol=1e-10. Both solves use reltol=1e-10, and the observed errors are about 1e-9 relative. 1e-7 leaves room for tolerance-proportional global error, and it still catches a wrong row or a stale history: those give O(1) errors or throw.

julia --project=env -e 'using Test; @testset "f" begin include("lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end'

Code Result
master cceca42 (new test file) 0 pass, 2 errored (BoundsError: attempt to access 2-element Vector{Float64} at index [3] in both testsets)
#4719 + #4796, without this commit #4719's testset 12/12; new testset errors: BoundsError: attempt to access 2-element Vector{Float64} at index [3]
#4719 only, with this commit 21 pass, 1 error (QNDF addat! needs #4796's nlsolver resize)
this branch `f

Other BDF test files on this branch: bdf_regression_tests.jl 49/49, nordsieck_tests.jl 140/140.

Reproducer from #4806 on this branch: FBDF and QNDF resize! 2→3, resize! 2→1, deleteat!, addat! all Success (on master all 8 throw). DFBDF still throws in all 4 cases. See below.

Runic (--check) and typos on the three touched files: exit 0.

Not verified

Refs #4806 (FBDF deleteat!/addat! part; DFBDF remains), #4733

Risk assessment

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

https://claude.ai/code/session_01AXwyJDRaMKgnYMG9M1Ut49

Risk assessment (independent review, codex-cli gpt-6-astra, reviewed head 1b8feb9)

Reviewed head: 1b8feb9b74eb67823945610a0dff4d3ef1ae66a1 (recorded at start and rechecked unchanged at completion). Initial independent risk was medium, recorded before reading the author's risk section.


🤖 Posted by an AI agent — harness: codex-cli · model: gpt-6-astra (independent reviewer; appended by Claude Code 2.1.301 · claude-opus-5-5)
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq

🤖 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 f18d934)

Merged the current default branch (including the merged FBDF/QNDF resize! prerequisite) into this branch and resolved the merge conflicts. The conflicts were add/add conflicts in lib/OrdinaryDiffEqBDF/src/resize.jl and lib/OrdinaryDiffEqBDF/test/resize_tests.jl, plus a content conflict on the SciMLBase import in lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl. Each was resolved by keeping the branch version, which contains the upstream content plus this PR's FBDF deleteat!/addat! additions. No other code changed. The resulting diff against the default branch is exactly 3 files (73 insertions, 1 deletion): the import line, the deleteat_non_user_cache!/addat_non_user_cache! hooks for FBDFCache, and the BDF deleteat!/addat! mid-solve testset. A merge was used rather than a rebase so the push is a fast-forward of the existing branch history.

Validation (Julia 1.12.4, JULIA_NUM_THREADS=4):

  • julia --project=@runic -m Runic --check lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl — exit 0.
  • typos lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl — exit 0.
  • Fail-before: the branch resize_tests.jl run against a clean upstream checkout gives 12 passed, 0 failed, 1 errored with BoundsError: attempt to access 2-element Vector{Float64} at index [3] in BDF deleteat!/addat! mid-solve.
  • Pass-after, targeted: julia --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.instantiate(); using Test; @testset "resize" begin include("lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end' — resize | 28 28 28.5s.
  • Touched test group in full: GROUP=Core julia --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test("OrdinaryDiffEqBDF")' — exit 0, Testing OrdinaryDiffEqBDF tests passed. Tail: BDF Resize Tests | 28 28, BDF Regression Tests | 125 125, BDF Convergence Tests | 98 98, Nordsieck BDF Tests | 140 140, LHL Factorization Tests | 19 19.
  • QA group: GROUP=QA julia --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test("OrdinaryDiffEqBDF")' — exit 0, Testing OrdinaryDiffEqBDF tests passed. Tail: Allocation Tests | 5 pass, 18 broken, JET Tests | 18 pass, 23 broken, Aqua | 21 21 (broken entries are pre-existing @test_broken in the QA files, unchanged here).

Not verified: the full monorepo test suite, GPU and downgrade groups, and downstream integration tests. The only failure on the previous head was the SciMLSensitivity Core4 downstream job; the latest default-branch IntegrationTest run also failed, so that failure is not attributed to this PR. CI on the new head was checked once after pushing and had started; it was not waited on.

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__4807 (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.164.0 gpt-6.1-sol (head 875b04a)

FBDF hooks use the scratch buffer's post-edit length to edit shared state once across composite caches. Nonlinear-solver resizing visits every composite subcache. Tests assert retained values and exact dimensions before comparing continuation with fresh solves and matrix exponentials, covering standalone FBDF/QNDF, both FBDF selections, and mixed FBDF/QNDF caches. The branch also includes a normal merge of upstream master (4460ff8).

Verification

Julia 1.12.4, four Julia threads, one BLAS thread, isolated temporary storage. No tolerance was loosened and no skip or broken assertion was added. Broken entries in the output are existing upstream assertions.

Formatting and spelling, exit 0 with no output:

julia --compiled-modules=existing --project=@runic -m Runic --inplace lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl
typos lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl
git diff --check

Same regression on the unfixed merged source (exit 1), then the final fix with unmodified Core (exit 0):

timeout 3600 julia --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Test; @testset "resize review" begin include("lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end'
Test Summary:                              | Pass  Fail  Error  Total     Time
resize review                              |   52     8      8     68  1m01.0s
Test Summary: | Pass  Total     Time
resize review |   84     84  1m17.2s

Full BDF Core, exit 0. JULIA_PROJECT selects an isolated copy of the Pkg-generated BDF test environment with repository sources preserved; JULIA_LOAD_PATH=@:@stdlib. This runs the official runner with bounds checks:

GROUP=Core timeout 10800 julia --compiled-modules=existing --check-bounds=yes -e 'using Pkg; Pkg.instantiate(;allow_autoprecomp=false); cd("lib/OrdinaryDiffEqBDF/test"); include("runtests.jl")'
Test Summary:        | Pass  Total     Time
BDF Regression Tests |  125    125  3m50.6s
Test Summary:    | Pass  Total     Time
BDF Resize Tests |   84     84  1m19.1s
Test Summary:       | Pass  Total     Time
Nordsieck BDF Tests |  140    140  3m56.8s
Test Summary:           | Pass  Total   Time
LHL Factorization Tests |   19     19  50.3s

Final BDF QA, exit 0:

GROUP=QA timeout 10800 julia --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'
Test Summary:    | Pass  Broken  Total     Time
Allocation Tests |    5      18     23  4m01.1s
Test Summary: | Pass  Broken  Total   Time
JET Tests     |   18      23     41  31.9s
Test Summary: | Pass  Total     Time
Aqua          |   21     21  3m40.7s

NonlinearSolve QA, exit 0. JULIA_PROJECT selects a workspace with eleven monorepo packages developed from this checkout; their source locations were asserted:

GROUP=QA timeout 10800 julia --compiled-modules=existing -e 'using Pkg; Pkg.test("OrdinaryDiffEqNonlinearSolve"; julia_args=["--compiled-modules=existing"])'
Test Summary: | Pass  Broken  Total   Time
JET Tests     |   13      33     46  44.3s
Test Summary: | Pass  Total   Time
Aqua          |   41     41  36.2s

Root integrator and QA groups, both exit 0:

GROUP=Integrators_II timeout 10800 julia --compiled-modules=existing --project=. -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'
GROUP=QA timeout 10800 julia --compiled-modules=existing --project=. -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'
Test Summary: | Pass  Total     Time
Resize Tests  |   90     90  2m27.1s
Test Summary:          | Pass  Total     Time
deleteat!/addat! Tests |   48     48  1m31.5s
Test Summary: | Pass  Broken  Total      Time
Cache Tests   |  214       4    218  21m32.6s
Test Summary:             | Pass  Broken  Total     Time
IMEX Split Function Tests |   15       1     16  9m31.3s
Test Summary:           | Pass  Total   Time
Quality Assurance Tests |  111    111  32.3s

Pre-existing failures and limits

The full NonlinearSolve Core command stops in the Newton BackTracking test with LineSearchException: Search direction is not a direction of descent. Step length: 0.0 (4 passed, 1 errored). It reproduces on clean upstream master and with all local monorepo sources. The existing report #4681 documents this failure family. The remaining Core testsets after that failure were not executed; the failure was not changed or suppressed.

GROUP=Core timeout 10800 julia --compiled-modules=existing -e 'using Pkg; Pkg.test("OrdinaryDiffEqNonlinearSolve"; julia_args=["--compiled-modules=existing"])'
Test Summary: | Pass  Error  Total   Time
Newton Tests  |    4      1      5  15.4s

The checked default-branch push run https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/42569947107 passes SciMLSensitivity Core4 and ModelingToolkit InterfaceI. SciMLSensitivity Core2 and AD LTS reproduce the PR's unexpected-pass/finished-tape failures on the default branch. Those failures have existing reports and are unchanged here.

Adaptive composite FBDF has a separate baseline defect tracked in #4854, reproduced here without resizing on a clean default checkout. The new composite edit regressions use fixed steps and a coupled nilpotent matrix; QNDF uses a finer step for the analytic comparison. Standalone edit regressions remain adaptive.

Not verified: downstream suites locally, GPU, pre-release/LTS Julia, minimum dependency combinations, full monorepo Everything, documentation builds, or new-head CI results. Packaging requires coordinated BDF and NonlinearSolve releases and appropriate dependency bounds; only current local sources were tested.

Links

Risk assessment

  • Risk: medium
  • Blast radius: FBDF insertion/deletion state and history; nonlinear-buffer resizing for composite solvers. No new public name or dependency.
  • Evidence: failing-before/passing-after regression, full BDF Core and QA, NonlinearSolve QA, integrator and root QA groups; NonlinearSolve Core failure matched clean master.
  • Independent review: pending for this head; this fix session is not a counted independent review.
  • Merge: needs human review — fresh independent review and new-head CI remain outstanding.

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: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__OrdinaryDiffEq.jl__4807 (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.164.0 gpt-6.1-sol (head 4606ac0)

Composite nonlinear-cache resizing pairs each cache with its component algorithm. A resize context preserves the state, function, solution and step references while selecting that component's AD backend for Jacobian/J-W preparation. New Core tests cover explicit-first/last composites, ForwardDiff/FiniteDiff mixtures in both orders, both initial selections, dormant members, resize/insertion/deletion, and switching into both members after editing. The test-only Tsit5 dependency is MIT licensed, matching this repository.

Verification

Julia 1.12.4, four Julia threads, one BLAS thread. VALIDATION_ENV selects an isolated environment with BDF/NonlinearSolve test dependencies and twelve local monorepo packages; source locations were checked. Machine-specific environment values are omitted below.

Before the fix, the new regression ran on the original PR implementation and exited 1. Restoring that implementation at runtime with the final test file independently reproduced the same counts. After the fix the command exited 0:

timeout 7200 julia --compiled-modules=existing --project="$VALIDATION_ENV" -e 'using Test; include("lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl")'
# Original PR method, final regression:
Test Summary:                                | Pass  Error  Total   Time
Composite nonlinear resize algorithm context |   42     18     60  44.6s
# Six explicit-last autodifferentiation errors; twelve mixed-backend preparation conversion errors.
# Fixed:
Test Summary:                                | Pass  Total   Time
Composite nonlinear resize algorithm context |  192    192  22.5s

The fixed regression and existing resize file were also run together, exit 0:

timeout 7200 julia --compiled-modules=existing --project="$VALIDATION_ENV" -e 'using Test; include("lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl"); @testset "BDF resize" begin include("lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end'
Composite nonlinear resize algorithm context | 192 192 22.5s
BDF resize | 84 84 59.2s

Full official BDF Core runner, with bounds checks, exit 0: 2,695 passed, two existing broken assertions, 19 testsets. The invocation also printed the selected BDF, NonlinearSolve, Core and Differentiation source locations before running:

GROUP=Core timeout 10800 julia --compiled-modules=existing --check-bounds=yes --project="$VALIDATION_ENV" -e 'using Pkg; println("Julia ",VERSION); for name in ("OrdinaryDiffEqBDF", "OrdinaryDiffEqNonlinearSolve", "OrdinaryDiffEqCore", "OrdinaryDiffEqDifferentiation"); d=only(p for p in values(Pkg.dependencies()) if p.name==name); println(name," => ",d.source); end; cd("lib/OrdinaryDiffEqBDF/test"); include("runtests.jl")'
BDF Regression Tests | 125 125 3m54.1s
BDF Resize Tests | 84 84 1m21.4s
BDF Time Reversal Tests | 20 20 1m18.6s
FBDF Time Filter Tests | 41 41 27.1s
FBDF Filter Regression Tests | 273 273 16.8s
Nordsieck BDF Tests | 140 140 3m58.5s
LHL Factorization Tests | 19 19 1m00.3s

Both QA groups passed through Pkg.test():

GROUP=QA timeout 10800 julia --compiled-modules=existing --project="$VALIDATION_ENV" -e 'using Pkg; Pkg.test("OrdinaryDiffEqNonlinearSolve"; julia_args=["--compiled-modules=existing"])'
GROUP=QA timeout 10800 julia --compiled-modules=existing --project="$VALIDATION_ENV" -e 'using Pkg; Pkg.test("OrdinaryDiffEqBDF"; julia_args=["--compiled-modules=existing"])'
NonlinearSolve:
JET Tests | 13 passed, 33 existing broken | 2m12.9s
Aqua | 41 41 | 4m20.6s
Testing OrdinaryDiffEqNonlinearSolve tests passed
BDF:
Allocation Tests | 5 passed, 18 existing broken | 4m37.1s
JET Tests | 18 passed, 23 existing broken | 1m24.1s
Aqua | 21 21 | 3m13.2s
Testing OrdinaryDiffEqBDF tests passed

The first BDF QA attempt stopped before tests because Pkg interpreted a relative source path against the scratch environment. Correcting scratch source aliases allowed the exact command above to run. No repository code or test assertion changed for that environment repair.

Final formatting/spelling/whitespace checks all exited 0 with no output:

timeout 3600 julia --compiled-modules=existing --project=@runic -m Runic --inplace lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl lib/OrdinaryDiffEqNonlinearSolve/test/runtests.jl lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl
typos lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl lib/OrdinaryDiffEqNonlinearSolve/test/runtests.jl lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/Project.toml
git diff --check
git diff --cached --check
git diff --exit-code

Baseline controls and limits

NonlinearSolve Core was run through its official runner and exited 1:

GROUP=Core timeout 10800 julia --compiled-modules=existing --check-bounds=yes --project="$VALIDATION_ENV" -e 'cd("lib/OrdinaryDiffEqNonlinearSolve/test"); include("runtests.jl")'
Developer API Tests | 27 27 1m46.7s
NLAnderson Resize Tests | 352 352 4m25.9s
Composite Resize Tests | 192 192 30.9s
LoadError: LineSearchException: Search direction is not a direction of descent. Step length: 0.0
Newton Tests | 4 passed, 1 error | 27.6s

A separate baseline investigator reproduced that exact Newton failure on clean upstream master 4460ff8: Developer API 27/27, Anderson resize 352/352, Newton four passes/one error. Existing issue 4681 contains a historical bisect; it was checked, not repeated. Core testsets after Newton remain unexecuted. The same final composite regression against clean master produced 28 passed, 60 failed, 24 errored (stale nonlinear buffers / continuation errors), providing the base-method control.

All failed PR checks were compared with default-branch push runs or local controls. Root/Default GPU deprecation-warning assertions, AD LTS ReverseDiff tape errors, SciMLSensitivity Core2, ProbNumDiffEq downstream failures, and Newton are pre-existing. TaylorSeriesImplicit Core/QA, documentation and downgrade failures share the TaylorDiff 0.3.5 dependency precompile error also seen on master. Clean-master loading of TaylorSeriesImplicit succeeded after resolution selected the upstream fixed TaylorDiff 0.3.6 release. There is no additional upstream OrdinaryDiffEq commit to merge for these failures.

Not verified locally: GPU/downstream suites, other Julia versions, full monorepo Everything, documentation builds, or new-head CI completion. No tests were skipped, disabled or loosened. Existing broken assertions were unchanged.

Risk assessment

  • Risk: medium
  • Blast radius: nonlinear-buffer resizing for composite algorithms, including dormant members; no new public name or runtime dependency.
  • Evidence: failing-before/passing-after regression, clean-master controls, full BDF Core, BDF and NonlinearSolve QA.
  • Independent review: pending for this head; this fix session does not provide a counted independent review.
  • Merge: needs human review and a fresh independent review; CI completion is not claimed.

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__4807 (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-luna (head 21e088a)

Merged current upstream/master (ace83e0140458338550e662329672dbba241dbd9) into the existing branch. Resolved the BDF test conflict by retaining both the PR's FBDF edit tests and upstream's QNDF history tests. Added local BDF and Tsit5 source entries to the NonlinearSolve test project so its composite resize tests exercise the repository's resize hooks.

Validation

Fail-before and pass-after for the NonlinearSolve composite resize tests:

  • Before local test sources, the Core run reported Composite Resize Tests | 120 passed, 20 failed, 8 errored because the test environment resolved the registered BDF package.
  • After local test sources, that testset reported Composite Resize Tests | 192 passed.

The full NonlinearSolve Core command then reached its existing Newton test error (4 passed, 1 error, LineSearchException). An earlier clean-base control on 4460ff80dad621418e6e3a9b63e4afb2e1f5fc02 with the same resolved dependencies reproduced this Newton error. Current default-branch NonlinearSolve Core CI passes (run 44896678389).

GROUP=Core timeout 3600 julia --compiled-modules=existing --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'

BDF Core passed, including BDF Resize Tests | 95 95:

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

BDF QA passed: Allocation 5 passed, 18 broken, JET 18 passed, 23 broken, Aqua 21 passed. NonlinearSolve QA passed: JET 13 passed, 33 broken, Aqua 41 passed. Broken entries are existing assertions.

GROUP=QA timeout 3600 julia --compiled-modules=existing --project=lib/OrdinaryDiffEqBDF -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'
GROUP=QA timeout 3600 julia --compiled-modules=existing --project=lib/OrdinaryDiffEqNonlinearSolve -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'

Formatting and spelling checks exited 0 with no output:

julia --project=@runic -m Runic --inplace lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl
typos lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl lib/OrdinaryDiffEqBDF/src/resize.jl lib/OrdinaryDiffEqBDF/test/resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/Project.toml lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl lib/OrdinaryDiffEqNonlinearSolve/test/composite_resize_tests.jl lib/OrdinaryDiffEqNonlinearSolve/test/runtests.jl
git diff --check

CI started for head 21e088a156; I checked once after pushing and did not wait for completion.

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-luna
Conversation: local session 01a1fe8d-ab96-7f62-9a0f-d96e0166a647 (no session URL)

ChrisRackauckas and others added 7 commits October 1, 2026 20:43
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI codex-cli 0.160.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/pr-bdf-resize/log.txt on amdci2
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI codex-cli 0.160.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/pr-bdf-resize/log.txt on amdci2
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI codex-cli 0.160.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/pr-bdf-resize/log.txt on amdci2
…rray

deleteat!/addat! on an ODEIntegrator only touched full_cache, so
fsallast (and fsalfirst when not aliased), the nonlinear solver buffers and
J/W kept the old length, and the next step! threw. Cache fields that alias
each other were also shortened twice. Visit each distinct buffer once and
resize the solver internals the same way resize! does.

Fixes SciML#4789

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01AXwyJDRaMKgnYMG9M1Ut49
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01AXwyJDRaMKgnYMG9M1Ut49
FBDFCache holds no u/uprev and keeps u_history, u_corrector and dense as
vectors of state-sized arrays, which full_cache does not reach. deleteat!
and addat! now edit integrator.u, integrator.uprev and every history array
once (by identity), then restart through the FBDF resize hook.

Refs SciML#4806

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01AXwyJDRaMKgnYMG9M1Ut49
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3 (conflict resolution), Claude Code 2.1.285 (orchestration)
Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Agent-Session: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master); Devin log /Users/chrisrackauckas/sandbox/master/fusion-fixes/SciML_OrdinaryDiffEq.jl-4807/log.txt
@ChrisRackauckas

Copy link
Copy Markdown
Member

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

Merged the default branch into this PR (clean merge, no conflicts; head 28038be) so CI runs on current master. Its earlier failures in SciMLSensitivity Core1 and the downgrade jobs were fixed on master after this PR's last CI run.


🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (merge), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master)

ChrisRackauckas and others added 2 commits October 16, 2026 08:11
Resolve add/add conflicts in OrdinaryDiffEqBDF resize files by keeping the branch versions, which contain the upstream resize hooks plus the FBDF deleteat!/addat! additions.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Muse <[email protected]>
Agent-Harness: Muse CLI Code
Agent-Model: muse-wonder-full-1.0
Agent-Session: local fixer job SciML__OrdinaryDiffEq.jl__4807 (no session URL)
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

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

Independent review (Codex CLI 0.166.0 / gpt-6.1-sol), session 01a1976a-aa2a-76e3-8972-8a94dedaebde, reviewed head f18d934

  • Verdict: CHANGES
  • Risk: medium-high (MH1: FBDF state insertion/deletion changes core solver behavior; the new cache-local identity tracking does not cover composite traversal).
  • Round / slot: 1 / 1
  • Blocking priorities: P2

Review written by the reviewer named above 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 FBDF insertion/deletion hooks that edit state and history buffers and restart the method. The supplied regression passes, but composite FBDF solvers apply each requested state edit twice and need a repair.

Blast radius: In-place FBDF integrator addat!/deleteat!, multistep history and restart state; composite algorithms containing FBDF. The QNDF regression exercises the existing fallback.

Evidence: Head regression: 28/28 passed, exit 0. Same head test against merge-base BDF: 12 passed, 1 errored with BoundsError, exit 1. Independent probe: 34 passed, 2 failed, exit 1; repeated standalone edits and callback accuracy passed, composite state-size assertions failed. BDF Core, GPU, QA and downgrade CI passed; four other CI jobs failed, with three matching master failures confirmed.

Blocking findings

  1. [P2] Composite FBDF caches repeat the edit on shared state — lib/OrdinaryDiffEqBDF/src/resize.jl:49, confirmed by running. With OrdinaryDiffEqCore.CompositeAlgorithm((FBDF(), FBDF(time_filter=true)), i -> 1) and a four-component in-place ODE, one deleteat!(integrator, [2]) leaves two components instead of three; one addat!(integrator, [2]) leaves six instead of five. The existing composite dispatcher invokes the new hook for each FBDF cache. Each invocation creates its own seen, and neither FBDF cache exposes integrator.u/uprev through full_cache, so both invocations edit the same state arrays. This silently removes an extra retained component or creates an extra uninitialized component. Move shared state editing to a once-per-operation layer, or carry one identity set through the entire composite traversal while still editing each cache's private histories. Add composite insertion/deletion tests that assert the retained values, exact dimension, and successful continuation against an analytic reference.

Non-blocking findings

  1. [P3] Assert retained state before constructing the reference — lib/OrdinaryDiffEqBDF/test/resize_tests.jl:55. The new tests take u_edit from the already edited integrator and use it to seed both reference calculations. A deletion that keeps the wrong original components can therefore pass both final-value comparisons. Save the state before editing and assert that deletion retains the intended indices and insertion preserves all existing components. The matrix-exponential oracle remains a sound independent accuracy check for the continuation.

What I ran

All Julia runs used Julia 1.13.2 on aarch64, JULIA_NUM_THREADS=4, OPENBLAS_NUM_THREADS=1, an isolated TMPDIR, the designated writable shared depot with the default depots appended, --startup-file=no, and timeout 3600. Exactly three Julia processes were run, sequentially. Environment and checkout prefixes are omitted from commands below to avoid machine-local paths.

Git inspection, exit 0 unless noted:

git status --short
git rev-parse HEAD origin/master
git fetch origin '+refs/pull/4807/head:refs/remotes/pr/4807' master
git checkout --detach pr/4807
git diff --stat origin/master...HEAD
git diff origin/master...HEAD
git merge-base origin/master HEAD
git log -1 --no-merges --format=%B origin/master..HEAD

The live head matched TARGET.md. origin/master was d035621; the merge-base and PR API baseRefOid were 7139c88. The diff contained only the three reported BDF files. The merge-base BDF subtree was extracted with git archive 7139c88708b0d3fd3945883fe4456de2c75a230d lib/OrdinaryDiffEqBDF. The base environment used that BDF subtree with the same local dependency packages as the head environment; those dependencies are unchanged between the merge-base and head.

Head, exit 0:

julia +1.13.2 --startup-file=no --project=env-head -e 'using Pkg; Pkg.instantiate(;update_registry=false,allow_autoprecomp=false); using Test, OrdinaryDiffEqBDF; println("Julia ", VERSION); println("BDF source: ", pathof(OrdinaryDiffEqBDF)); @testset "PR head resize regression" begin include("src/lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end'

Output: PR head resize regression | 28 28 19.4s. The added insertion/deletion testset passed all 16 assertions, including the analytic matrix-exponential comparisons.

Merge-base, exit 1, same head test file:

julia +1.13.2 --startup-file=no --project=env-base -e 'using Pkg; Pkg.instantiate(;update_registry=false,allow_autoprecomp=false); using Test, OrdinaryDiffEqBDF; println("Julia ", VERSION); println("BDF source: ", pathof(OrdinaryDiffEqBDF)); @testset "PR base resize regression" begin include("src/lib/OrdinaryDiffEqBDF/test/resize_tests.jl") end'

Output: PR base resize regression | 12 passed, 1 errored; existing resizing tests passed 12/12, while the added test errored in its first FBDF insertion case: BoundsError: attempt to access 2-element Vector{Float64} at index [3]. A manifest freshness warning also appeared after selecting the archived BDF source. Thus the added test fails before and passes after from my own runs; later base cases were not reached.

Independent probe, exit 1:

julia +1.13.2 --startup-file=no --project=env-head review-evidence/probe.jl

The probe used a separate coupled four-state linear system and matrix exponentials for each continuation interval. It checked repeated deletion/insertion/deletion with FBDF(time_filter=false/true), exact retained values, order reset, history/dense buffer lengths, and deletion inside a DiscreteCallback with derivative_discontinuity!(integrator, false). These checks passed. Two additional cases used the composite algorithm in blocking finding 1 and checked one edit immediately after stepping, without attempting continuation after a failed dimension assertion. Output:

Repeated edits, filter=false          | 15 passed
Repeated edits, filter=true           | 15 passed
Callback preserves state and restarts |  3 passed
Composite shrink: expected length 3, actual 2
Composite grow: expected length 5, actual 6
Independent state-edit probes         | 34 passed, 2 failed, 0 errored

Read-only GitHub commands: gh pr view 4807 --repo SciML/OrdinaryDiffEq.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid; PR body/check metadata; gh pr checks 4807 --repo SciML/OrdinaryDiffEq.jl; issue bodies 4806 and 4733; gh run list --repo SciML/OrdinaryDiffEq.jl --branch master --event push --limit 5; and gh run view <id> --repo SciML/OrdinaryDiffEq.jl --log-failed for the four runs linked below. PR checks returned exit 1 because of failed jobs. The first log-fetch attempt failed because the default gh cache was read-only; fetching with a writable cache succeeded.

Inspected current-head CI: BDF Core, BDF LTS Core, BDF GPU, BDF QA, and BDF downgrade succeeded. Default ForwardDiff Jacobian evaluation also ran in the local tests.

Compared failed logs from PR CI and PR IntegrationTest with master CI and master IntegrationTest. The same AD LTS ReverseDiff tape error at test/AD/autodiff_events.jl:117, SciMLSensitivity Core2 unexpected passes at stiff_adjoints.jl:238 plus the tape error, and Core4 threaded-ensemble assertion mi2 !== nothing appeared on master. The PR's ModelingToolkit InterfaceI failure compared equations with reversed sides at components.jl:446; I did not establish an identical master failure for that job.

What I did not verify

No full package suite, Pkg.test(), local downstream suite, benchmark, or local GPU run. CI's GPU tests do not exercise insertion/deletion of GPU arrays; no GPU kernel or AD rule is changed here. Enzyme, Mooncake, Zygote differentiation through edits, Reactant, MPI, nonstandard state containers, and external NonlinearSolve configurations were not run locally. The base test stopped at the first new FBDF insertion error, so base deletion and QNDF cases were not individually verified. Composite continuation and a repaired implementation were not run; the demonstrated incorrect dimensions already violate the edit contract. The ModelingToolkit CI failure remains unresolved. No upstream comments, reviews, labels, or pushes were made.

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

ChrisRackauckas and others added 2 commits November 9, 2026 06:50
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.164.0
Agent-Model: gpt-6.1-sol
Agent-Session: local fixer job SciML__OrdinaryDiffEq.jl__4807 (no session URL)
Use the edited scratch-buffer length to apply state edits once across
composite caches. Resize each nonlinear subcache and verify retained
values and continuation for standalone and composite BDF solvers.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.164.0
Agent-Model: gpt-6.1-sol
Agent-Session: local fixer job SciML__OrdinaryDiffEq.jl__4807 (no session URL)
@ChrisRackauckas

Copy link
Copy Markdown
Member

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

PR: #4807

Reviewed head: 875b04a
Raw SHA-256: ffd8d56c82736813c35e0b5f1df14ba1479f81ed76c577f1b79b3e9c29c9a2b8
Source SHA-256: 6aa515535a88060418a397d1efbf43ee1fff50ce9fb48679ee021207c71f00fe
Source: standard-review-v1 (harness-log)
Reviewer session: 01a1d255-8895-7903-b261-80d3b4acbc3a
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes

Risk assessment

  • Risk: medium (M1)
  • Verdict: CHANGES
  • Reviewed head: 875b04a

Review report

VERDICT: CHANGES
Round: 1
Head: 875b04a
Slot: 1
CI: CI is not green (regress:sublibrary-ci / lib/OrdinaryDiffEqTaylorSeriesImplicit / Julia 1 / Tests - Core (Julia 1); sublibrary-ci / lib/OrdinaryDiffEqTaylorSeriesImplicit [QA] / Julia 1 / Tests - QA (Julia 1))
Session: 01a1d255-8895-7903-b261-80d3b4acbc3a

Risk

medium (M1: new SciMLBase state-edit hook methods change dispatch for existing FBDF calls, and composite resizing now visits previously unvisited nonlinear solvers; the affected operations are state-size edits, not default step control).

Blocking findings

  1. [P2] Resize each nonlinear subcache with its corresponding algorithm — lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl:1366. Source-based finding; not runtime-confirmed. The recursion changes cache while retaining the outer integrator.alg. Resizing an NLNewtonCache calls resize_jac_config!, which obtains its backend from alg_autodiff(integrator.alg). The composite overload selects alg.algs[end], irrespective of the subcache being resized. If the last member is explicit, its alg_autodiff fallback throws; different component AD backends also receive the wrong preparation context. The base implementation returned before this traversal for a CompositeCache.

    Unexecuted reproducer targeting the explicit-last case:

    using OrdinaryDiffEqBDF, OrdinaryDiffEqTsit5
    using OrdinaryDiffEqCore: CompositeAlgorithm
    f!(du, u, p, t) = (du .= -u; nothing)
    alg = CompositeAlgorithm((FBDF(), Tsit5()), i -> 2)
    integ = init(ODEProblem(f!, [1., 2., 3.], (0., 1.)), alg;
                 adaptive=false, dt=1/128)
    step!(integ)
    deleteat!(integ, [2])

    Expected failure from reading the call chain: This algorithm does not have an autodifferentiation option defined. Pass the matching component algorithm through nonlinear-cache resizing and test explicit-last composites and heterogeneous AD backends, including dormant members.

  2. [P2] Needs verification: affected suites and regression probes never executed — lib/OrdinaryDiffEqBDF/test/resize_tests.jl:59. The test admission runner waited one hour and exited 125 without starting Julia tests. The machine never simultaneously met the configured memory, load, and worker-count conditions. This leaves the changed shared-cache paths, retained-state assertions, analytic continuation, and the suspected regression above unverified. Run the BDF and NonlinearSolve Core suites, the resize tests, switching probes, and base-method controls before accepting this review. Missing execution evidence remains blocking.

  • Verdict: CHANGES
  • Round: 1
  • Blocking priorities: P2, P2
  • Deferred P2 issues: None supplied.

Non-blocking findings

None identified from the source review. No tests were deleted or loosened; the added continuation checks include an independent matrix-exponential reference.

What I ran

AI reviewer: Codex CLI 0.164.0, model gpt-6.1-sol. The actual session ID is above; no conversation URL is available.

  • git diff origin/master...HEAD, affected source/test reads, and the supplied risk criteria. No PR body, comments, author rating, or earlier review was read.
  • git rev-parse HEAD matched the required head. git status --porcelain was empty. git diff --check origin/master...HEAD completed successfully.
  • julia --version reported 1.13.2. No Julia manifest or interpreter pin exists in the checkout root or either affected subpackage.
  • uv run --locked python --version reported Python 3.15.0 and warned that --locked has no effect outside a project. No uv.lock or Python project is present.
  • Scratch-project Pkg.instantiate(); Pkg.status() succeeded with the runtime's layered JULIA_DEPOT_PATH preserved and automatic precompilation disabled. The environment uses checkout BDF 2.4.14, NonlinearSolve 2.9.10, and Core 4.20.1; its manifest records the resolved dependencies.
  • bash on scratch/run_tests.sh returned 125 after 121 admission samples over approximately 3,600 seconds. The last sample recorded load 20.05, MemAvailable 18,672,480 KiB, and five Julia job roots, leaving no test slot. Details are in scratch/test_driver.log.
  • Prepared scratch probes for explicit-last composites, mixed AD backends, edits followed by solver switching, and runtime restoration of the base resize methods. None ran. No checkout files were edited.

What I did not verify

The BDF and NonlinearSolve Core suites, direct resize tests, targeted probes, failing-before/passing-after controls, QA, other supported Julia versions, and the supplied TaylorSeriesImplicit CI failures. There is no passing runtime-test evidence from this review. A project-locked interpreter/dependency environment was unavailable; only scratch dependency instantiation completed. All commands started by this review have finished.

AUTHOR_GRADE: {"task":"bugfix","score":3,"difficulty":3,"rounds":1,"author_harness":"Codex CLI 0.164.0","author_model":"gpt-6.1-sol","note":"The patch adds independent analytic assertions, but source review identifies a lost component-algorithm context in recursive resizing. That concern is not runtime-confirmed: host admission limits prevented every affected suite and probe from starting."}

Head link: 875b04a


🤖 Posted by an AI agent — harness: codex-cli 0.164.0 · model: gpt-6.1-sol
Conversation: local session 01a1d255-8895-7903-b261-80d3b4acbc3a (no session URL)

Pair each composite subcache with its algorithm so Jacobian preparation uses
that component's AD backend. Cover explicit-last composites, mixed backends,
dormant members and solver switching after state-size edits.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.164.0
Agent-Model: gpt-6.1-sol
Agent-Session: local fixer job SciML__OrdinaryDiffEq.jl__4807 (no session URL)
@ChrisRackauckas

Copy link
Copy Markdown
Member

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

PR: #4807

Reviewed head: 4606ac0
Raw SHA-256: ce312a14a6685b61c16d4f0ee518aee0a668f9fe721bfeee715d52d2cd82cc4a
Source SHA-256: 93d679ad558e65d0948df286cc7eb78fbf2311fbec3ac6a818b32a4a3a5f5fd2
Source: standard-review-v1 (harness-log)
Reviewer session: 01a1d313-2baf-7f13-8aea-e89d18acef25
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes

Risk assessment

  • Risk: medium (M1)
  • Verdict: CHANGES
  • Reviewed head: 4606ac0

Review report

VERDICT: CHANGES
Round: 2
Head: 4606ac0
Slot: 1
CI: CI is not green
Session: 01a1d313-2baf-7f13-8aea-e89d18acef25

Risk

medium (M1: new specializations of SciMLBase state-edit hooks change existing FBDF dispatch; composite resizing also changes nonlinear-cache traversal).

Blocking findings

  1. [P2] Needs verification: the remaining NonlinearSolve Core tests and negative controls did not execute — lib/OrdinaryDiffEqNonlinearSolve/test/runtests.jl:40. The Core runner stopped at the Newton failure described below. The remaining 28 Core entries have no valid execution result from this review. My scratch negative-control and first continuation attempts had missing-import/include-binding errors; these are reviewer-harness errors, not PR defects. After correcting them, the retry made 121 admission samples over approximately one hour and exited 125 without starting Julia. Run the remaining Core entries and working pre-delta/base-dispatch controls before clearing this verification blocker. Missing evidence is ineligible for P2 deferral.

The prior component-algorithm concern is addressed in the delta's source, and the new current-head regression tests pass. No additional code defect was confirmed.

  • Verdict: CHANGES
  • Round: 2
  • Blocking priorities: P2
  • Deferred P2 issues: None supplied.

Non-blocking findings

  • Existing Newton test failure — lib/OrdinaryDiffEqNonlinearSolve/test/newton_tests.jl:14. Confirmed by running on the PR head and a pristine origin/master archive at 4460ff80dad621418e6e3a9b63e4afb2e1f5fc02, using the same resolved dependencies: each produced 4 passes, 1 error, with LineSearchException: Search direction is not a direction of descent. Step length: 0.0. Investigate this existing failure separately.

What I ran

AI review by Codex CLI 0.164.0, model gpt-6.1-sol; actual session ID above.

  • Read the whole PR diff, supplied delta, supplied old-head review, affected source/tests, and risk criteria. No PR body, comments, author rating, or other same-head review was read.
  • git diff --check origin/master...HEAD exited 0. Final git status --porcelain was empty; HEAD matched the required SHA. No checkout files were edited, and no commits, pushes, or GitHub posts were made.
  • julia --version: 1.13.2. uv run --locked python --version: Python 3.15.0, with the warning that --locked has no effect outside a project.
  • Instantiated a scratch environment with checkout source pins and the runtime's layered JULIA_DEPOT_PATH preserved. It used BDF 2.4.14, NonlinearSolve 2.9.10, Core 4.20.1, SciMLBase 3.58.0, and DifferentiationInterface 0.7.22.
  • julia --startup-file=no --compiled-modules=existing --project=../scratch/env ../scratch/setup.jl, through the resource guard, ran the test driver with GROUP=Core. Direct BDF resize tests: 84 passes. New composite resize tests: 192 passes. BDF Core: 2,695 passes, 2 existing broken assertions in an unchanged test file. NonlinearSolve Core: Developer API 27 passes, Anderson resize 352 passes, composite resize 192 passes, then Newton 4 passes, 1 error. The driver exited 1; its scratch negative-control attempt also failed before exercising its case.
  • Targeted probes: 122 passes, exercising Newton, functional, Anderson, NonlinearSolveAlg, and matrix-free caches with ForwardDiff/FiniteDiff, resizing, deletion, and solver switching. Nonlinear continuation checks used independent closed-form solutions and implicit-Euler quadratic roots.
  • julia --startup-file=no --compiled-modules=existing --check-bounds=yes --project=../scratch/base_env ../scratch/baseline_newton.jl reproduced the Newton exception on the pristine default-branch archive and exited 1.
  • The corrected continuation/negative-control retry exited 125 at admission. Its final sample recorded 5 Julia job roots, 19 GiB available RAM, and load 25.95. It executed none of its tests. All commands started by this review have finished.

What I did not verify

The remaining 28 NonlinearSolve Core entries, a successful failing-before negative control, QA, other Julia versions, GPU execution, or current CI failure causes. A project-locked interpreter/dependency environment was unavailable: the checkout has no Julia manifest/interpreter pin or Python project/uv.lock. The scratch manifest records this review's dependency resolution.

AUTHOR_GRADE: {"task":"bugfix","score":4,"difficulty":3,"rounds":2,"author_harness":"Codex CLI 0.164.0","author_model":"gpt-6.1-sol","note":"The component-algorithm context is consistent with the resize implementations and passes 192 new regression assertions and 122 targeted probe assertions. BDF Core passes. NonlinearSolve Core encounters a failure also reproduced on the default branch; remaining Core coverage and valid negative controls were unavailable after admission timed out."}

Head link: 4606ac0


🤖 Posted by an AI agent — harness: codex-cli 0.164.0 · model: gpt-6.1-sol
Conversation: local session 01a1d313-2baf-7f13-8aea-e89d18acef25 (no session URL)

Resolve the BDF test conflict by keeping both the FBDF edit tests and upstream QNDF history tests. Pin the NonlinearSolve test environment to the repository BDF and Tsit5 sources so composite resize tests exercise the changed hooks.

Co-Authored-By: Chris Rackauckas <[email protected]>

Co-Authored-By: Codex <[email protected]>

Agent-Harness: Codex CLI 0.170.0

Agent-Model: gpt-6-luna

Agent-Job: SciML__OrdinaryDiffEq.jl__4807--20261121T144046Z-codex-gpt-6-luna

Agent-Session: local session 01a1fe8d-ab96-7f62-9a0f-d96e0166a647 (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.

Fails to precompile with ChainRules 1.74.11: non-boolean Symbolics.Num in the tanh rule

2 participants