Skip to content

Export the CommonSolve verbs again, and drop the undocumented reexports - #1476

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/restore-export-surface
Jul 29, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/restore-export-surface

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

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, and step! 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 @docs entries anywhere in docs/src. These are documented at SciMLOperators, which owns them.

  • deleteat! — documented only as a method on the Base function, Base.deleteat!(::SciMLBase.DEIntegrator, ::Any) in Init_Solve.md. The export was redundant: deleteat! resolves through Base in any scope, so dropping it changes nothing for callers. Verified both halves — in a using SciMLBase module deleteat! still resolves to Base.deleteat!, and SciMLBase still contributes its DEIntegrator method.

  • AllObserved — this one was documented, at Symbolic_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 @docs entry, and the export all go.

Net effect on the export surface

Measured with names(SciMLBase) against both baselines:

  • vs. current master: init, solve, solve!, step! restored; AllObserved removed.
  • vs. pre-Make strict QA owner-contract clean #1472 (3.40.0): 36 names still removed, being the 34 SciMLOperators names plus AllObserved and deleteat!.

So this is still a reduction in the export surface relative to 3.40.0, and AllObserved is 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=QA on Julia 1.12: 35/35.
  • Runic clean.
  • Full Pkg.test() running.

Also carries the SciMLTesting compat move to "2.6" from the parent commit.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DFVmGLPUsWbRgkLJckxUGy

@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the agent/restore-export-surface branch from b183a90 to 05fded4 Compare July 29, 2026 01:45
@ChrisRackauckas-Claude ChrisRackauckas-Claude changed the title Keep the public export surface, and allow-list it in QA instead Export the CommonSolve verbs again, and drop the undocumented reexports Jul 29, 2026
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the agent/restore-export-surface branch 2 times, most recently from ddeab65 to 939b944 Compare July 29, 2026 10:03
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

Copy link
Copy Markdown
Member Author

Independent corroboration that this is needed, from an unrelated PR's CI.

#1474 is rebased on e0733ef (which includes b9c3507) and touches nothing related to exports — its src/SciMLBase.jl diff contains no line mentioning solve. Its OrdinaryDiffEq.jl/Core downstream job nonetheless fails:

Plot Vars: Error During Test at SafeTestsets.jl:30
  LoadError: UndefVarError: `solve` not defined
  in expression starting at downstream/lib/DiffEqBase/test/plot_vars.jl:18

So the dropped export solve, solve!, init, … from #1472 is breaking downstream using SciMLBase consumers in CI right now, not just in principle. This PR's +export solve, solve!, init, step!, discretize, symbolic_discretize is exactly what those consumers need.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 29, 2026 10:42
@ChrisRackauckas
ChrisRackauckas merged commit 8e770b8 into SciML:master Jul 29, 2026
32 of 63 checks passed
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]>
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.

2 participants