Skip to content

StiffSDE and NonStiffSDE: computed Oval2 verdict, StochasticHeat stability wording, cite sample-error fix (#1906 follow-up) - #1916

Merged
ChrisRackauckas merged 8 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fu-1906-review
Sep 28, 2026
Merged

ChrisRackauckas merged 8 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fu-1906-review

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Follow-up to #1906 addressing its round-2 review (REVIEW-r2.md), the round-3 opencode review, the round-3 Codex review, and the round-5 Codex review of this branch.

Review responses

Round-6 follow-ups (Claude Code / claude-opus-5-5, VERDICT: MERGE — non-blocking items addressed at 2f6b5eb4)

Non-blocking item 1 (stale "(c)" paragraph) was already corrected in this body. The remaining items:

  • Oval2Timings verdict (items 2, 3). Each explicit method's failure count now covers all tested Δt, not only those coarser than the coarsest failure-free step, so non-monotone failures at finer steps are reported ("failures on 3 of 6 tested Δt" on the synthetic weave-like data). Each implicit method's "fastest failure-free run" is now the minimum over failure-free runs only, and prints "none" when a method has none.
  • Oval2Timings conclusion wording (item 7). The retrospective "rather than restating fixed numbers" is gone; the paragraph describes the new printed quantities.
  • BasicSDEWeakWorkPrecision (items 4, 5). record_weak_results! throws an ArgumentError naming the problem, set and the two lengths when names and wp differ in length (probe: ArgumentError("P (short names): 1 method names for 4 work-precision results")). The summary loop's missing accumulator is renamed not_reached.
  • StochasticHeat headings (item 6). "Highest dt" / "Let's try to find the highest possible dt:" is now "Step-Size Stability" with matching intro text, and "Interesting Property" is now "RSwM1 Noise Process".

No re-weave: the changes are confined to two println formats, one helper guard, one variable rename, and headings/prose. The changed chunks were extracted verbatim and run in the pinned env (julia --project=.) on the reviewer's synthetic matrices — the weave-like case reproduces the rendered verdict with the new wording, the non-monotone case reports the finer-step failures, and both implicit edge cases behave as described above. typos and git diff --check are clean.

Round-5 review (Codex / gpt-6-astra, VERDICT: CHANGES — blocking finding fixed, both non-blockings addressed)

(1) Blocking — computed-summary requirement incomplete on two pages. StochasticHeat.jmd and BasicSDEWeakWorkPrecision.jmd now keep every measured quantity in variables and print every data-dependent statement from them; no prose asserts a result.

  • StochasticHeat pushes each solve's status into heat_stability (SciMLBase.successful_retcode(sol) && sol.t[end] == sol.prob.tspan[2] && all(isfinite, sol.u[end])) and each mean squared error into heat_errors; the conclusion chunk prints the per-run stability, the squared errors, and the observed error ratios between adjacent step sizes. The adaptive SRIW1 solve on the RSwM1 noise process — whose instability the old prose asserted — is now recorded and reported the same way; on this weave it printed stable.
  • BasicSDEWeakWorkPrecision records each work-precision set's :weak_final errors and elapsed times in weak_results via record_weak_results! after each get_sample_errors call, and prints for each problem/set which methods reach that set's own dashed sample-error line ordered by their cheapest qualifying elapsed time, and which methods do not reach it.

From the weave at 4c916ce (/home/crackauc/.juliaup/bin/julia +1.12 --threads=auto --project=. benchmark.jl <page>, each exit 0):

benchmarks/StiffSDE/StochasticHeat.jmd:

Stochastic heat results computed from the solves above:
  SRIW1 with dt = 5.0e-5: stable
  EM with dt = 5.0e-5: stable
  ImplicitRKMil with dt = 0.1: stable
  ImplicitRKMil with dt = 0.01: stable
  ImplicitRKMil with dt = 0.001: stable
  ImplicitEM with dt = 0.001: stable
  SRIW1 (RSwM1 noise process) with adaptive stepping: stable
  EulerHeun squared error at dt = 5.0e-5: 3.041e-9
  ImplicitRKMil squared error at dt = 0.1: 0.8846
  ImplicitRKMil squared error at dt = 0.01: 0.01423
  ImplicitRKMil squared error at dt = 0.001: 0.0001517
  ImplicitRKMil error ratio, dt = 0.1 to 0.01: 62.2
  ImplicitRKMil error ratio, dt = 0.01 to 0.001: 93.8
  ImplicitEulerHeun squared error at dt = 0.1: 0.9256
  ImplicitEulerHeun squared error at dt = 0.01: 0.01536
  ImplicitEulerHeun squared error at dt = 0.001: 0.0001422
  ImplicitEulerHeun error ratio, dt = 0.1 to 0.01: 60.3
  ImplicitEulerHeun error ratio, dt = 0.01 to 0.001: 108.0

benchmarks/NonStiffSDE/BasicSDEWeakWorkPrecision.jmd:

Weak work-precision results computed from the curves above:
  Additive noise (first set), sample-error line = 3.596e-6: reaching, cheapest first: SRA1 (fixed) (0.000147 s) < SRA1 (adaptive) (0.000152 s) < SRIW1 (fixed) (0.000166 s) < SRIW1 (adaptive) (0.000172 s); not reaching: EM (fixed), RKMil (fixed)
  Additive noise (second set), sample-error line = 4.244e-6: reaching, cheapest first: SRA3 (0.00014 s) < SRA1 (0.000143 s) < SRA2 (0.000145 s) < SOSRA (0.000155 s) < SOSRA2 (0.000157 s); not reaching: none
  Linear scalar noise (first set), sample-error line = 0.001478: reaching, cheapest first: SRIW1 (fixed) (0.000101 s) < SRIW1 (adaptive) (0.000148 s) < RKMil (fixed) (0.000252 s) < EM (fixed) (0.000653 s); not reaching: none
  Linear scalar noise (second set), sample-error line = 0.001928: reaching, cheapest first: SRIW1 (0.000142 s) < SRIW2 (0.000144 s) < SOSRI (0.000154 s) < SRI (0.000158 s) < EM (fixed) (0.000158 s) < SOSRI2 (0.000166 s) < RKMil (fixed) (0.00023 s); not reaching: none
  Scalar wave (first set), sample-error line = 3.842e-5: reaching, cheapest first: EM (fixed) (0.00012 s) < SRIW1 (adaptive) (0.000125 s) < RKMil (fixed) (0.00013 s) < SRIW1 (fixed) (0.000146 s); not reaching: none
  Scalar wave (second set), sample-error line = 3.382e-5: reaching, cheapest first: SRIW2 (0.000127 s) < SRIW1 (0.000132 s) < SRI (0.000139 s) < SOSRI2 (0.000144 s) < SOSRI (0.000154 s) < RKMil (fixed) (0.000156 s) < EM (fixed) (0.000174 s); not reaching: none

(2) Non-blocking — PR evidence discrepancy on SRIW1 failure counts. Confirmed against this weave: the per-run lines print 10, 1, 1 failed trajectories at 2^-16, 2^-17, 2^-18 for Euler-Maruyama and RKMil but 8, 4, 2 for SRIW1, exactly as the review observed. Quoting this weave:

The number of Euler-Maruyama Fails is 10. Elapsed time was 4.261042913
The number of Euler-Maruyama Fails is 1. Elapsed time was 6.677248487
The number of Euler-Maruyama Fails is 1. Elapsed time was 12.748142886
The number of RKMil Fails is 10. Elapsed time was 5.399097645
The number of RKMil Fails is 1. Elapsed time was 7.975354845
The number of RKMil Fails is 1. Elapsed time was 11.400161917
The number of SRIW1 Fails is 8. Elapsed time was 6.708808719
The number of SRIW1 Fails is 4. Elapsed time was 12.558371643
The number of SRIW1 Fails is 2. Elapsed time was 19.023513205
The number of SRIW1 Fails is 0. Elapsed time was 31.998821146

The generated verdict still reports three failing step sizes per method, so its conclusion is unaffected; the stale (10, 1, 1) claim in the Evidence section below referred to an older weave and is corrected here.

(3) Non-blocking — pre-existing empty-marker plotting failure. The red-dot scatter in Oval2Timings.jmd's plot chunk now uses Float64[...] comprehensions, so the inputs keep a concrete eltype when no explicit method is failure-free and the Vector{Union{}} AssertionError path is removed. This bug predates the PR (introduced in 4f395dd1); the fix is included here per the review's suggestion.

Round-3 review (Codex / gpt-6-astra, VERDICT: CHANGES — both blockers fixed at 9c3a5963)

(1) Blocking — "largest failing Δt" reported the smallest failing Δt. The verdict used findlast over the descending grid 2^-16, …, 2^-21, so the index it found was the finest failing step (2^-18), not the coarsest (2^-16). The verdict chunk no longer indexes into the grid at all: for each method it collects the tested rows where fails > 0 and reports maximum(dts[failing]), and it selects the coarsest failure-free step as argmax over dts among fails == 0 rows. Everything is computed from the Δt values, so the result is identical for any grid ordering. The printed label now reads "largest failing Δt" (max over failing Δt) and "coarsest failure-free Δt" (max over failure-free Δt) — unambiguous regardless of row order. The red-dots "stable" selection in the plot chunk uses the same order-independent argmax construction. On the re-woven page all three explicit methods now correctly print largest failing Δt = 2^-16.

(2) Blocking — "cheapest failure-free fixed-step run" omitted eligible runs and could print Inf. The old code minimized over only each explicit method's first failure-free row and ignored implicit runs entirely, then divided by the result unchecked. The chunk now collects every measured failure-free fixed-step run — all three explicit methods across their tested steps and both implicit methods across 2^-17, …, 2^-21 — and takes the true minimum, printing the winning method and Δt. When no failure-free fixed-step run exists it prints "No failure-free fixed-step run exists …" and, instead of a ratio, "No failure-free fixed-step baseline exists, so no fixed-step/adaptive ratio is reported". On the new weave the global minimum is RKMil at Δt = 2^-19 (30.6 s) — which the old first-row-only logic would have reported as EM's 32.6 s, so the fix changes the printed verdict on real data, not only on the reviewer's synthetic counterexample.

Non-blocking (1) — conclusion still partly hardcoded. The Conclusion prose no longer asserts any results (zero implicit failures, slower implicit runs, >10× speedup, load-invariant ordering). It only describes which quantities the summary computes and prints, and directs the reader to the printed lines for what holds in the latest weave. All data-dependent claims now live exclusively in the printed block, which is computed from the stored run data.

Non-blocking (2) — missing risk assessment. Added below, above the footer.

Round-3 review (opencode, VERDICT: MERGE; non-blocking items fixed earlier on this branch)

(2) Twelve copy-pasted if numfails == 0 && adaptive_time < best_adaptive_time blocks. Replaced by a single time_adaptive!(label, alg; abstol, reltol) helper defined in the setup chunk: it runs the same warmup + timed solve, counts failures the same way, pushes a (label, time, numfails) record into adaptive_runs, and prints the same per-run line as before. Each of the twelve adaptive chunks is now one call, with the label text sitting next to the solve arguments, so a label can no longer drift from its run. The plot chunk and the verdict chunk both derive the fastest failure-free adaptive run from adaptive_runs. This also fixes the plot's dashed-line legend, which was hardcoded to "ESRK+RSwM3"; it now shows the actual fastest run's label.

(3) Conclusion hard-coded the Δt claims. The verdict chunk prints every quantity the conclusion asserts; the prose no longer states any Δt value or speedup itself. (Extended further in the Codex round-3 response above.)

(4) BasicSDEWeakWorkPrecision.jmd "fixed in" link. Reworded to "a fix is proposed in" since SciML/OrdinaryDiffEq.jl#4612 is still an open draft.

(1) Duplicate adaptive chunks (not fixed, as scoped). The review explicitly marked the duplicated SOSRI 2^-12/2^-15 and SOSRI2 2^-13/2^-11 chunk pairs "not required for this follow-up"; they still run, now as one-line time_adaptive! calls.

(5) Stale orchestrator output copy of StochasticHeat.md. That file lives outside the repo (out/markdown/); the PR only touches benchmarks/. The CI artifact the review downloaded confirms the new prose matches the woven output.

Round-2 review (items already on this branch)

(a) Blocking — test/core.jl testset "Oval2Timings conclusion is load-invariant" breaks AGENTS.md. The testset never reached master: the squash merge 4f395dd1 contains no test/core.jl diff, and the file on master has no such testset, so there is nothing to delete. Instead of a text-grepping test, StiffSDE/Oval2Timings.jmd computes its verdict from the stored run data (see above).

(b) Non-blocking — BasicSDEWeak caveat wording / missing "library fix". The wording issue was already fixed on master ("a factor of about √1000 below"). The upstream fix the caveat needed exists as draft PR SciML/OrdinaryDiffEq.jl#4612 (DiffEqDevTools lives in the OrdinaryDiffEq monorepo). The caveat links to it, now worded as "a fix is proposed in".

(c) Non-blocking — StochasticHeat prose (round-1 non-blocking #3). Superseded by the round-5 fix: the page no longer has hand-written conclusion prose. It prints each solve's stability, the squared errors and the observed convergence ratios from the stored results (see the round-5 section and the quoted weave output).

Evidence

Round-6 follow-up (2f6b5eb) changes the Oval2Timings output format; it was not re-woven. The failure count now covers every tested Δt, and the implicit timing picks only failure-free runs. Running the changed chunk on the weave's stored data prints failures on 3 of 6 tested Δt (EM, RKMil), 3 of 4 (SRIW1), and fastest failure-free run = … for the implicit methods, in place of the 3 of 3 … coarser / fastest run lines quoted below. The probe output is in the round-6 follow-up section. CI re-weaves the page at this head.

All three changed pages were woven at 4c916ce (the commit before the round-6 follow-ups) with export TMPDIR=$HOME/tmp; /home/crackauc/.juliaup/bin/julia +1.12 --threads=auto --project=. benchmark.jl <page>; each exited 0. StochasticHeat wove 19 chunks and Oval2Timings 21 chunks (logs end with "Weaved to …/markdown/… .md"). The StochasticHeat and BasicSDEWeak printed summary blocks are quoted in the round-5 section above; the Oval2 verdict block from this weave reads:

Verdict computed from the stored failure and timing data:
  Euler-Maruyama: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (18.2 s)
  RKMil: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (22.2 s)
  SRIW1: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (32.0 s)
  ImplicitEM: 0 failed trajectories over all 5 tested Δt; fastest run 64.1 s
  ImplicitRKMil: 0 failed trajectories over all 5 tested Δt; fastest run 53.2 s
  Cheapest failure-free fixed-step run: Euler-Maruyama at Δt = 2^-19 (18.2 s)
  Fastest adaptive run without failures: SOSRI (abstol = 2^-7, reltol = 2^-4) (0.768 s)
  Ratio of cheapest failure-free fixed-step to fastest adaptive: 23.7 (more than an order of magnitude faster)

All 12 adaptive runs report 0 failures on this weave. This supersedes the round-3 weave quoted in the next paragraph (absolute timings are load-dependent).

Earlier round-3 evidence for the verdict-logic work, preserved for context:

New verdict logic was unit-tested on synthetic data before weaving (a scratch-only standalone Julia script running the extracted verdict chunk verbatim — 27 assertions pass): the reviewer's counterexample matrices now print largest failing Δt = 2^-16 and Cheapest … ImplicitEM at Δt = 2^-17 (5.0 s) with ratio 22.5; the all-fixed-step-fail case prints "No failure-free fixed-step run exists …" and no ratio/Inf; an ascending-order grid produces identical verdicts; a ratio-1 scenario prints no order-of-magnitude note. A mock of the latest weave's failure/timing matrices reproduces the rendered verdict below.

Round-3 weave of the edited page (julia +1.11 --threads=16 --project=. benchmark.jl benchmarks/StiffSDE/Oval2Timings.jmd, ~1 h 55 m on this heavily loaded machine, load ~150–300): all 21 chunks weaved, markdown/StiffSDE/Oval2Timings.md and the figure produced, log ends with "Building Github Markdown" (generated markdown/, script/ deleted before committing). All 12 adaptive runs report 0 failures; the computed verdict block read:

Verdict computed from the stored failure and timing data:
  Euler-Maruyama: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (32.6 s)
  RKMil: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (30.6 s)
  SRIW1: failures on 3 of 3 tested Δt coarser than the coarsest failure-free step (largest failing Δt = 2^-16); coarsest failure-free Δt = 2^-19 (62.1 s)
  ImplicitEM: 0 failed trajectories over all 5 tested Δt; fastest run 96.2 s
  ImplicitRKMil: 0 failed trajectories over all 5 tested Δt; fastest run 77.8 s
  Cheapest failure-free fixed-step run: RKMil at Δt = 2^-19 (30.6 s)
  Fastest adaptive run without failures: SOSRI (abstol = 2^-13, reltol = 2^-7) (0.727 s)
  Ratio of cheapest failure-free fixed-step to fastest adaptive: 42.1 (more than an order of magnitude faster)

Each printed line was checked against the per-run tables on the same page: all three explicit methods fail at 2^-16, 2^-17, 2^-18 and succeed from 2^-19; both implicit methods are failure-free but slower than every failure-free explicit run; RKMil @ 2^-19 at 30.6 s was the true minimum across all successful fixed-step rows on that weave; SOSRI (abstol = 2^-13, reltol = 2^-7) at 0.727 s was the fastest adaptive run on that weave. On that weave the per-run lines printed (10, 1, 1) for Euler-Maruyama and RKMil and (8, 4, 2) for SRIW1 — the same per-method counts as the new weave quoted above.

  • Earlier weave of the branch head (same command): exit 0, ~75 min; a second weave at e9f2684d completed in ~2 h under load ~300.
  • GROUP=Core julia +1.11 --project=. -e 'using Pkg; Pkg.test()' — 172/172 pass (run at a pre-edit head; all changes on this branch touch only benchmark .jmd sources, not tested code).
  • typos on the changed .jmd files: clean. git diff --check clean.

Not fixed / not verified

Risk assessment

  • Risk: low
  • Blast radius: three benchmark .jmd pages (StiffSDE/Oval2Timings, StiffSDE/StochasticHeat, NonStiffSDE/BasicSDEWeakWorkPrecision). No package code, no public API, no Manifest changes — the executable changes are post-hoc reporting code that only reads already-computed results (the fails/times/fails_imp/times_imp/adaptive_runs tables in Oval2Timings, the solve results and error means in StochasticHeat, and the wp/se objects in BasicSDEWeakWorkPrecision) plus the concrete-eltype scatter inputs in Oval2Timings's plot chunk. SemVer does not apply.
  • Evidence: full local weaves of all three pages at 4c916ce under julia +1.12 — all exit 0; the printed summary lines are quoted verbatim above; the verdict logic additionally exercised on synthetic counterexample matrices (27 assertions) covering the reviewer's cases plus reversed grid order and the no-baseline path.
  • Remaining unknowns: absolute timings are load-dependent (this machine runs at load ~150–380), so the ratio numbers will differ run to run — the code now prints whatever the data gives and never asserts a fixed value. The RSwM1 stability line reports whatever that adaptive solve does on each weave.
  • Independent review: Claude Code (Opus 5.5) rated it low with high confidence, formed before reading prior reviews. It returned MERGE in round 6 (4c916ce) and round 7 (2f6b5eb), rerunning the changed chunks on synthetic edge cases each time (~/sandbox/agent-jobs/SciMLBenchmarks.jl/reviews/pr-1916/round6/REVIEW.md, round7/REVIEW.md). Codex gpt-6-astra (round 5) also rated it low with high confidence.
  • Merge: auto-merge candidate once the CI weaves at 2f6b5eb are green.

🤖 Generated with Devin CLI 3000.11.3 (model: swe-2-max)

Devin CLI local session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (no shareable URL; transcript in ~/.local/share/devin/cli/sessions.db on this machine), bridged to https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd — the same bridged session used by the earlier commits on this branch. Round-5 diff drafted by Codex CLI 0.157.1 (model: gpt-6-sol); its rollout is ~/sandbox/tmp_20260923_090949_54257/handoff/cx1916.log on this machine. Earlier sections generated with Devin CLI 3000.11.3 (model: swe-2-high, local session "locrian-drip", transcript at ~/.local/share/devin/cli/transcripts/locrian-drip.json).

ChrisRackauckas and others added 8 commits September 26, 2026 05:52
… run data

The conclusion's claims are now recomputed in a summary chunk from the
stored failure counts and timings: the first failure-free step size per
explicit method, implicit failure totals and fastest times, and the name
and speedup of the fastest adaptive run. The implicit loops record their
failures and times so the summary covers them, and each adaptive chunk
tracks which failure-free run was fastest. The conclusion names the
fastest adaptive run by reference to the summary rather than hardcoding a
tolerance pair whose ordering flips under machine load.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine
…rors shown

The implicit methods being stable at every tested step size is a
stability statement, not an accuracy one: at dt = 0.1 their fixed-step
squared error is about 1, far above what they reach at smaller steps, so
the error limits dt in practice. The unsupported claim that an error of
about 1e-10 is needed for explicit methods to win is removed; no timing
on the page compares cost at equal accuracy.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine
…rrors fix

Link the sample-error caveat to the draft upstream fix for the
double-1/sqrt(N) division in DiffEqDevTools.get_sample_errors
(SciML/OrdinaryDiffEq.jl#4612, DiffEqDevTools lives in the OrdinaryDiffEq
monorepo).

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/tmp_20260923_090949_54257/handoff/fu1906.log on this machine
…all conclusion claims from the data

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd (bridged session shared with the earlier run)
…rror fix as proposed, not landed

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd (bridged session shared with the earlier run)
…t failure-free run

The verdict used findlast on the descending dt grid, so the printed
"largest failing dt" was actually the smallest failing one. The
"cheapest failure-free fixed-step run" minimized over only each explicit
method's first failure-free row and could divide by Inf when no
successful run existed. Compute both from the dt values themselves so
the result does not depend on grid order, minimize over every measured
failure-free fixed-step run (explicit and implicit), label the winning
method and step, and print that no baseline exists instead of an
infinite ratio. The conclusion prose now only describes what the summary
computes; the red stability dots use the same order-independent
largest-failure-free-dt selection.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local Devin CLI session "locrian-drip" (no shareable URL; transcript ~/.local/share/devin/cli/transcripts/locrian-drip.json)
…nged SDE pages

Round-5 review of PR SciML#1916 found StochasticHeat and
BasicSDEWeakWorkPrecision still asserting measured results in prose.
StochasticHeat now records each solve's status and each squared error
and prints stability, error magnitudes and adjacent-step ratios from
them, including the adaptive RSwM1 run; the stability test compares
against sol.prob.tspan[2] rather than a literal final time.
BasicSDEWeakWorkPrecision retains every work-precision set's weak_final
errors and timings and prints which methods reach each set's
sample-error line ordered by cheapest qualifying time. Oval2Timings
gives the stability scatter concrete Float64 inputs so the marker path
is safe when no fixed-step method is failure-free.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3; draft by Codex CLI 0.157.1
Agent-Model: swe-2-max; draft by gpt-6-sol
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (transcript in ~/.local/share/devin/cli/sessions.db), bridged to https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd; Codex rollout: see handoff/cx1916.log
Oval2Timings now counts each explicit method's failing step sizes over
all tested dt instead of only those coarser than the coarsest
failure-free step, so non-monotone failures at finer steps are
reported, and it picks each implicit method's fastest run among
failure-free runs only. The conclusion prose matches the new
quantities and drops retrospective wording. BasicSDEWeakWorkPrecision
renames the summary loop variable that shadowed Base.missing and
throws an informative ArgumentError when a name list and its
work-precision results differ in length. StochasticHeat retitles the
"Interesting Property" and "highest possible dt" headings to describe
the sections as they now are.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-max
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (transcript in ~/.local/share/devin/cli/sessions.db on this machine), bridged to https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 28, 2026 15:51
@ChrisRackauckas
ChrisRackauckas merged commit e2b7fea into SciML:master Sep 28, 2026
8 checks passed
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.

2 participants