Repository navigation
Branch remaining isinplace constructors for static dispatch - #1638
ChrisRackauckas-Claude wants to merge 12 commits into
Conversation
Splicing a runtime Bool into the type parameter forced dynamic kwargs dispatch on every ODEFunction/ODEProblem/NonlinearFunction construction; literal true/false arms keep each path concrete. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent 2026.10.01-14929f9 Agent-Model: unknown (Cursor auto) Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/scimlbase/pr-iip-branch/log.txt on amdci2
isinplace is already static for AbstractSciMLFunction, so the Bool branch was a no-op; keep the diff minimal. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI Agent-Model: auto
Concrete ODEProblem inference made responsible_map allocate a narrow
Vector{T} from the first inputs, so ensembles whose prob_func changes
u0 type (and Downstream zero-length mixed-u0 map) MethodError'd on
convert. Widen like Base map/collect; tmap collects via Any then
tightens.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI
Agent-Model: auto
Keep return_type Vector{T} and widen via a misfit side slot only when a
result does not fit, restoring master's EnsembleThreads allocation count
and mixed-type eltypes.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI
Agent-Model: auto
When eltype inference proves every result fits in T, return the typed vector directly so EnsembleThreads solve stays concrete and matches master's allocations; keep the side-slot widen path only when it cannot. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI Agent-Model: auto
Bare constructor warmups do not compile 1.10's inline @Allocations frame, so LTS CI counted residual compilation (~266) as steady-state allocs; barrier helpers discard that first measurement. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI Agent-Model: auto
SciML#1636 missed sites written as `iip = isinplace(f, N); T{iip}` or `{isinplace(f1|f2|A, N)}`; apply the same literal true/false branch so SDEProblem, BVProblem, DiscreteProblem, SplitFunction, and friends stop paying runtime-Bool type-parameter dispatch. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent 2026.10.01-14929f9 Agent-Model: unknown (Cursor auto) Agent-Session: local session, transcript /home/crackauc/sandbox/goals/performance/jobs/scimlbase/pr-iip-rest/log.txt on amdci2
Independent review (Devin CLI 3000.11.3, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium): MERGE, risk medium. Full reviewVERDICT: MERGE Scope: the PR's own commit is Blocking findingsNone. Non-blocking findings
What I ranConfirmed by running, all on macOS arm64, M2 Max:
What I did not verify
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (review), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
Independent review (Codex CLI 0.166.0 / gpt-6.1-sol), session 01a1972e-b0bc-7d01-94ce-7c60ee15bb6d, reviewed head a680324
Review written by the reviewer named above 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: Literal Boolean branches improve convenience-constructor inference, while ensemble maps widen heterogeneous result containers safely. The focused tests pass on head, allocation assertions fail on base, and inspected downstream failures also occur on master; I found no blocking defect. Blast radius: Bare-function problem and SciMLFunction constructors, derivative-wrapper construction, and serial/threaded ensemble collection. Explicit in-place conventions, specialization defaults, keyword forwarding, and numerical algorithms remain equivalent in the inspected code. Evidence: Head Blocking findingsNone. Non-blocking findingsNone. What I ranAll package-source inspection was read-only. Initial diff-based risk was written to INITIAL.md and sealed with Git and metadata commands: gh pr view 1638 --repo SciML/SciMLBase.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid
git -C src fetch origin "+refs/pull/1638/head:refs/remotes/pr/1638" master
git -C src rev-parse HEAD
git -C src diff --stat origin/master...HEAD
git -C src diff origin/master...HEAD
git -C src merge-base origin/master HEAD
git -C src log --first-parent --no-merges -1 --format='%H%n%B'
git -C src log -1 --format=%B ae607eee84dc0a48de2c59a82d14c9705f707b06
gh pr checks 1638 --repo SciML/SciMLBase.jl
gh run list --repo SciML/SciMLBase.jl --branch master --event push --limit 5 --json databaseId,workflowName,conclusion,headSha,url
gh run list --repo SciML/SciMLBase.jl --branch master --event push --workflow IntegrationTest --limit 5 --json databaseId,conclusion,headSha,urlThe live head matched TARGET.md, and the merge-base was the reported base SHA above. The first-parent non-merge commit is Exactly three sequential Julia processes ran on Julia 1.13.2, aarch64. Each used timeout 3600 julia +1.13.2 --startup-file=no run_head.jl
timeout 3600 julia +1.13.2 --startup-file=no run_base.jl
timeout 3600 julia +1.13.2 --startup-file=no --project=env probe.jlHead runner activated Base sources were extracted with The independent probe compared both maps with Base.map using 4,096 mixed values, one and two input collections, and the threaded fallback with no actual misfit: 5/5 pass. It also compared ODEProblem, ImmutableODEProblem, DiscreteProblem, and SDEProblem with explicit typed constructors, checking types, initial states, promoted timespans, keywords, and in-place traits; derivative wrappers were checked against the algebraic value CI logs were inspected with
What I did not verifyI did not run a full package suite, Pkg.test(), heavy downstream suites locally, GPU, MPI, Reactant tracing, or local AD differentiation. The changed code does not add or alter an AD rule, GPU kernel, MPI implementation, or tracing implementation; existing DownstreamAD and AD integration jobs provide exercised constructor coverage. The separate Reactant job never reached its tests, so Reactant compatibility is unverified rather than claimed passing. The local probe checks wrapper values, not differentiated values. I did not rerun on Julia 1.10/1.12, x86, Windows, or macOS; CI supplies some release/LTS/x86 coverage. I did not run the added downstream ensemble-solution inference assertion locally; its containing Downstream group passes in CI. The third probe's scalar-parameter wrapper error was not reproduced on base; its unchanged allocation code, rather than a before/after run, supports treating it as outside this PR. I did not separately measure wall-clock performance or prove unchanged behavior for every specialized constructor and custom extension type. No numerical integration algorithm or tolerance changes were identified, so G1 does not require a new convergence study for this diff. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5 |
Include the upstream SymbolicIndexingInterface fixture correction while preserving the constructor and ensemble changes. SciML#1657 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__SciMLBase.jl__1638 (no session URL)
PR: #1638 Reviewed head: cea2709 Risk assessment
Review reportVERDICT: MERGE Riskmedium-high (MH1: main-lane problem constructors and default ensemble result collection change, with a measured allocation regression for abstractly typed mapper inputs and incomplete performance coverage across dependents) Blocking findingsNone. Non-blocking findings
What I ran
What I did not verifyThe full AUTHOR_GRADE: {"task": "perf", "score": 4, "difficulty": 3, "rounds": 1, "author_harness": "Codex CLI 0.164.0", "author_model": "gpt-6.1-sol", "note": "The constructor allocation tests discriminate, the mixed mapper and pullback probes pass, and the abstract-input threaded fallback adds a measurable allocation cost."} Head link: cea2709 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Buffer indexed mismatches per work chunk and widen in input order after the thread barrier. Specialize the fallback on the result element type to keep matching stores allocation-free per item. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-sol Agent-Job: SciML__SciMLBase.jl__1638--20261121T213807Z-codex-gpt-6.2-sol Agent-Session: local session 01a2000b-a555-78a2-bbb4-4b21a3ab70f8 (no session URL)
Use the types returned by integer indexing to decide whether threaded results fit the initial vector. Cover keyed inputs with an exact mixed-numeric regression and check the inferred ensemble solution type. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-sol Agent-Job: SciML__SciMLBase.jl__1638--20261122T045707Z-codex-gpt-6.2-sol Agent-Session: local session 01a2019d-9472-76a3-a893-884b26b0183c (no session URL)
PR: #1638 Reviewed head: a902960 Risk assessment
Review reportVERDICT: CHANGES Riskmedium-high (MH1: threaded ensemble solve silently drops part of a reverse-mode gradient) Blocking findings
Non-blocking findingsNone. What I ran
What I did not verifyThe specific Enzyme transformation that drops the contribution, the complete external downstream suites and the exact hosted transitive manifests. AUTHOR_GRADE: {"task":"bugfix","score":3,"difficulty":4,"rounds":3,"author_harness":"Codex CLI 0.170.0","author_model":"gpt-6.2-sol","note":"The keyed-index regression fails before and passes after. The delta also drops one of three trajectory contributions from the threaded Enzyme gradient, which passes on the prior head and base."} Head link: a902960 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Capture a split tape for each threaded map work item and apply its pullback sequentially so trajectories sharing parameter shadows keep every contribution. Exercise ensembles with three and five trajectories. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-sol Agent-Job: SciML__SciMLBase.jl__1638--20261122T073128Z-codex-gpt-6.2-sol Agent-Session: local session 01a2022a-e148-7f42-baff-50ad68184f5e (no session URL)
PR: #1638 Reviewed head: 60336d5 Risk assessment
Review reportVERDICT: MERGE Riskmedium-high (MH1: changes widely used constructor and solve paths with incomplete external downstream validation) Blocking findingsNone. Non-blocking findings
What I ran
What I did not verifyComplete reruns of the two external downstream jobs and exact equality of their hosted transitive manifests. AUTHOR_GRADE: {"task":"bugfix","score":4,"difficulty":4,"rounds":4,"author_harness":"Codex CLI 0.170.0","author_model":"gpt-6.2-sol","note":"Matched-environment stress and forced overlap reproduced the dropped adjoints before the fix and passed afterward. The checked-in SDE test remains scheduling-sensitive as a negative control."} Head link: 60336d5 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
PR: #1638 Reviewed head: 60336d5 Risk assessment
Review reportVERDICT: CHANGES Riskmedium-high (MH1: performance changes reach public problem constructors and ensemble solve. SciMLBase’s downstream groups passed locally, and key dependents’ standalone suites remain unverified.) Blocking findings
Non-blocking findings
What I ran
What I did not verify
AUTHOR_GRADE: {"task":"perf","score":4,"difficulty":4,"rounds":5,"author_harness":"Codex CLI 0.170.0","author_model":"gpt-6.2-sol","note":"All four local groups passed. Probes confirmed lower constructor allocations, exact mixed results, and correct threaded gradients. Two widening sites extend avoidable use of a private Base function, and abstract-input serial mapping allocates more."} REVIEWER_GRADE: {"task": "perf", "score": 3, "rounds": 5, "reviewer_harness": "codex", "reviewer_model": "gpt-6.2-sol", "verdict": "missed", "note": "The earlier review reproduced lost threaded gradients in 14/400 runs on the previous head and 0/400 on the reviewed head. It missed the blocking use of private Base.promote_typejoin in both map paths and the 3,200,000-byte increase in serial allocations on abstract input."} Head link: 60336d5 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Summary
Stacked on #1636. That PR branched convenience constructors written as
T{isinplace(f, N)}(…)so each arm uses a literal{true}/{false}type parameter. Its grep missed sites spellediip = isinplace(f, N); T{iip}(…)or{isinplace(f1|f2|A, N)}, soSDEProblem,BVProblem, andDiscreteProblemstayed slow. This applies the same Bool-branch pattern to every remaining hot-path site (those three, plusSecondOrderBVProblem, bare-functionImplicitDiscreteProblem,ImmutableODEProblem,SecondOrderODEProblem,SecondOrderDDEProblem,HomotopyProblem,AnalyticalProblem,SplitFunction,DynamicalODEFunction,SplitSDEFunction,DynamicalSDEFunction,DynamicalDDEFunction, andLinearProblem), keeping arity, kwargs, specialization, and error behaviour identical.Before / after
OPENBLAS_NUM_THREADS=1,JULIA_NUM_THREADS=1,taskset -c 3,@benchmarkminima (500 samples), measured through a function barrier. Before = #1636 head (9875b30f); after = this PR.SDEProblem(f!,g!)BVProblem(f!,bc!)DiscreteProblem(f!)SplitFunction(f!,f!)DynamicalODEFunction(f1!,f2!)LinearProblem(A!)Extended barrier-helper allocation regression in
test/inference_tests.jl(sdep/bvp/disc/splitf/dynf/linpthresholds< 50/60/22/45/30/22): fails on #1636 head (6 Fail: 74/89/26/58/39/25), passes after (22/22 on 1.12 and 1.10).Test plan
GROUP=Core):Compile-time trait inference | 52 52,Testing SciMLBase tests passedGROUP=QA,CONDA_OVERRIDE_GLIBC=2.35):QA | 123 123,Testing SciMLBase tests passed--inplaceon touched files;typoscleanWhat was NOT verified
constructorofremake paths still use runtimeiip = isinplace(f, N)(not hot convenience constructors)IntegralFunction/BatchIntegralFunctioncalculated_iippaths (error-checking constructors, not listed in the Branch on isinplace so convenience constructors dispatch statically #1636 follow-up)Reviewer pushback
< 22DiscreteProblem / LinearProblem bounds are stable across Julia versions / GC noiseImmutableODEProblem(f,…)should keep the old inlineprepare_initial_statebody instead of delegating toImmutableODEProblem{true/false}(mirrors Branch on isinplace so convenience constructors dispatch statically #1636'sODEProblemchange)Please ignore until reviewed by @ChrisRackauckas.
Risk assessment
Independent review: pending
🤖 Generated with Cursor Agent 2026.10.01-14929f9 (model: unknown (Cursor auto)), transcript /pr-iip-rest/log.txt; orchestrated by Claude Code (claude-opus-5-5[1m]) https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv
Made with Cursor
Risk assessment (independent review, Grok Build grok-4.7, reviewed head a680324)
isinplaceconstructor sites:SDEProblem,BVProblem,SecondOrderBVProblem,DiscreteProblem,ImplicitDiscreteProblem,LinearProblem,HomotopyProblem,SecondOrderODEProblem,ImmutableODEProblem,AnalyticalProblem,SecondOrderDDEProblem,SplitFunction,DynamicalODEFunction,SplitSDEFunction,DynamicalSDEFunction,DynamicalDDEFunction. Same value-level behavior as the typed constructors those sites already called. No version bump, no new dependency, no removed public name.a680324161cced23fffb86090a9754288788bfa0. Unique commitae607eee.test/inference_tests.jlpassed on Julia 1.13.0 and 1.10.12, including the 22/22 convenience-constructor checks added here (SDE, BVP, discrete, split, dynamical ODE, linear). On 1.13.0,ODEFunction(f!)allocations were 17 versus 60 on master, andODEProblem(f!, 1, (0, 1), 2)matched master (u0Int64,tspan(0, 1), in-place). Head CI is 55 pending, 0 failing. On the pre-merge SHAae607eee, OrdinaryDiffEq Regression failed once in the Waltman problem (ArgumentError: matrix contains Infs or NaNsduringlu!). The parent PR's same-day Regression job passed, and master IntegrationTest on 2026-10-11 failed that same Regression job (https://github.com/SciML/SciMLBase.jl/actions/runs/38134190296). Current master Regression is green (https://github.com/SciML/SciMLBase.jl/actions/runs/38430497479). SymbolicIndexingInterface failures match master. No skips or loosened existing tolerances; the new allocation caps are fresh assertions and they passed.Boolbranch as Branch on isinplace so convenience constructors dispatch statically #1636, and the new tests passed on 1.10 and 1.13.🤖 Posted by an AI agent — harness: Grok Build · model: grok-4.7 (independent reviewer; appended by Claude Code 2.1.301 · claude-opus-5-5)
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq
Fix by Codex CLI 0.164.0 gpt-6.1-sol (head cea2709)
Merged upstream master
f75f097ea713f757a257078051032f4936dd5b20normally, including the lowered steady-state solution indexing correction from #1657. The test indexes the solution through its own symbolic container and checks observed values against the fixture equations. The constructor and ensemble changes remain in this PR.Failing before / passing after
Before the merge, on the original PR head
a680324161cced23fffb86090a9754288788bfa0:GROUP=SymbolicIndexingInterface timeout 7200 julia +1 --project -e 'using Pkg; Pkg.test()'Diagnostic excerpt, exit 1 (both State indexing and Observed):
The same full group after the merge exited 0:
Local validation
Post-merge runs used Julia 1.13.3,
JULIA_NUM_THREADS=4,OPENBLAS_NUM_THREADS=1,JULIA_NUM_PRECOMPILE_TASKS=1,JULIA_PKG_PRECOMPILE_AUTO=0, andCONDA_OVERRIDE_GLIBC=2.35.GROUP=Core timeout 7200 julia +1 --project -e 'using Pkg; Pkg.test()'Exit 0:
GROUP=QA timeout 7200 julia +1 --project -e 'using Pkg; Pkg.test()'Exit 0:
GROUP=Reactant timeout 7200 julia +1 --project -e 'using Pkg; Pkg.test()'Exit 0:
SciMLSensitivity was checked out at
e40aa29f3e708d1bc0448a64ccf319ea0f5eb3b6, the revision used by the latest passing default-branch Core8 job. From that checkout, withSCIMLBASE_FIX_CHECKOUTpointing to this PR checkout:GROUP=Core8 timeout 7200 julia +1 --project -e 'using Pkg; Pkg.develop(PackageSpec(path = ENV["SCIMLBASE_FIX_CHECKOUT"])); Pkg.test()'Exit 0; all five broken cases are present in that upstream test revision:
This local Core8 run used Enzyme 0.13.219 and GPUCompiler 2.10.0 and completed after extended LLVM compilation.
julia +1 --project=@runic -m Runic --inplace src/ensemble/basic_ensemble_solve.jl \ src/function_wrappers.jl \ src/problems/analytical_problems.jl \ src/problems/bvp_problems.jl \ src/problems/dde_problems.jl \ src/problems/discrete_problems.jl \ src/problems/implicit_discrete_problems.jl \ src/problems/integral_problems.jl \ src/problems/linear_problems.jl \ src/problems/nonlinear_problems.jl \ src/problems/ode_problems.jl \ src/problems/sde_problems.jl \ src/scimlfunctions.jl \ test/downstream/ensemble_zero_length.jl \ test/inference_tests.jlRunic made no edits. Spelling was checked over added lines from the final PR diff:
Default-branch comparison and limits
The latest default-branch push runs at
f75f097ea713f757a257078051032f4936dd5b20pass SymbolicIndexingInterface on LTS/release, Reactant, and SciMLSensitivity Core8. The old Reactant job failed during package setup withUnknown package: GPUCompiler; the local Reactant run reached and passed its tests.SciMLSensitivity Core4 still fails on default master with the same Enzyme
AssertionError: mi2 !== nothingas the old PR job. Catalyst ReleaseTest still fails on default master with the same permission error writing its extension project. These pre-existing failures were left unchanged. Their comparison uses inspected push-event CI logs, not local reproductions or a completed source bisect.LTS, GPU, other downstream/sensitivity groups, a local docs build, and fresh performance benchmarks were not run. The new-head CI check observed 53 jobs in progress, 16 queued, and four successful completed checks; CI completion was not awaited.
Links
Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
Risk assessment
a680324161cced23fffb86090a9754288788bfa0: Branch remaining isinplace constructors for static dispatch #1638 (comment)🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__SciMLBase.jl__1638 (no session URL)
Fix by Codex CLI 0.170.0 gpt-6.2-sol (head 1206ac8)
The threaded ensemble mapper buffers indexed type mismatches per work chunk. It specializes matching-result stores on the initial vector's element type and widens in input order after the thread barrier. Tests check the exact inferred
Vector{Float64}type for homogeneous output, ordering and evaluation count for mixed output, and both in-place conventions for the 16 constructors in the PR summary.Failing before and passing after
I ran
include("test/inference_tests.jl")with the original head and the candidate in scratch Julia environments. The same four-thread test measured warmed allocations fortmap(identity, Any[i for i in 1:100_000]).Evaluated: 3196704 < 1200000Warmed bytes: 805008Evaluated: 1603280 < 1200000Warmed bytes: 803272The focused file passed all 82 assertions on both versions after the change. A separate Julia 1.13.3 Zygote probe with a heterogeneous constant tuple returned the analytic gradient
-228.0.The warmed
@allocations LinearProblem(A!, b)count is 25 at stacked parent9875b30fand 17 here, on both Julia 1.10.12 and 1.12.4. This confirms the prior review's correction to the summary table's allocation count. The timing cells were outside this measurement.Local validation
The groups ran on Julia 1.13.3 with
JULIA_NUM_THREADS=4,OPENBLAS_NUM_THREADS=1,JULIA_NUM_PRECOMPILE_TASKS=1,JULIA_PKG_PRECOMPILE_AUTO=0, andCONDA_OVERRIDE_GLIBC=2.35.Core reported 7,131 passing assertions, QA reported 123, and Downstream reported 722.
CI comparison
Core8, Reactant, and both SymbolicIndexingInterface jobs pass at the starting head
cea270951and current master. Catalyst ReleaseTest, SciMLSensitivity Core2, and DownstreamAD LTS have matching errors on both. The ModelingToolkit Extensions CI jobs hit different errors. I reproduced the PR's TaylorDiffTypeError: non-boolean (Symbolics.Num) used in boolean contexton clean master with the PR job's dependency versions, then loaded the same extension dependency successfully after upgrading TaylorDiff from 0.3.5 to 0.3.6.The CI comparison covers the prior head. The full DownstreamAD group, the full ModelingToolkit Extensions group, GPU paths, and dense-mismatch performance were outside local validation.
Links
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2000b-a555-78a2-bbb4-4b21a3ab70f8 (no session URL)
Fix by Codex CLI 0.170.0 gpt-6.2-sol (head a902960)
The threaded mapper now infers its fast-path input types from integer
getindexcalls. The keyed regression requires exact identity for the large integer and the neighboring float. The threaded ensemble inference test now requires a concreteEnsembleSolutionsubtype.Failing before and passing after
The temporary project loaded the active checkout. The test script contained the same testset as
test/inference_tests.jl.Local validation
The groups ran on Julia 1.13.3 with four Julia threads, one OpenBLAS thread,
JULIA_NUM_PRECOMPILE_TASKS=1,JULIA_PKG_PRECOMPILE_AUTO=0, andCONDA_OVERRIDE_GLIBC=2.35.The focused Julia 1.10.12 run passed all 84 inference assertions. The Zygote probe over
tmapwith heterogeneous inputs returned the expected gradient.Default-branch comparison
Catalyst ReleaseTest, SciMLSensitivity Core2, and DownstreamAD LTS have the same failures in the latest master push logs and the starting PR logs. OrdinaryDiffEq Downstream and SciMLSensitivity Core7 pass on older hosted master environments and reproduce with the newer dependency versions on clean master. The Core7 failure was bisected to a Zygote change. Master release logs · Master integration logs · Master test logs · Zygote bisect commit
The full external integration matrix, GPU and prerelease Julia jobs, and fresh performance benchmarks were outside local validation.
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2019d-9472-76a3-a893-884b26b0183c (no session URL)
Fix by Codex CLI 0.170.0 gpt-6.2-sol (head 60336d5)
Enzyme records a tape for each work item while the forward pass runs on multiple threads. It applies the pullbacks in sequence so trajectories sharing a parameter shadow contribute to the same gradient safely. The SDE regression covers three and five trajectories in both ensemble modes, and the keyed-input regression still tests exact integer indexing.
Failing before and passing after
Both projects used Julia 1.13.4, Enzyme 0.13.221, and SciMLSensitivity 7.119.14, with the SciMLBase source path set to the revision under test. The SDE probe runs reverse mode 100 times on the three fixed-seed threaded trajectories from
test/downstream/ensemble_enzyme_sde.jland compares each gradient with ForwardDiff at the fixture's original tolerance. The smaller probe maps eight work items whose reverse rules update a shared parameter shadow.The one-shot four-thread SDE fixture passed on clean master and on the starting head. The repeated run reproduced the same missing contribution as the hosted release job and blocking review. Hosted failure · Blocking review
Local validation
Package groups ran on Julia 1.13.4 with
JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1 JULIA_NUM_PRECOMPILE_TASKS=1 JULIA_PKG_PRECOMPILE_AUTO=0 CONDA_OVERRIDE_GLIBC=2.35.Default branch and validation limits
Catalyst ReleaseTest, SciMLSensitivity Core2, and DownstreamAD LTS show matching failures in master CI. Clean-master replays also exited 1 for the Core7 Zygote tuple-thunk error and the four OrdinaryDiffEq Downstream Enzyme
loss_mixederrors. The Julia LTS AD group, external integration matrix, GPU and prerelease jobs, and reverse-pass performance were outside local validation. Master release · Master integration · Master testsNext counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2022a-e148-7f42-baff-50ad68184f5e (no session URL)