Skip to content

Separate out assignments from function returns - #1398

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
abhro:assignments
Nov 19, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
abhro:assignments

Conversation

@abhro

@abhro abhro commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the contributor guidelines, in particular the SciML Style Guide and COLPRAC.
  • Any new documentation only uses public API

Additional context

Fixes return values mistakenly inferred by Runic.

Fixes return values mistakenly inferred by Runic
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

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

PR: #1398

Reviewed head: 94a63f9
Raw SHA-256: 4fbcf36b7d0f3de2852883155a3e627e1ebb332c158c5dc463b38334dcb3ed7a
Source SHA-256: 96ebdb7a26612c1d17fb6fa6906704e34e20b99314bd521f973d74b6fb45a0ec
Source: standard-review-v1 (harness-log)
Reviewer session: 01a1f45e-798b-7f01-9078-fa851f15c700
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: low (L2)
  • Verdict: MERGE
  • Reviewed head: 94a63f9

Review report

VERDICT: MERGE
Round: 1
Head: 94a63f9
Slot: 1
CI: CI is not green
Session: 01a1f45e-798b-7f01-9078-fa851f15c700
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

low (L2: test-only refactor preserves every assertion and all callback writes)

Blocking findings

  • Blocking priorities: none

Non-blocking findings

None.

What I ran

  • git diff --check origin/master...HEAD and Runic's --check on all 10 changed files exited 0. All changes are in tests. The 18 rewritten in-place callbacks now return nothing after their final assignment.
  • julia --startup-file=no --project=. ../scratch/callback_probe.jl "$PWD" passed 2,114/2,114 checks. The parsed files matched after accounting for the return split and source locations. This covered every assertion and tolerance. All 378 paired calls with Float32, Float64, and BigFloat inputs produced exactly equal residual, Jacobian, or parameter buffers.
  • Root GROUP=Core julia --startup-file=no --project=. -e 'using Pkg; Pkg.test()' and the same command with GROUP=Wrappers passed on Julia 1.12.4. The affected files accounted for 24/24 and 79/79 passing assertions, respectively.
  • HomotopyContinuation GROUP=Core via Pkg.test() passed on Julia 1.12.4 and 1.10.12. The two changed files passed 151/151 and 219/219 assertions, respectively. The 1.10.12 run used local sublibraries via Pkg.develop in scratch and exercised the Enzyme cases.
  • SCC GROUP=Core via Pkg.test() on Julia 1.12.4 gave identical results on the head and merge base. Manual SCC passed 14/14, Residuals Transfer passed 6/6, and Vector-form SCC had 12 passes and one failure at lib/SCCNonlinearSolve/test/core_tests__item4.jl:100 on isconcretetype(eltype(scc_sol_debug.original)). A separate Julia type probe found SCC's ten-parameter solution type concrete with SciMLBase 3.55.0 and non-concrete with 3.57.0 and 3.58.0.
  • uv run --locked python --version reported Python 3.13.13. This Julia repository has no uv.lock, and uv reported that --locked had no effect outside a Python project.

What I did not verify

Other platforms, CI execution, SciMLBase 3.56.0 in the type probe, and the SCC testsets after the baseline failure.

AUTHOR_GRADE: {"task":"test","score":5,"difficulty":2,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"All 18 callbacks preserve their writes and all assertions are intact. The affected suites passed or reproduced the same SCC failure on the merge base."}

Head link: 94a63f9


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a1f45e-798b-7f01-9078-fa851f15c700 (no session URL)

@ChrisRackauckas
ChrisRackauckas merged commit cee51ef into SciML:master Nov 19, 2026
79 of 82 checks passed
@abhro
abhro deleted the assignments branch November 20, 2026 08:47
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