GeezerVison is showing github.com — feat(fleet-queue): journal checkpoint + handoff reference model (JRN-03, #9465) by dezren39 · Pull Request #14346 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…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).
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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|