Skip to content

Zero-fill grown step history after resize! (#4722) - #4763

Draft
ChrisRackauckas-Claude wants to merge 11 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/4722-resize-uprev
Draft

ChrisRackauckas-Claude wants to merge 11 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/4722-resize-uprev

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

resize!(integrator, n) grew step-history arrays with Julia's uninitialized (or leftover-capacity) slots. ImplicitEuler :ie_dd2 and Trapezoid :trap_dd3 could then abort as ReturnCode.Unstable. OrdinaryDiffEqCore zero-fills grown uprev/uprev2/duprev and, when the cache has a field uprev3, those slots too. hasfield does not look inside CompositeCache/DefaultCache sub-caches.

A previous SDIRK-only resize_non_user_cache! that pulled uprev3 out of full_cache is reverted. DelayDiffEq's resize! resizes full_cache and then a no-op resize_non_user_cache!(::DDEIntegrator, ...), so uprev3 must stay in full_cache or it stays the old length (DimensionMismatch) and deleteat!/addat! skip it.

Separate pre-existing bug, still on master: after deleteat!/addat! on in-place Trapezoid, a later step! can BoundsError in update_fsal! because fsalfirst is not shortened. This PR does not fix that.

Fail before / pass after

Core uprev fill (master Core, leftover capacity 2.4e77): all(iszero, integ.uprev[6:10]) failed.

Core uprev3 fill (SDIRK full_cache restored, Core hasfield fill removed): all(iszero, integ.cache.uprev3[6:10]) failed. With the fill: TRAP_UPREV3_OK.

DDE: MethodOfSteps(Trapezoid()) grow 3→5 then six step!s: DDE_OK retcode=Success uprev3len=5.

Verification

julia +1.12 --project=@runic -e 'using Runic; exit(Runic.main(["--check", "lib/OrdinaryDiffEqCore/src/integrators/integrator_interface.jl", "lib/OrdinaryDiffEqSDIRK/src/sdirk_caches.jl", "lib/OrdinaryDiffEqSDIRK/src/OrdinaryDiffEqSDIRK.jl", "lib/DelayDiffEq/test/integrators/cache.jl", "test/Integrators_II/resize_tests.jl"]))'

Exit 0.

include("test/Integrators_II/resize_tests.jl")
Test Summary: | Pass  Total     Time
Resize Tests  |   97     97  3m32.3s

DDE reproducer (same as lib/DelayDiffEq/test/integrators/cache.jl): DDE_OK retcode=Success uprev3len=5.

Follow-ups (not in this PR)

  • fsalfirst: still grown by resize! without a dedicated fill; DiscreteCallback re-evaluates FSAL. deleteat!/addat! plus step! BoundsError on Trapezoid fsalfirst is pre-existing on master.
  • resize!(integrator, i::NTuple) still does not fill history.
  • hasfield does not recurse into composite/default sub-caches.

Fixes #4722

Please ignore this draft until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: medium (history fill plus DDE/full_cache interaction; confidence high after the SDIRK override was reverted)
  • Blast radius: resize!(::ODEIntegrator, ::Int) history slots only. uprev3 remains in SDIRK full_cache.
  • Evidence: resize file 97/97; Trapezoid ODE test fails without Core uprev3 fill; DDE grow-and-step succeeds with length(uprev3)==5.
  • Independent review: Codex CLI (gpt-6-astra) rated it medium, MERGE: round-2 corrections verified (SDIRK subtree identical to master, Trapezoid + DDE regressions discriminate, Runic exit 0); DelayDiffEq's own resize! path still leaves grown history uninitialized (separate follow-up). Earlier rounds: Claude Code (claude-opus-5-5[1m]) round 1 low, round 2 medium.
  • Merge: needs human review — medium risk (resize! history handling in OrdinaryDiffEqCore)

Harness: Cursor Agent CLI 2026.10.01-14929f9; model: auto; transcript: /log.txt

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.164.0 gpt-6.1-sol (head 2c23705)

The resize regression now checks analytic decay accuracy for both ImplicitEuler and Trapezoid after the existing poisoned-history growth callbacks. At t=1, the ten original components equal exp(-1) and the five components introduced at t=0.5 equal exp(-0.5). Method-specific stability-factor bounds use the actual maximum step, with a 1e-8 allowance for floating-point and nonlinear-solve error. This addresses blocking finding G1/P2; nested-cache initialization remains the separate P3 follow-up. The commit adds 18 test lines and changes no solver implementation.

Failing before / passing after

I extracted the final official resize! initializes grown step history testset verbatim and ran it with identical saved test manifests, substituting only Core source: merge-base 59ba40e before, PR Core after. Each run printed the loaded Core source to confirm selection. Both used Julia 1.12.4, --compiled-modules=existing, four Julia threads and one OpenBLAS thread.

Before, exit 1:

resize! initializes grown step history |    2     9     11  43.2s

Both new accuracy assertions fail: error 0.3934693402873666 exceeds bounds 5.3722729479013455e-5 and 2.7163926431752694e-6; both solves return Unstable. After, exit 0:

resize! initializes grown step history |   11     11  40.3s

Local validation

Julia 1.12.4, JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1; every command below exited 0.

GROUP=Integrators_II timeout 7200 julia --project -e 'using Pkg; Pkg.test()'

Full group: 602 passed, 5 existing broken; no tests were disabled or changed to broken. Selected real output:

Resize Tests  |  101    101  3m44.9s
Cache Tests   |  214       4    218  21m16.8s
Add Steps Tests |    1      1  6m52.4s
IMEX Split Function Tests |   15       1     16  9m29.7s
     Testing OrdinaryDiffEq tests passed
GROUP=QA timeout 7200 julia --project -e 'using Pkg; Pkg.test()'
Quality Assurance Tests |  111    111  14.4s
     Testing OrdinaryDiffEq tests passed
timeout 3600 julia --project=@runic -m Runic --inplace test/Integrators_II/resize_tests.jl
git show --format= -- test/Integrators_II/resize_tests.jl | typos -
git diff --check HEAD^ HEAD

All three commands produced no diagnostics.

The reported Core4 CI failure is pre-existing: PR and master push logs have the same Enzyme parallelrules.jl:233 assertion, mi2 !== nothing, with matching Enzyme 0.13.216 / EnzymeCore 0.8.23 / GPUCompiler 1.23.0 / LLVM 9.13.2 / Enzyme_jll 0.0.303+0 / SciMLSensitivity 7.119.13. Latest master Core4 passes with Enzyme 0.13.217. This matches the existing RAT685 baseline investigation. NonlinearSolve Core's identical line-search failure also occurs on master and has an existing issue, bisect and proposed fixes. No baseline solver repair is included here.

Not verified locally: full downstream suites, DDE/LTS, GPU, DAE and nested-cache growth, or docs builds. CI was checked once after pushing and is queued; its outcome is pending. The entire unfixed integrator group was not rerun: the before comparison executes the exact expanded regression testset only.

Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).

Links


🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__OrdinaryDiffEq.jl__4763 (no session URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Fix by Codex CLI 0.164.0 gpt-6.1-sol (head f6cb21e)

Merged upstream master normally to include the TaylorDiff 0.3.6 compatibility floors from the upstream fix linked below. TaylorDiff 0.3.5 fails to import with ChainRules 1.74.13, producing the reported Symbolics.Num boolean error. All four reported Taylor Core/QA checks pass on the latest master push. The merge preserves this PR's three-file resize diff, including the analytic accuracy assertions addressing the blocking review finding.

Failing before / passing after

Created isolated projects with exact TaylorDiff pins of 0.3.5 and 0.3.6 and the same exact ChainRules 1.74.13 pin. Package setup used Pkg.instantiate(; update_registry=false, allow_autoprecomp=false). With comparison_env selecting each isolated project, the same import command was run on Julia 1.12.4:

timeout 3600 julia --startup-file=no --check-bounds=yes --depwarn=yes --compiled-modules=existing --project="$comparison_env" -e 'using TaylorDiff, ChainRules; println("Julia ", VERSION, "; TaylorDiff ", pkgversion(TaylorDiff), "; ChainRules ", pkgversion(ChainRules), "; LOAD PASS")'

Before, exit 1, with the manifest confirming TaylorDiff 0.3.5 / ChainRules 1.74.13:

ERROR: LoadError: TypeError: non-boolean (Symbolics.Num) used in boolean context

After, exit 0:

Julia 1.12.4; TaylorDiff 0.3.6; ChainRules 1.74.13; LOAD PASS

Local validation

Julia 1.12.4, JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1 JULIA_NUM_PRECOMPILE_TASKS=1 JULIA_PKG_PRECOMPILE_AUTO=0, isolated TMPDIR. All six commands exited 0; each functional group ran in full.

GROUP=Core timeout 14400 julia --project=lib/OrdinaryDiffEqTaylorSeries -e 'using Pkg; Pkg.test()'
GROUP=QA timeout 14400 julia --project=lib/OrdinaryDiffEqTaylorSeries -e 'using Pkg; Pkg.test()'
GROUP=Core timeout 14400 julia --project=lib/OrdinaryDiffEqTaylorSeriesImplicit -e 'using Pkg; Pkg.test()'
GROUP=QA timeout 14400 julia --project=lib/OrdinaryDiffEqTaylorSeriesImplicit -e 'using Pkg; Pkg.test()'
GROUP=QA timeout 14400 julia --project=. -e 'using Pkg; Pkg.test()'
GROUP=Integrators_II timeout 14400 julia --project=. -e 'using Pkg; Pkg.test()'

Taylor Core tail:

Nonlinear IIP System |    4      4  11.2s
     Testing OrdinaryDiffEqTaylorSeries tests passed

Taylor QA summaries:

Allocation Tests |    2       1      3  1m47.5s
JET Tests     |    1      1  2m21.6s
Aqua          |   17     17  36.9s
     Testing OrdinaryDiffEqTaylorSeries tests passed

Implicit Core and QA tails, respectively:

Implicit Solver Convergence Tests |    4      4  1m24.6s
     Testing OrdinaryDiffEqTaylorSeriesImplicit tests passed
Implicit Solver Convergence Tests |    4      4  1m23.9s
     Testing OrdinaryDiffEqTaylorSeriesImplicit tests passed

The implicit runner ignores GROUP, so its QA invocation repeats its four functional convergence assertions; it provides no separate QA coverage.

Root QA and full Integrators_II summaries:

Quality Assurance Tests |  111    111  10m34.0s
Integrator RNG Tests |   41     41  25.2s
Reverse Directioned Event Tests |  170    170  7m37.1s
Differentiation Direction Tests |   12     12  56.6s
Resize Tests  |  101    101  3m50.9s
deleteat!/addat! Tests |   48     48  9.3s
Cache Tests   |  214       4    218  20m17.6s
Add Steps Tests |    1      1  6m43.4s
IMEX Split Function Tests |   15       1     16  9m38.2s
     Testing OrdinaryDiffEq tests passed

Integrators_II totals 602 passing and five existing broken assertions; Taylor QA has one existing broken allocation assertion. No assertions were changed, disabled or loosened.

Formatting and spelling ran on the merged working tree before committing:

timeout 3600 julia --project=@runic -m Runic --inplace lib/OrdinaryDiffEqCore/src/integrators/integrator_interface.jl lib/DelayDiffEq/test/integrators/cache.jl test/Integrators_II/resize_tests.jl
mapfile -t merged_julia_files < <(git diff --cached --diff-filter=ACMR --name-only -- '*.jl')
timeout 3600 julia --project=@runic -m Runic --check "${merged_julia_files[@]}"
git diff --cached --unified=0 | python3 -c 'import sys; sys.stdout.writelines(line[1:] for line in sys.stdin if line.startswith("+") and not line.startswith("+++"))' | typos -
git diff --check
git diff --cached --check

All exited 0 without diagnostics; the full merge Runic check covered 168 surviving Julia files.

Other prior red checks have baseline matches: Taylor downgrade and downstream jobs have the same TaylorDiff load error on master; LTS AD has the same ReverseDiff finished-recording error; GPU autoswitch has the same GPUCompiler deprecation-warning assertion; NonlinearSolve has the previously documented line-search failure. These baseline failures are outside this resize fix. Their evidence is linked below.

Not run locally: GPU, LTS AD, full downstream suites, DDE, docs, Everything, or Julia 1.13. The single post-push snapshot confirmed the new head and 71 in-progress / 189 queued checks, with no failures in that snapshot. CI completion was not awaited. Independent review of this merged head is pending.

Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).

Links


🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__OrdinaryDiffEq.jl__4763 (no session URL)

ChrisRackauckas and others added 4 commits October 3, 2026 06:34
Julia's resize! leaves grown history entries undefined, and ImplicitEuler's
:ie_dd2 estimator then reads them as huge EEst. Fill only the newly added
history components so leftover capacity and uninitialized bits cannot poison
the next step.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
Use leftover Array capacity filled with 2.4e77 so the uninitialized-history
path is deterministic, then grow state in an ImplicitEuler callback and
require ReturnCode.Success.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
uprev3 is not covered by Core's uprev/uprev2 fill. Resize it in
resize_non_user_cache! (out of full_cache) so grown slots are zeros
before :trap_dd3 reads them.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
Assert leftover Array capacity still retains 2.4e77 on grow, format
tolerances for Runic, and require Trapezoid success after a poisoned
uprev3 shrink-grow.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
@ChrisRackauckas-Claude ChrisRackauckas-Claude changed the title Zero-fill grown uprev/uprev2 after resize! (#4722) Zero-fill grown step history after resize! (#4722) Oct 3, 2026
ChrisRackauckas and others added 3 commits October 3, 2026 08:25
DDE resize! only walks full_cache and then a no-op DDEIntegrator
resize_non_user_cache!, so taking uprev3 out of full_cache left it
unstretched and broke deleteat!/addat! index semantics.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
Trapezoid still needs new history slots defined. hasfield keeps this
generic without a SDIRK-only resize_non_user_cache! override.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
DDE resize only updates full_cache entries; after growing to 5 the
Trapezoid history vector must match and the remaining steps succeed.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/OrdinaryDiffEq.jl/jobs/4722-cursor/log.txt on amdci2.julia.csail.mit.edu
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3 (conflict resolution), Claude Code 2.1.285 (orchestration)
Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Agent-Session: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master); Devin log /Users/chrisrackauckas/sandbox/master/fusion-fixes/SciML_OrdinaryDiffEq.jl-4763/log.txt
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Merged the default branch into this PR (clean merge, no conflicts; head 38d72ad) so CI runs on current master. Its earlier failures in SciMLSensitivity Core1 and the downgrade jobs were fixed on master after this PR's last CI run.


🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (merge), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master)

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Independent review (Codex CLI 0.166.0 / gpt-6.1-sol), session 01a19829-53a0-7801-8ad7-647c29ff8076, reviewed head 6d89aa1

  • Verdict: CHANGES
  • Risk: medium-high (MH1: generic resize! affects callback-driven state growth across core solver main lanes.)
  • Round / slot: 1 / 1
  • Blocking priorities: P2

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: The PR zero-initializes newly grown ODE step-history slots and adds ODE/DDE resize regressions. Own runs confirm the ODE regressions fail on base and pass on head, but the PR still needs a persisted independent accuracy assertion (G1).

Blast radius: Integer-sized ODEIntegrator resizing, uprev/uprev2/DAE duprev, and direct cache.uprev3; DDE test coverage is added without changing its resize implementation.

Evidence: Blind diff assessment sealed before author context. ODE Integrators_II and DDE Integrators CI passed. Both failing CI errors have exact matches on recent master runs. Own Julia 1.13.2 runs: the seven added ODE assertions pass on head; five fail on base, including both solves returning Unstable. The added DDE assertions pass on both. Independent analytic probes for ImplicitEuler and Trapezoid passed; the composite probe errored in the reviewer harness before exercising that path.

Blocking findings

  1. [P2] Add an independent accuracy oracle after state growth — suspected from reading, test/Integrators_II/resize_tests.jl:302 and test/Integrators_II/resize_tests.jl:321. Both decay solves assert only ReturnCode.Success; the direct history checks verify initialization but cannot detect a successful solve with incorrect new-component values. G1 requires accuracy or convergence against an independent reference for this initialization change. Assert the piecewise analytic decay for old components and components introduced at t=0.5, with a justified error bound; include the corresponding numerical assertion in the regression test. My separate analytic probe passed for both methods, but that evidence is not retained in the PR tests.

Non-blocking findings

  1. [P3] Consider recursively initializing nested histories — suspected from reading, lib/OrdinaryDiffEqCore/src/integrators/integrator_interface.jl:368. The direct hasfield(typeof(cache), :uprev3) check does not visit CompositeCache/DefaultCache children, although full_cache resizes their buffers. Consequently the same stale-history hazard appears to remain for nested Trapezoid caches. This is an existing coverage gap rather than a demonstrated new regression; recurse over child caches and add a poisoned-regrowth test in a follow-up. My attempted runtime probe did not reach this path because of a missing import in its harness.

What I ran

  • git -C src rev-parse HEAD, git -C src rev-parse origin/master, git -C src merge-base origin/master HEAD, and git -C src diff origin/master...HEAD: exit 0. The merge-base equals the API-reported base above; the prepared origin/master reference is newer. No root AGENTS.md or CLAUDE.md was present.
  • gh pr view 4763 --repo SciML/OrdinaryDiffEq.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid: exit 0; OPEN, draft, expected head. Read the PR description and issue 4722 only after sealing INITIAL.md and INITIAL.sha256.
  • gh api --paginate repos/SciML/OrdinaryDiffEq.jl/pulls/4763/commits: exit 0. The last commit with at most one parent is b15f240; its trailers supply the AUTHOR_GRADE harness/model.
  • gh pr checks 4763 --repo SciML/OrdinaryDiffEq.jl; gh run view 38865221553 --repo SciML/OrdinaryDiffEq.jl --log-failed; gh run view 38865221919 --repo SciML/OrdinaryDiffEq.jl --log-failed. Log retrieval initially encountered a read-only CLI cache; redirecting XDG_CACHE_HOME to review-local storage succeeded. ODE Integrators_II and DDE Integrators passed. SciMLSensitivity Core4 failed with AssertionError: mi2 !== nothing; NonlinearSolve Core failed with LineSearchException: Search direction is not a direction of descent. Step length: 0.0. The DDE LTS integrator job was cancelled.
  • Compared recent completed master push runs using gh run list and failed logs from master IntegrationTest and master Sublibrary CI: exit 0. Both exact errors recur in the same test groups, so neither is attributed to this PR.
  • Julia 1.13.2, aarch64; one invocation at a time, JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1, isolated TMPDIR, supplied shared depot with the default-depot suffix, and JULIA_PKG_PRECOMPILE_AUTO=0. Temporary envs use local package sources; registries were not updated. Each invocation uses timeout 3600 julia +1.13.2 --startup-file=no.
  • Head: timeout 3600 julia +1.13.2 --startup-file=no run-head.jl, exit 0. The script activates env, calls Pkg.instantiate(;update_registry=false,allow_autoprecomp=false), includes the complete test/Integrators_II/resize_tests.jl, and executes the verbatim added DDE testset. Output tails: resize! initializes grown step history | 7 / 7; Trapezoid resize! grows uprev3 | 2 / 2.
  • git -C src archive 59ba40e4b5bbae713d8df7b792f6ea62f033ff78 | tar -x -C base-src: exit 0 after creating the destination. The base env pins the same external package versions and points local packages at the archive. timeout 3600 julia +1.13.2 --startup-file=no run-base.jl: exit 1. It runs the identical added ODE and DDE testsets inside an outer testset. Output: Added regressions on base | 4 passed, 5 failed, 9 total; ODE 2 passed, 5 failed; DDE 2 passed. Base uprev, uprev2, and cache.uprev3 all retain five 2.4e77 values where zeros are asserted; both ODE callback solves return ReturnCode.Unstable instead of Success. These same seven ODE assertions pass on head; the DDE test passes on both revisions.
  • Third and final invocation: timeout 3600 julia +1.13.2 --startup-file=no --project=env probe.jl, exit 1 due to a reviewer-harness error. Four analytic assertions passed: for du=-u, grow from two to three components at t=0.5 with the new component set to 1, then compare at t=1 against [exp(-1), exp(-1), exp(-0.5)]. ImplicitEuler: Success, maximum absolute error 5.852759355140513e-5, bound 2.0107251514302842e-4; Trapezoid: Success, error 3.213609703345277e-6, bound 1.2586429224475086e-5. Bounds use the analytic logarithmic stability-factor series: expm1(hmax/2)+1e-8 for ImplicitEuler and expm1(hmax^2/(12*(1-hmax^2/4)))+1e-8 for Trapezoid over a unit time interval. The allowance covers floating-point/nonlinear-solve error. The following composite test raised UndefVarError: CompositeAlgorithm not defined in Main before construction; the harness needed an explicit import or qualification. Output: 4 passed, 0 failed, 1 errored; this is not a demonstrated package failure. No test was rerun and no further Julia process was started.

What I did not verify

Full package suites and heavy downstream suites are excluded by the review execution budget. GPU-specific resize cases, DAE duprev growth, tuple-sized resizing, and other platforms have not been run locally. CI AD and GPU groups are green, but their statuses alone do not establish resize-specific GPU coverage. The cancelled DDE LTS job was not reproduced locally. Composite/default-cache growth was not executed: the final reviewer probe omitted the required CompositeAlgorithm import, and the three-run cap precludes repairing and rerunning it. The complete original resize file was run only on head; on base I ran the identical added ODE and DDE testsets, not the entire file. No DDE analytic accuracy check was performed.

🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5
Conversation: https://claude.ai/code/session_01379heiiB35TtywhR7uSU74

ChrisRackauckas and others added 2 commits November 6, 2026 15:39
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__OrdinaryDiffEq.jl__4763 (no session URL)
Include the TaylorDiff 0.3.6 compatibility floors and current upstream fixes
while preserving the step-history initialization and accuracy regressions.

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__OrdinaryDiffEq.jl__4763 (no session URL)

This branch has not been deployed

No deployments
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.

resize! in a callback leaves new uprev/uprev2 entries uninitialized; ImplicitEuler EEst reads them (nondeterministic Unstable)

2 participants