Repository navigation
feat(sync): fetch target chains, verified against their policy - #129
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/sync-fetch-chains
branch
from
November 22, 2026 15:04
da03fed to
b6e628b
Compare
PiquelChips
force-pushed
the
feat/sync-fetch-chains
branch
2 times, most recently
from
November 22, 2026 18:54
76e40fd to
14f416b
Compare
A fetch brings the chain of each target this node follows, `policy` always, from the last acceptance it holds on. The remote's log must go through this node's head, and each acceptance must match its id, belong to the target, and follow the one before it. Each acceptance is verified against the key of the authority named by the policy governing it (`Policy::governing`): for an acceptance of `policy`, the one before it, and for any other, the policy it names, which must be on the chain of `policy` as this node verified it. Only the first acceptance of `policy` is checked against its own. Acceptances this node merely stores, such as the base of a revision fetched, never govern anything. The policies' snapshots are fetched as needed. Nothing of a chain is appended unless all of it verifies. Each acceptance comes with what it landed and the records of the changes that brings, written before the chains that refer to them, then appended with `Store::append_all`. The names of all the remote's targets are learnt, so acceptances of those this node doesn't follow can be described.
PiquelChips
force-pushed
the
feat/sync-fetch-chains
branch
from
November 22, 2026 19:20
14f416b to
2831876
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.
A fetch must bring the targets' chains, and only accept acceptances their authorities signed.
Chains:
policyand the targets this node holds or is asked for, from the last acceptance it holds on. The remote's log must go through this node's head.Verification:
policy, the acceptance before it; for any other target, the policy it names.policychain counts. Acceptances that are merely stored, such as a revision's base, govern nothing.Each acceptance comes with what it landed and the records of the changes that brings, written before the chains that refer to them, then appended with
Store::append_all.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)