Repository navigation
Preserve specialization in extended jump problems - #626
Closed
ChrisRackauckas-Claude wants to merge 2 commits into
Closed
ChrisRackauckas-Claude wants to merge 2 commits into
ChrisRackauckas-Claude wants to merge 2 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
Member
On current
Nothing from this PR needs porting. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-opus-5-5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Variable-rate jump augmentation now preserves the source
ODEFunction,SDEFunction, orDDEFunctionspecialization policy instead of reconstructing every function with the defaultAutoSpecialize. This lets ModelingToolkitAutoDespecializeremain active throughJumpProblemand stabilizes the solver-facing problem/function types when only the concrete parameter representation changes.The implementation uses the public, backward-compatible instance API
SciMLBase.specialization(prob.f), so this does not raise JumpProcesses SciMLBase compat. DAE augmentation is intentionally excluded: clean master has an independent broken DAE extension path, and its separate functional repair will preserve specialization with its own discriminating test.Ignore this draft until reviewed by @ChrisRackauckas.
Failing before
I applied the new regression test to unmodified upstream master and ran
test/extended_jump_array.jlin a resolved local test environment:All three ODE/SDE/DDE cases lost
AutoDespecializebefore the source fix.A same-system ModelingToolkit discriminator also showed that replacing only tunable parameters from
Float64toFloat32left the inner functions asAutoSpecializeand produced different solved problem/function types.Passing after
The identical regression file on the final commit exits successfully:
The full relevant group passed on the registered release graph (
SciMLBase 3.46.0,DiffEqBase 7.14.0,OrdinaryDiffEq 7.6.0):GROUP=InterfaceI julia +release --startup-file=no --project=. -e "using Pkg; Pkg.test(coverage=false)"The same-system discriminator after the fix reports both inner specializations as
AutoDespecializeand equal solved problem/function types.Other verification
SciMLStyle: idempotent on both changed files.typosover added lines: exit 0.git diff --check: exit 0.GROUP=QA: 16 pass / 1 fail. The sole failure is the unchanged clean-master public-reexport allowlist defect already isolated in Allow intentional public reexports in QA #623; ExplicitImports and all other QA checks pass.Risk assessment (independent review, Codex Desktop (Codex core 0.164.0-alpha.11.1) gpt-6.1-sol, slot 1, head 3113bf1)
Review round 1, 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: Carries each source ODE/SDE/DDE function specialization through variable-rate jump augmentation. The focused regression distinguishes the old AutoSpecialize fallback from the requested AutoDespecialize policy.
Blast radius: VR_FRM extended ODE, SDE and DDE problem wrappers; DAE is intentionally outside this diff.
Evidence: InterfaceI and InterfaceII checks are green. QA reports an unapproved public reexport; the code change does not alter the module export list, but the sampled current default-branch runs do not reproduce that exact failure. Local head specialization assertions pass 3/3; the identical base control fails all 3 (exit 1).
Blocking findings
None.
Non-blocking findings
None.
What I ran
HEADwas verified equal to3113bf10f649538befd02b198421b50a6d8b6179.git diff --checkexited 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 intentionallyunknown.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 usedjulia --startup-file=no --compiled-modules=no --project=<isolated-environment>afterPkg.developselected 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:
Local base, Julia 1.13.0, exit 1:
Focused input: the testset
Extended problems preserve specializationfromtest/extended_jump_array.jl.CI inspection:
gh run view <run-id> --repo SciML/JumpProcesses.jl --log-failed, and for selected green jobsgh run view <run-id> --job <job-id> --repo SciML/JumpProcesses.jl --log. Default-branch samples usedgh run list --repo SciML/JumpProcesses.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.11 checks successful/skipped/neutral; 1 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
The full ODE/SDE/DDE solver and downstream suites were not rerun locally. Current default-branch green status is not proof that the older PR QA failure can be ignored.
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