Repository navigation
Export the CommonSolve verbs again, and drop the undocumented reexports - #1476
Merged
ChrisRackauckas merged 1 commit intoJul 29, 2026
Conversation
ChrisRackauckas-Claude
force-pushed
the
agent/restore-export-surface
branch
from
July 29, 2026 01:45
b183a90 to
05fded4
Compare
ChrisRackauckas-Claude
force-pushed
the
agent/restore-export-surface
branch
2 times, most recently
from
July 29, 2026 10:03
ddeab65 to
939b944
Compare
SciML#1472 removed 39 names from the export surface. Restore only the four the SciML solve interface is written in, and allow-list them in QA rather than deleting public API: solve, solve!, init, step! Everything else SciML#1472 dropped stays dropped, because SciMLBase does not document any of it: - The SciMLOperators reexport has no `@docs` entry anywhere in `docs/src`. Those names are documented at SciMLOperators, which owns them. - `deleteat!` is documented only as a method on the Base function, and resolves through Base in any scope, so dropping the export changes nothing for callers. - `AllObserved` was a const alias whose docstring and rendered entry documented a RecursiveArrayTools name. The const, docstring, docs entry, and export all go. Dropping the reexport does break released packages that reach these names through `using SciMLBase`. Scanning the registered packages that depend on SciMLBase finds 18 affected, including SciMLSensitivity, Symbolics, ModelingToolkit, Catalyst, and several OrdinaryDiffEq sublibraries. They are handled by a General retrocap rather than by keeping the names here. `GROUP=QA` passes 35/35 on Julia 1.12. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DFVmGLPUsWbRgkLJckxUGy
ChrisRackauckas-Claude
force-pushed
the
agent/restore-export-surface
branch
from
July 29, 2026 10:21
939b944 to
0266425
Compare
This was referenced Jul 29, 2026
Member
Author
|
Independent corroboration that this is needed, from an unrelated PR's CI. #1474 is rebased on So the dropped |
ChrisRackauckas
marked this pull request as ready for review
July 29, 2026 10:42
This was referenced Jul 29, 2026
Merged
Merged
ChrisRackauckas-Claude
pushed a commit
to ChrisRackauckas-Claude/General
that referenced
this pull request
Jul 29, 2026
… names
SciMLBase 3.40.0 removes names it was reexporting on behalf of other
packages:
SciMLOperators isconstant, islinear, issquare, has_adjoint,
update_coefficients, update_coefficients!,
MatrixOperator, ScalarOperator
ConstructionBase setproperties
The versions capped here reach at least one of those names through
SciMLBase rather than importing it from the owning package, so they fail
to precompile or throw UndefVarError against SciMLBase 3.40.0. Because
the removal ships in a minor release, any compat entry admitting 3.40.0
would otherwise resolve to it.
Each affected entry is capped at 3.39 -- the last SciMLBase carrying the
full export surface. Entries already bounded below 3.40 are untouched,
and entries covering versions that import from the owning package are
deliberately left open so the fixed releases resolve forward normally.
Coverage is determined per version from the source, not assumed from the
newest release at the time of writing:
DiffEqBase 7.0.0-7.9.0 import update_coefficients! from
SciMLBase; 7.10.0 imports it from SciMLOperators,
so the cap ends at 7.9 and 7.10+ stays open.
OrdinaryDiffEqCore 4.0.0-4.11.0 import islinear from SciMLBase;
4.12.0 imports it from SciMLOperators, so the cap
covers through 4.11 and 4.12+ stays open.
Rosenbrock <=2.6.0 capped; 2.6.1 needs no cap.
FiniteVolumeMethod 1.2.1 as well as 1.2.2-1.2.3 take MatrixOperator
from SciMLBase.
Verified mechanically: all 14 files parse as TOML; no dependency has
overlapping entries setting it twice for one version; and for every
registered version of every touched package the effective compat is
byte-identical to before except for the SciMLBase upper bound.
The corresponding SciMLBase change is
SciML/SciMLBase.jl#1476.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VNsHcCmMeNCWuN8BNR8RJr
ChrisRackauckas
added a commit
to JuliaRegistries/General
that referenced
this pull request
Jul 30, 2026
… names (#162635) SciMLBase 3.40.0 removes names it was reexporting on behalf of other packages: SciMLOperators isconstant, islinear, issquare, has_adjoint, update_coefficients, update_coefficients!, MatrixOperator, ScalarOperator ConstructionBase setproperties The versions capped here reach at least one of those names through SciMLBase rather than importing it from the owning package, so they fail to precompile or throw UndefVarError against SciMLBase 3.40.0. Because the removal ships in a minor release, any compat entry admitting 3.40.0 would otherwise resolve to it. Each affected entry is capped at 3.39 -- the last SciMLBase carrying the full export surface. Entries already bounded below 3.40 are untouched, and entries covering versions that import from the owning package are deliberately left open so the fixed releases resolve forward normally. Coverage is determined per version from the source, not assumed from the newest release at the time of writing: DiffEqBase 7.0.0-7.9.0 import update_coefficients! from SciMLBase; 7.10.0 imports it from SciMLOperators, so the cap ends at 7.9 and 7.10+ stays open. OrdinaryDiffEqCore 4.0.0-4.11.0 import islinear from SciMLBase; 4.12.0 imports it from SciMLOperators, so the cap covers through 4.11 and 4.12+ stays open. Rosenbrock <=2.6.0 capped; 2.6.1 needs no cap. FiniteVolumeMethod 1.2.1 as well as 1.2.2-1.2.3 take MatrixOperator from SciMLBase. Verified mechanically: all 14 files parse as TOML; no dependency has overlapping entries setting it twice for one version; and for every registered version of every touched package the effective compat is byte-identical to before except for the SciMLBase upper bound. The corresponding SciMLBase change is SciML/SciMLBase.jl#1476. Claude-Session: https://claude.ai/code/session_01VNsHcCmMeNCWuN8BNR8RJr Co-authored-by: ChrisRackauckas-Claude <[email protected]> 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.
Ignore until reviewed by @ChrisRackauckas.
Stacked on #1475 — review that one first; this branch contains its commit.
What this keeps
#1472 removed
solve,solve!,init, andstep!from the export surface. Those four are the SciML solve interface as users and solver packages write it, and they are documented here, so this exports them again and allow-lists them in QA rather than dropping them.What stays removed
Everything else #1472 dropped stays dropped, because none of it is documented by SciMLBase. Checked rather than assumed:
The SciMLOperators reexport (
MatrixOperator,FunctionOperator,ScalarOperator,IdentityOperator,NullOperator,AffineOperator,DiagonalOperator,TensorProductOperator,WOperator,AddVector,BlockDiagonalOperator,InvertibleOperator,StaticWOperator,TensorSumOperator,cache_operator,concretize,isconstant,iscached,islinear,issquare,isconvertible,kronsum,has_adjoint,has_concretization,has_exp,has_expmv(!),has_ldiv(!),has_mul(!),update_coefficients(!),SciMLOperators) — zero@docsentries anywhere indocs/src. These are documented at SciMLOperators, which owns them.deleteat!— documented only as a method on the Base function,Base.deleteat!(::SciMLBase.DEIntegrator, ::Any)inInit_Solve.md. The export was redundant:deleteat!resolves through Base in any scope, so dropping it changes nothing for callers. Verified both halves — in ausing SciMLBasemoduledeleteat!still resolves toBase.deleteat!, and SciMLBase still contributes itsDEIntegratormethod.AllObserved— this one was documented, atSymbolic_SaveIdxs.md. But it is a const alias for the RecursiveArrayTools selector, so the docstring and rendered entry were documenting a name SciMLBase does not own. The const, its docstring, the@docsentry, and the export all go.Net effect on the export surface
Measured with
names(SciMLBase)against both baselines:init,solve,solve!,step!restored;AllObservedremoved.AllObservedanddeleteat!.So this is still a reduction in the export surface relative to 3.40.0, and
AllObservedis the one name that genuinely leaves user scope. Worth a deliberate call on whether 3.41.0 is the right version number for that, since the removals now stand on "not documented here" rather than on SemVer.Verification
GROUP=QAon Julia 1.12: 35/35.Pkg.test()running.Also carries the
SciMLTestingcompat move to"2.6"from the parent commit.🤖 Generated with Claude Code
https://claude.ai/code/session_01DFVmGLPUsWbRgkLJckxUGy