Repository navigation
Require SciMLBase 3.46 in OrdinaryDiffEqBDF and OrdinaryDiffEqNonlinearSolve - #4426
Merged
ChrisRackauckas merged 1 commit intoAug 29, 2026
Conversation
OrdinaryDiffEqBDF and OrdinaryDiffEqNonlinearSolve reference SciMLBase.AutoDespecialize and SciMLBase.DespecializedParameters, both of which were introduced in SciMLBase v3.46.0, while declaring lower bounds of 3.39 and 3.43 respectively. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Agent-Harness: Claude Code 2.0.14 Agent-Model: claude-opus-5[1m] Agent-Session: https://claude.ai/code/session_016yBsJDGXDqPHqaJCVzpyr9
ChrisRackauckas
marked this pull request as ready for review
August 29, 2026 13:24
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 11, 2026
- Format clean-master drift with Runic 1.10 (#4423) - Reformat six files for Runic 1.10 (#4424) - Refresh FSAL derivatives after solve-level step limiters (#4035) - Require SciMLBase 3.46 where AutoDespecialize is used (#4426) - Document the limiter keywords with their real names (#4427) - Tighten the AdaptiveRadau Newton tolerance with the stage count (#4431) - Fix the AitkenNeville evaluation count and array states (#4428) - Fix crashes when a cache holds a vector of nonlinear solvers (#4345) - Tag the AD type for adaptive exponential algorithms (#4429) - Release 7.20.0 (#4432) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Please ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed and why
OrdinaryDiffEqBDFandOrdinaryDiffEqNonlinearSolveboth reference SciMLBase names that were introduced in SciMLBase v3.46.0, while declaring lower bounds below it:lib/OrdinaryDiffEqBDF/src/OrdinaryDiffEqBDF.jl:152SciMLBase.AutoDespecializeSciMLBase = "3.39"3.46lib/OrdinaryDiffEqNonlinearSolve/src/newton.jl:149SciMLBase.AutoDespecialize,SciMLBase.DespecializedParametersSciMLBase = "3.43"3.46AutoDespecializewas added in SciMLBase 3.46.0, with no releases between 3.45.0 and 3.46.0, so 3.46.0 is the exact floor:DespecializedParametersfollows the same boundary (0 occurrences in 3.43.0, 4 in 3.46.0).Each sublibrary gets a patch bump so the corrected bound reaches the registry.
Honest scope: this is not a live failure from
masterOn
masterthese bounds are currently masked and do not produce a resolution failure.OrdinaryDiffEqBDFrequiresOrdinaryDiffEqCore = "4.15.1", andOrdinaryDiffEqCore≥ 4.15.2 itself requiresSciMLBase = "3.49.2 - 3", so SciMLBase cannot fall below 3.49.2 in that dependency set regardless of what BDF declares. My attempt to build a failing-before case againstmasterconfirmed this — the resolver rejected the pin for the transitive reason, not the declared one:So this PR is correctness hygiene: it makes each package's declared bound reflect the symbols it actually uses, instead of depending on a sibling's stricter constraint that could be relaxed later. I am not claiming it fixes a currently-reachable bug on
master.Where the too-low bound is reachable is in already-registered versions whose
OrdinaryDiffEqCorebound is looser —OrdinaryDiffEqBDF2.4.3/2.4.4 declareOrdinaryDiffEqCore = "4.12.0 - 4", which lets the resolver walk back to 4.14.1 and admit SciMLBase 3.39.1:That is being addressed separately by a retroactive registry compat fix: JuliaRegistries/General#166465. This PR is the forward-looking half, so future releases carry a truthful bound.
Verification
Both sublibraries dev'd from this branch and precompiled with
strict = true, confirming the raised bound does not disturb normal resolution:typosclean on both changed files.What I did not verify
OrdinaryDiffEqNonlinearSolvereference is a latent runtime path, not a load-time one. It sits inside a function body on the opt-inNonlinearSolveAlgpath, so[email protected]precompiles cleanly against SciMLBase 3.43.0 (verified, exit=0). I did not construct a runtime reproduction of it.For a reviewer to push back on
Whether the patch bumps are the right SemVer call — raising a lower compat bound restricts what downstream can resolve, and if you would rather these be minor bumps, say so and I will change them.
🤖 Generated with Claude Code (model: claude-opus-5[1m])
https://claude.ai/code/session_016yBsJDGXDqPHqaJCVzpyr9