Repository navigation
Conversation
Route planning labels through the shared dispatch-liveness predicate before stale cleanup removes them. Planning remains dispatch-only, so heartbeats and markers cannot extend dead claims. Add exact-target predicate coverage and a hermetic cleanup fixture with positive and stale controls.
jakildev
commented
Nov 23, 2026
jakildev
left a comment
Owner
Author
There was a problem hiding this comment.
Review — build: keep live planning claims during cleanup
Verdict: approve
The fourth pass of cleanup --gh now asks the shared predicate before removing an aged planning label, and the predicate vouches only on an exact plan:<ns>:<N> dispatch record, as the plan specified.
Nits (follow-up)
docs/agents/fleet-claim-liveness.md:6-7— still describes the predicate as coveringfleet:amending-*/fleet:claim-*only; fold planning (dispatch-only arm) into it on the next PR on this surface.
Acceptance (issue #5231)
6 of 6 met. Criteria 1–5 reproduced locally (below). Criterion 6 is covered by the green comment-refs check and the author's fleet_test_subjects.py run.
Checked
- Read
fleet_claim_liveness.verdictin full. For amending and claim labels the behavior is unchanged: the preclaim arm stays amending-only, andstampedfor a claim label is now computed after the dispatch check from the same lock files, so the value is identical. A planning label returnsCANNOT_VOUCH/no-dispatchright after the dispatch check and never reaches the abandon-pin, heartbeat, or reservation arms. - Read the planning pass in
fleet-claim(cmd_cleanup_gh). The_claim_owner_livecall sits after both skip gates (fresh-orphan grace, under-TTL) and before thegh issue edit --remove-label, so it covers both the orphan fast path and the TTL path. The|| _planning_live_rc=$?form isset -e-safe. Cross-host labels still returnCANNOT_VOUCH, so they keep the existing age rules. - Grepped the other
_claim_owner_livecall sites (amending sweep,_issue_has_unswept_claim, claim cleanup, force-sweep). None of them receive planning labels, so teaching the parser aboutplanningchanges nothing there. test_fleet_claim_liveness.py: 31 tests pass. It includes engine and game targets, wrong-target controls, and a heartbeat-without-dispatch control.test_fleet_claim_planning_restamp.sh: 50 passed, 0 failed. The suite now setsFLEET_STATE_DIRto its temp root, so it is hermetic. The T2 keep case namesarm: dispatch, target: plan:engine:90. T3 (marker alone) and T4 (wrong-target dispatch) still reachremove-label.test_fleet_claim_liveness_sweep.sh: 46 passed, 0 failed.fleet-positive-control … origin/master:MEANINGFUL, 3 of 50 assertions fail pre-fix.- CI on head
693a67e: every check is green exceptfleet-tests, which was still IN_PROGRESS when I read it. That check is unread, not green; the three fleet suites above that cover this diff pass locally.
Opus recheck not required.
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Planning claims now survive stale-label cleanup while their exact planning dispatch is live.
The shared liveness predicate recognizes planning labels but deliberately ignores heartbeats, markers, reservations, and abandon pins for them, so dead planning claims still age out normally.
Acceptance evidence
bash scripts/fleet/tests/test_fleet_claim_planning_restamp.sharm: dispatch, target: plan:engine:90.bash scripts/fleet/tests/test_fleet_claim_planning_restamp.shremove-label; orphan-grace controls remain green.python3 scripts/fleet/tests/test_fleet_claim_liveness.pybash scripts/fleet/tests/run_all.sh --only fleet_claim_planningbash scripts/fleet/tests/run_all.sh --only fleet_claim_livenessfleet-positive-control scripts/fleet/tests/test_fleet_claim_planning_restamp.sh origin/masterMEANINGFUL: 3 of 50 assertions fail onorigin/master; all three are the live-dispatch keep proof.python3 scripts/fleet/fleet_test_subjects.pypython3 scripts/lint_comment_refs.pyReviewer notes
Notes for reviewer
fleet-pr-overlapreports clean shared-path overlap inscripts/fleet/fleet-claimwith PRs fleet: retry an incomplete live snapshot in the cross-lane precheck #5122 and fleet: reconcile closes an issue a merged PR delivered #5232; no textual conflict was found.Closes #5231
🤖 Authored with Codex (GPT-5).