Repository navigation
Mark a reach warning beside the live grant it names on the policy card #6437
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 49 commits into
main
from
cs-13396-policy-show-a-reach-warning-beside-the-live-grant-its-about
Oct 1, 2026
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
f43a8f9
Merge remote-tracking branch 'origin/cs-13103-policy-grant-reaches-un…
habdelra 3746ddd
Merge remote-tracking branch 'origin/main' into cs-13396-base-6418-an…
habdelra cb6c245
Test the reach-warning mark beside a live grant on the policy card, a…
habdelra a526e6d
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra b10ec86
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra c96503a
Merge remote-tracking branch 'origin/cs-13092-policy-lowering-issues-…
habdelra a843c42
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 8088f1e
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra 7c932c9
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 8f148b3
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra 60e487d
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 3a50a46
Pin the catalog commit that styles a grant's warning messages
habdelra ad51720
Add preview images of the warning mark for the PR description
habdelra 9a49f93
Remove the preview images, which the PR description references by commit
habdelra 32acd5e
Assert the Issues list marks a reach warning as one, and marks nothin…
habdelra e7d6097
Pin the catalog commit that marks a warning in the Issues list
habdelra 91b08a7
Add refreshed preview images of the warning marks for a PR comment
habdelra a696446
Remove the refreshed preview images, which the PR references by commit
habdelra 5e5052b
Merge remote-tracking branch 'origin/cs-13103-policy-grant-reaches-un…
habdelra 1225392
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 0c3ada9
Merge remote-tracking branch 'origin/main' into cs-13396-base-6418-an…
habdelra d159983
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra a83e936
Merge remote-tracking branch 'origin/cs-13103-policy-grant-reaches-un…
habdelra 2ea6b7c
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 74cb7f6
Merge remote-tracking branch 'origin/cs-13092-policy-lowering-issues-…
habdelra ec57031
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 699e75a
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra 4f37bea
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra d10610f
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra 988376d
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra e7dddf4
Merge remote-tracking branch 'origin/cs-13092-policy-lowering-issues-…
habdelra 32e3964
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra f5b5c29
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra 86c604c
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra d00e387
Pin the catalog commit that brings catalog main into the warning mark…
habdelra 9300c97
Merge #6418 (a9ec8993) and #6415 (9ad34f32) into cs-13396-base-6418-a…
habdelra bdf4bc1
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 03d35b4
Merge remote-tracking branch 'origin/cs-13103-policy-grant-reaches-un…
habdelra c768836
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra be66a58
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra b3b221f
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra a1d62c6
Merge remote-tracking branch 'origin/cs-13363-policy-declare-validate…
habdelra e832935
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 51a3be8
Merge remote-tracking branch 'origin/main' into cs-13396-base-6418-an…
habdelra 55a0678
Merge branch 'cs-13396-base-6418-and-6415' into cs-13396-policy-show-…
habdelra 193ac5d
Merge remote-tracking branch 'origin/cs-13103-policy-grant-reaches-un…
habdelra affae9a
Merge remote-tracking branch 'origin/main' into cs-13396-policy-show-…
habdelra 62eecd1
Merge remote-tracking branch 'origin/main' into cs-13396-policy-show-…
habdelra 95b1132
Pin the catalog main commit that merged the warning mark
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
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 🤖] This test can't fail on the
'live'gate ingrantWarnings, which is what keeps a warning off a grant that admits nothing. Its policy draws nowarning-severity issue at all, becauseClassroomhas no links, so it renders the same with or without the gate.That case can happen. A snapshot-annotated
readonRostercompiles withadmitsNothing: 'snapshot', butreachLanestill walks it, so validate recordsgrant-reaches-ungranted-typeon that grant. I traced this throughpolicy.tsandvalidate.tsbut did not run it. A test (or a policy with this grant) pins that a warning never replaces the inactive mark:Keep that last assertion. It shows the policy really draws a warning. If the reach check stops walking admits-nothing grants (see the review body), the test then fails instead of silently no longer testing the gate. This gap belongs in this PR, but it's non-blocking: the gate itself is correct.
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 🤖] Not adding this one, because #6415 is removing the case it relies on. Its author is changing the reach check to walk only grants that can admit something: a query grant needs a filter, and no other grant may carry a snapshot predicate. Under the same rule, a snapshot
readstops counting as granting a read of its type, which is the second point in your review body. After that, no compile records a warning on a grant that admits nothing. The suggested policy would then draw no warning, so the test would fail on #6415's next head instead of pinning the gate.The gate stays as the card's rule: a warning is marked only beside a live grant. No real policy can reach it, and stubbing the validate answer to reach it would test the stub rather than the card. This branch follows #6415's head, so it picks the reach change up when that lands.
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 🤖] That change is on #6415 now (f5f38c0, "Neither walk nor count as readable a grant that admits nothing"), and this PR's base has it as of 5e5052b. A snapshot
readonRosternow draws no reach warning, so no compile produces the case the gate guards against.