Skip to content

feat(queue): create targets and land them on each other - #96

Open
PiquelChips wants to merge 1 commit into
feat/land-policy-landingsfrom
feat/land-targets
Open

PiquelChips wants to merge 1 commit into
feat/land-policy-landingsfrom
feat/land-targets

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A target could only take changes, so work spanning many changes, such as a release or an overhaul, had nowhere to gather before reaching main.

Queue::create_target forks a target at the tip of another. Queue::land_target lands one target's tip on another, like a change: the tips merge, the requirements apply to the merged snapshot, and a conflict issues a core.conflict and waits.

Merge base. It comes from both histories: an acceptance's parents are the one before it and the acceptances of other targets it landed. The best common ancestors win, merged recursively when there are several, as git's recursive strategy does. Wherever the bases disagree on whether a path is a file or a directory, any change under that path conflicts.

A merge that changes nothing still lands, as an acceptance of the same state that needs no evidence, so later merges start from it. The exception is when either tip already contains the other: then neither has anything the other lacks.

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: 030b1e06-535d-4ba9-adf7-034ea7f574a2
Commits

Reviewing files that changed from the base of the PR and between e0046d1 and 43d18a6.

Files selected for processing: 5

  • 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/targets.rs
  • docs/design.md
  • 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

A target could only take changes, so work that spans many changes, a
release branch or an overhaul, had nowhere to gather before reaching
`main`.

`Queue::create_target` forks a target at the tip of another, with a
first acceptance landing it. `Queue::land_target` lands one target's tip
on another, working like a change: its tip is merged onto the target's,
the requirements apply to the merged snapshot, and conflicts issue a
`core.conflict` about the source's tip and wait.

The merge base comes from both histories: an acceptance's parents are
the one before it and the acceptances of other targets it landed, so
targets forked from the same one share it. The newest shared acceptance
wins, however far, and several, after targets landed each other, are
merged recursively. Wherever those bases disagree on whether a path is
a file or a directory, any change under it conflicts.

A merge that changes nothing still lands, as an acceptance of the same
state needing no evidence, so the target's history records the source's
tip and later merges start from it, unless either tip is already in the
other's history: then neither has anything the other lacks.
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