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
…d when the whose of the later line leaves no item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…se of the later line leaves no item Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ck on an empty later list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ct on an empty later list An item of a count of that the that can't decide was dropped as said by the earlier item, because that item isn't an object, even when the sentence reads the alias only whole, as a key. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…n empty later list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…s when a later whose fails one condition and leaves another undecided Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…st, which ergo.rego fails and Rust passes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…a that keyed by an earlier alias Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…t's key before the item's key Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… a root with no key for it fails on an empty list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…t's key before the item's key Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ot with no key for the subject's key fails on an empty list
The test that pinned no fault for $params.m named by $params.k when m is
{} now says it is missing, as tally.walk and for.roots say.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ject's key before any item, and drop its open entry Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… that isn't an object fails as unusable Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ct, so the root fails as unusable on an empty list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ads a keyed root Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… an object fails the root as unusable Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…ct fails the root as unusable on an empty list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…list the Rust engine's new causes as open Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
…an object, and the null one, before the item's key on an empty list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
… it among the known backward calls Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
This was referenced Dec 5, 2026
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.
Stacked on #959 (which is stacked on #957), merge in order. The diff against
mainincludes their commits until they merge.Fixes the type 1 difference in
spec/OPEN.md"A chain of a key from the subject and then the item's own key, over an empty list". tally.walk says a root that's missing ornullfails the check "even when the list is empty", and for.roots says "Each root is read once, before any item". Both engines read such a root only up to the first key that isn't plain text, so$params.mwas read and$params.m named by pr.keywasn't.Both engines now read the root up to the item's own key, in one place each:
_keyed_root_faultinengines/rego/src/lines/roots.regoreads each prefix up to the item's key when_keyed_root_pathholds.base_ofinengines/rust/engine/src/ops/key_base.rsreads the path up to the item's key when the steps before it can be read.The same holds for a key from
$paramsin front of the item's key: with{"k": "a", "m": {}},$params.m named by $params.k named by keyon an empty list now fails asabsent. A Rust unit test pinned no fault there, and it now says$params.m named by $params.k is missing, as the rules say.The case row is gone from
known_differencesand fromengines/rust/known-failures.txt, and theOPEN.mdentry is deleted.Changes the report: with the params
{"m": {}},key"a" for the subject andtests[],count of tests whose v equals $params.m named by pr.key named by key is 0passed and now fails asabsentwith$params.m named by pr.key is missing. A root read through a key from$paramsand then the item's key changes the same way. So dosum of … whoseandcount of … that, roots from$inputand from the subject (pr.m), keys from$inputand chains of two keys from the subject. Anullprefix fails asnull, a subject key text that names nothing ("","zz") fails asabsent, and a prefix that isn't an object (3, a list, a text) fails asunusable, also in the middle of a chain like$params.m named by pr.k1 named by pr.k2 named by key, which passed in both engines. Underfor: every xs, if any, as xwithxs[],… named by pr.key named by keypassed and now fails asabsent; underfor: every xs as xwithxs[]the cause goes fromvaluetoabsentornull; withxs["a"],$params.m named by x named by keyand$params.m named by pr.key named by x named by keygo from pass to fail. In the Rust engine alone, a one-linesomeoreverywithout, if any,on an empty list now takes the root's cause (valuetoabsent), andcount of tests.v that equals $params.m named by pr.key named by key is 0with an item that isn't an object goes fromabsenttonot_an_object; both are listed inspec/OPEN.md.Spec cases: four groups in
spec/cases/sentences/cases.json, written from tally.walk and for.roots, forcount of tests whose v equals $params.m named by pr.key named by key is 0withtests[]:mnull(null),{"a": 3}and{"a": []}(unusable,$params.m named by pr.key is 3, which isn't an object), and$params.m named by pr.k1 named by pr.k2 named by keywith{"a": 3}(unusable,$params.m named by pr.k1 is 3, which isn't an object). The missing and{}forms were already cases. Both engines give the same verdict, cause and message for all four, andinputsandfailurescopy the Rust rows (said inspec/OPEN.md). In the last oneergo.regogives the root entry the outcomeabsentand Rustunusable: type 2, listed inOPEN.mdand inknown_differences.spec/OPEN.mdalso lists the type 3 difference ofsum of v of tests whose ... named by pr.key named by key(needs more than 15 digitsinergo.rego,$params.m named by pr.key is 3, which isn't an objectin Rust), whichmaindoes not report: onmainboth engines pass that check (satisfied, no message), because neither reads the root before an item and the list is empty. One oracle row added.layers-known.txtgets_keyed_prefix_fault -> _m_isnt, whichrego-layers.pyfailed on.cuts: Rust 27 to 27, Rego 82 to 82 (no touched function cuts message text);
message-cuts.sh --against origin/mainpasses.Run, on head 572c62d:
.github/build-ergo.sh; the threeopa check --strictforms,opa fmt --list,regal lint(no violations),python3 spec/check_rules.py,rego-layers.py(and its test),no-inline-tests.sh, the no-comments listing (nothing); the fullopa test engines/rego dist spec:spec examples:examples --ignore src --timeout 900s --coverage(exit 0, no line outside a test reached: none listed bybuild-ergo.sh where);cargo test -j 2 --workspace --no-fail-fast(all pass) andcargo fmt --check;python3 engines/rust/sentences/tests/oracle/validate.py(0 differ, row added); Wasm budgets (ERGO_WASM_BUDGETS_ONLY=1): 28.9/29, 19.4/20, 42.0/45, 114.4/118 (same as main), 52.3/53 MB;spec/sweep.py --limit 500on this branch and onorigin/main: identical output, 0 cells differ, so no verdict changes in the sample;pr-facts.sh, below.Clippy:
cargo clippy --workspace --all-targets -- -D warningsis clean after dropping a needless borrow inkey_base.rs;cargo fmt --check, thekey_baseunit tests and--test casespass.Not run:
opa eval --strict-builtin-errorsseparately (the full test run exited 0), the Wasm test runs of the whole suite,check_grammar.py,spec-schemas.py, the docs and other.github/*_test.shscripts, the packages checks. E6 (one-lineeverywith, if any,) is not in this pull request.pr-facts (against
origin/main, so it includes #957 and #959): 4 case reports changed (sentences 627, 629, 641, 739), 0 passing cases changed, 8 cases new on this side and 0 removed;known-failures.txt573 lines to 572, one case passes now that did not before (the E1 case "a root that has no key for the subject's key").🤖 Generated with Claude Code
https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn