Repository navigation
Fix scalar indexing of offset inner arrays - #691
Open
ChrisRackauckas-Claude wants to merge 1 commit into
Open
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.1-terra Agent-Job: 675-codex Agent-Session: local session 01a21b42-61bb-7543-b515-20b0fa4883f0 (no session URL)
ChrisRackauckas
marked this pull request as ready for review
November 27, 2026 11:49
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scalar indexing translates the wrapper's one-based positions to each inner array's axes, including scalar writes. This prevents invalid unchecked reads and preserves ragged zero padding.
Closes #675
Verification
Before the fix,
GROUP=Core julia --project -e 'using Pkg; Pkg.test()'reported:After the fix:
GROUP=Core julia --project -e 'using Pkg; Pkg.test()':GROUP=QA julia --project -e 'using Pkg; Pkg.test()':Julia Runic
--checkon the two changed files,git diff | typos -, andgit diff --checkall exited 0. A separate run with normal bounds settings checked the reported scalar access andcollect:2 regression checks passed.julia --project=docs docs/make.jlin an isolated copy with an instantiated docs environment:GPU, downstream, and allowed-to-fail jobs were not run locally. CI’s OrdinaryDiffEq downstream job raised
IllegalTypeAnalysisExceptioninloss_mixedon Julia 1.13.4; the same error reproduced locally on the unmodified base commit, using Julia 1.13.4 and the downstream CI revision. It also appeared in an earlier run on another branch. SciMLSensitivity Core2 also reported three unexpected passes and a ReverseDiff tape error; the earlier run on another branch reported the same errors. The SciMLSensitivity Core2 group reproduced the same four errors locally on the unmodified base commit with Julia 1.13.4 and the downstream CI revision (194 passed, 4 errors, 6 broken). Neither baseline failure was bisected. Slicing with offset inner arrays and offset outer containers were not covered by this change.Reviewer consideration: scalar writes use positional translation too; other indexing paths remain outside this fix.
Risk assessment
AbstractVectorOfArrayimplementations; no new API.🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.1-terra
Conversation: local session 01a21b42-61bb-7543-b515-20b0fa4883f0 (no session URL)