Repository navigation
Un-break Mooncake DAE initialization observable AD test (fixes #1568) - #1576
Merged
ChrisRackauckas merged 3 commits intoOct 3, 2026
Merged
ChrisRackauckas merged 3 commits into
ChrisRackauckas merged 3 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://chatgpt.com/codex/tasks/01a03a17-ad6f-7131-82fc-d0fd57ea6512
Peel the DespecializedParameters params level when reading the Mooncake parameter tangent, mirroring the ODE initialization fixture above. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: opencode <[email protected]> Agent-Harness: opencode 1.18.31 Agent-Model: opencode/muse-spark-1.3-contributor-free Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/SciMLBase.jl/jobs/1568-opencode/log.txt on amdci2.julia.csail.mit.edu
ChrisRackauckas
marked this pull request as ready for review
October 3, 2026 05:32
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.
Ignore this PR until it has been reviewed by @ChrisRackauckas.
This PR's original AutoZygote fixture commit (b980883) was superseded on master by #1587; after merging master, the only net change is the Mooncake DAE fixture below (one file, test-only).
Adoption update: Mooncake DAE
@test_brokenflipped to@test(Fixes #1568)This PR was adopted to close #1568. The branch was merged up to origin/master (
93c3925e); the original_unwrap_parameter_gradienthunks were superseded on master by #1587 (_unwrap_parameter_cotangent), so the merge keeps master's helper. On top, one new test-only commit flips the stale Mooncake DAE initialization@test_brokento@testand peels theDespecializedParameters.paramslevel with the same one-liner the ODE Mooncake fixture in this file already uses. No src change, no new dependency, no version bump.Failing before (unmodified master file, Julia 1.12.7, Mooncake 0.5.61, MTK 11.45.3 / MTB 1.77.2, scratch env dev'ing this repo):
i.e.
DAE Observable function AD | 2 Pass 1 Broken. A focused probe of the same gradient call shows the gradient itself now succeeds (upstream chalk-lab/Mooncake.jl#1302, shipped in Mooncake 0.5.53) and only the stale accessor fails:Passing after (same environment, only the fixture changed):
Zero Broken, zero Error across the whole file.
Verification (exact commands;
$JOBis the job folder, scratch env copiestest/downstream/Project.tomland devs the repo so the repo itself stays clean):What was NOT verified: the full
GROUP=DownstreamADsuite (only this file was run);GROUP=QA; docs build (test-only change, no public API touched); the Zygote loops in this file (ZYGOTE_BACKENDSis empty on Julia 1.12); GPU paths.What a reviewer should push back on: whether the merge resolution (dropping this PR's original
_unwrap_parameter_gradientin favor of master's_unwrap_parameter_cotangent) is the right call — they cover the same wrapper but master's version keys offprob.p isa DespecializedParameterswhile the dropped one probed the cotangent shape; and whether the duplicated one-line Mooncake peel should instead become a shared_unwrap_mooncake_parameter_tangenthelper with the ODE block.Fixes #1568. Please ignore this draft until reviewed by @ChrisRackauckas.
Risk assessment
test/downstream/observables_autodiff.jl; no src, API, dependency, or docs impact. Only downstream CI behavior changes (one Broken becomes Pass).2 Pass 1 Broken+FieldError(@NamedTuple{params}, :tunable)on old accessor) / pass-after (4 Pass, file fully green) shown above, Julia 1.12.7 / Mooncake 0.5.61.observables_autodiff.jlis 13 Pass / 1 Broken on master and 15/15 on this branch; with Mooncake pinned to 0.5.52 the new DAE assertion errors with DownstreamAD fails when Mooncake copies tangents for DespecializedParameters #1568's_copy_outputTypeError, so it is not vacuous.test/downstream/Project.tomlallowsMooncake = "0.4, 0.5"; on 0.5.52 all four Mooncake testsets in this file error (also on master) — a0.5.53compat floor would be a separate PR. The DAE case could compare against a ForwardDiff reference like the ODE case.🤖 Adopted with opencode 1.18.31 (model: opencode/muse-spark-1.3-contributor-free), transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/SciMLBase.jl/jobs/1568-opencode/log.txt on amdci2.julia.csail.mit.edu