Skip to content

feat(queue): promote results within their target only - #155

Open
PiquelChips wants to merge 1 commit into
feat/ci-repo-adminfrom
feat/ci-target-promotion
Open

PiquelChips wants to merge 1 commit into
feat/ci-repo-adminfrom
feat/ci-target-promotion

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Two targets can define different checks, so a result about a revision on one says nothing about a revision on another, even with the same input digest. Target landings made this worse: their evidence was about the merged snapshot, a bare tree shared by every target the same merge lands on.

A record is now on a target: an acceptance on its own, and a revision on the target of the acceptance it's based on, through the revisions below it (Store::target_of). Promotion only carries results over between records on the same target, and Store::claim refuses a promotion from another one (InvalidPromotion::OtherTarget).

A target landing's evidence is now about a revision the queue makes for the merge, on the tip of the target it lands on, as a rebase is. The same tips make the same revision, so a retry checks it again, and the merged snapshot of a waiting target landing can be fetched and checked like any revision.

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: 4f4615f4-130d-4b06-b03c-3a925cead09f
Commits

Reviewing files that changed from the base of the PR and between 935dfbc and c62fff4.

Files selected for processing: 13

  • README.md
  • apps/origin-src/benches/annotations.rs
  • apps/origin-src/src/annotations/mod.rs
  • apps/origin-src/src/annotations/promotion.rs
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/queue/mod.rs
  • apps/origin-src/src/queue/session.rs
  • apps/origin-src/src/queue/tests/evidence.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/src/workspace/annotate.rs
  • crates/origin-shared/src/landing.rs
  • crates/origin-shared/src/object/statement.rs
  • docs/openapi.json
  • 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/ci-target-promotion branch from b83c5b9 to a9d047e Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/ci-target-promotion branch 2 times, most recently from 88e2bc8 to 947fed0 Compare November 22, 2026 18:54
Two targets can define different checks, so a result about a revision on
one says nothing about a revision on another, even with the same input
digest. A target landing made it worse: its evidence was about the merged
snapshot, a bare tree shared by every target the same merge lands on.

A record is now on a target: an acceptance on its own, a revision on the
target of the acceptance it's based on, through the revisions below it
(`Store::target_of`). Promotion only carries results over between
records on the same target, and `Store::claim` refuses a promotion from
another one (`InvalidPromotion::OtherTarget`).

A target landing's evidence is now about a revision the queue makes for
the merge, on the tip of the target it lands on, as a rebase is. The
same tips make the same revision, so a retry checks it again, and a
result about the same merge on another target never counts.
@PiquelChips
PiquelChips force-pushed the feat/ci-target-promotion branch from 947fed0 to c62fff4 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