Repository navigation
Fix DynamicalDDEFunction constructors - #1512
Merged
ChrisRackauckas merged 2 commits intoOct 31, 2026
Merged
ChrisRackauckas merged 2 commits into
ChrisRackauckas merged 2 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
The constructor corrections stay. This brings the branch onto current master so CI exercises the same tree the default branch uses. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Grok <[email protected]> Agent-Harness: Grok Build 1.0.70 Agent-Model: grok-4.7 Agent-Session: local fixer job SciML__SciMLBase.jl__1512 (no session URL)
ChrisRackauckas
marked this pull request as ready for review
October 31, 2026 11:15
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 and why
Fix all three type/default-argument errors in the
DynamicalDDEFunctionconstructor paths: inheritinitialization_datafromf1, retain the requested specialization marker, and include thesparsityfield type in the keyword-only constructor. Together these errors made explicit specialization fail before the function container could be constructed.git bisectidentified b7468f9 as the first revision producing the undefined-ferror. The regression tests coverFullSpecialize,NoSpecialize, initialization-data propagation, and the keyword-only constructor.Verification
Failing before
On unmodified
masterat2b711f36b1cd93d5da098997081a416bcec1e07b, the new test failed with:Command:
GROUP=Core julia +1.10 --project=. -e 'using Pkg; Pkg.test()'Passing after
The same command on this branch passed, including:
Additional checks:
Not verified
GROUP=Everything, downstream groups, and the documentation build were not run. This change does not touch documentation, docstrings, or public API declarations.Fix by Grok Build 1.0.70 grok-4.7 (head 4fba4a0)
Merged current master into
agent/fix-dynamical-dde-constructor. The threeDynamicalDDEFunctionconstructor corrections stay:initialization_datais read fromf1, the explicitspecializeparameter is kept on the specialized constructor, and the keyword constructor includestypeof(sparsity). The diff against master is those three lines plus the constructor test.The August CI failures on this PR match the parent commit or a one-day downstream drift (
UndefVarError: generate_DAENLStepData, a StochasticDiffEqDimensionMismatch, a NonlinearSolve resolver error, and a docs linkcheck 403 onProblem_Traits). Those jobs pass on current master. SciMLSensitivity Core2, SciMLSensitivity Core4, and Catalyst All/1 still fail on the latest master runs and were left unchanged.Validation on Julia 1.10:
Unfixed constructors (the three lines reverted, test kept):
Same test with the fix:
GROUP=Core julia --project=. -e 'using Pkg; Pkg.test()'passed, including:julia --project=@runic -m Runic --inplace src/scimlfunctions.jl test/problem_building_test.jlmade no edits.typoson the diff against master exited 0.GROUP=QAwas run twice and failed while loading PythonCall (Fatal Python error: init_fs_encoding, codec search functions not registered). Current master CI QA is success (https://github.com/SciML/SciMLBase.jl/actions/runs/41053895140). This diff does not touch that extension. Downstream suites and the documentation build were not re-run locally.Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
🤖 Posted by an AI agent — harness: Grok Build 1.0.70 · model: grok-4.7
Conversation: local fixer job SciML__SciMLBase.jl__1512 (no session URL)
Reviewed head: 311b161; the PR head has since moved to 4fba4a0. This is not a review of the current head.
Risk assessment (independent review, Codex Desktop (Codex core 0.164.0-alpha.11.1) gpt-6.1-sol, slot 1, head 311b161)
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: Fixes missing sparsity/specialization type parameters and the undefined f reference in DynamicalDDEFunction constructors. The identical focused constructor test fails on the base and passes all six assertions at the reviewed head.
Blast radius: Explicitly specialized and keyword-only DynamicalDDEFunction construction.
Evidence: Local head: six assertions pass; recorded base: UndefVarError for f before the first assertion. Core CI also reports Problem building tests 130/130. The PR has older downstream/docs failures, including dependency/export/layout failures; the sampled recent default runs have some different failures, so a blanket pre-existing-failure waiver is not justified.
Blocking findings
None.
Non-blocking findings
None.
What I ran
HEADwas verified equal to311b161d4c0aa43f574e07e799e287c0c6f80c92.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
DynamicalDDEFunction constructorsfromtest/problem_building_test.jl.CI inspection:
gh run view <run-id> --repo SciML/SciMLBase.jl --log-failed, and for selected green jobsgh run view <run-id> --job <job-id> --repo SciML/SciMLBase.jl --log. Default-branch samples usedgh run list --repo SciML/SciMLBase.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.42 checks successful/skipped/neutral; 21 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
No complete local Core/QA/docs or DDE integration run. Only the focused constructor regression was locally compared on head and recorded base; downstream compatibility remains subject to the listed checks.
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