Skip to content

Make RK_WITH_SPECIAL_INTERPOLATIONS a const alias in OrdinaryDiffEqLowOrderRK - #4654

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

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

Conversation

@ChrisRackauckas-Claude

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

Copy link
Copy Markdown
Member

What/why

Adds const to the RK_WITH_SPECIAL_INTERPOLATIONS union alias in lib/OrdinaryDiffEqLowOrderRK/src/interpolants.jl:1. The alias is used only in method signatures (cache::RK_WITH_SPECIAL_INTERPOLATIONS in _ode_interpolant/_ode_interpolant!) and is never reassigned, so this is a signature-only change with no runtime effect by construction. Same change as #4608 (Tsit5), #4640 (Verner), and #4644 (Rosenbrock).

Verification

isconst check (real output):

# master
julia> isconst(OrdinaryDiffEqLowOrderRK, :RK_WITH_SPECIAL_INTERPOLATIONS)
false

# branch loworderrk-const-alias
julia> isconst(OrdinaryDiffEqLowOrderRK, :RK_WITH_SPECIAL_INTERPOLATIONS)
true

Runic check on the changed file: passes (exit 0, no diff).
typos lib/OrdinaryDiffEqLowOrderRK/src/interpolants.jl: passes (exit 0).

Default test group (GROUP=All, julia --project=lib/OrdinaryDiffEqLowOrderRK -e 'using Pkg; Pkg.test()'):

Test Summary:                   | Pass  Total     Time
Low Order ERK Convergence Tests |   58     58  6m33.9s
Test Summary:  | Pass  Total   Time
OwrenZen Tests |   24     24  55.8s
Test Summary:   | Pass  Total  Time
Euler SSP Tests |    2      2  5.5s
Test Summary:                    | Pass  Total   Time
BS5 Truncated Step Interpolation |    2      2  59.9s
Test Summary:    | Pass  Broken  Total     Time
Allocation Tests |   25       1     26  5m07.6s
Test Summary: | Broken  Total     Time
JET Tests     |     52     52  2m38.9s
Test Summary: | Pass  Total     Time
Aqua          |   21     21  4m22.0s
     Testing OrdinaryDiffEqLowOrderRK tests passed

QA test group (GROUP=QA julia --project=lib/OrdinaryDiffEqLowOrderRK -e 'using Pkg; Pkg.test()'):

Test Summary:    | Pass  Broken  Total     Time
Allocation Tests |   25       1     26  3m25.5s
Test Summary: | Broken  Total     Time
JET Tests     |     52     52  1m58.7s
Test Summary: | Pass  Total     Time
Aqua          |   21     21  4m05.4s
     Testing OrdinaryDiffEqLowOrderRK tests passed

(The 1 broken allocation test and 52 broken JET tests are pre-existing @test_broken entries, unchanged by this PR.)

What was not verified

  • CI runs on GitHub (not triggered locally).
  • Other subpackages of the monorepo (only OrdinaryDiffEqLowOrderRK was tested; the change is local to that package).
  • GPU/Downstream groups (not affected by a signature-only alias change; not run locally).

Please ignore until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: low
  • Blast radius: one line in OrdinaryDiffEqLowOrderRK/src/interpolants.jl; the alias is used only as a method-signature type annotation and is never reassigned, so no runtime behavior changes. No public API change (the name and its value are unchanged; const only prevents rebinding).
  • Evidence: isconst flips from false on master to true on the branch; Runic and typos pass; default and QA test groups pass with no new failures (broken counts are pre-existing @test_broken).
  • Independent review: Devin (swe-2-high): MERGE, low risk. One-line const on a signature-only alias with no other-module references; the real isconst output and test tails are shown. Same pattern as merged Make RK_WITH_SPECIAL_INTERPOLATIONS const #4608.
  • Merge: low-risk candidate; the red CI jobs are the known master-red set.

🤖 Generated with opencode (model: opencode/longcat-2.5-preview-free), orchestrated by Claude Code (claude-opus-5-5[1m]) session https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv

Co-Authored-By: Chris Rackauckas [email protected]
Co-Authored-By: opencode [email protected]
Agent-Harness: opencode 1.18.31
Agent-Model: opencode/longcat-2.5-preview-free
Agent-Session: local opencode session in /home/crackauc/sandbox/goals/performance/jobs/pr-loworder-const/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-loworder-const/log.txt)

Risk assessment

  • Risk: low
  • Blast radius: One private LowOrderRK type alias becomes const; its union members and dispatch signatures remain unchanged. No public API/SemVer change, new dependency-internal access, or weakened tests.
  • Evidence: Head has 130 successful checks, three failures, three skipped checks, and GPU queued. All three failures match recent master failures, including identical error messages: downgrade-sublibraries / test (lib/DiffEqBase)—callback assertions (head, master); downgrade-sublibraries / test (lib/OrdinaryDiffEqDifferentiation)—missing diag(::ScalarOperator) (head, master); SciMLSensitivity.jl/Core1/1 / Downstream Tests - Core1—Mooncake attempts to construct Any (head, master). All are pre-existing; no observed test regressions. LowOrderRK core, QA, and downgrade checks pass. No review comments exist. The description omits specific baseline links and the pending GPU check.
  • Independent review: Codex / GPT-6 (exact model ID and CLI version unverified; supplied Mac attribution conflicts with the Linux workspace) rated it low, high confidence: the complete one-line diff preserves solver dispatch, and all completed failing checks match default-branch failures.
  • Merge: auto-merge candidate (no substantive findings or observed regressions; GPU validation remains pending).

🤖 Risk assessment posted by an AI agent (fleet master) — harness: Codex CLI 0.156.1 (Mac) / gpt-6-astra; dispatched by Claude Code head, model claude-opus-5-5[1m]
Conversation: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 on Chris's Mac (session ID, no URL)

…wOrderRK

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: opencode <[email protected]>
Agent-Harness: opencode 1.18.31
Agent-Model: opencode/longcat-2.5-preview-free
Agent-Session: local opencode session in /home/crackauc/sandbox/goals/performance/jobs/pr-loworder-const/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-loworder-const/log.txt)
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 27, 2026 16:50
@ChrisRackauckas
ChrisRackauckas merged commit c974c8c into SciML:master Sep 27, 2026
133 of 137 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