Repository navigation
feat(queue): judge a landing on policy by the policy before it - #95
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/land-policy-landings
branch
from
November 22, 2026 18:54
08b55c8 to
26d9eb3
Compare
Policy is a target too, so editing `policy.toml` is a landing on `policy`. Judged by the policy in force once it lands, an edit could authorize itself, drop the requirements it should have met, or leave `policy` without a valid file and lock it up for good. A landing on `policy` is now governed by the acceptance before it: the session reads the target's tip, whatever the change brings, and a stack of policy edits is judged one by one, each by the one below it. Before it lands, the new `policy.toml` must parse and name an authority for `policy`, and this node must still be the target's authority. `Policy::governing` states the rule for whatever verifies a chain: an acceptance of `policy` names the one before it as its policy, and only the first, with none before it, is governed by its own. Any other acceptance is governed by the policy it names. The queue checks each acceptance it signs against it.
PiquelChips
force-pushed
the
feat/land-policy-landings
branch
from
November 22, 2026 19:20
26d9eb3 to
e0046d1
Compare
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.
Policy is a target too, so editing
policy.tomlis a landing onpolicy. Judged by the policy it brings, an edit could authorize itself, drop the requirements it should have met, or leavepolicywithout a valid file and lock it up for good.A landing on
policyis now governed by the acceptance before it, never by the one it brings. A stack of policy edits is judged one by one, each by the one below it. Before it lands, the newpolicy.tomlmust parse and name an authority forpolicy, and this node must still be the authority.Policy::governingstates the rule for whatever verifies a chain: an acceptance ofpolicynames the one before it as its policy, and only the first is governed by its own. Any other acceptance is governed by the policy it names. The queue checks each acceptance it signs against it.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)