Skip to content

fleet-queue: REL-07 completion operation and effect state machines - #15801

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
lane5/9517-rel07-completion-ops
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
lane5/9517-rel07-completion-ops

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Before: the REL-07 design record described how one completion merges the named PR, closes the named issues and closes the queue item, but nothing in fleet-queue modelled it, so the transition table and recovery rules had no tests.

After: work::completion::operation holds the pure model of that record. It refuses targets that are not explicit active links (or owner overrides), moves effects only along the §4 table, derives the operation status, reads back every unproven effect before planning a resend, dedups webhook deliveries, and gates finalize on every required effect being confirmed plus an allowed final refresh.

How: an in-memory CompletionBook in the house style of the other work modules, with error codes via code(). Tests drive it against a fake GitHub ledger and cover the 13 pmo_rel_completion_* cases the design names, plus a closed-table check. Persistence (REL-03/04), the relay (REL-05) and the real readback calls (REL-06) are not part of this slice.

Refs #9517


Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ure model)

Adds work::completion::operation, the in-memory model of the REL-07
design record: explicit linked targets, the closed effect transition
table, derived operation status, readback-before-resend recovery,
webhook dedup and finalize gates. No I/O; persistence, relay and
readback calls stay with REL-03..REL-06.

Refs #9517

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ad5a7863-f0f3-4f9f-9e35-2e78fcffd3a4
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked.

Fresh gate re-read by this lane via gh api:

  • PR OPEN, draft, head bebb20a7 (exact head checked).
  • Verification: repos/developing-today/code/actions/runs?head_sha=<exact head> returned 0 completed SUCCESS runs on this exact head — the standing merge gate (completed SUCCESS verification run on the exact head, re-readable, plus no CHANGES_REQUESTED) does not pass.
  • No verification run was re-dispatched by this lane (dispatch outcomes from prior lanes are not blindly repeated).

Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 0307-C (charlie ADVANCE LANDINGS, 2026-11-29) — merging under Drew's 2026-11-29 rule (full-diff judgment; CI is not a gate).

Full diff read at head bebb20a: adds only work::completion::operation (REL-07 completion operation + effect state machines, #9517) — a pure in-memory model, no I/O, plus the pub mod line in completion.rs. Verified against the PR's stated purpose: targets must be named and actively linked with matching kind (pr_for/implements) or owner override; §4 effect transition table is closed (confirmed never moves; conflict/failed_terminal move only by a new operation); operation status derived, never stored; recovery reads back every unproven effect before any resend and never resends an unproven merge/close; finalize requires all required effects confirmed + allowed final refresh + still-completing + no newer cancel + existing /complete gates, and does not depend on the initiator's lease. In-diff tests drive a fake provider through lost-ack recovery (merged exactly once), partial close, async merge-queue pending, head-mismatch conflict, closed-unmerged, webhook dedup, stale-fence and gate cases. The prior park (lane 2022-E) rested on the exact-head-SUCCESS gate, void under the 2026-11-29 doctrine. Marking ready and merging.

@developing-today-fleet
developing-today-fleet Bot marked this pull request as ready for review November 29, 2026 09:13
@developing-today-fleet
developing-today-fleet Bot merged commit fe6245e into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane5/9517-rel07-completion-ops branch November 29, 2026 09:16
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.

2 participants