Skip to content

Replace DataStructures.jl with BinaryHeaps.jl to cut invalidations - #3407

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:replace-datastructures-with-binaryheaps
May 30, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:replace-datastructures-with-binaryheaps

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

Swaps the DataStructures dependency for the new lightweight SciML/BinaryHeaps.jl, which contains the same BinaryHeap / BinaryMinHeap / FasterForward code extracted directly from DataStructures.jl (same upstream source, MIT-licensed, original copyright preserved).

Depends on: SciML/BinaryHeaps.jl#1 being merged and v1.0.0 registered in General.

Motivation

Loading DataStructures.jl causes 6 method invalidation trees from code that is completely unrelated to heap functionality:

Tree 1: kwcall(...sort!...LittleDict...) @ OrderedCollections
Tree 2: get!(h::OrderedDict...)          @ OrderedCollections
Tree 3: merge!(ct::Accumulator...)       @ DataStructures
Tree 4: getkey(dd::LittleDict...)        @ OrderedCollections
Tree 5: Base.IteratorSize(...SortedDict/SortedMultiDict/SortedSet...) @ DataStructures
Tree 6: merge(m::SortedMultiDict...)     @ DataStructures

OrdinaryDiffEq only uses BinaryHeap{T}(FasterForward()), BinaryMinHeap{T}, push!, pop!, first, isempty, empty!, sizehint! — a tiny slice of DataStructures. Pulling in the full package costs 6 invalidation trees and their associated first-call latency for zero benefit.

BinaryHeaps.jl provides the exact same API with zero invalidations.

Changes

  • OrdinaryDiffEqCore: using DataStructures: BinaryHeap, FasterForward → using BinaryHeaps: BinaryHeap, FasterForward; three DataStructures.FasterForward() → FasterForward() in solve.jl.
  • DelayDiffEq: using DataStructures: BinaryMinHeap → using BinaryHeaps: BinaryMinHeap.
  • StochasticDiffEqCore: removed the DataStructures import (it was unused — nothing from the package was referenced).
  • Project.tomls: swap dep/compat entries accordingly; top-level OrdinaryDiffEq/Project.toml drops the unused DataStructures entry.

Diff is 8 files, +10 / -15 lines.

Verification

Locally tested with BinaryHeaps.jl dev-installed:

  • OrdinaryDiffEqTsit5 loads and runs with tstops/saveat (both use BinaryHeap{T}(FasterForward())):
    sol = solve(prob, Tsit5(); tstops=[0.3, 0.6], saveat=[0.25, 0.75])  # ✓ ok
  • DelayDiffEq loads and runs a DDE with a constant lag (uses BinaryMinHeap for propagated discontinuities):
    sol = solve(DDEProblem(...; constant_lags=[1.0]), MethodOfSteps(Tsit5()))  # ✓ ok

Test plan

  • All touched subpackages load without errors
  • Basic ODE solve with tstops/saveat works
  • Basic DDE solve with constant_lags works
  • Full CI passes (awaits BinaryHeaps.jl registration)

🤖 Generated with Claude Code

@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the replace-datastructures-with-binaryheaps branch from 97655a9 to 59fb380 Compare May 27, 2026 09:11
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Rebased on current master (8cf2552).

Conflict resolution notes:

  • Top-level Project.toml: DataStructures had already been removed on master, so no PR-side change was needed.
  • lib/OrdinaryDiffEqCore/Project.toml: replaced DataStructures with BinaryHeaps in [deps] and [compat]; kept master's removal of Static (the orig PR's preserve-Static line was an artifact of the older master).
  • lib/DelayDiffEq/Project.toml: replaced DataStructures with BinaryHeaps; kept master's DiffEqBase = "7" (orig PR was against 6.209).
  • lib/StochasticDiffEqCore/Project.toml: dropped the now-unreferenced DataStructures [compat] entry (deps already had it removed on master); kept master's DiffEqBase = "7".

BinaryHeaps.jl v1.0.0 is registered in General, so CI can now resolve.

Verified locally on Julia 1.11:

  • OrdinaryDiffEqTsit5 precompiles and solve(prob, Tsit5(); tstops, saveat) works.
  • DelayDiffEq precompiles and solve(DDEProblem(...; constant_lags=[1.0]), MethodOfSteps(Tsit5())) works.
  • StochasticDiffEqCore precompiles and loads cleanly after dropping the unused DataStructures import.
  • Runic check passes on all four modified .jl files.

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Triaged the CI failures — none are PR-induced.

Local same-test comparison on Julia 1.11 with lib/DelayDiffEq/test/interface/multi_algorithm.jl's Constant delays set (both prob_dde_constant_2delays iip vs scalar):

Algorithm master (no PR) PR 3407 (this branch)
BS3, Tsit5, RK4, Vern6, TRBDF2, KenCarp4, Rosenbrock23, Rodas4 iip and scalar timestep counts match identical match
SDIRK2 MISMATCH: iip=11, scalar=36 timesteps MISMATCH: iip=11, scalar=36 timesteps

So the DimensionMismatch failures in the DDE/SDIRK test suites are a pre-existing master bug in the SDIRK iip-vs-scalar path, unrelated to swapping DataStructures → BinaryHeaps (and confirmed numerically identical heap behavior).

The rest of the red checks, classified:

  • runic — fails on docs/make.jl, lib/OrdinaryDiffEqRosenbrock/src/{OrdinaryDiffEqRosenbrock.jl,algorithms.jl,rosenbrock_caches.jl}, lib/OrdinaryDiffEqRosenbrockTableaus/src/rosenbrock_tableaus.jl, and lib/OrdinaryDiffEqSDIRK/src/sdirk_perform_step.jl/test/tableau_consistency_tests.jl. All pre-existing on master (re-ran Runic against upstream/master to confirm). Files I touched are all clean.
  • Self-hosted runner registry corruption — many jobs fail with expected package X to be registered for varying X (FastBroadcast, ADTypes, SciMLBase, ODEInterface, CoverageTools, FunctionWrappers, Registry.toml: No such file). Affected: OrdinaryDiffEqTsit5, *_QA jobs, InterfaceIV/pre, ODEInterfaceRegression/lts, Regression_I/pre, GPU jobs. CI infra, not the PR.
  • *lts DelayDiffEq + Rosenbrock-dependent jobs — fail Pkg resolve because OrdinaryDiffEqRosenbrockTableaus is at path-local v2.1.0 but the registry only has up to v2.0.0 and OrdinaryDiffEqRosenbrock compats "2.1". Sublib version bump that hasn't been registered yet. Pre-existing on master.

Confirmed green on this PR: build, benchmark (1) & benchmark (lts), Documentation, Spell Check, all four ModelingToolkit.jl/* downstreams, DiffEqCallbacks.jl/All, ProbNumDiffEq.jl/Downstream, PositiveIntegrators.jl/Downstream, SciMLSensitivity.jl/Core{2..5} (Core1 still pending at time of writing), and the test (AD/AlgConvergence/Downstream/Sublibrary CI ...) jobs that don't hit the broken self-hosted runners.

PR should be reviewable as-is.

ChrisRackauckas added a commit that referenced this pull request May 27, 2026
`benchmark.yml` already pins the depot path with the comment "Force
consistent Julia depot path for self-hosted runners" (#3577). The
same workaround is needed in `CI.yml` and `SublibraryCI.yml`, where
self-hosted runners labeled `ubuntu-latest` (demeter3-*, deepsea4-*)
intermittently fail with `expected package X to be registered`
(X = FastBroadcast / ADTypes / SciMLBase / CoverageTools / etc.)
during `Pkg.develop`.

Mechanism (reconstructed from a SublibraryCI log on PR #3407 where
this fired):

1. The "Refresh General registry" step runs `julia --project=. {0}`
   with no env, so DEPOT_PATH defaults to `~/.julia` =
   `/home/chrisrackauckas/.julia`. `Pkg.Registry.add(General.git)`
   writes the fresh registry there. (Log shows the pidfile at
   `/home/chrisrackauckas/.julia/registries/.pid`.)
2. `julia-actions/julia-runtest@v1` invokes Julia through the action
   wrapper, which on a self-hosted runner picks up the runner-injected
   `JULIA_DEPOT_PATH=~/github-runners/<name>/.julia` instead. (Log
   shows "Updating registry at
   ~/github-runners/demeter3-12/.julia/registries/HolyLabRegistry".)
3. That per-runner depot is missing the General registry refreshed in
   step 1, so `Pkg.develop` fails with "expected package FastBroadcast
   [7034ab61] to be registered".

Pinning `JULIA_DEPOT_PATH: ~/.julia` at the job level forces every
step (refresh, buildpkg, runtest) to read and write the same depot,
so the freshly-added General registry is visible to subsequent
resolve calls.

This is the same fix `benchmark.yml` already deploys, just extended
to the other two workflows that run against self-hosted runners.

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Swaps the `DataStructures` dependency for the lightweight
[BinaryHeaps.jl](https://github.com/SciML/BinaryHeaps.jl) package, which
contains the same `BinaryHeap` / `BinaryMinHeap` / `FasterForward` code
extracted from DataStructures.jl (same upstream source).

DataStructures.jl causes 6 method invalidation trees (from unrelated
OrderedCollections, Accumulators, and SortedContainers code).
BinaryHeaps.jl causes zero invalidations.

Changes:
- OrdinaryDiffEqCore: `using DataStructures: BinaryHeap, FasterForward`
  → `using BinaryHeaps: BinaryHeap, FasterForward`; drop
  `DataStructures.FasterForward()` qualifier.
- DelayDiffEq: `using DataStructures: BinaryMinHeap`
  → `using BinaryHeaps: BinaryMinHeap`.
- StochasticDiffEqCore: removed unused `DataStructures` import.
- Project.tomls updated accordingly; top-level `OrdinaryDiffEq/Project.toml`
  drops the unused `DataStructures` entry.

Requires BinaryHeaps.jl v1.0.0 to be registered.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the replace-datastructures-with-binaryheaps branch from 59fb380 to 6832c78 Compare May 27, 2026 14:42
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Rebased onto current master (a95ca3674) — clean fast-forward, no conflicts. The base now includes:

So this PR's CI will be a clean test of the BinaryHeaps swap on its own, free of the pre-existing master noise documented in the earlier triage comment.

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

CI iteration result (after master fixes merged)

Pass / fail breakdown: 204 pass / 17 fail / 1 still-pending-after-2h (SciMLSensitivity Core1, unrelated to PR).

The 17 failures classify as:

16 / 17 — self-hosted runner registry corruption (not PR-induced)

The depot-path pin from #3691 is working (every job's env block shows JULIA_DEPOT_PATH: ~/.julia consistently), and the explicit Pkg.Registry.rm/add(General.git) refresh step runs cleanly on every job. But on certain self-hosted runners the General registry git clone is physically corrupt or incomplete on disk in ways the refresh step can't recover from, surfacing as four different fingerprints depending on what's missing:

  • expected package X to be registered — General registry refreshed successfully but later Pkg.test's sub-resolve re-reads it and X isn't in the index. X observed across failures: BinaryHeaps, CoverageTools, SciMLBase, MuladdMacro, ForwardDiff, JET, GPUArraysCore.
  • GitError(Code:ENOTFOUND, Class:Reference, reference 'HEAD' not found) — General clone has .git/ but no HEAD (e.g. OrdinaryDiffEqRosenbrock_QA on deepsea4-13).
  • GitError(Code:ENOTFOUND, Class:Repository, could not find repository at '~/.julia/registries/General') — the registry directory exists but isn't a git repo (OrdinaryDiffEqExtrapolation).
  • SystemError: opening file "~/.julia/registries/General/<X>/Package.toml": No such file or directory — partial clone, individual Package.toml files missing (OrdinaryDiffEqLinear_QA on deepsea4-30: A/ANSIColoredPrinters; OrdinaryDiffEqAMF on deepsea4-XX: A/Adapt).

These need runner-side cleanup (rm -rf ~/.julia/registries/General && julia -e 'using Pkg; Pkg.Registry.add(General)' on each affected runner), not a repo change.

1 / 17 — real pre-existing master bug: ABDF2 convergence regression

test (OrdinaryDiffEqNonlinearSolve_ModelingToolkit, 1) runs on a GitHub-hosted runner (not self-hosted) and fails with:

NLStep Tests: Test Failed at lib/OrdinaryDiffEqNonlinearSolve/test/modelingtoolkit/nlstep_tests.jl:52
  Expression: abs(sim.𝒪est[:l∞] - 2) < 0.2
   Evaluated: 0.4658092092110895 < 0.2

That's ABDF2 measured convergence order 𝒪est ≈ 1.534 on a 1D-reduced MTK-teared Robertson, expected 2.0. Same failure at line 108 (autonomous Robertson) with 𝒪est ≈ 1.534.

Suspect commit: #3656 ("Migrate ABDF2 eulercache to ESDIRKIMEXCache, drop legacy IE caches"). Confirmed same failure on previous PR 3407 run, on PR 3681, and on master directly — pre-existing, unrelated to the BinaryHeaps swap.

Confirmed PR-induced or PR-touched tests, all GREEN

  • OrdinaryDiffEqCore_QA ✓ (the sublib I changed)
  • OrdinaryDiffEqCore (sublib direct test) ✓ on both Julia 1.11 and pre
  • StochasticDiffEqCore and StochasticDiffEqCore_QA ✓ (the DataStructures removal there is clean)
  • DelayDiffEq_Integrators on Julia 1, 1.11, lts, pre ✓ (the swap doesn't perturb DDE)
  • DelayDiffEq_SDDE ✓
  • OrdinaryDiffEqTsit5 ✓ (uses BinaryHeap{T}(FasterForward()))
  • All downstream sensitivity / MTK / DiffEqCallbacks / PositiveIntegrators / ProbNumDiffEq ✓
  • build ✓, benchmark (1) ✓, benchmark (lts) ✓, Documentation ✓, Spell Check ✓, runic ✓

The PR's content (DataStructures → BinaryHeaps) is functionally clean. Ready to merge whenever you're ready; the red checks are master noise that aren't reachable from a code change here.

@ChrisRackauckas
ChrisRackauckas merged commit c58846d into SciML:master May 30, 2026
206 of 224 checks passed
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/OrdinaryDiffEq.jl that referenced this pull request Jun 27, 2026
Convert every QA environment in the monorepo to SciMLTesting 1.6 `run_qa`
and enable the ExplicitImports checks.

- root test/qa/qa_tests.jl -> run_qa(OrdinaryDiffEq; aqua = false,
  explicit_imports = true, ...); preserves the umbrella's EI-only scope and
  adds a small all_explicit_imports_are_public ignore-list. SciMLTesting
  compat -> "1.6", ExplicitImports dropped (transitive).
- 47 sublibrary test/qa/qa.jl -> run_qa(<Sublib>; ...). Aqua sub-check
  disables preserved as aqua_kwargs. StochasticDiffEq*/`*Tableaus` keep JET
  inline via `using JET` + jet_kwargs = (; target_defined_modules = true);
  solver sublibs keep their separate jet.jl. explicit_imports = true on every
  env, with internal-API findings recorded as ei_broken (0 hard EI failures;
  tracked in SciML#3776; auto-flags once upstream make-public lands).
- DelayDiffEq test/qa/qa_tests.jl -> run_qa preserving its treat_as_own piracy
  and recursive=false ambiguities config and EI ignore-lists.
- Each test/qa/Project.toml gains SciMLTesting = "1.6"; [sources]/develop
  wiring untouched.

Fixes folded in (FIX > IGNORE > BROKEN):
- StochasticDiffEqLevyArea: drop stale `using Random: Xoshiro`.
- OrdinaryDiffEqCore: drop unused DataStructures dep (replaced by BinaryHeaps
  in SciML#3407, left in [deps]/[compat]); Aqua stale_deps now passes.

Verified locally vs released SciMLTesting 1.6.0: root 6/6 pass;
StochasticDiffEqLevyArea 18/18 pass; OrdinaryDiffEqTsit5 13 pass/4 broken;
OrdinaryDiffEqCore 9 pass/6 broken; all 0 hard fail.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/OrdinaryDiffEq.jl that referenced this pull request Jul 3, 2026
Convert every QA environment in the monorepo to SciMLTesting 1.6 `run_qa`
and enable the ExplicitImports checks.

- root test/qa/qa_tests.jl -> run_qa(OrdinaryDiffEq; aqua = false,
  explicit_imports = true, ...); preserves the umbrella's EI-only scope and
  adds a small all_explicit_imports_are_public ignore-list. SciMLTesting
  compat -> "1.6", ExplicitImports dropped (transitive).
- 47 sublibrary test/qa/qa.jl -> run_qa(<Sublib>; ...). Aqua sub-check
  disables preserved as aqua_kwargs. StochasticDiffEq*/`*Tableaus` keep JET
  inline via `using JET` + jet_kwargs = (; target_defined_modules = true);
  solver sublibs keep their separate jet.jl. explicit_imports = true on every
  env, with internal-API findings recorded as ei_broken (0 hard EI failures;
  tracked in SciML#3776; auto-flags once upstream make-public lands).
- DelayDiffEq test/qa/qa_tests.jl -> run_qa preserving its treat_as_own piracy
  and recursive=false ambiguities config and EI ignore-lists.
- Each test/qa/Project.toml gains SciMLTesting = "1.6"; [sources]/develop
  wiring untouched.

Fixes folded in (FIX > IGNORE > BROKEN):
- StochasticDiffEqLevyArea: drop stale `using Random: Xoshiro`.
- OrdinaryDiffEqCore: drop unused DataStructures dep (replaced by BinaryHeaps
  in SciML#3407, left in [deps]/[compat]); Aqua stale_deps now passes.

Verified locally vs released SciMLTesting 1.6.0: root 6/6 pass;
StochasticDiffEqLevyArea 18/18 pass; OrdinaryDiffEqTsit5 13 pass/4 broken;
OrdinaryDiffEqCore 9 pass/6 broken; all 0 hard fail.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ChrisRackauckas added a commit that referenced this pull request Jul 5, 2026
* QA: run_qa v1.6 form + ExplicitImports (root + sublibs)

Convert every QA environment in the monorepo to SciMLTesting 1.6 `run_qa`
and enable the ExplicitImports checks.

- root test/qa/qa_tests.jl -> run_qa(OrdinaryDiffEq; aqua = false,
  explicit_imports = true, ...); preserves the umbrella's EI-only scope and
  adds a small all_explicit_imports_are_public ignore-list. SciMLTesting
  compat -> "1.6", ExplicitImports dropped (transitive).
- 47 sublibrary test/qa/qa.jl -> run_qa(<Sublib>; ...). Aqua sub-check
  disables preserved as aqua_kwargs. StochasticDiffEq*/`*Tableaus` keep JET
  inline via `using JET` + jet_kwargs = (; target_defined_modules = true);
  solver sublibs keep their separate jet.jl. explicit_imports = true on every
  env, with internal-API findings recorded as ei_broken (0 hard EI failures;
  tracked in #3776; auto-flags once upstream make-public lands).
- DelayDiffEq test/qa/qa_tests.jl -> run_qa preserving its treat_as_own piracy
  and recursive=false ambiguities config and EI ignore-lists.
- Each test/qa/Project.toml gains SciMLTesting = "1.6"; [sources]/develop
  wiring untouched.

Fixes folded in (FIX > IGNORE > BROKEN):
- StochasticDiffEqLevyArea: drop stale `using Random: Xoshiro`.
- OrdinaryDiffEqCore: drop unused DataStructures dep (replaced by BinaryHeaps
  in #3407, left in [deps]/[compat]); Aqua stale_deps now passes.

Verified locally vs released SciMLTesting 1.6.0: root 6/6 pass;
StochasticDiffEqLevyArea 18/18 pass; OrdinaryDiffEqTsit5 13 pass/4 broken;
OrdinaryDiffEqCore 9 pass/6 broken; all 0 hard fail.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* QA: drop now-redundant umbrella public-API EI ignore-list

SciMLTesting 1.7.0 runs the two public-API ExplicitImports checks
(check_all_qualified_accesses_are_public,
check_all_explicit_imports_are_public) only on Julia >= 1.11, and the
base-lib make-public releases (CommonSolve 0.2.9 made init/solve/solve!/
step! public; SciMLBase 3.24.0 made successful_retcode public) now declare
the umbrella's re-exported entrypoints public. With both, the umbrella
OrdinaryDiffEq passes all_explicit_imports_are_public with an empty
ignore-list, so the per-name ignore list is dead weight.

Verified against the registered releases (no dev) on Julia 1.12: the
umbrella passes both public-API checks. On 1.10 the public-API checks are
skipped by SciMLTesting 1.7, so the emptied list is inert there.

The per-sublib ei_broken public-API markers are NOT redundant and are left
untouched: every OrdinaryDiffEq/StochasticDiffEq sublib still imports
non-public internals from OrdinaryDiffEqCore / sibling sublibs / DiffEqBase
/ SciMLBase / NonlinearSolveBase (verified: all 45 sublib QA envs still
fail the public-API check(s) they mark broken on 1.12 against registered
releases), tracked under #3776.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* QA: finish public-API EI cleanup for released SciMLBase 3.27 / DiffEqBase make-public

Now that SciMLBase 3.27.0 and the lib/DiffEqBase make-public work (#3785) are
in place, complete the ExplicitImports public-API cleanup on top of the run_qa
conversion:

- Caller migration: rewrite `DiffEqBase.X` -> `SciMLBase.X` for the SciMLBase-owned,
  now-public names accessed qualified in sublibrary source:
    * `AbstractSDEProblem` across the StochasticDiffEq* solver sublibs (alg_utils/solve),
    * `build_solution` in DiffEqDevTools (add `import SciMLBase`),
    * `isinplace` in DelayDiffEq.
  `AbstractRODEProblem` is NOT public in SciMLBase 3.27, so it correctly stays
  `DiffEqBase.AbstractRODEProblem`.
- Declare DiffEqBase-owned `ImplicitRKTableau` public (sibling of the already-public
  `ExplicitRKTableau` from #3785; documented API used downstream via `DiffEqBase.ImplicitRKTableau`).
- Reconcile every sublibrary `ei_broken` against the actual ExplicitImports result on
  Julia 1.12 with the released versions (0 unexpected passes, 0 hard failures):
    * OrdinaryDiffEqExplicitTableaus / OrdinaryDiffEqImplicitTableaus now pass all six
      checks (drop `ei_broken` entirely),
    * StochasticDiffEqRODE / StochasticDiffEqIIF: `all_qualified_accesses_are_public`
      now passes after the AbstractSDEProblem migration (drop it),
    * StochasticDiffEqHighOrder/LowOrder/Milstein/ROCK/Weak: `all_qualified_accesses_via_owners`
      now passes after the migration (drop it).
  The remaining `ei_broken` entries are genuine not-yet-public OrdinaryDiffEqCore /
  StochasticDiffEqCore / DiffEqBase-internal survivors (e.g. `@cache`, `perform_step!`,
  `is_diagonal_noise`), tracked in #3776 — left as known-broken, not silenced.
- Bump `SciMLTesting` compat `"1.6"` -> `"1.7"` in every QA env + root + DelayDiffEq:
  1.7 gates the two public-API checks to Julia >= 1.11 so the LTS lane skips them.

Verified locally against the registered releases: root QA 6/6 on 1.12; DelayDiffEq
14 pass / 3 broken / 0 fail on 1.12; Tableaus 16/16 on 1.10; all sublibrary ei_broken
sets match the live ExplicitImports result on 1.12.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* DiffEqDevTools QA: replace blanket EI ei_broken with tight ignores

Migrate the DiffEqDevTools module imports to their public owners and convert
the run_qa explicit-imports blanket `ei_broken` (all 6 checks) into narrow,
documented `ei_kwargs` ignore lists.

- Make implicit imports explicit (SciMLBase/CommonSolve/RootedTrees/Statistics/
  RecipesBase/RecursiveArrayTools/StructArrays/DiffEqNoiseProcess/NLsolve).
- Import SciMLBase-owned abstract types and `has_analytic` from SciMLBase
  (their owner; public in SciMLBase 3.30), fixing the via_owners checks; qualify
  `allowedkeywords`/`calculate_ensemble_errors`/`has_analytic` through SciMLBase.
- Drop stale `AbstractDDEProblem` import; import `residual_order_condition`
  explicitly from RootedTrees (re-exported + extended here).
- Add CommonSolve dep (init/solve/step!), bump SciMLBase compat floor to 3.30.

4 of 6 EI checks now pass with zero exceptions. The 2 residual ignore lists
cover only names that are still non-public upstream: SciMLBase-owned
allowedkeywords/calculate_ensemble_errors and the AbstractDDEAlgorithm/
AbstractODESolution/AbstractRODEProblem/AbstractSDDEProblem/AbstractBVProblem/
@def abstracts, plus DiffEqBase-only ConvergenceSetup/ODERKTableau.

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

* QA: minimize EI exceptions for OrdinaryDiffEqHighOrderRK

Replace the blanket ei_broken=(5 checks) with tight, documented per-name
ignore lists, and clean up the module imports:

- Import alg_order from its owner SciMLBase (now public).
- Import calculate_residuals/calculate_residuals!/initialize! from their
  owner DiffEqBase (initialize! is public) and copyat_or_push! from its
  owner RecursiveArrayTools (public) instead of routing through
  OrdinaryDiffEqCore (fixes all_explicit_imports_via_owners /
  all_qualified_accesses_via_owners).
- Drop the bare `using DiffEqBase` and the stale `@def`/`uses_uprev`
  imports; make the remaining DiffEqBase imports explicit.

Residual ignores are limited to genuinely non-public upstream names
(OrdinaryDiffEqCore solver-extension API + DiffEqBase residual helpers,
tracked in SciML/OrdinaryDiffEq.jl#3776), the unavoidable
`@reexport using SciMLBase` implicit bindings, and the
ExplicitImports macro-blindness false stale for @tight_loop_macros.

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

* OrdinaryDiffEqAdamsBashforthMoulton: minimize EI exceptions

Migrate now-public/owned names to their owners and remove blanket ei_broken:
- alg_order: import from SciMLBase (owner, public)
- initialize!: import from DiffEqBase (owner, public)
- calculate_residuals/calculate_residuals!: import from DiffEqBase (owner)
- make @muladd / @.. / @reexport / SciMLBase explicit (no_implicit_imports)
- remove stale imports @SciMLMessage / _ad_chunksize_int / _ad_fdtype / _fixup_ad

4 of 5 previously ei_broken checks now pass. The residual non-public names
(OrdinaryDiffEqCore solver-interface internals, DiffEqBase residual helpers,
OrdinaryDiffEqLowOrderRK starter caches) are narrowed to tight documented
ignores in qa.jl instead of a blanket ei_broken. See SciML/OrdinaryDiffEq.jl#3776.

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

* Minimize EI exceptions for OrdinaryDiffEqFeagin

Convert the blanket ei_broken (5 checks) to migration + tight ignores:

- Migrate now-public names to public owners: alg_order -> SciMLBase,
  initialize! -> DiffEqBase.
- Route owner-correct DiffEqBase names through DiffEqBase:
  calculate_residuals, calculate_residuals!.
- Make exported-name implicit imports explicit: @.. (FastBroadcast),
  @muladd (MuladdMacro), recursivefill! (RecursiveArrayTools),
  @reexport (Reexport).
- Drop stale imports: OrdinaryDiffEqAlgorithm, Serial, unwrap_alg,
  uses_uprev, isfsal, _vec, _reshape, _unwrap_val, @def,
  _ode_interpolant!, _ode_addsteps!.

Remaining exceptions are tight, documented ignores for genuinely
non-public internals:
- no_implicit_imports: SciMLBase (deliberate @reexport surface).
- all_qualified_accesses_are_public: increment_nf!, set_EEst!
  (OrdinaryDiffEqCore solver-interface internals).
- all_explicit_imports_are_public: OrdinaryDiffEqCore solver internals
  (@cache, CompiledFloats, OrdinaryDiffEqAdaptiveAlgorithm,
  OrdinaryDiffEqConstantCache, OrdinaryDiffEqMutableCache, alg_cache,
  constvalue, generic_solver_docstring, get_fsalfirstlast, perform_step!,
  trivial_limiter!) plus DiffEqBase internals (@tight_loop_macros,
  calculate_residuals, calculate_residuals!).

QA EI green on Julia 1.12 (17/17).

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

* Minimize EI exceptions for OrdinaryDiffEqFunctionMap

Drop the blanket ei_broken tuple and instead fix the underlying
ExplicitImports findings on SciMLBase 3.30 / OrdinaryDiffEqCore 4.4:

- make implicit imports explicit (DiffEqBase, SciMLBase, Reexport)
- remove stale FastBroadcast.Serial import
- import alg_order from its owner SciMLBase (now public) and
  initialize! from its owner DiffEqBase (now public)
- access DISCRETE_{IN,OUT}OFPLACE_DEFAULT via owner SciMLBase

Remaining residue is genuinely OrdinaryDiffEqCore/DiffEqBase/SciMLBase
internal (non-public) solver hooks with no public alternative; these are
narrowed to tight documented ignore lists in qa.jl rather than a blanket
broken-check. See SciML/OrdinaryDiffEq.jl#3776.

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

* Minimize EI exceptions for OrdinaryDiffEqLowOrderRK

Replace the blanket ei_broken=(5 checks) in test/qa/qa.jl with tight,
documented ignore lists for only the genuinely-non-public names.

src changes (eliminate, not suppress):
- Make implicit imports explicit (SciMLBase, Reexport/@reexport).
- Remove stale import uses_uprev.
- Re-route owner-mismatched names to their owner module: alg_order/@def/
  _unwrap_val -> SciMLBase; copyat_or_push! -> RecursiveArrayTools;
  initialize!/calculate_residuals/calculate_residuals! -> DiffEqBase.
  alg_order, copyat_or_push! and initialize! are public on their owners,
  so this also clears them from the public-API checks.

Now-green: no_implicit_imports, no_stale_explicit_imports,
all_explicit_imports_via_owners. The two public-API checks retain tight
ignores for OrdinaryDiffEqCore/DiffEqBase/SciMLBase solver internals with
no public alternative (tracked for make-public in #3776).

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

* OrdinaryDiffEqExplicitRK: minimize EI exceptions (drop blanket ei_broken)

Replace the 4 blanket ei_broken checks with real import fixes plus tight,
documented per-name ignores of only genuinely-internal names.

Fixed (no longer suppressed):
- no_implicit_imports: explicit `using`/`import` of @.., @muladd, recursivefill!,
  @reexport, and the SciMLBase/DiffEqBase module names used in qualified accesses.
- all_explicit_imports_via_owners: import alg_order from SciMLBase (now public),
  initialize! + calculate_residuals(!) from DiffEqBase (their Base.which owner),
  copyat_or_push! from RecursiveArrayTools (now public).
- no_stale_explicit_imports: removed unused `full_cache` import.

Residual ignores are exactly the OrdinaryDiffEqCore/DiffEqBase/Base-internal
extension points with no public alternative (tracked for make-public in #3776).

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

* OrdinaryDiffEqLowStorageRK: minimize EI exceptions

Drop blanket ei_broken (5 checks) for tight documented ignore lists.
Make implicit imports explicit, remove stale imports, and import
now-public names from their true public owners (alg_order<-SciMLBase,
initialize!<-DiffEqBase). Residual ignores are non-public internals
of OrdinaryDiffEqCore/DiffEqBase/Base only (see #3776).

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

* ImplicitDiscreteSolve: minimize EI exceptions (drop blanket ei_broken)

Replace the blanket 5-check `ei_broken` in lib/ImplicitDiscreteSolve QA with
real EI fixes plus tight, documented per-name ignore lists for the residual
non-public internals.

- Import public names from their owners: SciMLBase (alg_order, isadaptive,
  OverrideInit, problem/function types, ReturnCode, isinplace), DiffEqBase
  (DefaultInit, initialize!), CommonSolve (init, solve, step!),
  NonlinearSolveFirstOrder (NewtonRaphson). Make formerly-implicit exported
  names explicit; drop stale imports (@.., @muladd, BrownFullBasicInit,
  OrdinaryDiffEqConstantCache, _unwrap_val, parameter_symbols).
- Add CommonSolve as a direct dep (init/solve/step! owner).
- Remaining ignores are genuine OrdinaryDiffEqCore solver-interface internals
  (alg_cache/perform_step!/controller generics/abstract cache+controller types)
  and NonlinearSolveBase/SciMLBase non-public accessors, tracked for make-public
  in SciML/OrdinaryDiffEq.jl#3776.

All 6 ExplicitImports checks now pass; QA group 16/16 on Julia 1.12 against
released SciMLTesting 1.7.0 / SciMLBase 3.30.0.

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

* Minimize EI exceptions for OrdinaryDiffEqLinear

Convert blanket ei_broken (5 checks) to targeted source fixes plus tight
documented ignore lists:

- Import alg_order from SciMLBase and initialize! from DiffEqBase (now public
  in their owner modules) instead of OrdinaryDiffEqCore re-exports.
- Import _vec from SciMLBase and calculate_residuals! from DiffEqBase (their
  owners) to satisfy all_explicit_imports_via_owners.
- Remove stale OrdinaryDiffEqExponentialAlgorithm import.
- Make implicit imports explicit (ExponentialUtilities, RecursiveArrayTools,
  SciMLOperators update_coefficients(!), SciMLBase SplitFunction, Reexport).
- Residual non-public upstream internals are tightly listed in
  all_explicit_imports_are_public / all_qualified_accesses_are_public ignore
  lists with per-name documentation (no blanket ei_broken).

QA EI green on Julia 1.12 (17/17), package still solves (LieEuler,
MagnusGauss4 -> Success).

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

* Minimize EI exceptions for OrdinaryDiffEqIMEXMultistep

Replace the blanket 5-check ei_broken with targeted fixes plus tight,
documented per-check ignore lists for genuinely-internal non-public names:

- Import alg_order and _unwrap_val from their owner SciMLBase (alg_order is
  public there); import initialize! from its owner DiffEqBase (public).
- Drop stale imports: @SciMLMessage, _ad_chunksize_int, _ad_fdtype (ADTypes
  AbstractADType), and dolinsolve (OrdinaryDiffEqDifferentiation).
- Make FastBroadcast (@..) and Reexport (@reexport) explicit imports.
- Ignore only SciMLBase (intended @reexport implicit), increment_nf!
  (OrdinaryDiffEqCore-internal), and the OrdinaryDiffEqCore /
  OrdinaryDiffEqNonlinearSolve / SciMLBase internal solver building blocks
  that are not yet declared public.

Verified GROUP=QA run_qa on Julia 1.12: Quality Assurance 17/17 pass.

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

* Minimize EI exceptions for OrdinaryDiffEqExtrapolation

Drop the blanket 5-entry `ei_broken` in
lib/OrdinaryDiffEqExtrapolation/test/qa/qa.jl. All four non-public checks
besides the two public-API ones now pass cleanly:

- no_implicit_imports: make implicit imports explicit
  (FastBroadcast/@.., MuladdMacro/@muladd, RecursiveArrayTools/recursivefill!,
  LinearSolve/RFLUFactorization, Reexport/@reexport, SciMLBase/LinearProblem+init,
  SciMLOperators/WOperator, SciMLLogging/@SciMLMessage).
- no_stale_explicit_imports: remove unused imports (AbstractADType, BaseThreads,
  Minimal, Sequential, _ad_chunksize_int, _ad_fdtype, _digest_beta1_beta2,
  isadaptive, qmax_default).
- all_explicit_imports_via_owners: import names from their true owner module
  (alg_order/_unwrap_val/_reshape/_vec/the Time*/U*Wrapper types from SciMLBase;
  initialize!/calculate_residuals[!]/timedepentdtmin from DiffEqBase; WOperator
  from SciMLOperators; @SciMLMessage from SciMLLogging). Add SciMLLogging and
  SciMLOperators as direct deps + compat.

The remaining exceptions are genuinely-internal (non-`public`) upstream names
with no public replacement yet, narrowed to two tight documented `ignore` lists
on the public-API checks only.

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

* OrdinaryDiffEqDifferentiation: minimize EI exceptions in QA

Replace the blanket `ei_broken` suppression of all five ExplicitImports
checks with concrete, documented per-check ignore lists, and fix the
import header so the now-resolvable findings disappear:

- Remove 38 stale (unused) explicit imports.
- Import `_vec`, `_unwrap_val`, `UDerivativeWrapper`, `UJacobianWrapper`
  from their owner SciMLBase (OrdinaryDiffEqCore/DiffEqBase only re-export
  them), satisfying `all_explicit_imports_via_owners` for those names.
- Tighten the residual ignores to exactly the genuinely non-public /
  non-owner re-exported names this sublibrary relies on (OrdinaryDiffEqCore
  solver internals, SciMLBase Jacobian-interface predicates, LinearSolve /
  ForwardDiff / DifferentiationInterface internals, the sublib's own
  sparse-extension API, and the Accessors `@set` / SciMLLogging
  `@SciMLMessage` macros).

All six EI checks now run hard (no `ei_broken`). Verified GROUP=QA on
Julia 1.12 against released SciMLTesting 1.7.0: Quality Assurance 15/15.

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

* Minimize EI exceptions for OrdinaryDiffEqQPRK

Make implicit imports explicit (FastBroadcast/@.., MuladdMacro/@muladd,
Reexport/@reexport, SciMLBase), import alg_order from SciMLBase and
initialize!/calculate_residuals[!] from their DiffEqBase owner, and drop
the stale full_cache import. Replace the blanket ei_broken with tight,
documented ignore lists for the residual OrdinaryDiffEqCore solver-interface
internals and DiffEqBase residual helpers that are not yet public.

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

* OrdinaryDiffEqPRK: minimize EI exceptions in run_qa

Migrate now-public names to their public owners and drop the blanket
ei_broken for the three EI checks:

- import alg_order and full_cache from SciMLBase (public owners)
- import initialize! from DiffEqBase (public owner)
- make Reexport/@reexport and the SciMLBase module reference explicit so
  no_implicit_imports passes

The remaining all_explicit_imports_are_public failures are exactly the
twelve OrdinaryDiffEqCore solver-interface names with no public owner on
the registered releases; narrowed to a tight documented ignore list
(tracked for make-public in SciML/OrdinaryDiffEq.jl#3776) instead of a
blanket ei_broken.

ExplicitImports now reports 6/6 checks passing.

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

* OrdinaryDiffEqRKN: minimize EI exceptions in QA

Replace the blanket ei_broken (5 checks) with targeted fixes plus tight,
documented public-API ignores:

- Remove 9 stale explicit imports (_vec, _reshape, _unwrap_val,
  trivial_limiter!, unwrap_alg, uses_uprev, isfsal, _ode_addsteps!,
  OrdinaryDiffEqAdaptiveAlgorithm) — none are used in src.
- Import names from their owning modules: alg_order from SciMLBase
  (now public there), initialize!/calculate_residuals/calculate_residuals!
  and @tight_loop_macros from DiffEqBase, @def from SciMLBase.
- Make previously-implicit imports explicit: FastBroadcast @..,
  MuladdMacro @muladd, RecursiveArrayTools ArrayPartition/recursivefill!,
  Reexport @reexport, and the SciMLBase module binding.

no_implicit_imports, no_stale_explicit_imports, and
all_explicit_imports_via_owners now pass with no exceptions. The only
remaining ignores are genuinely internal (non-public) solver-stack names
with no public alias yet (OrdinaryDiffEqCore extension internals,
DiffEqBase residual interface + @tight_loop_macros, SciMLBase @def);
tracked for make-public in SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqNordsieck: minimize ExplicitImports exceptions

Replace the blanket 5-check `ei_broken` with elimination plus tight,
documented per-check ignores:

- Import `alg_order` from its owner SciMLBase (public there) and
  `initialize!`/`calculate_residuals`/`calculate_residuals!` from their
  owner DiffEqBase, satisfying `all_explicit_imports_via_owners`.
- Make the FastBroadcast/MuladdMacro/RecursiveArrayTools implicit imports
  explicit (`@..`, `@muladd`, `recursivefill!`, `Serial`).
- Drop the stale `DummyController` import; un-qualify every
  `OrdinaryDiffEqCore.<name>` access (method-extension targets and
  `get_EEst`/`set_EEst!`/`increment_nf!`) so `all_qualified_accesses_are_public`
  passes clean.

The only remaining exceptions are tight documented ignores for the
OrdinaryDiffEqCore solver-interface internals, the DiffEqBase residual
primitives, and the OrdinaryDiffEqTsit5 first-step caches a Nordsieck
solver must consume (`all_explicit_imports_are_public`), and the
`@reexport using SciMLBase` idiom (`no_implicit_imports`). The other four
EI checks pass with no ignore. Verified GROUP=QA on Julia 1.12: 17/17.

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

* ExponentialRK: minimize EI exceptions, drop blanket ei_broken

Eliminate the blanket ei_broken on all 5 ExplicitImports checks for
OrdinaryDiffEqExponentialRK:
- Make the 22 implicit imports explicit (ExponentialUtilities, FastBroadcast,
  MuladdMacro, RecursiveArrayTools, Reexport, SciMLBase/SplitFunction).
- Remove 5 stale imports (AbstractADType, CompositeAlgorithm, _ad_chunksize_int,
  _ad_fdtype, the now-qualified-only DiffEqBase.prepare_alg import).
- Route now-public / owner-correct names to their owners: alg_order from
  SciMLBase, initialize! from DiffEqBase; this clears the via-owners check.
- Narrow the residual genuinely-internal names to a tight, documented per-name
  ignore (OrdinaryDiffEqCore / SciMLBase / DiffEqBase / OrdinaryDiffEqDifferentiation
  internals) instead of an opaque ei_broken over whole checks.

QA group passes 17/17 on Julia 1.12 with only the tight ignores remaining.

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

* Minimize EI exceptions for OrdinaryDiffEqPDIRK

Drop the blanket ei_broken (no_implicit_imports, no_stale_explicit_imports,
all_explicit_imports_via_owners, all_explicit_imports_are_public) and fix at
the source:

- make Reexport/@reexport/SciMLBase explicit (no_implicit_imports)
- remove stale imports uses_uprev, _ad_chunksize_int, _ad_fdtype,
  AbstractADType, and dolinsolve (no_stale_explicit_imports)
- import alg_order/_unwrap_val from their owner SciMLBase and initialize!
  from its owner DiffEqBase (all_explicit_imports_via_owners); alg_order and
  initialize! are public on the owner module so they also clear
  all_explicit_imports_are_public

Remaining all_explicit_imports_are_public exceptions are a tight, documented
ignore of solver-internal names with no public alternative on the registered
releases (OrdinaryDiffEqCore/OrdinaryDiffEqNonlinearSolve internals plus
SciMLBase._unwrap_val); tracked for make-public in SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqSSPRK: minimize EI exceptions, drop blanket ei_broken

Replace the blanket 5-check ei_broken with explicit imports from owner
modules and tight, documented ignore lists for the names that remain
genuinely internal (no public counterpart in OrdinaryDiffEqCore /
DiffEqBase / SciMLBase).

- no_implicit_imports: make all implicit names explicit (@.., @muladd,
  recursivefill!, @reexport, ODEProblem, solve, and the SciMLBase module
  qualifier itself).
- no_stale_explicit_imports: drop 7 unused imports
  (OrdinaryDiffEqNewton/RosenbrockAdaptiveAlgorithm, _vec, _reshape,
  _unwrap_val, unwrap_alg, uses_uprev).
- all_*_via_owners: import from the owning module
  (alg_order <- SciMLBase; initialize!/calculate_residuals[!] <-
  DiffEqBase; copyat_or_push! <- RecursiveArrayTools).
- Remaining non-public names are solver internals -> tight per-check
  ignore lists, not blanket ei_broken. See SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqSymplecticRK: minimize EI exceptions in run_qa

Drop the blanket ei_broken on all five ExplicitImports checks. Remove stale
imports, make implicit imports explicit, import alg_order from its public
owner SciMLBase, initialize! from DiffEqBase, and the FastBroadcast/MuladdMacro/
RecursiveArrayTools macros/names explicitly. The only remaining exceptions are
tight documented ignores for OrdinaryDiffEqCore-internal (non-public) names the
solver genuinely needs, tracked for make-public in #3776.

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

* OrdinaryDiffEqCore: minimize ExplicitImports exceptions in QA

Replace the blanket `ei_broken` over all six ExplicitImports checks with
live checks plus tight, individually documented ignore lists.

Source fixes (eliminate, not ignore):
- Add explicit `using SciMLBase: ...` for the 21 names previously relied on
  implicitly through `@reexport using SciMLBase`; explicit `using SciMLOperators`
  and `using CommonSolve: solve` (CommonSolve added to deps/compat as the owner
  of `solve`).
- Import `resize!` from its owner `Base` and `check_error!` from its owner
  SciMLBase (both verified identical to the DiffEqBase/SciMLBase bindings).
- Migrate `initialize_dae!` and `value` qualified accesses from DiffEqBase to
  their owner SciMLBase; `initialize_dae!` is public there so it is fully clean.
- Drop genuinely-unused imports (rank, issingular, chain, recursivefill!,
  isautodifferentiable, DEIntegrator, get_tstops_max, @def, @tight_loop_macros,
  AbstractADType, the unused SciMLLogging level names, the SciMLOperators
  abstract types, etc.) and the now-unused ConcreteStructs dependency.

Re-export contract preserved:
- BrownFullBasicInit, ShampineCollocationInit, DEVerbosity, Minimal, _vec,
  _reshape, unwrap_cache, calculate_residuals, calculate_residuals! are unused
  by this package but imported into its namespace and re-imported by dependent
  OrdinaryDiffEq.jl sublibraries; kept and documented, with matching
  `no_stale_explicit_imports` ignores that ExplicitImports cannot infer
  cross-package.

Residual ignores are upstream-internal (non-`public`) names with no public
replacement, documented per source module. `OrdinaryDiffEqCore.Predictor`
(a generated EnumX submodule) is marked `allow_unanalyzable`.

Verified on Julia 1.12 against released SciMLTesting 1.7.0 / SciMLBase 3.30.0:
QA 15/15 pass (Aqua + all six EI checks run live, 0 fail/error/broken). Smoke
solves with Tsit5, Rosenbrock23, and QNDF (BDF) all return Success.

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

* Minimize EI exceptions for OrdinaryDiffEqTsit5

Convert the blanket ei_broken in the QA suite to tight, documented ignore
lists. Fixes the source so the previously-broken checks pass:

- no_implicit_imports / via_owners: import alg_order from its owner SciMLBase,
  calculate_residuals(!)/initialize! from DiffEqBase, copyat_or_push! from
  RecursiveArrayTools, and make Reexport/@reexport, SciMLBase/ODEProblem and
  solve (CommonSolve) explicit. Adds CommonSolve as a direct dependency.
- The residual non-public names (OrdinaryDiffEqCore internals, DiffEqBase
  residual helpers, SciMLBase @def, TruncatedStacktraces macro, and the
  precompile-workload specialization markers / lorenz helpers) are listed as
  tight per-source ignores rather than a blanket ei_broken; tracked for
  make-public in SciML/OrdinaryDiffEq.jl#3776.

Verified on Julia 1.12 (SciMLTesting 1.7.0, SciMLBase 3.30.0): QA EI suite
17/17 pass, 0 fail/error/broken.

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

* OrdinaryDiffEqRosenbrock: minimize EI exceptions in run_qa

Replace the blanket six-check ei_broken with targeted fixes plus tight,
documented ignore lists:

- no_implicit_imports / no_stale_explicit_imports now PASS: bare `using`
  statements made explicit, and 9 unused imports removed (@capture, Diagonal,
  _ad_chunksize_int, _ad_fdtype, calc_W, diag, diagm, lu!, namify).
- Migrated now-public names to their public owners: alg_order from SciMLBase
  (imported so methods can be extended), UniformScaling from LinearAlgebra.
- The remaining residual is genuinely-internal cross-package solver-interface
  names from OrdinaryDiffEqCore / OrdinaryDiffEqDifferentiation (plus a few
  DiffEqBase / SciMLBase / Base internals) with no public home; these are now
  listed explicitly per-check via ei_kwargs ignore lists instead of a blanket
  ei_broken, so any name later made public surfaces as an Unexpected Pass.

Verified GROUP=QA on Julia 1.12 against released SciMLTesting 1.7.0:
Quality Assurance 17/17 pass, 0 fail/error/broken/unexpected-pass.

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

* Minimize EI exceptions for OrdinaryDiffEqStabilizedRK

Replace the blanket six-entry ei_broken with tight, documented ignore
lists. Import SciMLBase/DiffEqBase-owned names (alg_order, _vec, value,
initialize!, calculate_residuals, calculate_residuals!) from their owner
modules, make FastBroadcast/MuladdMacro/RecursiveArrayTools/Reexport
imports explicit, drop stale OrdinaryDiffEqCore imports, and replace
qualified DiffEqBase.value accesses with the imported binding.

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

* OrdinaryDiffEqTaylorSeries: minimize EI exceptions in run_qa

Eliminate the blanket ei_broken=(5 checks) by migrating now-public names to
their public owners, making implicit imports explicit, removing stale imports,
and narrowing residual non-public internals to tight documented ignore lists.

- alg_order now imported from its owner SciMLBase (public)
- initialize!/calculate_residuals!/calculate_residuals imported from owner
  DiffEqBase (initialize! public; residuals stay in ignore list)
- @reexport made an explicit import (using Reexport: @reexport)
- TaylorDiff get_coefficient/append_coefficient/flatten qualified at use sites
  so all TaylorDiff internals are qualified accesses, not explicit imports
- dropped stale imports: @OnDemandTableauExtract, @def, @fold, AutoAlgSwitch,
  CompiledFloats, CompositeAlgorithm, constvalue, copyat_or_push!,
  extract_derivative(!), norm, recursive_unitless_bottom_eltype, full_cache,
  bare using FunctionWrappers, bare using TaylorDiff/Symbolics
- remaining OrdinaryDiffEqCore solver-interface internals (perform_step!,
  alg_cache, controllers, stats hooks, etc.) plus a handful of other-package
  internals with no public alias are kept in tight ignore lists keyed per check
  (see SciML/OrdinaryDiffEq.jl#3776)

run_qa EI verified green on Julia 1.12 (6/6 checks pass, no ei_broken, no
@test_broken); package precompiles and all three solvers solve correctly.

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

* OrdinaryDiffEqVerner: minimize EI exceptions in run_qa

Replace the blanket 5-check ei_broken with targeted fixes plus tight,
documented ignore lists:

- Remove stale explicit imports (OrdinaryDiffEqAlgorithm, uses_uprev,
  _reshape, _vec, @tight_loop_macros).
- Relocate names to their public owners so the via_owners and public
  checks pass: alg_order from SciMLBase; initialize! and the
  calculate_residuals pair from DiffEqBase; copyat_or_push!,
  recursive_unitless_bottom_eltype, recursivecopy, recursivefill! from
  RecursiveArrayTools.
- Make previously-implicit imports explicit (@.., Serial, @muladd,
  @reexport, ODEProblem) and qualify solve as SciMLBase.solve in the
  precompile workload.
- Narrow the residual exceptions to tightly-scoped, documented ignore
  lists covering only the OrdinaryDiffEqCore / SciMLBase / DiffEqBase /
  TruncatedStacktraces internal (non-public) names actually used.

Verified on Julia 1.12 against released SciMLTesting 1.7.0: all 6
ExplicitImports checks pass (6/6).

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

* Minimize EI exceptions for OrdinaryDiffEqStabilizedIRK QA

Replace the blanket ei_broken (5 disabled checks) with all 6 EI checks
passing. Fix the source so no_implicit_imports, no_stale_explicit_imports,
and all_explicit_imports_via_owners pass:

- Make bare `using` explicit: import @.. (FastBroadcast), recursivefill!
  (RecursiveArrayTools); `using Reexport: Reexport, @reexport`;
  `using SciMLBase: SciMLBase` before the @reexport.
- Migrate names to their owner module: alg_order/_unwrap_val/_reshape/_vec
  from SciMLBase; calculate_residuals/calculate_residuals!/initialize! from
  DiffEqBase; get_W/isnewton from OrdinaryDiffEqCore.
- Unqualify increment_nf!/set_EEst! (now explicitly imported).
- Drop stale imports (alg_maximum_order, beta1/beta2_default,
  OrdinaryDiffEqAlgorithm/AdaptiveAlgorithm/AdaptiveImplicitAlgorithm, RKC,
  _ad_chunksize_int, _ad_fdtype, AbstractADType, full_cache) and the unused
  MuladdMacro dependency.

The only residual EI exceptions are a tight, documented ignore list of
solver-interface names that are imported from their owner module but not yet
declared `public` on the registered releases (tracked for make-public in
SciML/OrdinaryDiffEq.jl#3776).

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

* StochasticDiffEqHighOrder: minimize EI exceptions, drop blanket ei_broken

Convert the blanket ei_broken (4 checks) to tight, documented ignore
lists. Migrate now-public names to their public owners and make
implicit imports explicit:

- is_diagonal_noise: import from SciMLBase (public in 3.30) instead of
  DiffEqBase, fixing both via_owners and are_public.
- Drop the unused/stale `initialize!` import from OrdinaryDiffEqCore.
- Make the LinearAlgebra (dot, mul!) and StaticArrays (SArray) implicit
  imports explicit; replace `using RecursiveArrayTools` with a plain
  `import RecursiveArrayTools` (no exported names are used).
- Add standalone `import StochasticDiffEqCore` / `import DiffEqBase` so
  the reexported module bindings are explicit (no_implicit_imports).

Residual exceptions are genuine non-public internal API, narrowed to
exact names: @.. (FastBroadcast macro reexported via DiffEqBase, not a
direct dep), @cache (StochasticDiffEqCore), Tableau/calculate_residuals
[!] (DiffEqBase), perform_step! and set_EEst! (OrdinaryDiffEqCore).

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

* OrdinaryDiffEqFIRK: minimize EI exceptions in run_qa

Drop the blanket six-check `ei_broken` and instead make the explicit-imports
checks pass on their own:

- Route imports to their true owner module so `all_*_via_owners` pass with no
  ignores (`alg_order`/`_vec`/`_reshape`/`_unwrap_val`/`value`/`UDerivativeWrapper`/
  `UJacobianWrapper` from SciMLBase; `calculate_residuals`/`initialize!` from
  DiffEqBase; convergence-state names from OrdinaryDiffEqCore).
- Make the previously-implicit imports explicit and drop the genuinely-stale ones,
  so `no_implicit_imports` and `no_stale_explicit_imports` pass with no ignores.
- `value` is now accessed via its bare (owner-routed) import in controllers.jl.
- Keep a module-only `import OrdinaryDiffEqNonlinearSolve` so the load-bearing
  nonlinear-solver dependency is not flagged stale once its names move to Core.

The remaining residue is a tight, documented ignore list of genuinely-internal
non-public names of the OrdinaryDiffEq stack in the two `*_are_public` checks; see
SciML/OrdinaryDiffEq.jl#3776 for make-public tracking.

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

* StochasticDiffEqImplicit: minimize ExplicitImports exceptions

Replace the blanket `ei_broken` (all 6 EI checks) with all checks enabled and
only tight, documented ignore lists for the names that are genuinely internal
(non-`public`) in their owner packages.

Source cleanups that eliminate exceptions outright:
- Import now-public/owner-correct names from their owners: `is_diagonal_noise`
  and `initialize!` (public in SciMLBase / DiffEqBase respectively); `_vec`,
  `_reshape`, `_unwrap_val`, `has_Wfact` from their owner SciMLBase.
- Drop the duplicate `get_W` import from OrdinaryDiffEqDifferentiation (owned by
  OrdinaryDiffEqCore, already imported there).
- Replace qualified `DiffEqBase._reshape`/`DiffEqBase._vec` accesses with the
  owner-correct unqualified imports.
- Make implicit imports explicit (LinearAlgebra `mul!`/`norm`, StaticArrays
  `SArray`, module names) and remove stale imports (`NLSolver`,
  `current_extrapolant`).

Residual ignores cover OrdinaryDiffEqCore / OrdinaryDiffEqNonlinearSolve /
OrdinaryDiffEqDifferentiation / DiffEqBase / SciMLBase internal names and the
`@..` macro re-exported through DiffEqBase; tracked in SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqNonlinearSolve: minimize ExplicitImports exceptions

Replace the blanket 5-check `ei_broken` in the sublibrary's qa.jl with
fully-passing EI checks plus tight, per-name documented ignores.

- Remove genuinely unused (stale) imports: FastConvergence, GLM,
  NORDSIECK_MULTISTEP, NonlinearVerbosity, OperatorAssumptions, the three
  OrdinaryDiffEq*Algorithm aliases, OverrideInit, SlowConvergence,
  VerySlowConvergence, _unwrap_val, has_autodiff, dense_ad, pickchunksize,
  ismutable, restructure, solve!, and the entire SciMLStructures import
  (canonicalize/Tunable/isscimlstructure unused; drop the dep).
- Migrate names to their owning packages so the via_owners and public checks
  pass natively: I/rmul!/norm/mul!/ldiv! -> LinearAlgebra;
  BrownFullBasicInit/ShampineCollocationInit -> DiffEqBase;
  alg_order/isadaptive/_vec/_reshape/postamble! -> SciMLBase;
  calculate_residuals(!) -> DiffEqBase; alg_autodiff -> OrdinaryDiffEqCore;
  AbstractSciMLOperator -> SciMLOperators; DiffEqBase.value/anyeltypedual ->
  SciMLBase; SciMLBase.setproperties -> ConstructionBase (added as dep).
- Bump SciMLBase floor to 3.30 (alg_order/isadaptive are public there).

The remaining ignores are non-public internal names (OrdinaryDiffEqCore solver
interface, OrdinaryDiffEqDifferentiation Jacobian/W machinery, a few SciMLBase/
DiffEqBase/SciMLOperators/ForwardDiff internals) with no public alternative,
tracked in SciML/OrdinaryDiffEq.jl#3776. QA group is fully green on Julia 1.12
(16/16, 0 broken) against released SciMLTesting 1.7.0.

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

* StochasticDiffEqCore: minimize EI exceptions, drop blanket ei_broken

Replace the blanket `ei_broken` over all six ExplicitImports checks with
genuine fixes plus tight, documented ignore lists for the residual upstream
non-public/non-owner names. All six EI checks now pass on Julia 1.12.

Source changes:
- Make all implicit imports explicit, importing each name from its owner
  (SciMLBase abstract types/`is_diagonal_noise`, CommonSolve `init/solve/solve!`,
  DiffEqBase `DEVerbosity`/`ODE_DEFAULT_*`, RecursiveArrayTools, etc.).
- Migrate now-public names off DiffEqBase to their SciMLBase owners:
  `__solve`, `__init`, `has_analytic`, `AbstractRODEProblem`,
  `parameterless_type`, plus `AbstractNoiseProcess`/`reinit!` off
  DiffEqNoiseProcess and `DefaultInit` to DiffEqBase.
- Remove 80+ stale explicit imports (loop helpers/controllers extended only via
  qualified `OrdinaryDiffEqCore.x`, unused abstract types and wrappers).
- Drop the Base-owned `resize!`/`deleteat!` from the DiffEqBase import (used only
  as plain array ops).
- Add CommonSolve as a direct dependency (owner of init/solve/solve!).

QA: the remaining EI ignores are all genuinely non-public upstream names
(OrdinaryDiffEqCore solver-loop/trait internals, still-internal
SciMLBase/DiffEqBase interface names, JumpProcesses/DiffEqNoiseProcess/ForwardDiff
internals, Base `@pure`), each documented by source in test/qa/qa.jl, pending
make-public upstream. The pre-existing Aqua/JET failures are unchanged and out of
scope. See SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqBDF: minimize ExplicitImports exceptions

Replace the blanket 5-check `ei_broken` in test/qa/qa.jl with tight,
documented ignore lists, and fix the underlying import hygiene in src
so that 3 of the 5 EI checks pass with no exceptions:

- no_stale_explicit_imports: removed 18 genuinely-unused imports
  (@capture, AbstractADType, AutoFiniteDiff, CompiledFloats,
  DummyController, NonlinearSolveAlg, OrdinaryDiffEqAlgorithm,
  UJacobianWrapper, _ad_chunksize_int, _ad_fdtype, _reshape, _vec,
  accept_step_controller, compute_step!, ismutable, qmin_default,
  set_EEst!, uses_uprev). Names still needed are accessed qualified.
- all_explicit_imports_via_owners: route names to their owning module —
  alg_order/isadaptive/_unwrap_val from SciMLBase;
  calculate_residuals/calculate_residuals!/initialize! from DiffEqBase;
  DIRK/COEFFICIENT_MULTISTEP/isnewton/set_new_W! from OrdinaryDiffEqCore
  (were imported via OrdinaryDiffEqNonlinearSolve). initialize! is public
  in DiffEqBase so it needs no ignore.
- no_implicit_imports: make the 6 implicit names explicit
  (Reexport/@reexport; SciMLBase + ODEProblem/derivative_discontinuity!/
  solve via an explicit `import SciMLBase`/`using SciMLBase: ...`).

The two remaining checks (all_qualified_accesses_are_public,
all_explicit_imports_are_public) are reduced from a blanket ei_broken to
tight named-ignore lists covering only internal (non-public) API of the
sibling solver sublibraries (OrdinaryDiffEqCore/SDIRK/NonlinearSolve) plus
a few SciMLBase/DiffEqBase/TruncatedStacktraces internals that have no
public replacement. Each is a candidate for an upstream `public`
declaration; see SciML/OrdinaryDiffEq.jl#3776.

Verified on Julia 1.12 against released SciMLTesting 1.7.0 / SciMLBase
3.30.0: run_qa ExplicitImports 6/6 pass.

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

* StochasticDiffEqIIF: minimize ExplicitImports exceptions in QA

Drop the blanket ei_broken in test/qa/qa.jl by fixing the underlying
explicit-imports issues in src:

- import `is_diagonal_noise` from its public owner SciMLBase (was DiffEqBase)
- import `initialize!` from its public owner DiffEqBase (was OrdinaryDiffEqCore)
- import `@..` from its owner FastBroadcast (was DiffEqBase); add FastBroadcast dep
- make implicit imports explicit (Reexport/@reexport, mul!/rmul!, module bindings)
- drop the unused `using RecursiveArrayTools`

Only `perform_step!`, `issplit`, `current_extrapolant`, `current_extrapolant!`
(OrdinaryDiffEqCore) and `@cache` (StochasticDiffEqCore) remain non-public
solver-author internals; these are narrowed to a tight, documented ignore in
the all_explicit_imports_are_public check (tracked in #3776) instead of a blanket
ei_broken. All six EI checks pass on Julia 1.12.

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

* Minimize EI exceptions for StochasticDiffEqLeaping

Replace the blanket `ei_broken` over all six ExplicitImports checks with
genuine fixes plus tight, documented per-check ignore lists:

- Remove stale explicit imports (NLSolver, NLAnderson, NLNewton, isnewton,
  nlsolvefail, accept_step_controller, is_diagonal_noise, initialize!, _vec,
  _reshape) and the stale `nlsolve_f` import (used only qualified).
- Drop vestigial whole-module `using LinearAlgebra/StaticArrays/RecursiveArrayTools`
  (none of their names are used) and make the Reexport/DiffEqBase module-name
  reliance explicit, clearing no_implicit_imports.
- Access `default_controller` via its owner OrdinaryDiffEqCore instead of
  StochasticDiffEqCore, clearing one via_owners finding.
- Narrow the remaining exceptions to tight ignore lists for genuinely
  non-public internal solver-interface names (OrdinaryDiffEqCore,
  OrdinaryDiffEqNonlinearSolve, StochasticDiffEqCore, DiffEqBase) plus the
  FastBroadcast `@..` macro and PoissonRandom `pois_rand`, all re-exported
  through the natural dependency.

ExplicitImports now passes 6/6. The two remaining Aqua failures (method
ambiguity and undefined exports checkSRAOrder/checkSRIOrder via the
StochasticDiffEqCore reexport) are pre-existing on master and unrelated to
ExplicitImports.

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

* OrdinaryDiffEqDefault: minimize EI exceptions in QA

Replace the blanket `ei_broken` over all four ExplicitImports checks with
real fixes plus tight, documented per-name ignores:

- Make implicit imports explicit (EnumX, Reexport, SciMLBase ODEProblem/
  DAEProblem/solve) and remove genuinely-stale imports (Vern6/8/9, isdiag,
  trivial_limiter!, ODEIntegrator, OrdinaryDiffEqAlgorithm,
  OrdinaryDiffEqMutableCache, PIController, AutoForwardDiff, AbstractADType).
- `no_implicit_imports` and `no_stale_explicit_imports` now pass via
  `allow_unanalyzable` for the `EnumX.@enumx` `DefaultSolverChoice`
  submodule; the five solver-name imports it shadows (Tsit5, Vern7,
  Rosenbrock23, Rodas5P, FBDF) are genuinely used by default_alg.jl and
  ignored only for the stale check.
- Remaining ignores are OrdinaryDiffEqCore / SciMLBase internal (non-public)
  API with no public replacement (see #3776).

QA group 16/16 pass on Julia 1.12 (SciMLBase 3.30, OrdinaryDiffEqCore 4.4.1,
SciMLTesting 1.7.0, JET 0.11.5).

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

* DelayDiffEq: minimize EI exceptions in QA

Eliminate the all_explicit_imports_via_owners ei_broken by importing each
name from its owner: initialize! is already imported from DiffEqBase (its
owner) so drop the duplicate OrdinaryDiffEqCore import, and import the now
SciMLBase-public is_diagonal_noise from SciMLBase instead of DiffEqBase.

Drop the now-unnecessary no_implicit_imports @reexport ignore and the
no_stale_explicit_imports (:AbstractVerbositySpecifier, :Standard) ignores
(both checks pass clean against the resolved releases).

Replace the blanket all_qualified_accesses_are_public /
all_explicit_imports_are_public ei_broken with tight, documented, per-source
ignore lists naming exactly the OrdinaryDiffEq*/SciMLBase/DiffEqBase/ForwardDiff
internals DelayDiffEq legitimately reaches into; each is a make-public
candidate tracked in SciML/OrdinaryDiffEq.jl#3776.

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

* OrdinaryDiffEqSDIRK: minimize EI exceptions (drop blanket ei_broken)

Replace the blanket `ei_broken` over all six ExplicitImports checks with
tight, documented per-name ignores plus genuine import cleanups:

- Make implicit exported-name imports explicit (FastBroadcast/@.., MacroTools,
  MuladdMacro/@muladd, RecursiveArrayTools/recursivefill!, Reexport/@reexport,
  SciMLBase/ODEProblem, CommonSolve/solve).
- Remove stale (unused) imports: @cache, OrdinaryDiffEqAlgorithm,
  OrdinaryDiffEqAdaptiveAlgorithm, UJacobianWrapper, _ad_chunksize_int,
  _ad_fdtype, _ode_interpolant, _ode_interpolant!, isfsal, uses_uprev.
- Import names from their true owners so the *_via_owners checks pass:
  alg_order from SciMLBase; initialize!/calculate_residuals/calculate_residuals!
  from DiffEqBase; get_W/isnewton/set_new_W!/COEFFICIENT_MULTISTEP from
  OrdinaryDiffEqCore; _vec/_reshape/_unwrap_val from SciMLBase. Extended
  functions use `import`, called-only names use `using`.
- Qualified-access cleanup: OrdinaryDiffEqCore.SciMLBase.addsteps! ->
  SciMLBase.addsteps! (addsteps! is public in SciMLBase).

Residual ignores are all non-public internals of their owning packages with no
public alternative yet (OrdinaryDiffEqCore / OrdinaryDiffEqNonlinearSolve /
OrdinaryDiffEqDifferentiation internals, a few non-public SciMLBase/DiffEqBase
names, and ConstructionBase.constructorof reached via SciMLBase's re-export).

QA group passes 17/17 on Julia 1.12 (released SciMLTesting 1.7.0).

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

* DiffEqBase: declare curated solver-author extension API `public`

Mark the DiffEqBase-owned, documented/intended solver-author extension
API names `public` so downstream OrdinaryDiffEq sublibraries can drop
their `DiffEqBase.X` non-public ExplicitImports ignores. Only the
de-facto extension interface accessed by sibling solver packages is
declared: residual hooks (calculate_residuals/!), algorithm/dt setup
hooks (prepare_alg, prob2dtmin, timedepentdtmin, check_prob_alg_pairing,
default_factorize, stripunits, ODE_DEFAULT_UNSTABLE_CHECK), tableau
supertypes (Tableau, ODERKTableau), wrapper/tag types (EvalFunc,
OrdinaryDiffEqTag), the convergence-testing entry type (ConvergenceSetup),
and max_vector_callback_length_int. Bump patch version to 7.6.1.

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

* Declare OrdinaryDiffEqNonlinearSolve solver-author extension API public

Curated `public` declarations for the documented nonlinear-solver extension
interface (algorithm types NLNewton/NLFunctional/NLAnderson, build_nlsolver,
and the stepping/status/Anderson hooks nlsolve!/nlsolvefail/compute_step!/
initial_η/markfirststage!/du_alias_or_new/anderson/anderson!) that downstream
solver sublibs and DelayDiffEq legitimately construct and extend. Gated to
Julia >= 1.11.0-DEV.469 to keep the 1.10 floor parsing. Private codegen/perf
internals are intentionally left non-public.

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

* OrdinaryDiffEqDifferentiation: declare solver-author extension API public

Mark the documented Jacobian/W-matrix and differentiation-config hooks that
downstream OrdinaryDiffEq solver sublibraries access as `public`, so they are
no longer flagged as non-public accesses in the ExplicitImports QA sweep.
Codegen/perf internals remain non-public. Bump to 3.2.2.

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

* Declare solver-author extension API public in OrdinaryDiffEqCore

Mark the documented/intended extension-API surface (abstract algorithm/cache/
controller/nlsolver/integrator types, the extension hook functions, enum
member values, the @cache cache-defining macro, and options/wrapper types) as
public via an Expr(:public, ...) block. These are the names downstream
OrdinaryDiffEq.jl / StochasticDiffEq.jl solver packages legitimately subtype,
extend, or call, so ExplicitImports' public-API checks recognize them as the
supported extension surface. Genuine codegen/perf macros (@fold / @threaded /
@OnDemandTableauExtract / @swap!) and precompile-workload helpers are kept
non-public.

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

* Re-clean OrdinaryDiffEqExplicitRK QA ExplicitImports ignore lists

The base packages (OrdinaryDiffEqCore/DiffEqBase) now declare their
solver-author API `public` on this branch, so the prior bloated ignore
lists can be trimmed to the genuine residual (26 -> 7 entries).

Dropped everything now public (alg_adaptive_order, perform_step!,
alg_cache, unwrap_alg, isfsal, get_fsalfirstlast, the OrdinaryDiffEq*
algorithm/cache supertypes, CompositeAlgorithm, _ode_interpolant,
_ode_addsteps!, @cache, increment_nf!, set_EEst!, hermite_interpolant,
calculate_residuals/calculate_residuals!). Kept only the still-non-public
names: OrdinaryDiffEqCore internals not part of the make-public surface
(DerivativeOrderNotPossibleError, _ode_interpolant!,
interpolation_differential_vars, hermite_interpolant!) and genuine
externals (@truncate_stacktrace, Base.Cartesian @nexprs/@nif).

Develop DiffEqBase from lib/ in the QA env so the on-branch `public`
decls (calculate_residuals et al.) are picked up during the EI check.

Verified on Julia 1.12: run_qa EI 6/6 pass, 0 flagged.

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

* Re-clean OrdinaryDiffEqFeagin QA ExplicitImports ignore list

Now that OrdinaryDiffEqCore and DiffEqBase declare their solver-author
extension API public on this branch (PHASE A), drop every now-public
name from the QA ExplicitImports ignore lists. The all_qualified_accesses
ignore is emptied entirely (increment_nf!/set_EEst! are now public), and
the all_explicit_imports ignore keeps only the three genuinely owner-
internal names: CompiledFloats/trivial_limiter! (OrdinaryDiffEqCore) and
@tight_loop_macros (DiffEqBase). Source DiffEqBase from the in-repo lib
copy so its on-branch public decls are honored.

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

* Re-clean OrdinaryDiffEqLowStorageRK QA ignore lists after public decls

The solver-author API of OrdinaryDiffEqCore / DiffEqBase is now declared
public on this branch, so the enumerated non-public ignores collapse to the
genuine residual: OrdinaryDiffEqCore precompile probes (lorenz/lorenz_oop),
its default no-op trivial_limiter!, and Base.Broadcast internals
(Broadcasted/materialize!).

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

* Re-clean OrdinaryDiffEqFunctionMap QA ExplicitImports ignore lists

Drop the now-redundant explicit ignores for solver-author API names that
OrdinaryDiffEqCore / DiffEqBase now declare public on this branch. Keep only
the genuine residual: three OrdinaryDiffEqCore solver-internal hooks not yet in
the public-API declaration (_ode_interpolant!/isdiscretealg/isdiscretecache)
and the two SciMLBase-owned non-public default-solve sentinels
(DISCRETE_INPLACE_DEFAULT/DISCRETE_OUTOFPLACE_DEFAULT). Verified green: run_qa
ExplicitImports 6/6 on Julia 1.12.

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

* Re-clean OrdinaryDiffEqNordsieck QA ExplicitImports ignore lists

Drop the now-public OrdinaryDiffEqCore solver-extension API names (and the
DiffEqBase residual primitives) from the all_explicit_imports_are_public
ignore list, since PHASE A declared them public on this branch. Only the
genuine owner-internal residual remains: eight OrdinaryDiffEqCore names not
in the public extension API and the two OrdinaryDiffEqTsit5 first-step caches.

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

* Re-clean OrdinaryDiffEqPRK QA EI ignore list (PHASE B)

Base packages now declare their solver-author API public on this branch
(PHASE A), so the enumerated ignore list is stale. Drop the 11 names now
public in OrdinaryDiffEqCore (@cache, alg_cache, constvalue,
generic_solver_docstring, get_fsalfirstlast, isthreaded,
OrdinaryDiffEqAlgorithm, OrdinaryDiffEqConstantCache,
OrdinaryDiffEqMutableCache, perform_step!, unwrap_alg). Keep only the
deliberately non-public codegen macro @threaded. run_qa EI verified green
(17/17) on Julia 1.12.

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

* Re-clean OrdinaryDiffEqLowOrderRK QA ExplicitImports ignore lists

PHASE A declared the OrdinaryDiffEqCore / DiffEqBase solver-author extension
API `public` on this branch, so the prior bloated ignore lists no longer
match what ExplicitImports flags. Drop every now-public name and keep only
the genuine residual (11 -> 1 qualified + 10 explicit):

- has_lazy_interpolation (SciMLBase, qualified access)
- OrdinaryDiffEqCore owner-internal names deliberately not made public:
  @fold, @OnDemandTableauExtract codegen macros plus CompiledFloats,
  DerivativeOrderNotPossibleError, _ode_interpolant!, ssp_coefficient,
  trivial_limiter!
- DiffEqBase @tight_loop_macros (private loop macro)
- SciMLBase @def, _unwrap_val internals

Verified on Julia 1.12 with the on-branch lib/* sources developed via
[sources]: run_qa ExplicitImports checks 6/6 pass, 0 fail/error/broken.

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

* Re-clean OrdinaryDiffEqAdamsBashforthMoulton QA ignore lists after public-API decls

PHASE A declared the OrdinaryDiffEqCore solver-author extension API public on
this branch, so the enumerated ExplicitImports ignore lists here are now mostly
stale. Drop every name that is now public (get_EEst/set_EEst!/increment_nf!,
@cache/alg_cache/perform_step!/constvalue/get_fsalfirstlast/generic_solver_docstring/
default_controller/IController, the abstract algorithm types, the mutable/constant
cache supertypes, and DiffEqBase calculate_residuals/!), keeping only the genuine
residual: OrdinaryDiffEqLowOrderRK's BS3/RK4 starter-cache types and
OrdinaryDiffEqCore's trivial_limiter! (all deliberately kept non-public).

Verified on Julia 1.12 with the in-repo lib/* siblings developed via [sources]:
QA group 17/17 pass, 0 fail/error/broken.

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

* ImplicitDiscreteSolve: re-clean QA EI ignore lists after make-public

Drop the 19 now-public OrdinaryDiffEqCore solver-author API names from the
explicit-import and qualified-access ignore lists (declared public in this
branch's OrdinaryDiffEqCore). Keep only the genuine residual: OrdinaryDiffEqCore
internals still non-public (isdiscretecache/isdiscretealg/_initialize_dae!/
allows_null_u0/_resolved_QT/resolve_basic), NonlinearSolveBase solver internals
(get_fu/get_u/not_terminated/update_from_termination_cache!/update_trace!), and
SciMLBase.has_initializeprob.

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

* Re-clean OrdinaryDiffEqCore QA EI ignore lists after public decls

The solver-author extension API is now declared public on this branch for
OrdinaryDiffEqCore and DiffEqBase, so their names no longer need explicit
ExplicitImports ignore entries. Drop the 11 now-public names from the
all_qualified_accesses_are_public and all_explicit_imports_are_public
ignore lists, keeping only genuine residual: SciMLBase internals with no
public replacement yet, externals (SciMLOperators/EnzymeCore/FastPower/
FunctionWrappers/TruncatedStacktraces/ConstructionBase), Base/Core
internals, and the one remaining DiffEqBase internal (_process_verbose_param).

Verified on Julia 1.12 against the on-branch lib/* sources: all 6
ExplicitImports checks pass with the tightened lists.

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

* Re-clean OrdinaryDiffEqHighOrderRK QA explicit-imports ignore lists

Now that OrdinaryDiffEqCore and DiffEqBase declare their solver-author
extension API public on this branch, drop every ignore entry that has
become public. The residual is only the genuinely non-public names:

- no_stale/are_public: @tight_loop_macros (DiffEqBase-internal codegen
  macro, still non-public upstream).
- are_public: CompiledFloats, DerivativeOrderNotPossibleError,
  _ode_interpolant!, isdp8, trivial_limiter! (OrdinaryDiffEqCore
  internals deliberately kept non-public).

all_qualified_accesses_are_public is dropped entirely (get_EEst,
increment_nf!, set_EEst! are now public). Source the in-repo DiffEqBase
in the QA env so the on-branch public declarations are picked up.

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

* Re-clean OrdinaryDiffEqLinear QA ignore list to genuine residual

The OrdinaryDiffEqCore/DiffEqBase solver-author API is now declared public
on this branch, so those names are dropped from the ExplicitImports ignore
lists. Only three genuine non-public externals remain:
AbstractSciMLOperator (SciMLOperators), _vec (SciMLBase), and alloc_mem
(ExponentialUtilities).

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

* Re-clean OrdinaryDiffEqExtrapolation QA ExplicitImports ignore lists

Now that the solver-author extension API is declared `public` in
OrdinaryDiffEqCore / OrdinaryDiffEqDifferentiation / DiffEqBase on this
branch, drop every ignore entry that is now recognized as public API.
Only genuine owner-internal names (OrdinaryDiffEqCore @threaded codegen
macro and a handful of perf/controller/docstring helpers) plus
still-non-public SciMLBase reshaping helpers and Base.Threads/FastPower
internals remain. Reduces the two public-API ignore lists from 62 to 14
entries; QA is green on Julia 1.12.

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

* Re-clean OrdinaryDiffEqIMEXMultistep QA ExplicitImports ignore list

Now that OrdinaryDiffEqCore / OrdinaryDiffEqNonlinearSolve / DiffEqBase declare
their solver-author extension API public on this branch, drop every ignore-list
entry that has become public and keep only the genuine residual.

all_qualified_accesses_are_public: dropped entirely (`increment_nf!` is now
public in OrdinaryDiffEqCore).

all_explicit_imports_are_public: trimmed from 17 names to 2. The now-public
OrdinaryDiffEqCore cache/algorithm/dispatch internals (OrdinaryDiffEqConstantCache,
OrdinaryDiffEqMutableCache, OrdinaryDiffEqNewtonAlgorithm, @cache, alg_cache,
perform_step!, get_fsalfirstlast, generic_solver_docstring, issplit) and the
OrdinaryDiffEqNonlinearSolve nlsolver internals (NLNewton, build_nlsolver,
markfirststage!, nlsolve!, nlsolvefail, du_alias_or_new) are dropped. Only two
remain: `_fixup_ad` (OrdinaryDiffEqCore private autodiff-fixup helper, kept
non-public in the public-API pass) and `_unwrap_val` (SciMLBase-internal).

The QA env now develops the in-repo OrdinaryDiffEqDifferentiation /
OrdinaryDiffEqNonlinearSolve / DiffEqBase via [sources] so the on-branch public
declarations are picked up during the ExplicitImports analysis.

Verified on Julia 1.12: run_qa Quality Assurance 17/17 pass, 0 fail/error/broken.

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

* OrdinaryDiffEqRKN: re-clean QA EI ignore list after PHASE A public decls

Drop every OrdinaryDiffEqCore/DiffEqBase solver-author name now declared
public on this branch (increment_nf!, set_EEst!, perform_step!, alg_cache,
constvalue, generic_solver_docstring, get_fsalfirstlast, _ode_interpolant,
the OrdinaryDiffEq*Algorithm/*Cache types, @cache, calculate_residuals[!]).
Keep only the genuine residual: @def (SciMLBase), @tight_loop_macros
(DiffEqBase), and CompiledFloats / _ode_interpolant! (OrdinaryDiffEqCore
internals still deliberately non-public). Drops all_qualified_accesses
ignores entirely (both now public); no ei_broken needed.

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

* Re-clean OrdinaryDiffEqBDF QA ExplicitImports ignore lists

Now that OrdinaryDiffEqCore / OrdinaryDiffEqDifferentiation /
OrdinaryDiffEqNonlinearSolve / DiffEqBase declare their solver-author
extension API public on this branch, drop every now-public name from the
BDF QA ignore lists. Only genuine owner-internal names remain:
OrdinaryDiffEqCore internals not in the public extension API, the
OrdinaryDiffEqSDIRK ESDIRK-IMEX caches/tableau, SciMLBase._unwrap_val,
TruncatedStacktraces.@truncate_stacktrace, and the lorenz/lorenz_oop
precompile-workload test fixtures. Verified run_qa EI green on Julia 1.12.

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

* Re-clean OrdinaryDiffEqSymplecticRK QA ignore list post make-public

The base OrdinaryDiffEqCore now declares its solver-author API public on this
branch, so the previously-enumerated ignore list collapses to a single
genuine residual: CompiledFloats (a Core-internal Union const, not public).
Dropped the 11 now-public names and the whole all_qualified_accesses_are_public
block (increment_nf! is now public). EI 6/6 green on Julia 1.12.

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

* Trim OrdinaryDiffEqFIRK QA ignore list to genuine residual

The OrdinaryDiffEqCore solver-author extension API is now declared public,
so the previously-enumerated ignore entries for those names are redundant.
Re-clean the ExplicitImports ignore list down to the genuine residual:
OrdinaryDiffEqCore owner-internal names kept non-public (private codegen
macro + framework internals), SciMLBase internal helpers/wrappers still
pending public declaration, and genuine external deps (FastPower,
SciMLOperators). The all_qualified_accesses_are_public ignore list is now
empty (get_EEst/set_EEst!/increment_nf! are public) and is dropped.

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

* Re-clean OrdinaryDiffEqSSPRK QA ignore lists after public-API decls

The solver-author API in OrdinaryDiffEqCore and DiffEqBase is now declared
public on this branch, so most of the previously-enumerated non-public
ignore entries are redundant. Trim the ExplicitImports ignore lists to only
the genuine residual owner-internals (@def, _ode_interpolant!,
ssp_coefficient, trivial_limiter!, lorenz, lorenz_oop) and develop the
in-repo DiffEqBase so its public calculate_residuals decls are picked up.

Co-Authored-By: Chris Rackauck…
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