Skip to content

Problem-class keyword validation: checkkwargs(prob, alg), KeywordVerbosity, can_honor (Wave 1 of #1562) - #1612

Merged
ChrisRackauckas merged 5 commits into
SciML:masterfrom
ChrisRackauckas-Claude:tolerance-keyword-validation
Oct 31, 2026
Merged

ChrisRackauckas merged 5 commits into
SciML:masterfrom
ChrisRackauckas-Claude:tolerance-keyword-validation

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Wave 1 of the tolerance/termination rollout. Design: RFC #1562 (§2 and §3). Tracking issue: #1607.

What and why

This PR puts the RFC's per-class keyword matrix into SciMLBase as data (KEYWORD_CLASSES, keyword_class, keyword_status). It adds a new checkkwargs(prob, alg; kwargs...). That method reports two things through a SciMLLogging KeywordVerbosity: keywords that have no meaning for the problem's class (undefined_keyword), and defined keywords the algorithm says it ignores (unhonored_keyword, through a new can_honor(alg, ::Val{kw}), which defaults to true). Both default to WarnLevel. The old checkkwargs(kwargshandle; kwargs...) is unchanged, and nothing in SciMLBase calls the new method. Packages opt in, so no existing call site changes behaviour. The one exception is that kwargs_verbosity is added to allowedkeywords.

New public API, each with a docstring and a @docs entry in Developer_API.md: checkkwargs, can_honor, KeywordVerbosity, keyword_class, keyword_status. There is also a short "Keyword Validation" section in Common_Keywords.md. Version 3.56.0 → 3.57.0.

Semantics of checkkwargs(prob, alg; kwargshandle = nothing, kwargs_verbosity = nothing, kwargs...)

  1. Unrecognized keywords go through the existing checkkwargs(kwargshandle; ...), with KeywordArgError when kwargshandle === nothing, as solve_call does today. xtol, gtol, constrtol and compltol are recognized on this path only. They are stripped before the legacy check, and allowedkeywords is not extended with them, so the legacy path still rejects them.
  2. Undefined for the class. Any of abstol, reltol, internalnorm, xtol, gtol, constrtol, compltol, maxiters, maxtime, dtmin that the class does not define. For Nonlinear, NLLS, Interval, Linear and Integral, the time-series keywords (dt, dtmax, saveat, tstops, dense, callback, adaptive, controller, …) are also undefined. For Optimization, all of them except callback are undefined.
  3. Unhonored. A tolerance/budget keyword defined for the class with can_honor(alg, Val(kw)) == false.
  • A keyword whose value is nothing counts as not passed for steps 2 and 3.
  • Severity precedence: an explicit kwargshandle (KeywordArgError → ErrorLevel, KeywordArgWarn → WarnLevel, KeywordArgSilent → Silent) wins, then kwargs_verbosity, then KeywordVerbosity(). The one exception is the escape hatch below. verbose is never read. ErrorLevel throws through SciMLLogging's ErrorException.

Class mapping

class problem types
:ODE AbstractODEProblem, SDE, RODE, DDE, SDDE whose f.mass_matrix is isone (or has none); ImplicitDiscreteProblem
:DAE AbstractDAEProblem, and the above with a non-identity mass matrix (0*I, Diagonal([1,0]), a non-identity operator)
:BVP AbstractBVProblem
:SteadyState SteadyStateProblem (it is an AbstractNonlinearProblem alias, so this dispatches on the concrete type)
:Nonlinear other AbstractNonlinearProblems (NonlinearProblem, SCCNonlinearProblem, HomotopyProblem, ImmutableNonlinearProblem)
:NLLS NonlinearLeastSquaresProblem
:Interval AbstractIntervalNonlinearProblem
:Optimization AbstractOptimizationProblem
:Linear / :Integral AbstractLinearProblem / AbstractIntegralProblem
:Discrete AbstractDiscreteProblem except ImplicitDiscreteProblem; time-series keywords (saveat, dt, tstops, …) stay defined because FunctionMap uses them
inherits AbstractJumpProblem → keyword_class(prob.prob)
nothing (no class checks) AbstractDynamicOptProblem, AbstractAnalyticalProblem, ensembles, noise, PDE, eigenvalue

keyword_class is public, so packages that define problem types outside SciMLBase can extend it. For an unclassified problem, keyword_status returns :unclassified for any common keyword (it does not claim the keyword is defined) and :unrecognized otherwise.

Per RFC 7.5: BVP defines dtmin (Shooting forwards it to the inner ODE; collocation methods declare can_honor(alg, Val(:dtmin)) = false in Wave 2), and internalnorm is undefined for Interval and Discrete. The DAE constrtol structure gate (defined only with a singular mass matrix or differential_vars) is deferred to Wave 2; here constrtol is defined for every :DAE-classed problem.

Internal-caller escape hatch

A solver-internal solve/init that forwards keywords passes kwargs_verbosity = KeywordVerbosity(SciMLLogging.None()), placed after any splatted user kwargs. Two examples: DAE initialization passing the ODE's reltol into NonlinearSolve, and DynamicSS passing steady-state tolerances into an ODE solve. A preset None() is also accepted. A disabled specifier (KeywordVerbosity{false}) turns off steps 2 and 3 even when an explicit kwargshandle is present. That deviates from the RFC's flat precedence, on purpose. Internal callers usually splat the user's kwargs, and those can carry a kwargshandle. Under strict precedence, a user's kwargshandle = KeywordArgError on the outer SteadyStateProblem solve would make the inner ODE solve throw on the forwarded xtol/gtol. That is exactly the case the hatch must cover. The unrecognized-keyword check (step 1) is not disabled. I did not add a separate validate = false keyword, because it would be another name in allowedkeywords that does the same job as None(), which is the established SciMLLogging "off" preset. All of this is documented in the checkkwargs and KeywordVerbosity docstrings and tested.

Dependency

Adds SciMLLogging (MIT, SciML-owned), compat "2". Its dependencies are Logging, LoggingExtras, Preferences and PrecompileTools, which SciMLBase already depends on. It pulls in no new packages. @time using SciMLLogging takes 0.08 s. Every current SciMLBase-3-compatible release of DiffEqBase, NonlinearSolveBase, LinearSolve, OptimizationBase, OrdinaryDiffEqCore 4.x, BoundaryValueDiffEqCore, Integrals and SciMLSensitivity already requires SciMLLogging 2, so this adds no resolver pressure. KeywordVerbosity is built with @verbosity_specifier.

Verification (Julia 1.12.7, local)

Core group, GROUP=Core julia +1.12 --project -e 'using Pkg; Pkg.test()', exit 0:

Public interface declarations |  685    685  5.1s
Keyword validation |   69     69  6.1s
Problem building tests |  170    170  14.4s
Function Building Error Messages |  402    402  1m17.4s
...
Remake        | 4605   4605  6m13.2s
EXIT 0

After the review-fix commit, test/keyword_validation.jl passes 83/83 and test/public_interface.jl passes 685/685 (Julia 1.12, run directly in a temp env with SciMLBase dev'd). The testset covers the class mapping for 18 problem types plus four mass-matrix cases (I and Diagonal([1,1]) → ODE; 0*I and Diagonal([1,0]) → DAE), :unclassified for ensembles, BVP dtmin defined, internalnorm undefined for Interval and Discrete, time-series keywords defined for DiscreteProblem, the three states, severities (Error throws and logs, Warn and Info log, Silent is quiet, toggles are independent), that verbose = false does not disable anything, kwargshandle precedence, the escape hatch (including with a forwarded kwargshandle, and that it does not disable the unrecognized check), can_honor extension, nothing-valued keywords, and that the legacy checkkwargs is unchanged.

QA: GROUP=QA cannot run fully on this machine, because PythonCall's CondaPkg python fails with LookupError: no codec search functions registered. That is an environment problem unrelated to this PR. I ran test/qa/qa.jl in the QA environment with only PythonCall removed:

Aqua tests (performance) |    2      2
Aqua tests (additional)  |    6      6
Extensions loaded        |   15     15
Quality Assurance        |   19      1     20
  ExplicitImports        |    5      1      6
    no_stale_explicit_imports                |    1             1
    all_qualified_accesses_are_public        |           1      1
  Public API documentation                   |    2             2

The one remaining error is Base.Callable at src/problems/nonlinear_problems.jl:256. It is pre-existing on master: the QA job on master's run https://github.com/SciML/SciMLBase.jl/actions/runs/35839187919 fails the same way. This PR's own Base.structdiff use was replaced to avoid adding a second one. no_stale_explicit_imports needed an ignore for the SciMLLogging names that are only referenced inside the @verbosity_specifier expansion (AbstractVerbositySpecifier, MessageLevel, None, Minimal, Standard, Detailed, All), which ExplicitImports cannot see.

Runic --check on all changed .jl files: exit 0. typos src test docs/src/interfaces: clean.

Docs: the full docs/make.jl did not finish locally. The @example blocks need OrdinaryDiffEq/ModelingToolkit precompiled, and on this shared machine (load ~350) the shared depot's precompile caches kept getting invalidated (SystemError: opening file .../LinearSolveForwardDiffExt/...ji). I built all of docs/src with Documenter against this branch with @example/@eval blocks rendered as plain code instead. CrossReferences, CheckDocument (missing docstrings) and HTMLWriter all passed, exit 0, so the new @docs entries and @refs resolve. CI's Documentation job is the first full run.

Not verified

  • The full docs build with executed examples (see above), and the PythonCall extension under QA.
  • Julia LTS (1.10) and pre. Downstream, SymbolicIndexingInterface and Python groups. No downstream package calls the new method yet, so downstream behaviour should be unchanged, but I did not run downstream tests.
  • Runtime cost at a real call site. The check does one dynamic can_honor(alg, Val(kw)) dispatch per defined tolerance keyword and builds small tuples. Measured at about 12 µs warm for one keyword in a quick @time, but not benchmarked in a solver.

Please push back on

  • The escape hatch beats kwargshandle (see above). This deviates from the RFC's precedence.
  • callback is kept for Optimization. The task spec listed callback among the keywords that are undefined for non-time-series classes, but Optimization's solve takes a per-iteration callback.
  • nothing means not passed. Wrappers often forward maxtime = nothing / maxiters = nothing as "unset". Validating those would give false warnings.
  • Mass matrix → :DAE when !isone(mass_matrix). That is lenient: a nonsingular non-identity mass matrix also gets constrtol defined, and so does any operator mass matrix other than IdentityOperator. The singular-structure gate is Wave 2.
  • ImplicitDiscreteProblem → :ODE rather than :Discrete. Its solvers run a nonlinear solve per step and do read abstol/reltol, so the RFC's "— for pure SSA / FunctionMap" does not fit it.
  • RFC underspecification: mostly resolved by RFC revision 7.5. It adopts WarnLevel defaults, the escape-hatch precedence, nothing = not passed, ensemble/mass-matrix/ImplicitDiscreteProblem/JumpProblem classing, BVP dtmin defined for Shooting, and internalnorm undefined for Interval and Discrete. This PR now matches 7.5. Still open: how ensembles should be validated when EnsembleProblem is wired (they are :unclassified here), and the DAE constrtol structure gate (Wave 2).
  • Rollout-ordering hazard for Wave 2: once a package (for example NonlinearSolve) calls the new method, internal callers in other packages (OrdinaryDiffEq DAE init, SteadyStateDiffEq) must add the escape hatch in the same release window, or users will see spurious warnings.

🤖 Generated with Claude Code (model: claude-opus-5-5)

https://claude.ai/code/session_01NB3oFTNzGW79UtDt8AyjsM

Risk assessment

  • Risk: low
  • Blast radius: Small for current users. Nothing in SciMLBase or downstream calls the new checkkwargs(prob, alg; ...) yet, so behaviour only changes once packages opt in during Wave 2. Today the change reaches every SciMLBase user in three ways: SciMLLogging becomes a hard dependency (MIT, compat "2", no new transitive packages); kwargs_verbosity is added to allowedkeywords, so every legacy checkkwargs path now accepts that keyword silently; and @public adds five new public names (checkkwargs, can_honor, KeywordVerbosity, keyword_class, keyword_status), which is a minor-version API addition, not a breaking change. The later risk sits with the Wave 2 packages. The default is WarnLevel, and solver-internal solve calls (OrdinaryDiffEq DAE init, SteadyStateDiffEq) must add the None() escape hatch in the same release window, or users get spurious warnings. The description says this.
  • Evidence: Head 58fa8b44, CI run on 2026-09-23. Its base 70133024 is now 14 commits behind master. Nine checks fail on head:
    • SymbolicIndexingInterface (Julia 1, lts): pre-existing. Both fail on every master "Run Tests" run from 4fa7f7f2 to 432e9856.
    • SciMLSensitivity Core1, Core6, Core7, Core8: pre-existing. They fail on master IntegrationTest runs, e.g. 432e9856 (Core1/6/7) and 93c3925e and 0106b17a (Core1/6/7/8).
    • ReleaseTest Catalyst/All/1: pre-existing. It fails on master's ReleaseTest runs at 432e9856 and 93c3925e.
    • QA (Julia 1): pre-existing on the PR's base. The only error is Base.Callable at src/problems/nonlinear_problems.jl:256. QA also failed on master at 4fa7f7f2, and master fixed it in d57a756b (Use the local Callable alias instead of non-public Base.Callable #1608), so a merge picks up that fix. The PR's own ExplicitImports checks pass.
    • SciMLSensitivity Core3: passes in every master run I listed, but I don't count it as a regression. It is a signal-11 crash inside LLVM's LoopUnrollPass, reached from Enzyme.post_optimize! at downstream/test/Core3/default_alg_diff.jl:21. The identical crash at the same line hit the unrelated PR branch smc/optcache-getproperty (run 36160522234). That makes it a flaky Enzyme/LLVM segfault, not caused by this code, and the new method is never called anyway.
    • Everything else passes: Core (1, lts, x86), Downstream, DownstreamAD, Python, Reactant, Documentation (first full docs build, green), Downgrade, Runic, Typos, and all OrdinaryDiffEq, ModelingToolkit, NonlinearSolve, Optimization, BVP, Integrals, JumpProcesses, LinearSolve and Catalyst downstream groups.
    • No regressions found. CI has not run on the merged state.
  • Independent review: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium rated it low, high confidence: the change only adds things and is opt-in, all 9 head failures are pre-existing or a known flaky Enzyme segfault, and the only internals touched are SciMLLogging and LinearAlgebra names that pass ExplicitImports' public-import check.
  • Merge: needs human review. Findings:
    1. Draft PR that asks not to be merged: it is a draft and its body says "Please ignore until reviewed by @ChrisRackauckas". The body lists seven design questions for Chris to push back on, e.g. that the escape hatch overrides an explicit kwargshandle, which deviates from the RFC. No review comments or reviews exist yet.
    2. Version clash (not in the description): the PR bumps 3.56.0 → 3.57.0, but master is already at version = "3.57.0" (released; a v3.57.0 tag run exists). Git merges this cleanly because both sides end on the same text, so the merged state would ship a new feature under an already-released version. It needs a re-bump to 3.58.0.
    3. Stale base: the branch is 14 commits behind master (including Make NonlinearSolution's retcode field type a parameter #1620, Keep the specialization when rebuilding a SciML function #1606, Fix CheckInit for immutable out-of-place mass-matrix residuals #1629). It reports as mergeable, but CI should rerun after a rebase.
    4. Loosened QA check (disclosed): test/qa/qa.jl adds a no_stale_explicit_imports ignore for 7 SciMLLogging names (AbstractVerbositySpecifier, MessageLevel, None, Minimal, Standard, Detailed, All). The stated reason is that they are only used inside the @verbosity_specifier expansion. That is plausible, but it still weakens a QA check.
    5. Smaller items: each check runs isone over the full mass matrix, which costs O(n²) for a large dense matrix and was not benchmarked at a real call site. Any operator mass matrix other than IdentityOperator is classed as :DAE (disclosed as deliberately lenient).

🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium; dispatched by Devin CLI 3000.11.3 fleet-master caretaker, model Fusion (claude-opus-5-5 medium + swe-2 medium)
Conversation: local transcript (no session URL)

Regression fix

merge-queue flagged OrdinaryDiffEq.jl/Core and SciMLSensitivity.jl Core1/3/6/7/8 as regressions. They are not caused by this PR. The PR's only CI run is from 2026-09-23 and tested the merge of 58fa8b44 into master b7076b57; the comparison was against current master.

Change: merged current master (365283c6) into the branch, with no code changes. The only conflict was the version line. Master is at the released 3.58.0, so this branch now declares 3.59.0 (minor bump for the new public API). That resolves the version clash noted in the risk assessment.

Local validation on the merged head 6e6234c8 (Julia 1.13.0): GROUP=Core passed, including Keyword validation 83/83 and Public interface declarations 687/687. GROUP=QA passed 123/123, so the earlier Base.Callable QA failure is gone through #1608. Runic --check and typos are clean on the PR's files. I did not run SciMLSensitivity, SymbolicIndexingInterface or Catalyst locally; the new CI run triggered by this push covers them.


🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID b4817baa-cd8a-4b2b-9ac9-9ed6d04808a9 (headless, no URL)

Breaking change

None. The required bump is minor: 3.58.0 → 3.59.0, and Project.toml on this branch already declares 3.59.0. The "Version 3.56.0 → 3.57.0" line under "What and why" is out of date.

On master, none of checkkwargs, can_honor, KeywordVerbosity, keyword_class and keyword_status is declared public. Nothing in SciMLBase calls the new checkkwargs(prob, alg; ...). The legacy checkkwargs(kwargshandle; ...) is unchanged. The one change to existing behaviour is additive: kwargs_verbosity joins allowedkeywords, so a keyword that used to be rejected is now accepted.

Review round 2 fix

Codex (Sol) re-reviewed 6e6234c8 and found one bug, P2: for an unclassified problem (keyword_class(prob) === nothing, e.g. EnsembleProblem), checkkwargs(prob, alg) still consulted can_honor. The keyword_class and can_honor docstrings say only the unrecognized-keyword check applies to unclassified problems, and keyword_status already returned :unclassified. On the old code:

  • checkkwargs(EnsembleProblem(odeprob), NoMaxtimeAlg(); maxtime = 1.0) logged an unhonored_keyword warning.
  • With kwargshandle = KeywordArgError, the same call threw.

Change: checkkwargs(prob, alg) returns after the unrecognized-keyword check and the kwargshandle/kwargs_verbosity argument validation when the class is nothing. The Nothing method of _is_undefined_for_class had no callers left and is removed. The checkkwargs docstring now says steps 2 and 3 are skipped for unclassified problems. A new testset, "Unclassified problems get only the unrecognized-keyword check", covers:

  • the default severity, with maxtime, gtol and saveat producing no logs;
  • strict kwargshandle = KeywordArgError, which now neither logs nor throws;
  • an unknown keyword, which still throws CommonKwargError.

Fail before / pass after (test/keyword_validation.jl alone, Julia 1.13.0):

# new test, fix not yet applied (head 6e6234c8)
Unclassified problems get only the unrecognized-keyword check: Log Test Failed at test/keyword_validation.jl:169
  Expression: checkkwargs(ensprob, NoMaxtimeAlg(); maxtime = 1.0, gtol = 1.0, saveat = 0.1)
  Captured Logs: LogRecord(Warn, "Verbosity toggle: unhonored_keyword \n Algorithm NoMaxtimeAlg cannot honor keyword(s) `maxtime`; they are ignored.", ...)
Unclassified problems get only the unrecognized-keyword check: Error During Test at test/keyword_validation.jl:170
  Expression: checkkwargs(ensprob, NoMaxtimeAlg(); maxtime = 1.0, kwargshandle = KeywordArgError)
                                                                | Pass  Fail  Error  Total
Keyword validation                                              |   85     1      1     87

# with the fix
Test Summary:      | Pass  Total
Keyword validation |   87     87

Local validation on the new head (Julia 1.13.0): d1cb3d22. GROUP=Core passed: Keyword validation 87/87, Public interface declarations 687/687, Remake 4605/4605, Testing SciMLBase tests passed. GROUP=QA passed 123/123. julia --project=docs docs/make.jl exits 0; its only warnings are HTML size thresholds and the skipped deployment. Runic --check and typos are clean on both changed files. I did not run Julia LTS, Downstream, SymbolicIndexingInterface or Python locally; CI on this push covers them.


🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID 56de636f-61d2-439d-a488-ea56c2430696 (headless, no URL)

Risk assessment (independent review, codex-cli gpt-6.1-sol, reviewed head d1cb3d2)

  • Risk: medium
  • Blast radius: Adds public, opt-in keyword validation across SciML problem classes and a SciMLLogging dependency. Existing solver call sites retain their validation path; the legacy whitelist additionally accepts kwargs_verbosity. Future solver adoption must coordinate the documented internal-call escape hatch.
  • Evidence: Reviewed head d1cb3d22f050f96ac201798746bf2e272753d6b9. Julia 1.13.0 and 1.10.12 both pass keyword validation 87/87; public-interface tests pass 687/687 and 243/243 respectively. The current regression tests against parent 6e6234c873cc7f68b5933403f9d4830c311efff8 produce 85 passes, 1 failure and 1 error. The full Julia 1.13.0 Core group passed and QA passed 123/123. The head is unchanged at the final snapshot. Both CI snapshots show 55 pending checks and no completed failures; tests: https://github.com/SciML/SciMLBase.jl/actions/runs/38919755218.
  • Independent review: codex-cli 0.163.0 gpt-6.1-sol rated it medium, high confidence: the prior correctness finding is fixed with discriminating tests, and the additive API is documented and opt-in. This risk rating was formed before reading the author's risk claims.
  • Merge: needs human review — new public API excludes automatic merging under repository policy, and the draft asks for @ChrisRackauckas review. No blocking technical findings remain.

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

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Risk assessment (independent review, Codex Desktop (Codex core 0.164.0-alpha.11.1) gpt-6.1-sol, slot 1, head d1cb3d2)

  • Risk: medium-low (ML7: Adds documented/tested public interfaces while existing validation call sites remain on the legacy overload; also adds a small permissive hard dependency (ML9).)
  • Verdict: MERGE
  • Session: 01a18db8-25fc-7b72-9d35-a1341e0ae484
  • Blocking priorities: none

Review round 2, written by the reviewer named above (Codex Desktop (Codex core 0.164.0-alpha.11.1) / gpt-6.1-sol) in a session other than the PR author's, and copied here by the posting agent without change to its findings. The posting agent did not re-run the reviewer's commands.

Summary: Adds opt-in class-aware keyword validation with explicit severity precedence and an internal-caller escape hatch. The new public interfaces are documented and the complete focused test file passes all 87 assertions.

Blast radius: New checkkwargs(prob, alg) overload, keyword classification/status traits, can_honor, and KeywordVerbosity; allowed keyword inventory.

Evidence: Local keyword_validation.jl: 87/87; Core CI likewise reports 87/87. Tests cover class mapping, Nothing/preset/strict precedence, the disabled-class-check escape hatch, unclassified problems and legacy validation behavior. SciMLLogging is MIT licensed; its direct dependencies are Logging, LoggingExtras, PrecompileTools and Preferences. The linked RFC/rollout specifies opt-in adoption and WarnLevel defaults.

Blocking findings

None.

Non-blocking findings

None.

What I ran

gh pr view 1612 --repo SciML/SciMLBase.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid,title,files,commits,statusCheckRollup
git fetch origin "+refs/pull/1612/head:refs/remotes/pr/1612" "master" "365283c66ec24db40c3fae1f2694693070dd7a46"
git checkout --detach d1cb3d22f050f96ac201798746bf2e272753d6b9
git rev-parse HEAD
git diff 365283c66ec24db40c3fae1f2694693070dd7a46...HEAD
git diff --check 365283c66ec24db40c3fae1f2694693070dd7a46...HEAD
git log -1 --no-merges --format=%B d1cb3d22f050f96ac201798746bf2e272753d6b9
gh pr checks 1612 --repo SciML/SciMLBase.jl
gh pr view 1612 --repo SciML/SciMLBase.jl --json body,closingIssuesReferences

HEAD was verified equal to d1cb3d22f050f96ac201798746bf2e272753d6b9. git diff --check exited 0. The diff was compared to the recorded live base through its merge base, not directly against unrelated base-only commits. Root/nested agent instructions and surrounding changed-code callers were inspected. Author metadata above is from the newest non-merge commit only; absent trailers are intentionally unknown.

Local Julia processes ran sequentially with JULIA_NUM_THREADS=4, OPENBLAS_NUM_THREADS=1, an isolated temporary directory and a task-owned first depot (existing global depot read as a fallback). Commands used julia --startup-file=no --compiled-modules=no --project=<isolated-environment> after Pkg.develop selected the exact checkout. Focused tests were extracted unchanged from the named committed testset except for explicitly described reviewer probes; full Pkg.test was not run. Machine-specific scratch paths are omitted to follow the review-file rule.
Local head, Julia 1.13.0, exit 0:

Class mapping |   22     22  0.9s
Three states  |   29     29  0.6s
Severities    |   10     10  0.1s
Bool verbose does not disable validation |    1      1  0.0s
kwargshandle precedence |    5      5  0.1s
Internal-caller escape hatch |    5      5  0.0s
can_honor     |    5      5  0.0s
Unclassified problems get only the unrecognized-keyword check |    4      4  0.0s
Legacy checkkwargs is unchanged |    6      6  0.1s

Focused input: the complete test/keyword_validation.jl.

CI inspection: gh run view <run-id> --repo SciML/SciMLBase.jl --log-failed, and for selected green jobs gh run view <run-id> --job <job-id> --repo SciML/SciMLBase.jl --log. Default-branch samples used gh run list --repo SciML/SciMLBase.jl --branch master --event push --limit 5 --json databaseId,conclusion,headSha,url,name; completed failing runs were read rather than assuming equivalence from status alone.

67 checks successful/skipped/neutral; 6 checks failed/cancelled/pending at the captured snapshot. These counts include external status checks.

Sampled current default-branch runs (status alone is not used to waive failures):

What I did not verify

No local downstream solver adoption or end-to-end solve/init validation run. Existing SII/Reactant/downstream failures are reported separately; the SII failure sites/counts match the sampled default run, not every failed job.

This review continues the interrupted Codex session 01a18dad-6f75-7ae1-b6dc-3a84553833ec, retaining its exact-head checkouts, CI logs and sequential test evidence. The continuation session is 01a18db8-25fc-7b72-9d35-a1341e0ae484. Initial risk ratings were saved before author descriptions; those descriptions contained embedded earlier reviews, so complete prior-review blindness was not maintained. The initial findings were frozen before the explicit same-head review comparison; additional corroboration is identified as post-freeze. This limitation is disclosed rather than claiming full blind-first compliance.

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

ChrisRackauckas and others added 2 commits September 23, 2026 08:34
…Verbosity, can_honor

Implements Wave 1 of the tolerance/termination rollout (RFC SciML#1562, tracking SciML#1607):
the per-class keyword matrix as data, `keyword_class`/`keyword_status`, a new
`checkkwargs(prob, alg; kwargs...)` that reports keywords undefined for the problem
class (`undefined_keyword`) and defined keywords the algorithm cannot honor
(`unhonored_keyword`, via `can_honor`) through a SciMLLogging `KeywordVerbosity`
accepted as `kwargs_verbosity`. The existing `checkkwargs(kwargshandle; ...)` is
unchanged; packages opt in by calling the new method.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agent-Harness: Claude Code 2.1.251 (subagent)
Agent-Model: claude-opus-5-5
Agent-Session: https://claude.ai/code/session_01NB3oFTNzGW79UtDt8AyjsM
…ts in QA

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agent-Harness: Claude Code 2.1.251 (subagent)
Agent-Model: claude-opus-5-5
Agent-Session: https://claude.ai/code/session_01NB3oFTNzGW79UtDt8AyjsM
ChrisRackauckas and others added 3 commits September 23, 2026 17:43
…g; :unclassified status

BVP defines dtmin (Shooting forwards it); Interval and Discrete no longer define
internalnorm. A mass matrix counts as ODE only when isone (so 0*I and singular
Diagonal matrices class as DAE). keyword_status returns :unclassified for problems
with no keyword class instead of claiming every keyword is defined.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agent-Harness: Claude Code 2.1.251 (subagent)
Agent-Model: claude-opus-5-5
Agent-Session: https://claude.ai/code/session_01NB3oFTNzGW79UtDt8AyjsM
Resolves the Project.toml version conflict: master is at the released
3.58.0, so this feature branch moves to 3.59.0.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID b4817baa-cd8a-4b2b-9ac9-9ed6d04808a9 (headless claude -p, no URL)
When keyword_class(prob) is nothing, only the unrecognized-keyword check
applies, as the keyword_class and can_honor docstrings state. Previously
the unhonored-keyword check still ran, so an EnsembleProblem with an
algorithm that cannot honor `maxtime` warned by default and threw under
kwargshandle = KeywordArgError. Adds regression tests for the default and
strict cases and for rejection of unrecognized keywords.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID 56de636f-61d2-439d-a488-ea56c2430696 (headless claude -p, no URL)
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review October 31, 2026 11:15
@ChrisRackauckas
ChrisRackauckas merged commit 4aace16 into SciML:master Oct 31, 2026
83 of 91 checks passed
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