Skip to content

bugfix: treat Rego array indexes as 0-based in rt.dot - #5

Merged
lynch1981 merged 3 commits into
mainfrom
dev
Aug 22, 2026
Merged

lynch1981 merged 3 commits into
mainfrom
dev

Conversation

@lynch1981

Copy link
Copy Markdown
Owner

No description provided.

Lua/cjson and make_array store at 1..n. DotStmt keys from IR are
Rego indexes, so 0 is the first element. Shift integer keys on
arrays; object fields stay as given.
Runtime checks for index 0/1/oob and object string keys. t/access.t
is fully green, so it joins the required bar in ./go order.
Drop the runtime-vs-contract row, note the 0-to-1 map in the
codegen contract, and list t/access.t in the required bar.
@lynch1981
lynch1981 merged commit 7a883e8 into main Aug 22, 2026
1 check 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.

1 participant