Repository navigation
feat(queue): land only what the submitter may change - #148
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/permissions-landing
branch
2 times, most recently
from
November 22, 2026 16:40
f2bc9ed to
8ff03e4
Compare
PiquelChips
force-pushed
the
feat/permissions-landing
branch
from
November 22, 2026 18:54
8ff03e4 to
aa50e07
Compare
Landing was the one write left unchecked: anyone could land on any target, `policy` included, and a revision made on an old acceptance, or another target's tip, could revert or delete what the submitter may not change. `land` and `create_target` now take a signed-in caller who may land on the target, `admin` for `policy`. The queue lands for a submitter, whose path access it holds: the landing must only change, on the target, paths they write, whatever it lands, so a stale base or a detour through another target never smuggles a change in. Results promoted to the revision that lands come only from what the submitter sees, so a landing never copies a result they can't read. The new `permissions` benchmark times walking a 20,000-file tip for a clone and landing a one-file edit, as the owner, under a policy without path rules, and under one that withholds a directory and keeps another read-only: permission checks cost nothing measurable. A landing takes about 16 ms with or without rules, and the walk about 38 ms.
PiquelChips
force-pushed
the
feat/permissions-landing
branch
from
November 22, 2026 19:20
aa50e07 to
d280e8e
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.
Landing is the one write left unchecked: anyone can land on any target,
policyincluded, and a revision made on an old acceptance, or another target's tip, can revert or delete what the submitter may not change.landandtarget newtake a signed-in caller who may land on the target, and onlyadminlands onpolicy.Benchmarks: the new
permissionsbenchmark times walking a 20k-file tip for a clone and landing a one-file edit, as the owner, under a policy without path rules, and under one that withholds a directory and keeps another read-only. Permission checks cost nothing measurable: a landing takes about 16 ms with or without rules, and a 20k-file snapshot walk about 38 ms.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)