Skip to content

Overload with_concrete_parameters for DespecializedParameters - #1652

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
SebastianM-C:smc/with-concrete-parameters
Nov 2, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
SebastianM-C:smc/with-concrete-parameters

Conversation

@SebastianM-C

@SebastianM-C SebastianM-C commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Companion to SciML/SymbolicIndexingInterface.jl#197, which adds with_concrete_parameters(f, p, args...): a hook that lets whole-timeseries observed getters cross a despecialization barrier once instead of once per element.

This PR overloads it for DespecializedParameters, forwarding to the existing _invoke_with_despecialized_parameters barrier with the wrapped object, and bumps the SII compat to 0.3.57 (master had already taken 0.3.56). Nothing above the barrier changes type, so compilation reuse across parameter-container layouts is preserved; the only code specialized on the concrete MTKParameters is the broadcast body, which was already specialized per element.

Why

MTK builds problems with AutoDespecialize, so the solution's p is a DespecializedParameters. The generated observed function crossed the barrier per element, so the broadcast in SII's TimeDependentObservedFunction inferred Any and took Base's widening path. On a 10001-point solution a getter call cost ~60k allocations and 6 ms; with both PRs it is 9 allocations and 0.2 ms. The widening setindex! was also an illegal type for Enzyme, so reverse-mode gradients through a prebuilt observed getter on a default MTK problem failed with IllegalTypeAnalysisException at state_indexing.jl:91.

Test

test/downstream/despecialized_observed.jl is a cheap sentinel that needs no AD: it solves a default MTK problem, checks parameter_values(sol) isa DespecializedParameters, checks the whole-timeseries, index-range, mask and scalar getter calls agree and are Vector{Float64}, and bounds the allocation of a whole-timeseries call by a multiple of the result size. Unpatched, that call allocated once per saved point.

Depends on an SII release with the hook; CI will fail on the compat bound until then.

🤖 Generated with Claude Code

Copy link
Copy Markdown

🤖 Automated review from an AI agent — not written or reviewed by the account holder.

Independent review of f0e907c5550f394db309e375bbd3a3934519095a.

Raw report SHA-256: 722c1d46c4b034eb9a436b5fd854e17c9a16fe069cae69c893090bee714e1ae7.
Reviewer: gpt-6.1-sol, high reasoning effort (verified native runtime).
Reviewer native session: 01a16998-5e5c-7b40-9246-966ab6842d5a.

VERDICT: CHANGES

Risk

Medium-high (MH1: default MTK observed solution indexing changes the callback parameter dispatch boundary and empty-result typing); confidence medium. The measured performance improvement accompanies observable core behavior changes. Released cross-package integration remains blocked. The SII compatibility-floor increase also meets ML4; the highest applicable criterion controls. At this level the applied rubric requires requester decision; this reviewer does not merge.
Blast radius: default AutoDespecialize MTK solutions; prebuilt symbolic observed getters over complete series, ranges and masks, and differentiation through those getters. No solver arithmetic or tolerance is edited.
Initial assessment captured on 2026-10-23 before author verification claims or prior-review context: INITIAL-RISK.md SHA256 c802ae2c2e63acc19f50c5138e59a7053304d1bc653d7ffacf60e27081ff42fc. It remains unchanged.

Blocking findings

  1. [P1] Project.toml:144 — required dependency is not released. Clean exact-head Pkg.develop(path="source"); Pkg.instantiate() fails (exit 1): registered SymbolicIndexingInterface reaches 0.3.55, whereas this head requires 0.3.57. The unchanged common ancestor resolves against registered 0.3.55 (exit 0). The hook exists only in the open public companion commit used below. Consequently the normal installation and the published runtime CI checks cannot run. Register the companion release containing the hook, retain the necessary bound, and re-run exact-head/full merge CI. Lowering the bound would leave the extended function unavailable. This is a release/dependency gate, not a demonstrated wrong numerical result. Public immutable registry evidence: registered SII versions

Non-blocking findings

Consider retaining a small, discriminating prebuilt-getter AD regression in DownstreamAD after the companion release. The added allocation sentinel guards performance. The independent Enzyme case below passes on both commits, so it does not guard the specific Enzyme exception claimed in the PR.

What I ran

  • Head f0e907c5550f394db309e375bbd3a3934519095a; target master a0bacd1cb0da86e3d72f41235e68089ced110fb2; common ancestor 365283c66ec24db40c3fae1f2694693070dd7a46. Actual common-ancestor-to-head PR diff SHA256 93dc3c43de1979a4fdbdf8d6bb1cc86721685f3a64fac9eac71fc45a518249c8: 4 files, 48 insertions, 2 deletions. Unrelated target-base changes are excluded.
  • Commands: bash probes/run-serial.sh, bash probes/run-focused.sh, and bash probes/run-sii-controls.sh; each Julia command, individual exit, reusable probe source/hash and complete CI inventory are recorded in EVIDENCE.md. Shell drivers continue to collect results after individual failures; driver success is not a test pass.
  • Static contract audit of the new method, existing barrier, solution/SII callers, companion callback bodies, and MTK parameter construction/code generation. The method matches the companion contract, preserves raw parameter identity, and adds no shared state or hard dependency.
  • Conditional runtime uses unchanged public SII companion 80af69b4a9ea17f262c1e2235d52ba13f9b708b2 from PR #197. This is explicitly not a registered-dependency run. Julia 1.12.1; MTK 11.45.5 / MTKBase 1.77.5; OrdinaryDiffEq 7.8.1; Enzyme 0.13.216; Mooncake 0.5.65; Zygote 0.7.14. Environments/probes are separate from clean detached sources. Julia runs directly with explicit projects and one main test process at a time; later runs use existing-only compiled modules/package images.
  • Faithful before/after: unchanged PR regression file on the common ancestor plus the identical companion/dependency manifest: 8 pass, 1 fail, exit 1; only line 38 allocation assertion fails, 184,648 bytes versus limit 80,080. Candidate: 9/9 pass, exit 0; initial measured allocation 8,344 bytes for 8,008 bytes of output at 1,001 saved points. No source assertion/tolerance was changed.
  • Core: full declared group with 11 threads, exit 0, 6,931/6,931 across 30 test sets. Companion state indexing: 464/464, exit 0.
  • Candidate independent probe: analytic exponential solution/observed-value oracle passes default, Tsit5, Rodas5, FBDF; repeated indices, ranges, masks, scalar, empty selections, alias/mutation and exception propagation pass. Prebuilt-getter state-scaling derivative oracle 3017.1031079480636: Enzyme and Mooncake return 3017.1031079480604. Zygote reports an ODESolution-construction MethodError; the diagnostic process's exit 0 does not count that backend as passed.
  • Original base adversarial probe: exit 1 at approximate comparison of an empty Vector{Any}, whose norm requests zero(Any). Candidate returns Float64[] there. This is a probe/oracle applicability limitation, not evidence of a wrong base numerical result; the base performance/AD tail was not executed. Separate strict focused controls retain this original failure and its unexecuted tail. Both strict Julia processes exit 1 solely because the same Zygote ODESolution-construction error occurs on both. Enzyme and Mooncake getter derivatives match the analytic oracle on both; all four tested AD backends pass active-parameter hook derivatives on both. Thus the author's original Enzyme exception is not reproduced by this probe. Matched warmed allocations are 184,648 bytes (base) versus 8,344 bytes (head); sampled minimum times 180.145 µs versus 2.160 µs.
  • Downstream: full declared group with 11 threads, exit 0; 721/721 assertions across 22 test sets, including Solution Indexing 277, Initialization 87, ensemble RNG 196, and the new sentinel 9. The Unitful file executes solve/interpolation as a smoke test with zero assertions. DownstreamAD: exit 0; 15/15 observable AD assertions. The remake file reports zero active assertions, and the ensemble adjoint file reports one existing Julia 1.12+ compatibility skip. SII declared group: exit 1 after Remake 4,605/4,605 and comprehensive indexing 3,747 pass / 2 errors. Both errors arise while preparing expected values from a one-element nonlinear state vector with [1, 2], before the getter check. The identical file on the common ancestor with matched dependencies reproduces exactly 3,747 pass / 2 errors, exit 1. These failures predate this change in that environment; the underlying package/fixture cause remains unlocalized. The subsequent four files were not reached by the group. Their separate unchanged-file execution finishes exit 0: 469 pass, 8 assertions already marked broken, across integrator indexing, problem indexing, adjoints and MTK remake. The original umbrella failure remains recorded.
  • All 9 associated CI run metadata name the exact head. Current inventory: 73 checks, 65 failures, 8 successes, no pending. 47 integration jobs and 13 grouped runtime jobs fail during SII resolution; documentation, downgrade, both benchmarks and Catalyst release checks also fail resolution. Four green prerelease lanes explicitly skip build/test on Julia 1.14.0-alpha1; other greens are detection, format, suggestions, spelling. These are not executed solver tests. Full and failed logs were inspected, with integration archive fallback after gh aggregate-log request limits. Full job URLs/inventory and commands appear in EVIDENCE.md. The grouped run actually checks out synthetic merge cee6ee7258d1848ce781fbf0cf45c80117b74048.
    Final live verification at 2026-10-23 17:55:08 UTC found the same open/nondraft PR, head/base, 73 completed CI checks and unreleased dependency gate. All source trees and the initial risk hash remain unchanged. Supporting EVIDENCE.md SHA256: dbe265f4b0e20aacf9a0fe0024dfc99f06c2947df583ab8532729c705f221879.

What I did not verify

The registered 0.3.57 dependency environment, successful published integration CI, the full synthetic-merge runtime suite, Julia 1.10/LTS/current 1.13, 32 bit, Python, QA, Reactant/GPU or MPI execution are not established by this local run. No claims of those passes are made. QA-LTS is declared by the head but absent from the emitted matrix; branch-required status configuration returns HTTP 404, so required-name policy is unknown. The original Enzyme exception is not reproduced by the reconstructed probe. The pre-existing Zygote constructor and SII fixture failures remain unresolved; no correction to their underlying causes was verified. The separate SII remainder has eight existing broken assertions. Their underlying issues are not established as corrected. Local coverage is conditional on the companion commit and uses Julia 1.12.1 only.

Reviewer provenance: Codex Desktop, native cli_version 0.159.2; model gpt-6.1-sol, effort high; native session 01a16998-5e5c-7b40-9246-966ab6842d5a. Identity fields were read from native session_meta/turn_context, not requested settings or model self-description. No shareable session URL is verified. Context exposure: neutral rubric/machine target → clean diff/surrounding code → dated initial assessment/hash → public author claims → CI and independent execution. No earlier review opinions were read. This is one independent reviewer session; extra probes are not additional reviewers.

Grade handoff: PR/head-commit account verified as @SebastianM-C through public GitHub API. Author agent/model/cost unknown. Task: core symbolic-observed getter performance/AD integration; difficulty 4/5 (cross-package inference and differentiation); review round 1, fresh initial review of supplied head. Author-work score 4/5 (minor merge-readiness work): the implementation and allocation benefit are supported, while the introduced dependency requirement still needs its companion release and successful integration verification. No substantive candidate code repair is established. Local setup limitations and matched pre-existing failures are not counted as author code defects. Reviewer accuracy remains unknown without independent ground truth.

Links: PR #1652 ; commit ; CI run ; CI run ; PR #197 ; commit

Supporting public evidence · SHA-256 dbe265f4b0e20aacf9a0fe0024dfc99f06c2947df583ab8532729c705f221879

Supporting evidence

Initial assessment SHA256: c802ae2c2e63acc19f50c5138e59a7053304d1bc653d7ffacf60e27081ff42fc.

Conditional dependency: public SII companion commit 80af69b4a9ea17f262c1e2235d52ba13f9b708b2.

Review command ledger

Portable labels: source is the unchanged detached PR head; merge-base is the unchanged common ancestor; base is the unchanged target base tip; sii-companion is the unchanged public dependency companion commit. All environment and probe writes are outside those source trees. Commands are run from the review scratch root unless stated otherwise.

Common execution environment:

export TMPDIR="$PWD/scratch"
export JULIA_PKG_PRECOMPILE_AUTO=0
export JULIA_NUM_PRECOMPILE_TASKS=1

Source preparation (all exit 0):

git clone https://github.com/SciML/SciMLBase.jl.git source
git -C source fetch origin f0e907c5550f394db309e375bbd3a3934519095a a0bacd1cb0da86e3d72f41235e68089ced110fb2
git -C source checkout --detach f0e907c5550f394db309e375bbd3a3934519095a
git -C source worktree add --detach ../base a0bacd1cb0da86e3d72f41235e68089ced110fb2
git -C source merge-base HEAD a0bacd1cb0da86e3d72f41235e68089ced110fb2
git -C source worktree add --detach ../merge-base 365283c66ec24db40c3fae1f2694693070dd7a46
git -C source diff 365283c66ec24db40c3fae1f2694693070dd7a46 HEAD > pr.diff
git clone https://github.com/SciML/SymbolicIndexingInterface.jl.git sii
git -C sii fetch origin pull/197/head
git -C sii worktree add --detach ../sii-companion FETCH_HEAD

Registry-only exact-head setup (exit 1):

julia --startup-file=no --project=env/native -e 'using Pkg; Pkg.Registry.update(); Pkg.develop(path="source"); Pkg.instantiate()'

Output: possible SII versions 0.1.0–0.3.55; SciMLBase 3.58.1 requires 0.3.57–0.3; no versions left. Public General independently confirms 0.3.55 as latest listed version. No runtime tests executed in this environment.

Conditional exact-head setup with the unmodified public companion (exit 0):

julia --startup-file=no --project=env/head -e 'using Pkg; Pkg.develop([PackageSpec(path="source"), PackageSpec(path="sii-companion")]); Pkg.add(["ModelingToolkit", "OrdinaryDiffEq", "ForwardDiff", "Zygote", "Enzyme", "Mooncake", "SciMLTesting", "SafeTestsets"]); Pkg.instantiate()'

The head test dependencies and all applicable compatibility constraints were promoted into a separate environment. An initial resolve/instantiate accidentally allowed automatic precompilation; that process tree was stopped, and subsequent work uses the common serial settings above. This setup event is not a passed test.

Full CI log commands (all exit 0 except aggregate integration limit):

gh run view 39920009126 --repo SciML/SciMLBase.jl --log
gh run view 39920009126 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009374 --repo SciML/SciMLBase.jl --log
gh run view 39920009374 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009501 --repo SciML/SciMLBase.jl --log
gh run view 39920009501 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009577 --repo SciML/SciMLBase.jl --log
gh run view 39920009577 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009639 --repo SciML/SciMLBase.jl --log
gh run view 39920009639 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009701 --repo SciML/SciMLBase.jl --log
gh run view 39920009701 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009766 --repo SciML/SciMLBase.jl --log
gh run view 39920009766 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009907 --repo SciML/SciMLBase.jl --log
gh run view 39920009907 --repo SciML/SciMLBase.jl --log-failed
gh run view 39920009968 --repo SciML/SciMLBase.jl --log
gh run view 39920009968 --repo SciML/SciMLBase.jl --log-failed
gh api repos/SciML/SciMLBase.jl/actions/runs/39920009501/logs

Integration aggregate log commands exit 1 (gh request-count limit); archive fallback exits 0. The archive is read with Python zipfile into scratch and all 47 aggregate job logs inspected. Other log retrieval commands exit 0.

Branch required-status configuration query (exit 1):

gh api repos/SciML/SciMLBase.jl/branches/master/protection/required_status_checks

HTTP 404; repository-required check names remain unknown.

The SII version-list snapshot SHA256 is e06d2cbdff908651fb8239747950c3a65a255d314cd8402a97d24fd829d3f34e. Last public change to that file: 06a167600fa2d00f091c4c7e45ee02db343ffe01.

gh api repos/JuliaRegistries/General/contents/S/SymbolicIndexingInterface/Versions.toml --jq .content | base64 -d
gh api 'repos/JuliaRegistries/General/commits?path=S%2FSymbolicIndexingInterface%2FVersions.toml&per_page=1' --jq '.[] | {sha,html_url}'

Both exit 0. Immutable public reference: registered SII versions

Initial sentinel (exit 0; compiled modules/package images at defaults, serial precompile task cap 1):

julia --startup-file=no --project=env/head -e 'using Pkg; Pkg.resolve(); Pkg.instantiate(); include("source/test/downstream/despecialized_observed.jl"); println("REVIEW_SENTINEL_PASS"); println("whole getter allocations=", @allocated getz(sol)); Pkg.status()'

Output: REVIEW_SENTINEL_PASS; whole getter allocations 8,344 bytes. The environment Project was expanded while this first process ran; Pkg.status warned its manifest hash needed a fresh resolve. Therefore the unchanged sentinel is also rerun after the control setup resolves all environments, with the same flags used for the base control. The initial package compile took approximately 13 minutes, with observed 100% CPU child compilation and no stuck-lock inference. Subsequent runs use --compiled-modules=existing --pkgimages=existing (supported by the installed 1.12.1 manual) to avoid generating new package caches.

Reusable review probes

These are independent scratch probes, not PR source edits. Original failures remain recorded. Focused controls ask separate unresolved questions; their strict final assertion prevents caught backend errors from producing a success verdict.

probes/run-serial.sh

SHA256 ed6c963e5bc603e1c0a0a7e95e2544545c57d8dccb48f45bca962b54191c257c

#!/usr/bin/env bash
set -u
export TMPDIR="$PWD/scratch"
export JULIA_PKG_PRECOMPILE_AUTO=0
export JULIA_NUM_PRECOMPILE_TASKS=1
run_review() {
    label="$1"
    shift
    printf '%s START %s\n' "$(date -u +%FT%TZ)" "$label"
    "$@" > "$label.log" 2>&1
    review_exit=$?
    printf '%s\t%s\t%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit" >> runtime-exits.tsv
    printf '%s END %s exit=%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit"
    tail -8 "$label.log"
}
run_review prepare-controls julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/head probes/prepare-controls.jl
run_review native-base julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/native-base probes/registered-base.jl
run_review sentinel-base julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/merge-base probes/run-sentinel.jl
run_review sentinel-head-check julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/head probes/run-sentinel.jl
run_review actual-head julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/head probes/actual-path.jl
run_review actual-base julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/merge-base probes/actual-path.jl
run_review core-head env GROUP=Core julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=env/head probes/run-groups.jl
run_review sii-state-head julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/head probes/run-sii.jl
run_review downstream-head bash -c 'cd env && GROUP=Downstream julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=head ../probes/run-groups.jl'
run_review downstream-ad-head bash -c 'cd env && GROUP=DownstreamAD julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=head ../probes/run-groups.jl'
run_review sii-group-head bash -c 'cd env && GROUP=SymbolicIndexingInterface julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=head ../probes/run-groups.jl'

probes/run-sentinel.jl

SHA256 0b551500a690dbe23c83e07db8f17d1cdfd9e3c314391f6989b59f33d0bc4760

using Pkg
Pkg.resolve()
Pkg.instantiate()
using Test
@testset "PR sentinel unchanged" begin
include(joinpath(@__DIR__,"..","source","test","downstream","despecialized_observed.jl"))
end

probes/run-groups.jl

SHA256 822b176132cda985d5e6c45a1e85dc0165abef4e2c099b4a259c14548c226582

include(joinpath(@__DIR__, "..", "source", "test", "runtests.jl"))

probes/run-sii.jl

SHA256 586d18cc708f621ef76e55e60f19ea1685251a1ebc6ab2cfe9b7d0092548fb9a

using Test
@testset "SII companion state indexing tests unchanged" begin
include(joinpath(@__DIR__,"..","sii-companion","test","state_indexing_test.jl"))
end

probes/prepare-controls.jl

SHA256 eb41b1440eecdc1b310a45f9a0e0dc96049a559f7ed284a3954a698aef8f1e0d

using Pkg
for (envdir,src) in [("env/merge-base","merge-base"),("env/base-tip","base")]
    Pkg.activate(envdir)
    Pkg.compat("SymbolicIndexingInterface", "0.3.36")
    Pkg.develop([PackageSpec(path=src),PackageSpec(path="sii-companion")];preserve=Pkg.PRESERVE_ALL)
    Pkg.resolve()
    Pkg.instantiate()
end
Pkg.activate("env/downstream")
Pkg.develop([PackageSpec(path="source"),PackageSpec(path="sii-companion")])
Pkg.resolve()
Pkg.instantiate()

probes/registered-base.jl

SHA256 3e5b6fcc27bf345ab6215099ae2426295b7883f42efa195d27ce93af2f595e11

using Pkg
Pkg.develop(path="merge-base")
Pkg.instantiate()
Pkg.status()

probes/actual-path.jl

SHA256 02c0abbe5c63f11e89475910a80c6bdf4f93debcfca8a6c03a1b303eb50ed010

using SciMLBase, ModelingToolkit, OrdinaryDiffEq, SymbolicIndexingInterface, Test
using OrdinaryDiffEqRosenbrock: Rodas5
using OrdinaryDiffEqBDF: FBDF
using ModelingToolkit: t_nounits as t, D_nounits as D
using ForwardDiff, Zygote, Enzyme, Mooncake, DifferentiationInterface, ADTypes
import SciMLStructures as SS

@variables x(t) w(t)
@parameters a
@mtkcompile sys = System([D(x) ~ -a*x, w ~ a*x^2 + 2t], t)
prob = ODEProblem(sys, [x=>2.0, a=>0.7], (0.0,1.0))
getw = getsym(sys,w)
for alg in (nothing, Tsit5(), Rodas5(), FBDF())
    sol = alg === nothing ? solve(prob; saveat=0.1, abstol=1e-10,reltol=1e-10) : solve(prob,alg;saveat=0.1,abstol=1e-10,reltol=1e-10)
    expected = [0.7*4*exp(-1.4*s)+2*s for s in sol.t]
    @test sol.prob.p isa SciMLBase.DespecializedParameters
    @test getw(sol) ≈ expected rtol=1e-8
    for inds in (:, 2:4, [4,2,4], [3], Int[], sol.t .<0.5, falses(length(sol.t)))
        @test getw(sol,inds) ≈ expected[inds] rtol=1e-8
    end
    @test getw(sol,3) ≈ expected[3] rtol=1e-8
    @test getw(sol,CartesianIndex(3)) ≈ expected[3] rtol=1e-8
    @test_throws BoundsError getw(sol,[length(sol.t)+1])
    println("analytic solve/index oracle PASS alg=", alg === nothing ? "default" : nameof(typeof(alg)), " values=",getw(sol)[[1,end]])
end
sol=solve(prob,Tsit5();saveat=0.001,abstol=1e-10,reltol=1e-10)
getw(sol)
allocs = [@allocated(getw(sol)) for _ in 1:5]
times = [@elapsed(getw(sol)) for _ in 1:10]
println("MEASURE points=",length(sol.t)," bytes=",minimum(allocs)," time_min_s=",minimum(times)," outputbytes=",sizeof(getw(sol)))

# The direct hook must preserve alias identity and propagate mutation/errors.
for raw_value in ([2.0], (rate=2.0,), 2.0, nothing, (params=2.0,))
    wrapper=SciMLBase.DespecializedParameters(raw_value)
    @test with_concrete_parameters(p->SciMLBase.unwrap_parameters(p),wrapper) === raw_value
end
raw=[2.0]; wrapped=SciMLBase.DespecializedParameters(raw)
seen=with_concrete_parameters((p,x)->(p,x),wrapped,:payload)
println("HOOK sees wrapper=",seen[1] isa SciMLBase.DespecializedParameters)
if hasmethod(with_concrete_parameters,Tuple{typeof(identity),typeof(wrapped)})
    @test seen[2] === :payload
    @test SciMLBase.unwrap_parameters(seen[1]) === raw
end
with_concrete_parameters((p)->(p[1]=3.0),wrapped)
@test raw==[3.0]
@test_throws ErrorException with_concrete_parameters(_->error("sentinel"),wrapped)

# Differentiate a prebuilt getter on a solved default MTK problem. Linear scaling of all
# saved states gives an independent analytic derivative 2*a*sum(u^2).
# Rebuild the solution through its public builder, keeping its time/metadata/parameters.
const AD_SOL=sol
const GETW=getw
function state_loss(q)
    us=[q .* u for u in AD_SOL.u]
    s=SciMLBase.build_solution(AD_SOL.prob,AD_SOL.alg,AD_SOL.t,us)
    return sum(GETW(s))
end
expected=2*0.7*sum(u[1]^2 for u in sol.u)
@test ForwardDiff.derivative(state_loss,1.0) ≈ expected rtol=1e-10
println("AD analytic oracle=", expected)
for (name,run) in (
    "Zygote" => ()->Zygote.gradient(state_loss,1.0)[1],
    "Enzyme" => ()->Enzyme.autodiff(Enzyme.set_runtime_activity(Enzyme.Reverse),Enzyme.Const(state_loss),Enzyme.Active,Enzyme.Active(1.0))[1][1],
    "Mooncake" => ()->DifferentiationInterface.derivative(state_loss,AutoMooncake(),1.0),
)
    try
        g=run();@test g ≈ expected rtol=1e-9
        println("AD ",name," PASS gradient=",g)
    catch e
        println("AD ",name," ERROR ",sprint(showerror,e))
    end
end
println("REVIEW_ACTUAL_PATH_DONE")

probes/perf-ad-focused.jl

SHA256 25e888ce4923e91d97b41febd1ea19aeb1d78bf5939ff4896606705a79670ccb

println("STAGE loading focused packages");flush(stdout)
using SciMLBase, ModelingToolkit, OrdinaryDiffEq, SymbolicIndexingInterface, Test
using ModelingToolkit: t_nounits as t, D_nounits as D
using ForwardDiff, Zygote, Enzyme, Mooncake, DifferentiationInterface, ADTypes

@variables x(t) w(t)
@parameters a
@mtkcompile sys = System([D(x) ~ -a*x, w ~ a*x^2 + 2t], t)
prob=ODEProblem(sys,[x=>2.0,a=>0.7],(0.0,1.0))
const AD_SOL=solve(prob,Tsit5();saveat=0.001,abstol=1e-10,reltol=1e-10)
const GETW=getsym(sys,w)
@test AD_SOL.prob.p isa SciMLBase.DespecializedParameters
@test GETW(AD_SOL) ≈ [2.8 * exp(-1.4 * s) + 2 * s for s in AD_SOL.t] rtol=1e-8
# Empty selection has an exact cardinality oracle; record its public return type separately.
empty_result=GETW(AD_SOL,Int[])
@test isempty(empty_result)
println("EMPTY result_type=",typeof(empty_result));flush(stdout)
Base.@noinline function measure_getter(g,sol)
    g(sol)
    allocs=[@allocated(g(sol)) for _ in 1:5]
    times=[@elapsed(g(sol)) for _ in 1:10]
    return (;bytes=minimum(allocs),time_min_s=minimum(times),outputbytes=sizeof(g(sol)))
end
m=measure_getter(GETW,AD_SOL)
println("FOCUSED MEASURE points=",length(AD_SOL.t)," bytes=",m.bytes,
    " time_min_s=",m.time_min_s," outputbytes=",m.outputbytes)
flush(stdout)

function state_loss(q)
    us=[q .* u for u in AD_SOL.u]
    s=SciMLBase.build_solution(AD_SOL.prob,AD_SOL.alg,AD_SOL.t,us)
    return sum(GETW(s))
end
hook_body(p,c)=c*sum(abs2,p)
hook_loss(q)=with_concrete_parameters(hook_body,SciMLBase.DespecializedParameters([q,2q]),3.0)
function check_backends(f::F,expected,label) where {F}
    @test ForwardDiff.derivative(f,1.0) ≈ expected rtol=1e-10
    failed=String[]
    for (name,run) in (
        "Zygote" => ()->Zygote.gradient(f,1.0)[1],
        "Enzyme" => ()->Enzyme.autodiff(Enzyme.set_runtime_activity(Enzyme.Reverse),
            Enzyme.Const(f),Enzyme.Active,Enzyme.Active(1.0))[1][1],
        "Mooncake" => ()->DifferentiationInterface.derivative(f,AutoMooncake(),1.0),
    )
        try
            got=run();@test got ≈ expected rtol=1e-9
            println("STRICT AD ",label," ",name," PASS gradient=",got," oracle=",expected)
        catch e
            push!(failed,label*"/"*name)
            println("STRICT AD ",label," ",name," ERROR ",sprint(showerror,e))
        end
        flush(stdout)
    end
    return failed
end
# For fixed saved states, d/dq sum(a*(q*u)^2+2t)=2a*sum(u^2).
failed=check_backends(state_loss,1.4 * sum(u[1]^2 for u in AD_SOL.u),"prebuilt-getter")
# The hook's active parameter payload gives L(q)=3*(q²+(2q)²)=15q², L'(1)=30.
append!(failed,check_backends(hook_loss,30.0,"active-parameters-hook"))
println("STRICT backend_failures=",failed);flush(stdout)
@test isempty(failed)
println("REVIEW_FOCUSED_AD_STRICT_PASS");flush(stdout)

probes/run-focused.sh

SHA256 c42dfdbe4e314881f69cb8028a3c1e2ca4b46494fab48b1cf00ae721a68b91a0

#!/usr/bin/env bash
set -u
export TMPDIR="$PWD/scratch"
export JULIA_PKG_PRECOMPILE_AUTO=0
export JULIA_NUM_PRECOMPILE_TASKS=1
run_review() {
    label="$1"
    shift
    printf '%s START %s\n' "$(date -u +%FT%TZ)" "$label"
    "$@" > "$label.log" 2>&1
    review_exit=$?
    printf '%s\t%s\t%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit" >> runtime-exits.tsv
    printf '%s END %s exit=%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit"
    tail -8 "$label.log"
}
run_review focused-head julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/head probes/perf-ad-focused.jl
run_review focused-base julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/merge-base probes/perf-ad-focused.jl

Executed results and control interpretation

Host: Julia 1.12.1, x86_64 Linux. Conditional packages include ModelingToolkit 11.45.5, ModelingToolkitBase 1.77.5, OrdinaryDiffEq 7.8.1, OrdinaryDiffEqBDF 2.4.13, OrdinaryDiffEqRosenbrock 2.7.5, Enzyme 0.13.216, Mooncake 0.5.65, Zygote 0.7.14, SciMLSensitivity 7.119.13 and SciMLTesting 2.13.3. These are actual local versions, not a claim about other CI lanes.

Payload Exit Exercised result
Registry-only head setup 1 SII 0.3.57 unavailable; no runtime assertion executed
Registry-only common-ancestor setup 0 Resolves registered SII 0.3.55
Conditional control environment setup 0 Companion pinned; head/base manifests differ only in SciMLBase dependency entry
Unchanged sentinel on common ancestor 1 8 pass, 1 fail; only allocation bound fails: 184,648 < 80,080 is false
Unchanged sentinel on head, matched flags 0 9/9 pass; initial independent measurement 8,344 bytes for 8,008 output bytes
Original candidate actual-path probe 0 diagnostic Independent analytic values pass default, Tsit5, Rodas5, FBDF and index cases; state-scaling Enzyme/Mooncake pass; Zygote error is explicitly not a pass
Original base actual-path probe 1 Stops at approximate comparison of empty Vector{Any}, because norm requests zero(Any); remaining performance/AD tail unexecuted
Full declared Core 0 6,931/6,931 assertions across 30 test sets, 11 Julia threads
Unchanged companion state-indexing test file 0 464/464 assertions
Full declared Downstream 0 721/721 assertions across 22 test sets, 11 Julia threads; Unitful interpolation smoke file has zero assertions
Full declared DownstreamAD 0 Observable AD 15/15; remake has zero active assertions on this Julia version; ensemble adjoint reports one existing compatibility skip
Full declared SymbolicIndexingInterface 1 Remake 4,605/4,605; comprehensive indexing 3,747 pass and 2 errors; four subsequent files not reached in this attempt
Unchanged base comprehensive indexing control 1 3,747 pass / same 2 errors; pre-existing in matched environment
Remaining four unchanged SII files 0 469 pass, 8 existing broken assertions across all four files; no new failures/errors
Strict focused head 1 Only prebuilt-getter/Zygote fails; all other attempted backend checks pass
Strict focused common ancestor 1 The same sole Zygote failure; all other attempted backend checks pass

The original probe is retained unchanged. Its caught Zygote error makes its process exit insufficient to establish backend success. On the base, the empty-selection comparison is an oracle applicability failure, not proof of a wrong numerical result. The separate focused probe uses an exact empty-cardinality oracle, records the different return types, and fails its final assertion if any attempted backend fails.

Existing Julia-version guards matter: the declared observable tests exclude Zygote on Julia 1.12+, the remake AD tests do not execute active assertions there, and ensemble adjoints explicitly skip there. Those guards were not changed. The independent focused probe separately attempts Zygote and Enzyme on this host; their outcome is reported per backend rather than being hidden by the declared group's success.

No candidate/source/test assertion or tolerance was changed. No local test result establishes a successful registered-dependency environment, successful public integration job, or an unexecuted architecture/backend.

Matched focused performance and AD results

Both executions use the identical probes/perf-ad-focused.jl bytes and flags from probes/run-focused.sh. All ForwardDiff oracle assertions executed successfully. The strict Julia processes both exit 1; the serial shell drivers deliberately continue after individual nonzero exits, which are recorded separately in the ledger.

Observation Common ancestor + companion Head + companion
Saved points / output bytes 1,001 / 8,008 1,001 / 8,008
Minimum of five warmed allocation samples 184,648 bytes 8,344 bytes
Minimum of ten warmed time samples 180.145 µs 2.160 µs
Empty selection type Vector{Any} Vector{Float64}
Empty cardinality assertion pass pass
Prebuilt getter, ForwardDiff pass pass
Prebuilt getter, Zygote ODESolution-construction MethodError same MethodError
Prebuilt getter, Enzyme 3017.1031079480604, pass 3017.1031079480604, pass
Prebuilt getter, Mooncake 3017.1031079480604, pass 3017.1031079480604, pass
Active parameter hook, ForwardDiff 30, pass 30, pass
Active parameter hook, Zygote 30, pass 30, pass
Active parameter hook, Enzyme 30, pass 30, pass
Active parameter hook, Mooncake 30, pass 30, pass

Independent derivative oracles: getter state scaling 2*a*sum(u[1]^2) = 3017.1031079480636 for fixed saved states; active payload L(q)=3*(q²+(2q)²)=15q², so L'(1)=30. The whole observed-value oracle is 2.8*exp(-1.4*t)+2*t, independent of the candidate getter.

The timing samples describe these warmed sequential local runs; they are not a full statistical performance benchmark. The allocation sentinel separately supplies the faithful unchanged-source failing-before/passing-after result. These reconstructed AD probes exercise the changed path and active parameters, but both bases pass Enzyme here: the author's original Enzyme exception is not reproduced or established as fixed by this probe. The Zygote constructor failure is present on the unchanged common ancestor in this selected Julia 1.12.1 path; it is not introduced by the candidate. Its underlying cause was not fixed or fully localized.

SII failure attribution and unreached-file controls

Full declared head group: exit 1, with Remake 4,605/4,605 followed by comprehensive indexing 3,747 pass / 2 errors. The group stops before its four subsequent files. The unchanged common-ancestor comprehensive file also exits 1 with exactly 3,747 pass / 2 errors. Both errors are BoundsErrors while constructing expected values at repository-relative test/downstream/comprehensive_indexing.jl:128 and :166: a one-element Vector{Float64} is indexed with [1, 2] before the getter assertion is reached. These are pre-existing failures in this matched environment; the underlying package/fixture cause is not localized, so no candidate production defect is inferred.

The comprehensive file is byte-identical on head and common ancestor, SHA256 6f38b60b2b3f62c3711cea048928a3673a0e64b5cd10d0cd4f6d515b9e14e3fb. After Pkg.develop(...; preserve=Pkg.PRESERVE_ALL) and resolution, the full downstream head/base manifest dependency entries differ only in SciMLBase itself. The base version metadata is refreshed to 3.58.0; the actual source is the exact common ancestor throughout.

The remaining files execute unmodified, in their declared order and separate SafeTestsets modules within one head Julia process. An outer test set allows later files to run even if an earlier one fails. This is separately scoped coverage, not a claim that the original declared SII group passed.

probes/prepare-sii-control.jl

SHA256 c8c8882101c194510d7864d20f747eca2ce1faab1313a34bc4546bb02b824d6f

using Pkg
Pkg.develop(path="merge-base";preserve=Pkg.PRESERVE_ALL)
Pkg.resolve()
Pkg.instantiate()

probes/sii-base-comprehensive.jl

SHA256 e5bd6f410f834d89048ef579be8ff72250f4352ce8af547e7bf394d896acbe52

using Test, SafeTestsets
@safetestset "Base comprehensive indexing unchanged" begin
    include(joinpath(@__DIR__,"..","merge-base","test","downstream","comprehensive_indexing.jl"))
end

probes/sii-remainder.jl

SHA256 f04eea3651e9c11c2b78100e10100781615cf5cc86c378b162df020aaae31c42

using Test, SafeTestsets
@testset "Previously unreached SII files unchanged" begin
for (label,file) in [
    ("Symbol and integer based indexing of integrators","integrator_indexing.jl"),
    ("Problem Indexing","problem_interface.jl"),
    ("Adjoints","adjoints.jl"),
    ("ModelingToolkit Remake","modelingtoolkit_remake.jl"),
]
    println("STAGE ",label);flush(stdout)
    @eval @safetestset $label begin
        include($(joinpath(@__DIR__,"..","source","test","downstream",file)))
    end
end
end

probes/run-sii-controls.sh

SHA256 bdb7a9d68848069f5554bc3790360a1998ff756c89575afdd209a9b175146d23

#!/usr/bin/env bash
set -u
export TMPDIR="$PWD/scratch"
export JULIA_PKG_PRECOMPILE_AUTO=0
export JULIA_NUM_PRECOMPILE_TASKS=1
run_review() {
    label="$1"
    shift
    printf '%s START %s\n' "$(date -u +%FT%TZ)" "$label"
    "$@" > "$label.log" 2>&1
    review_exit=$?
    printf '%s\t%s\t%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit" >> runtime-exits.tsv
    printf '%s END %s exit=%s\n' "$(date -u +%FT%TZ)" "$label" "$review_exit"
    tail -8 "$label.log"
}
run_review prepare-sii-control julia --startup-file=no --compiled-modules=existing --pkgimages=existing --project=env/downstream-base probes/prepare-sii-control.jl
run_review sii-base-comprehensive julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=env/downstream-base probes/sii-base-comprehensive.jl
run_review sii-remainder-head julia --startup-file=no --compiled-modules=existing --pkgimages=existing --threads=11 --project=env/downstream probes/sii-remainder.jl

Final runtime ledger and target check

The final separate SII remainder process exits 0 with 469 pass / 8 broken / 477 total. All eight broken assertions are already marked @test_broken in unchanged source: five in test/downstream/adjoints.jl and three in test/downstream/modelingtoolkit_remake.jl. They are not newly weakened assertions or eight new failures. This process executes integrator indexing, problem indexing, adjoints and MTK remake in order; it does not turn the failed original umbrella group into a pass.

2026-10-23T16:45:43Z	sentinel-initial	0
2026-10-23T16:46:05Z	prepare-controls	0
2026-10-23T16:46:09Z	native-base	0
2026-10-23T16:48:36Z	sentinel-base	1
2026-10-23T16:48:51Z	sentinel-head-check	0
2026-10-23T16:53:30Z	actual-head	0
2026-10-23T16:57:14Z	actual-base	1
2026-10-23T17:00:43Z	core-head	0
2026-10-23T17:01:13Z	sii-state-head	0
2026-10-23T17:15:11Z	downstream-head	0
2026-10-23T17:23:13Z	downstream-ad-head	0
2026-10-23T17:30:57Z	sii-group-head	1
2026-10-23T17:35:37Z	focused-head	1
2026-10-23T17:42:06Z	focused-base	1
2026-10-23T17:42:17Z	prepare-sii-control	0
2026-10-23T17:49:48Z	sii-base-comprehensive	1
2026-10-23T17:54:28Z	sii-remainder-head	0

Final validation at 2026-10-23 17:55:08 UTC: PR open, nondraft; head and base unchanged; master ref equals admitted base. Public General still lists SII 0.3.55 as maximum, with the same version-file hash. CI remains 73 completed checks (65 failure, 8 success), no pending. All four detached source trees are clean at their recorded exact commits, and regenerated common-ancestor-to-head diff SHA256 remains 93dc3c43de1979a4fdbdf8d6bb1cc86721685f3a64fac9eac71fc45a518249c8.

Final public metadata commands (all exit 0):

gh api repos/SciML/SciMLBase.jl/pulls/1652 --jq '{state,draft,head:.head.sha,base:.base.sha,updated_at}'
gh api repos/SciML/SciMLBase.jl/git/ref/heads/master --jq .object.sha
gh api repos/JuliaRegistries/General/contents/S/SymbolicIndexingInterface/Versions.toml --jq .content | base64 -d
gh api repos/SciML/SciMLBase.jl/commits/f0e907c5550f394db309e375bbd3a3934519095a/check-runs --paginate --jq '.check_runs[] | {name,status,conclusion,html_url,id}'
git -C source status --porcelain
git -C base status --porcelain
git -C merge-base status --porcelain
git -C sii-companion status --porcelain

Dependency-entry comparison (executed on both head/common-ancestor pairs, output []; exit 0):

import tomllib
from pathlib import Path
for first, second in [("head", "merge-base"), ("downstream", "downstream-base")]:
    a = tomllib.loads(Path("env", first, "Manifest.toml").read_text())["deps"]
    b = tomllib.loads(Path("env", second, "Manifest.toml").read_text())["deps"]
    print([k for k in a.keys() | b.keys() if k != "SciMLBase" and a.get(k) != b.get(k)])

The initial risk artifact is unchanged. Its SHA256 is recorded at the start of this evidence. The appended final risk assessment retains MH1; SHA256 288511d84211ef2c33b6ad5168bcca8d18327f744196f0e5c2b3ae08278a7b5f. No supported-input rejection or default numerical arithmetic change is established. Conditional companion execution, matched pre-existing errors and host-version skips remain explicit limitations.

Full exact-head CI inventory

73 check runs and execution classification

Exact-head CI evidence

Associated PR head: f0e907c5550f394db309e375bbd3a3934519095a. Checks: 73; 65 failure, 8 success; no pending checks in this snapshot.

The grouped workflow checks out the synthetic merge cee6ee7258d1848ce781fbf0cf45c80117b74048 (head merged into target base a0bacd1cb0da86e3d72f41235e68089ced110fb2). Association with an exact head does not mean its jobs execute the detached head tree.

47 integration jobs, 13 grouped runtime jobs, documentation, both benchmarks, Catalyst release test, and downgrade fail dependency resolution. The direct errors name unavailable SymbolicIndexingInterface compatibility. Benchmark cleanup additionally reports a missing cache handler after resolution failed. Those are not executed numerical failures.

Four green grouped pre lanes explicitly say: Julia 1.14.0-alpha1 is not a release candidate; skipping build+test and reporting the pre lane as passing. Other greens: matrix detection, Runic format, Runic suggestions, spelling.

The supplied head test_groups.toml declares QA lts and 1, while the emitted grouped matrix reports QA 1 only. QA lts is unreported in this run. Branch required-status configuration query returns HTTP 404, so branch-required names cannot be verified. No unreported check is counted as passing.

Full logs were fetched for nine runs with gh run view --log and --log-failed. The integration aggregate command exceeded gh request limits; the public actions logs archive API succeeded, yielding all 47 aggregate job logs plus per-step files. Each of the 47 aggregate logs was read/parsed for failures. All run metadata report the supplied head SHA.

Check Status URL
tests / Core (julia 1, ubuntu-latest) / Tests - Core (Julia 1) failure CI job
tests / Python (julia lts, ubuntu-latest) / Tests - Python (Julia lts) failure CI job
tests / Python (julia 1, ubuntu-latest) / Tests - Python (Julia 1) failure CI job
tests / DownstreamAD (julia lts, ubuntu-latest) / Tests - DownstreamAD (Julia lts) failure CI job
tests / Core (julia 1, ubuntu-latest, x86) / Tests - Core (Julia 1) failure CI job
tests / SymbolicIndexingInterface (julia lts, ubuntu-latest) / Tests - SymbolicIndexingInterface (Julia lts) failure CI job
tests / Downstream (julia pre, ubuntu-latest) / Tests - Downstream (Julia pre) success CI job
tests / Reactant (julia 1, ubuntu-latest) / Tests - Reactant (Julia 1) failure CI job
tests / QA (julia 1, ubuntu-latest) / Tests - QA (Julia 1) failure CI job
tests / SymbolicIndexingInterface (julia pre, ubuntu-latest) / Tests - SymbolicIndexingInterface (Julia pre) success CI job
tests / Downstream (julia lts, ubuntu-latest) / Tests - Downstream (Julia lts) failure CI job
tests / Downstream (julia 1, ubuntu-latest) / Tests - Downstream (Julia 1) failure CI job
tests / DownstreamAD (julia 1, ubuntu-latest) / Tests - DownstreamAD (Julia 1) failure CI job
tests / SymbolicIndexingInterface (julia 1, ubuntu-latest) / Tests - SymbolicIndexingInterface (Julia 1) failure CI job
tests / Core (julia lts, ubuntu-latest) / Tests - Core (Julia lts) failure CI job
tests / Python (julia pre, ubuntu-latest) / Tests - Python (Julia pre) success CI job
tests / Core (julia pre, ubuntu-latest) / Tests - Core (Julia pre) success CI job
OrdinaryDiffEq.jl/Downstream / Downstream Tests - Downstream failure CI job
OrdinaryDiffEq.jl/Interface2 / Downstream Tests - Interface2 failure CI job
Sundials.jl/All / Downstream Tests - All failure CI job
OrdinaryDiffEq.jl/Regression_II / Downstream Tests - Regression_II failure CI job
OrdinaryDiffEq.jl/Regression_I / Downstream Tests - Regression_I failure CI job
JumpProcesses.jl/All / Downstream Tests - All failure CI job
SimpleDiffEq.jl/All / Downstream Tests - All failure CI job
ModelingToolkit.jl/InterfaceII / Downstream Tests - InterfaceII failure CI job
OrdinaryDiffEq.jl/Regression / Downstream Tests - Regression failure CI job
OrdinaryDiffEq.jl/Integrators_I / Downstream Tests - Integrators_I failure CI job
SciMLSensitivity.jl/Core5 / Downstream Tests - Core5 failure CI job
OrdinaryDiffEq.jl/InterfaceV / Downstream Tests - InterfaceV failure CI job
Integrals.jl/All / Downstream Tests - All failure CI job
ModelingToolkitStandardLibrary.jl/Core / Downstream Tests - Core failure CI job
ModelingToolkit.jl/Downstream / Downstream Tests - Downstream failure CI job
SciMLSensitivity.jl/Core7 / Downstream Tests - Core7 failure CI job
OrdinaryDiffEq.jl/Integrators_II / Downstream Tests - Integrators_II failure CI job
SciMLSensitivity.jl/Core8 / Downstream Tests - Core8 failure CI job
Catalyst.jl/All / Downstream Tests - All failure CI job
SciMLSensitivity.jl/Core2 / Downstream Tests - Core2 failure CI job
ModelingToolkit.jl/Extended / Downstream Tests - Extended failure CI job
OrdinaryDiffEq.jl/AlgConvergence / Downstream Tests - AlgConvergence failure CI job
DiffEqFlux.jl/All / Downstream Tests - All failure CI job
SciMLSensitivity.jl/Core6 / Downstream Tests - Core6 failure CI job
ModelingToolkit.jl/InterfaceI / Downstream Tests - InterfaceI failure CI job
OrdinaryDiffEq.jl/Integrators / Downstream Tests - Integrators failure CI job
OrdinaryDiffEq.jl/Interface3 / Downstream Tests - Interface3 failure CI job
BoundaryValueDiffEq.jl/All / Downstream Tests - All failure CI job
SciMLSensitivity.jl/Core1 / Downstream Tests - Core1 failure CI job
OrdinaryDiffEq.jl/InterfaceI / Downstream Tests - InterfaceI failure CI job
OrdinaryDiffEq.jl/InterfaceIII / Downstream Tests - InterfaceIII failure CI job
OrdinaryDiffEq.jl/Downstream2 / Downstream Tests - Downstream2 failure CI job
NonlinearSolve.jl/Core / Downstream Tests - Core failure CI job
SciMLSensitivity.jl/Core3 / Downstream Tests - Core3 failure CI job
LinearSolve.jl/All / Downstream Tests - All failure CI job
OrdinaryDiffEq.jl/InterfaceIV / Downstream Tests - InterfaceIV failure CI job
Optimization.jl/Core / Downstream Tests - Core failure CI job
ModelingToolkit.jl/Initialization / Downstream Tests - Initialization failure CI job
OrdinaryDiffEq.jl/Interface1 / Downstream Tests - Interface1 failure CI job
OrdinaryDiffEq.jl/Core / Downstream Tests - Core failure CI job
OrdinaryDiffEq.jl/InterfaceII / Downstream Tests - InterfaceII failure CI job
OrdinaryDiffEq.jl/Core / Downstream Tests - Core failure CI job
ModelingToolkit.jl/SymbolicIndexingInterface / Downstream Tests - SymbolicIndexingInterface failure CI job
ModelingToolkit.jl/Extensions / Downstream Tests - Extensions failure CI job
ModelingToolkit.jl/FMI / Downstream Tests - FMI failure CI job
OrdinaryDiffEq.jl/Interface / Downstream Tests - Interface failure CI job
SciMLSensitivity.jl/Core4 / Downstream Tests - Core4 failure CI job
runic-suggestions / Runic Suggestions success CI job
tests / detect success CI job
Runic / Runic Format Check success CI job
Downgrade / Downgrade Tests failure CI job
benchmark (lts) failure CI job
Documentation / Build and Deploy Documentation failure CI job
Spell Check with Typos / Spell Check with Typos success CI job
benchmark (1) failure CI job
Catalyst/All/1 failure CI job

🤖 Posted by an AI agent · harness: Codex Desktop (CLI 0.159.2) · model: gpt-6-astra
Review: unreviewed
Session: 01a16995-d7d6-7852-9a4a-7e51b2108bc9

SymbolicIndexingInterface 0.3.56 adds `with_concrete_parameters(f, p, args...)`
so whole-timeseries observed getters can cross a despecialization barrier once
instead of per element. Forward it to the existing non-inlined barrier with the
wrapped parameter object.

Add a downstream sentinel test on a default (AutoDespecialize) MTK problem that
checks the solution's parameters are wrapped, the whole-timeseries, index-vector,
mask and scalar getter calls agree and return concretely typed vectors, and that
a whole-timeseries call allocates on the order of its result rather than per
saved point.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@SebastianM-C
SebastianM-C force-pushed the smc/with-concrete-parameters branch 2 times, most recently from 0cc306a to aaca45e Compare November 2, 2026 14:37
@ChrisRackauckas
ChrisRackauckas merged commit 33d6fd3 into SciML:master Nov 2, 2026
65 of 73 checks passed
@SebastianM-C
SebastianM-C deleted the smc/with-concrete-parameters branch November 2, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants