Skip to content

Make Verner RK_WITH_SPECIAL_INTERPOLATIONS const - #4640

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:verner-const-alias
Sep 27, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:verner-const-alias

Conversation

@ChrisRackauckas-Claude

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

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

What changed and why

RK_WITH_SPECIAL_INTERPOLATIONS in lib/OrdinaryDiffEqVerner/src/interpolants.jl was a non-const global Union alias used only in method signatures (cache::RK_WITH_SPECIAL_INTERPOLATIONS), never read at runtime. Marking it const is the same hygiene change as the merged Tsit5 PR #4608 — removes a non-const binding from the module namespace. No runtime behavior change is possible for a signature-only alias.

Verification

$ julia --project=scratch/env -e '
using OrdinaryDiffEqVerner
println("isconst before: ", isconst(OrdinaryDiffEqVerner, :RK_WITH_SPECIAL_INTERPOLATIONS))
'
isconst before: false

$ julia --project=scratch/env -e '
using OrdinaryDiffEqVerner
println("isconst after: ", isconst(OrdinaryDiffEqVerner, :RK_WITH_SPECIAL_INTERPOLATIONS))
'
isconst after: true

Runic --check exit 0; typos over the diff exit 0.

$ cd lib/OrdinaryDiffEqVerner && GROUP=ALL julia --project=. -e 'using Pkg; Pkg.test()'
Test Summary:  | Pass  Total     Time
RKV76IIa Tests |   41     41  5m43.9s
Test Summary:    | Pass  Total     Time
Allocation Tests |    8      8  1m38.7s
Test Summary: | Pass  Total  Time
JET Tests     |    1      1  40.5s
Test Summary: | Pass  Total     Time
Aqua          |   21     21  1m23.1s
     Testing OrdinaryDiffEqVerner tests passed

Before/after numbers

None. A signature-only const alias cannot change runtime behavior; no benchmark needed.

What was not verified

Risk assessment

  • Risk: low — one-keyword hygiene change on a signature-only alias.
  • Blast radius: OrdinaryDiffEqVerner module namespace only; no call-site or kernel changes.
  • Evidence: isconst false→true; Verner Core+QA green; Runic/typos clean.
  • Independent review: Codex (gpt-6-astra) rated it low, high confidence: one const on a signature-only Union alias with no rebinding consumers; VERDICT MERGE.
  • Merge: auto-merge candidate once reds are shown master-red/infra.

Agent-Model note: Cursor auto, underlying model not reported.

🤖 Generated with Cursor Agent (model: auto), orchestrated by Claude Code (claude-opus-5-5[1m]) session https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv

CI triage

Job Class PR job Master / other evidence Signature
SciMLSensitivity.jl/Core1/1 master-red 108389800288 master 108210367109 Mooncake with MooncakeAdjoint: MethodError: no constructors have been defined for Any
SciMLSensitivity.jl/Core3/1 infra (crash) 108389800225 same segfault on master 107950761841; latest master Core3 green segfault (signal 11) in Enzyme/LLVM during Core3/default_alg_diff.jl:21
downgrade-sublibraries / test (lib/DiffEqBase) master-red 108390585704 master 108210429598 High Level solve Interface: 1 fail + 3 errors (high_level_solve.jl)
downgrade-sublibraries / test (lib/OrdinaryDiffEqDifferentiation) master-red 108390585750 master 108210429830 ScalarOperator mass matrix: MethodError: no method matching diag(::ScalarOperator…)
sublibrary-ci / lib/DelayDiffEq [Regression] infra (flaky) 108391192171 master green (108210523266); same Waltman NaN on unrelated PRs e.g. 108386099156 Waltman Problem Tests: ArgumentError: matrix contains Infs or NaNs (Rodas5P)
tests / Integrators_II (julia lts) infra (flaky) 108390878765 master green (108210482224); identical fail on merged #4608 (107920965031) Cache Tests: cannot resize array with shared data (Rodas5, ode_cache_tests.jl:50)

No red job is PR-caused: only Verner changed; Waltman/Cache failures are Rosenbrock paths, and Core3 is an Enzyme segfault also seen on master.

The Union alias is used only in method signatures; marking it const
removes a non-const global from the package namespace. Same change as
SciML#4608 for Tsit5. No runtime behavior change expected.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent 2026.09.26-dd393fe
Agent-Model: auto
Agent-Session: local cursor-agent session in /home/crackauc/sandbox/goals/performance/jobs/pr-out-size/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-out-size/log.txt)
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 27, 2026 14:43
@ChrisRackauckas
ChrisRackauckas merged commit 21d298d into SciML:master Sep 27, 2026
135 of 142 checks passed
ChrisRackauckas referenced this pull request Sep 29, 2026
* Bump DiffEqBase to 7.21.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqBDF to 2.4.12

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSDIRK to 2.9.7

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqRosenbrock to 2.7.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqLowOrderRK to 2.2.6

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqTsit5 to 2.1.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqVerner to 2.4.2

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSymplecticRK to 2.2.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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