Repository navigation
spec: say the Rego engine also reads the item's field in a tally of a field named like a for alias - #958
Closed
jbpros wants to merge 16 commits into
Closed
spec: say the Rego engine also reads the item's field in a tally of a field named like a for alias#958jbpros wants to merge 16 commits into
jbpros wants to merge 16 commits into
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
… field named like a for alias, and name its case, in spec/OPEN.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn
Contributor
Author
|
Closed: the OPEN.md correction moves into the first B3 PR. |
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 #957, merge in order. The diff against main includes #957's commits until it merges; this change is one line in
spec/OPEN.md.The entry for a tally of a field in front of a list with a
whose, named like aforalias, said only the Rust engine is wrong.ergo.regois wrong too: oncount of d of tests whose kind is "unit" is 2it reads each test's owndand fails asabsentwithitem 1 of tests: d is missing; …, where the rule says the check passes. The entry now says so, and names the case that already pins it (field_of, added in #909, listed in both known-failure lists).No code changes. The fix for this entry and the one before it (the field named like a
foralias in both engines) needs a rule that says where each kept item's field is read from: the item, or the alias's binding plus the rest of the steps. That is larger than one builder round, so B3 stops here as a record, and the code change waits for a decision.cuts: Rust 27 to 27, Rego 82 to 82 (no code touched).
Not run: everything that needs code; CI runs the checks.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MzW4N4nUhpU9sV5yVyXkyn