Skip to content

feat(fleet-queue): journal checkpoint + handoff reference model (JRN-03, #9465) - #14346

Merged
dezren39 merged 1 commit into
mainfrom
felix/9465-next-slice
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/9465-next-slice

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Refs #9465 (JRN-03 — checkpoint and handoff snapshot interoperability). Lands the slice's owned surface only; #9465 stays open for its remaining gates.

What this lands

pkgs/fleet/crates/fleet-queue/src/work/journal.rs — the checkpoint schema/projection from the #9208 design §3.4, as a pure model in the same shape as its sibling work/ modules (contracts, lifecycle, completion):

  • CheckpointRef (fleet.journal-checkpoint/v1): objective, completed steps, outstanding work, important paths, branch + commit ref, test state, hard blocker edge refs, per-source activity cursor refs, hydration generation ref, next action, session/worker ownership, stream sequence, supersedes pointer.
  • Private by construction: visibility is validated to be exactly private; a payload presenting public_projection is a typed rejection (non_private_visibility), never a projection.
  • Freshness is explicit: assess_freshness / project_resume — a checkpoint behind the stream sequence, or superseded at any sequence, projects as Stale with the numbers on the value; it never silently reads as current.
  • Negatives as typed errors: secret-bearing paths screened out (secret_path), missing commit identity rejected (missing_commit_identity), a test named in two outcome buckets rejected (conflicting_test_state) so a pending test can never be shown passed.
  • HandoffRef (fleet.journal-handoff/v1): old/new owner + lease release/takeover result anchored to a checkpoint. It has no completion field, and its workflow-state projection is the identity — a handoff never implies completion.
  • Migration: earlier v1 payloads without the optional hydration/supersedes/session/run refs stay readable (serde defaults; tested).

Foreign surfaces stay opaque refs, per the design: cursor and hydration formats remain #9207's, receipt formats #9513's, and the lifecycle command that writes checkpoints remains #9206/CLI-05's.

Gate note

The done-check (recorded on #9465) found the document gate PR #9225 merged and JRN-01 #9463 closed since the last revalidation. CLI-05 #9502, HYD-01 #9458, REL-03 #9513 and JRN-02 #9464 remain open; this slice prejudges none of their surfaces (it consumes them only as opaque typed refs), and JRN-02 has not landed journal.rs, so the same-file collision its sequencing edge guarded against does not occur — JRN-03 is the file's named owner.

Verification (remote only, fleet queue dispatch)

Run 45394999084 on this branch head, conclusion success (the run's tail was the known fleet-command post-step hang; the Execute step completed first):

  • cargo test -p fleet-queue --lib --features client,queue-broker pmo_journal_checkpoint -- --list — all 7 tests listed by exact name, including the slice's oracle pmo_journal_checkpoint_round_trip_preserves_cursor_and_commit_refs.
  • Exact filter run: 7 passed / 0 failed (637 filtered out), each named test ok in the log.
  • Full fleet-queue lib suite: 644 passed / 0 failed.

No new dependencies (serde/serde_json/sha2 stack already in the crate). No queue, database, service, or CLI surface added.


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

…03, #9465)

Checkpoint schema/projection in src/work/journal.rs per the #9208
design §3.4: objective, done/remaining, screened paths, branch/commit
ref, disjoint test-state buckets, blocker edge refs, per-source
cursor refs and hydration ref, next action. Private-only visibility,
explicit staleness (a superseded or behind-stream checkpoint never
projects current), and a handoff reference that records ownership
transfer without implying completion.

Oracle: pmo_journal_checkpoint_round_trip_preserves_cursor_and_commit_refs
plus negative tests for the stale/secret-path/no-commit-identity/
pending-shown-passed cases named by the slice, and a legacy-payload
readability test (old checkpoints stay readable).
@coderabbitai

coderabbitai Bot commented Nov 24, 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 53 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c801eeab-ce10-4e12-95b7-acba448d6226
Commits

Reviewing files that changed from the base of the PR and between 5fdef25 and 47ee2c9.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet-queue/src/work/journal.rs
  • pkgs/fleet/crates/fleet-queue/src/work/mod.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

@dezren39
dezren39 merged commit 7683b26 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the felix/9465-next-slice branch November 24, 2026 12:57
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