Skip to content

feat(permissions): check what takeovers do where they may not write - #149

Open
PiquelChips wants to merge 1 commit into
feat/permissions-landingfrom
feat/permissions-takeovers
Open

PiquelChips wants to merge 1 commit into
feat/permissions-landingfrom
feat/permissions-takeovers

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Anyone may pick up someone else's change and carry it on. But a writer who can't write a path could still, with a new revision of the change, empty, revert or resolve what another made there: by choosing a base, chaining revisions, converging heads, or moving the change onto another.

Taking over a change: on paths a writer can't write, a new revision must have exactly the effect of each of its predecessors. That means the same files, changed from the same contents to the same ones, on the same change below, with the same conflicts unresolved.

  • Anyone can take a change over and pass it on, and a rebase onto a newer tip keeps the effect.
  • But no choice of base, chain of revisions or detour through another change lets them empty, revert or resolve what they can't write.
  • A root has no such effect, and lists only the conflicts of the revision it's on.

A change's history is fixed: no new first revision, and no predecessor from another change. So no one makes a change diverge with a root of their own, or becomes one of its creators, who alone abandon it with admins.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d854255d-50b8-48c2-8f92-cdd521d5861d
Commits

Reviewing files that changed from the base of the PR and between d280e8e and 60ee596.

Files selected for processing: 4

  • apps/origin-src/src/conflict.rs
  • apps/origin-src/src/permissions.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/tests/http.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/permissions-takeovers branch from c1b90e5 to 49d816e Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/permissions-takeovers branch 2 times, most recently from 8216626 to a09caa9 Compare November 22, 2026 18:54
Anyone may pick up someone else's change and carry it on, but a writer
who can't write a path could still, with a new revision of the change,
empty, revert or resolve what another made there: by choosing a base,
chaining revisions, converging heads, or moving the change onto another.

Where a writer may not write, a revision now has an effect: each file
it changes there, from its base's entry to its own. A root has none. A
successor has exactly each predecessor's, the same files changed from
the same contents to the same ones, on the same change below if it's on
one, and lists exactly their unresolved conflicts there, which only a
`core.conflict` supersedes. A rebase onto a newer tip keeps the effect,
and whoever takes a change over edits what they write and hands it on.

A change's history is fixed: only a new change gets a root, and a
successor evolves only from revisions of its own change, so no one
makes a change diverge with a root of their own, or becomes one of its
creators, who abandon it.
@PiquelChips
PiquelChips force-pushed the feat/permissions-takeovers branch from a09caa9 to 60ee596 Compare November 22, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant