Skip to content

feat(queue): judge a landing on policy by the policy before it - #95

Open
PiquelChips wants to merge 1 commit into
feat/land-evidencefrom
feat/land-policy-landings
Open

PiquelChips wants to merge 1 commit into
feat/land-evidencefrom
feat/land-policy-landings

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Policy is a target too, so editing policy.toml is a landing on policy. Judged by the policy it brings, 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, 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 new policy.toml must parse and name an authority for policy, and this node must still be the 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 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)

@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: be19d097-5e30-45ea-a6bc-6f61e2590007
Commits

Reviewing files that changed from the base of the PR and between 9831af2 and e0046d1.

Files selected for processing: 5

  • apps/origin-src/src/policy.rs
  • apps/origin-src/src/queue/mod.rs
  • apps/origin-src/src/queue/session.rs
  • apps/origin-src/src/queue/tests/mod.rs
  • apps/origin-src/src/queue/tests/policy.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/land-policy-landings branch from 08b55c8 to 26d9eb3 Compare November 22, 2026 18:54
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
PiquelChips force-pushed the feat/land-policy-landings branch from 26d9eb3 to e0046d1 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