Skip to content

Remove unused FIRK_WITH_INTERPOLATIONS alias - #4672

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:firk-remove-dead-alias
Sep 28, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:firk-remove-dead-alias

Conversation

@ChrisRackauckas-Claude

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

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Edit started by Codex gpt-6-luna, completed by Cursor Agent (auto).

What changed and why

Deletes the unused non-const global FIRK_WITH_INTERPOLATIONS = Union{…} at lib/OrdinaryDiffEqFIRK/src/firk_interpolants.jl:1. The binding was never referenced (local rg over the monorepo after deletion: zero matches; gh search code FIRK_WITH_INTERPOLATIONS --owner SciML finds only this definition on master), was not exported, and is not public API. Documentation-string globals in the same file are left alone. This is not an API change: it removes an unused, non-exported, non-public internal binding.

Diagnosis (profile)

Not a runtime hot-path change. The alias was dead code: no method signatures or other modules used it (unlike the LowOrderRK/Tsit5/Verner const alias PRs). Removing it avoids leaving a rebindable non-const Union global with no consumers.

Verification

isdefined (real output):

# master (origin/master worktree)
julia> isdefined(OrdinaryDiffEqFIRK, :FIRK_WITH_INTERPOLATIONS)
true

# branch firk-remove-dead-alias
julia> isdefined(OrdinaryDiffEqFIRK, :FIRK_WITH_INTERPOLATIONS)
false

Pre-check: rg FIRK_WITH_INTERPOLATIONS over the monorepo after the deletion → zero matches. gh search code FIRK_WITH_INTERPOLATIONS --owner SciML → only the definition line on SciML/OrdinaryDiffEq.jl master.

Runic: julia -e 'using Runic; exit(Runic.main(["--check", "lib/OrdinaryDiffEqFIRK/src/firk_interpolants.jl"]))' → exit 0.
typos lib/OrdinaryDiffEqFIRK/src/firk_interpolants.jl → exit 0.

Core group (cd lib/OrdinaryDiffEqFIRK && GROUP=Core julia --project=. -e 'using Pkg; Pkg.test()', JULIA_NUM_THREADS=1 taskset -c 6):

Test Summary: | Pass  Total      Time
FIRK Tests    |  130    130  16m49.8s
Test Summary:            | Pass  Total     Time
FIRK Time Reversal Tests |   16     16  4m53.9s
Test Summary:     | Pass  Total      Time
FIRK Krylov Tests |   98     98  20m33.4s
Test Summary:                | Pass  Total     Time
FIRK LHL Factorization Tests |   22     22  1m42.9s
     Testing OrdinaryDiffEqFIRK tests passed

QA group (GROUP=QA, same env, taskset -c 10; includes Aqua / ExplicitImports via run_qa):

Test Summary:    | Broken  Total     Time
Allocation Tests |      5      5  6m03.6s
Test Summary: | Pass  Total     Time
JET Tests     |    1      1  2m00.1s
Test Summary: | Pass  Total     Time
Aqua          |   21     21  3m11.7s
     Testing OrdinaryDiffEqFIRK tests passed

(The 5 broken allocation tests are pre-existing @test_broken entries, unchanged.)

Failing-before / passing-after

Not a bugfix. Behavioural check is the binding presence:

  • Before (master): isdefined(..., :FIRK_WITH_INTERPOLATIONS) === true
  • After (branch): isdefined(..., :FIRK_WITH_INTERPOLATIONS) === false

Core and QA both pass after the deletion.

Before/after numbers (same machine)

N/A for wall-clock performance: dead binding with zero uses; no solver path touched. Machine was heavily loaded (precompile alone ~45 min for Core); timings above are not a before/after comparison.

Behaviour-equivalence check

No live references to the alias exist in SciML (repo rg + org code search). Interpolant methods keep their explicit Union{RadauIIA3…} signatures. Removing the unused global cannot change dispatch or numerics.

What was not verified

  • GitHub CI (not triggered locally).
  • Other monorepo subpackages (change is local to OrdinaryDiffEqFIRK).
  • GPU/Downstream groups.
  • Bitwise trajectory before/after (unnecessary for unused-binding deletion; Core suite covers FIRK solvers).

Risk assessment

  • Risk: low
  • Blast radius: five-line deletion of an unused private alias in OrdinaryDiffEqFIRK/src/firk_interpolants.jl. No public API/SemVer change.
  • Evidence: isdefined flips true→false; Runic and typos pass; Core and QA (Aqua 21/21 including ExplicitImports) pass; org-wide code search shows no external uses.
  • Independent review: Devin (swe-2-high): MERGE, low risk. Removes only the unused, non-exported, non-public binding; there are no references in the monorepo or across the SciML org; isdefined goes true→false; FIRK Core/QA pass.
  • Merge: low-risk candidate. FIRK Core passes on Julia 1/LTS/pre, as do QA and downgrade; the red jobs are the known master-red set.

🤖 Generated with Cursor Agent (auto); edit started by Codex gpt-6-luna (quota), completed by Cursor Agent (auto). 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: Cursor Agent [email protected]
Agent-Harness: Cursor Agent 2026.09.26-dd393fe
Agent-Model: unknown (Cursor auto)
Agent-Session: local cursor-agent session (log /home/crackauc/sandbox/goals/performance/jobs/pr-firk-const/log-cu.txt)

Made with Cursor

Risk assessment

  • Risk: low
  • Blast radius: Only code that reached in by qualified name for OrdinaryDiffEqFIRK.FIRK_WITH_INTERPOLATIONS. That was a non-const, non-exported, non-public Union alias in lib/OrdinaryDiffEqFIRK/src/firk_interpolants.jl, and the whole diff is those 5 deleted lines. gh search code FIRK_WITH_INTERPOLATIONS --owner SciML returns nothing today. No method signature used the alias: every interpolant spells out its own Union{RadauIIA…}. So dispatch, numerics and the public API don't change, and no version bump is needed. The PR is already merged (merge commit 51ca63a, merged by ChrisRackauckas at 2026-09-28T11:55:34Z).
  • Evidence: On head 5312ccd: 127 checks passed, 4 failed, 1 cancelled (doc-preview-cleanup), 3 skipped (matrix templates). All the FIRK checks passed: sublibrary-ci Core on Julia 1, LTS and pre; FIRK QA; downgrade-sublibraries / test (lib/OrdinaryDiffEqFIRK); and the top-level tests / QA. Each of the 4 failures also fails on master, so none is a regression:
    • tests / GPU (julia 1, self-hosted Linux X64 gpu): the same assertion fails on master 0fac2d06. It is QNDF [jac=CSC, mass=diag_cu] at test/gpu/dae_tests.jl:481, with the identical count "172 passed, 1 failed, 12 broken". Master also failed this check at 3178b19, 85110ac and 1cbe52c. It's a BDF test, not FIRK.
    • downgrade-sublibraries / test (lib/DiffEqBase): fails on master 0fac2d06 and on the pre-merge base a50e0d7.
    • downgrade-sublibraries / test (lib/OrdinaryDiffEqDifferentiation): fails on master 0fac2d06 and a50e0d7.
    • SciMLSensitivity.jl/Core1/1 / Downstream Tests - Core1: fails on master 0fac2d06 and a50e0d7.
    • I only pulled failure logs for the GPU job. For the other three, the evidence is matching red status on master, and none of those packages depends on the deleted binding.
    • No tests were added, removed, skipped or loosened. The PR used no non-public dependency internals.
  • Independent review: Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium rated it low, high confidence: it only deletes a dead private alias that nothing references, and every failing check fails the same way on master.
  • Merge: auto-merge candidate. It is already merged. Small gaps in the description:

🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium; 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)

Dead non-const Union alias in firk_interpolants.jl had zero
references and was not exported or public API.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent 2026.09.26-dd393fe
Agent-Model: unknown (Cursor auto)
Agent-Session: local cursor-agent session (log /home/crackauc/sandbox/goals/performance/jobs/pr-firk-const/log-cu.txt)
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 28, 2026 11:55
@ChrisRackauckas
ChrisRackauckas merged commit 51ca63a into SciML:master Sep 28, 2026
130 of 134 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