Skip to content

fix(service): store statements needing a promotion only once it's accepted - #168

Open
PiquelChips wants to merge 1 commit into
fix/publish-a-push-s-trees-afterfrom
fix/store-statements-needing-a-promotion-only
Open

PiquelChips wants to merge 1 commit into
fix/publish-a-push-s-trees-afterfrom
fix/store-statements-needing-a-promotion-only

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A push wrote every ordinary statement of a pack before it checked the pack's promotions. When a promotion was refused, a statement that superseded it, or was about it, stayed stored, pointing at a record the repository never got.

A push now writes statements in rounds. Anything that needs a promotion from the same pack, directly or through other statements, goes in a later round, written only after that promotion has been checked and stored. Statements that need no promotion still go before the revisions they're about. The pack's order doesn't matter.

Part of #166.

Note

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

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

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: 3ee1c6a4-bbe9-48c6-a0f2-2cfe0efed4e5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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 #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
…epted

A push wrote every plain statement of a pack before it checked the
promotions, so a statement superseding or about a promotion of the same
pack stayed stored when the promotion was refused, needing a record the
repository never got.

A push now writes statements in rounds: whatever needs a promotion of the
pack comes a round after it, once the promotion is checked and written.
@PiquelChips
PiquelChips force-pushed the fix/store-statements-needing-a-promotion-only branch from e620b61 to cb41439 Compare November 22, 2026 20:22
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