Repository navigation
Compile a policy grant's opt-in to callers who aren't signed in #6534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
habdelra
merged 8 commits into
main
from
cs-13533-policy-compile-a-grants-anonymous-opt-in-and-acting-user-key
Oct 6, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
69c0d37
WIP compile anonymous grants
habdelra 98a0148
Merge the groundwork branch
habdelra 755e88f
Compile a grant's anonymous opt-in
habdelra 973b4cb
Pin the catalog test subset to the grant's anonymous opt-in
habdelra f87ad86
Tighten the anonymous opt-in's compile rules
habdelra 004683b
Pin the catalog test subset to the paired branch with catalog main me…
habdelra c215d1e
Merge main
habdelra d737d7b
Merge main
habdelra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Claude Code 🤖] Three branches this change adds have no test that would fail if they broke:
anonymous. The issue message names it, but the fixture has no saved search, so only the custom-transform half ofanonymous-not-base-operationis pinned.policy-not-filterable) stays out ofanonymous.operations. The only anonymous query here has a filter, so deleting|| grant.filterfromanonymousSummarykeeps this test green.getAnonymousAdmission(). This is the fail-closed path the doc comment promises.Also, the actor-reading
readgrant sits beside an unconditional anonymousread, so the summary assertion can't tell how a caller-reading grant is treated. Whatever is decided in theanonymousSummarythread, give that grant a rule of its own here. Non-blocking.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Claude Code 🤖] Fixed in f87ad86. The module's
Classroomdeclares a named query,listOpen, which is refused withanonymous-not-base-operation. A query grant that compiles no filter (realmConfig(...)) gives noanonymoussummary and an empty admission. A policy card that isn't aRealmPolicyis uncompilable and gives an empty admission. The grant that reads the caller is the only grant of its own rule.