Repository navigation
Conversation
Verdict: changes needed before merge (reviewed at Fixes Julia 1.11 callback normalization and scalar/time-varying mass-matrix handling in SDIRK; the existing targeted regressions fail on the base and pass on the head. Request changes because upgrading DiffEqBase while retaining released OrdinaryDiffEqCore 4.18.0 breaks ordinary callback solves in a combination permitted by the package bounds. Risk assessment
Head CI versus current default-branch run at
Head DiffEqBase/SDIRK/GlobalDiffEq Core and QA, relevant downgrade jobs, AD lanes, documentation and Runic checks report success. These all-head checks do not cover the incompatible mixed-version pairing. Findings
Local evidence is under the supplied scratch directory in AI-generated review. Harness: Codex CLI (Mac) 0.156.1 · Model: gpt-6-astra. Push a fix and the PR is reviewed again automatically at the new head. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5[1m] (fleet master); review by Codex CLI (Mac) 0.156.1 / gpt-6-astra |
Require solver opt-in for typed callback vectors on older Julia and retain tuples for released Core versions. Propagate the selected algorithm through solve, init, and sensitivity callback normalization.
PR: #4593 Reviewed head: be0e88d Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H6: .github/workflows/DependabotAutoMerge.yml grants checks: read and statuses: read to the token used by the reusable Dependabot auto-merge workflow. An explicit owner decision is required for this privilege change.) Blocking findings
Non-blocking findingsNone. What I ran
What I did not verifyHosted CI, live execution of the reusable merge workflow, the full AD and dependency-downgrade matrices, and GPU and downstream suites. The failing testsets prevented the remaining assertions in their respective Core runs from executing. AUTHOR_GRADE: {"task":"bugfix","score":2,"difficulty":4,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"Existing GlobalDiffEq and ROBER cases confirm fixes. Independent probes reproduce numerical accuracy losses and failures on supported solver and callback paths."} Head link: be0e88d 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
This fixes callback and solver compatibility failures exposed by the full OrdinaryDiffEq CI matrix. Callback normalization requires an explicit integrator opt-in, preserving type-erased callbacks for other SciML solvers and older OrdinaryDiffEqCore releases. The trait is documented in the public API.
The solver changes preserve scalar and UniformScaling mass matrices, retain propagated DelayDiffEq discontinuities, and prevent floating-point clock alignment from resetting QNDF's constant-step history. The focused QNDF change is also available in #4651. NonlinearSolve and SDIRK use consistent local sources for normal and downgrade testing, including the upstream PDIRK test dependency. The Dependabot caller grants the read permissions required by the shared workflow.
Numerical corrections:
_uninformative_stepcontract is preserved._inner_lintolabsolute tolerance (eps(T)^(4/5)). This resolves small Newton residuals below LinearSolve's defaultsqrt(eps)floor while retaining the finite round-off allowance needed by fixed-step Krylov solves. Relative-tolerance propagation and explicit warm-start choices remain unchanged.Current head:
be0e88d87a01de16216ae64b2433a35d8470ba82. No test assertions, tolerances, test files, or skip conditions are changed by this PR. The SDIRK time-normalization experiments used during diagnosis are not included.Validation of the final tolerance correction:
git diff --checkpass. The original BDF convergence file is still running in an isolated environment with Enzyme 0.13.180 and compatible FunctionWrappersWrappers 1.10.1.Latest upstream master also introduced #4653, which rejects Rosenbrock32 with a singular mass matrix. The existing inference QA still attempts that unsupported combination and fails before its inference assertion; its expected behavior needs to be aligned with the new contract. This PR has not changed that QA file.
Completed results on the preceding
728b0dfhead:Formal CI still needs companion dependency fixes:
rober-mm iipno-init case with MaxIters. The latest formal LTS job reproduced the same failure at728b0df. This needs a registered release, then the compatibility floor must be raised to the actual fixed version.728b0df, both Core1 and Core5 pass.The dependency PRs remain open. This PR does not pin personal forks or declare future release numbers. Passing candidate dependency validations does not make formal CI green; queued self-hosted GPU jobs also require available runners.