Repository navigation
Recognize copied symbolic missing bindings - #5073
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
|
The downgraded QA failure now reproduces on the unchanged base as well as this branch; the copied-missing patch is not required for it. I ran the CI action at using Pkg
Pkg.build(; verbose=true)
Pkg.test(; coverage=true,
julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"],
force_latest_compatible_version=false, allow_reresolve=false)with The two actual The action promotes 34 old-style test dependencies into runtime The separate Julia 1.12 QA/JET failure is also being investigated against the unchanged base; this comment does not claim that investigation is complete. Links:
🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; session: local transcript |
|
The separate Julia 1.12 QA failure is reproduced on this PR's clean base, independently of the copied-binding change. Native QA on The existing Moshi fix at ChrisRackauckas-Claude/Moshi.jl@7b5ef92 makes the full native QA run pass: JET 54/54 and Aqua 21/21. All other dependency versions/source hashes match, including all 311 other names in the actual Pkg.test sandbox; no ModelingToolkit source/tests or JET mode were changed. Exact commands, terminal output, versions, and comparison details: #5065 (comment) . This diagnoses the non-downgrade QA lane; it does not change the downgrade investigation or publish the Moshi fix upstream. AI involvement: Codex CLI 0.153.4; model: gpt-6-astra; local session ID: 01a071a0-abb2-7eb2-8e39-9cab28110384 (parent local session: 01a0598f-11b9-72d1-91d9-b2fbb186557d). |
Compare symbolic missing values semantically so deepcopied solvable parameter bindings remain solvable during problem initialization and remake. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: OpenAI Codex <[email protected]> Agent-Harness: Codex CLI 0.153.4 Agent-Model: gpt-6-astra Agent-Session: local transcript /home/crackauc/.codex/sessions/2026/09/05/rollout-2026-09-05T05-08-31-01a070d3-9e50-71c2-98f5-129385e50fb7.jsonl
2e20892 to
6999ea9
Compare
|
Current registered-dependency downstream confirmation: the copied-problem failure remains reproducible after both SBMLToolkit fixes were released. This is additional failure evidence, not a fresh validation of this PR's patch. I ran the first three actual Carcione tutorial blocks with only the existing API migrations @test successful_retcode(sol)
@test last(sol.t) == last(prob.tspan)
@test all(isfinite, Array(sol))
for value in (0.012048, 0.015)
remade = remake(deepcopy(prob); p = [sys.mu => value], tspan = (0.0, 100.0))
solution = solve(remade, Rodas5P())
@test successful_retcode(solution)
@test last(solution.t) == 100.0
@test all(isfinite, Array(solution))
endJulia 1.11.9; ModelingToolkit 11.42.0, ModelingToolkitBase 1.69.0, Catalyst 16.4.0, SBMLToolkit 0.1.42, SymbolicUtils 4.46.1, SciMLBase 3.53.1. All dependencies are registered; only the EasyModelAnalysis host checkout is developed locally. Project/Manifest were unchanged throughout the run. The first remake fails before its solve; the second parameter case is not reached. No 2,000-sample run was launched after this failed numerical prerequisite. Existing deprecation and QMC warnings were retained. The prior local combined-fix success is not being represented as registered-stack success. Links:
🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d). |
What changed
Recognize symbolic missing bindings by
isequal, not object identity. Deep-copying a problem can copy the symbolic constant wrappingmissing; initialization then incorrectly treats a solvable parameter as a bound parameter and omits it from the initialization unknowns. This breaks parameter remakes used by ensembles, including constant states eliminated to solvable parameters.The regression exercises both the original problem and its deep copy with the same parameter remake. No new public API or dependencies.
Verification
Julia 1.11.9, local environments with identical dependency versions and only the ModelingToolkit/ModelingToolkitBase source paths changed:
GROUP=Initialization julia --project=EMA-deepcopy-main-env -e 'using Pkg; Pkg.test("ModelingToolkitBase")'Unfixed production source at c4c04fe, with the new test added:
With the fix before rebasing:
GROUP=QApassed JET 54/54 and Aqua 21/21. Runic,git diff --check, andtyposover the diff excluding Git index-hash metadata passed. No tests were skipped or weakened by this change.After rebasing onto upstream 2b4f11a, the complete native Initialization group passed again:
The corresponding QA rerun passed JET 54/54 and Aqua 21/21, exit 0. Upstream subsequently advanced to e76112c; the refreshed branch is 2e20892.
Latest refresh verification at 2e20892, on upstream e76112c:
Both commands exited 0 (Initialization 1747.0s, QA 785.9s, excluding environment setup). The focused original/copied-problem remake check also exited 0. Runic, diff spelling, and
git diff --checkpassed on the refreshed branch. Validation-only absolute paths generated by QA were restored and are not part of the change.Historical reduction
The explicit missing-binding failure reproduces across the MTK 11 main-branch merge boundary: the equivalent pre-merge defaults model passes 2/2; the post-merge binding model errors only on the deep-copied problem. The constant-state manifestation has a narrower verified boundary: the same standalone constant-state model passes 2/2 immediately before 0b01708 and fails 1 pass/1 error immediately after it, with
N#0(t) ... is not an unknown. Those adjacent runs use identical dependencies and ModelingToolkitBase source; only ModelingToolkit root source differs. Zero-variable elimination exposes the existing missing-binding identity bug.Not verified
Full ModelingToolkit root suite and GPU paths were not run for this patch. Full downstream EMA docs remain in progress and are not claimed successful. The Carcione reduction also uncovered a separate SBML assignment-rule initialization failure, fixed at SciML/SBMLToolkit.jl#240 . Combining that fix with the SBML parameter-default fix at SciML/SBMLToolkit.jl#239 and this MTK fix passes two explicit solver-return-code checks (default and changed mu), both reaching the requested final time. This patch changes no documentation, docstrings, or public API, so the MTK documentation was not built.
Please ignore this draft until reviewed by @ChrisRackauckas.
🤖 Generated with Codex CLI 0.153.4 (model: gpt-6-astra; session: local transcript
/home/crackauc/.codex/sessions/2026/09/05/rollout-2026-09-05T05-08-31-01a070d3-9e50-71c2-98f5-129385e50fb7.jsonl).