Repository navigation
Conversation
…m $params is read before any item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… comes after it Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…he root read before any item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…nt of the item's key Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…tem's key has its base read before any item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…nt of the item's key Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… spec/OPEN.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…he root before any item of the walked list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… of the item's key Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…d line alias is not read before any item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…line alias Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…m's key, and a bound alias in front of it (guards) Guards that pass as they are: `m` null and 3, `k` missing, null, 3 and empty in both engines, and a bound line alias in the chain in the Rust engine. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…puts entry in spec/OPEN.md The entry for a root read through a key from $params and then the item's key no longer says the row's inputs are settled: no rule decides them, and two cases expect different inputs. The entry on a one-line every with if any names the chain forms, and the entry on roots said again for each item drops the count form, which ergo.rego now says once. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… key, in either order With xs holding an item and no m in the params the check fails as absent naming item 1 of xs, and with xs empty and if any it passes, since the root is read with each item and not at all when there is none. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…st rows in spec/OPEN.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
This was referenced Dec 5, 2026
say an earlier line's alias read as a named by key when a later for line's whose leaves no item
#959
Draft
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.
Removes two type 1 differences from spec/OPEN.md (tally.walk, for.roots). A root read through the item's
named bykey is now read once, before any item, whatever key from$paramscomes before or after the item's key.count of tests whose v equals $params.m named by key named by $params.k is 0(nomin the params,tests[]):ergo.regonow fails asabsentwith$params.m is missing, as the Rust engine already did. The case passes inergo.rego, so its row leavesknown_differences. The fix is in one place:_whose_reads_keyed_rootno longer asks for the item's key to be the last step.count of tests whose v equals $params.m named by $params.k named by key is 0, and the forms withpr.keynext to$params.k: both engines now fail asabsentwith$params.m is missing. The fix is in one place per engine,_keyed_read_beforein Rego andsubject_keys_then_an_items_key/base_ofin Rust. Each one now accepts a$paramskey that reads as text before the item's key. The case still fails in both engines, because neither lists the root and$params.kin the row'sinputs. Both engines show them only in$refs. So the case's rows stay in both lists, and the OPEN.md entry is now type 2.Changes the report: these checks over an empty list used to pass, and now fail as
absent,nullorunusable, naming the root. Underfor: every xs, if any, as x,ergo.regonow failscount of tests whose v equals $params.m named by x named by key is 0(and the chains with$params.kbesidex) asabsentwithitem 1 of xs: $params.m is missingwhenxsholds["a"]and the params have nom, where it passed, and the Rust engine now passescount of tests whose v equals $params.m named by key named by x is 0whenxsholds[], where it failed asabsent. Both engines now agree on these forms, as for.roots says.New cases, in
spec/cases/sentences/cases.json(rulesfor.roots,for.if_any,tally.walk):count of tests whose v equals $params.m named by x named by key is 0and the same withnamed by key named by x, underfor: every xs, if any, as xwith nomin the params. Withxsholding["a"]the check fails asabsentwithitem 1 of xs: $params.m is missing, and withxsholding[]it passes. The verdict, cause and message are written from the rules. The rows'inputsandfailurescopy the Rust engine, asspec/OPEN.mdnow says. Both engines pass them. The oracle has the two sentences.cuts: Rust 27 to 27, Rego 82 to 82 (
message-cuts.sh --against origin/mainpasses).Run on this branch:
opa check --strict(all three forms),opa fmt --list,regal lint,spec/check_rules.py,rego-layers.py,no-inline-tests.sh, the no-comments listing (prints nothing), the fullopa test(2625 pass, timeout 900 s),opa eval --strict-builtin-errors(true),cargo test --workspace(2794 pass),cargo clippy -D warnings,cargo fmt --check, the oracle check (0 differ).Wasm budgets (limit in brackets): 28.9 MB (29), 19.4 MB (20), 42.0 MB (45),
for114.4 MB (118, 114.4 on main), 52.3 MB (53).Sweep (
spec/sweep.py --limit 500): the output on this branch and onorigin/mainis the same apart from the Rust commit line: 296 of 477 cells differ between the engines on both, 0 type 1, 15 type 2, 281 type 3. No cell changes between main and the branch, so the sweep grid doesn't reach these shapes.Rust report changes
1 case report changed between origin/main and the working tree.
Passing cases whose report changed: 0 (information only: a case compares the fields it lists, so a passing case can change a field it doesn't list).
Cases only on one side: 2 new, 0 removed.
Known failures
known-failures.txt had 573 lines and has 573 now.
No case started or stopped passing.
Not run:
opa test --target wasm(paused in CI), the Wasm JS test run (budgets only), coverage, the Docker image checks,spec-schemas.pyandcheck_grammar.py(need the virtual environment),docs-run.sh.🤖 Generated with Claude Code
https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn