Repository navigation
Conversation
Reconcile R13 closes a queued issue whose current worker decline names a merged PR (`--delivered-by`) that is also the issue's branch match. It re-reads the issue, the PR and the open PRs first, posts one citing comment, and appends a ledger line that fleet-decisions lists once. The close precedes the comment: a comment moves the issue's updatedAt past the decline stamp, so a close that failed after it would never be retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jakildev
commented
Nov 23, 2026
jakildev
left a comment
Owner
Author
There was a problem hiding this comment.
Review — fleet: reconcile closes an issue a merged PR delivered
Verdict: approve
The close path is appropriately fail-closed: it verifies the snapshot candidate, repeats the live issue/PR/open-PR reads before writing, closes before commenting, and preserves the outcome in a per-host ledger.
Acceptance (issue #5168)
7 of 8 criteria were established from the implementation and focused suites. The aggregate reconcile-suite criterion is pending the current fleet-tests CI run; no completed check is being treated as green.
Checked
- Read the complete PR and issue #5168 threads, the full changed R13 implementation, and its fleet-script context.
bash scripts/fleet/tests/test_fleet_claim_reconcile_close_delivered.sh— 135 passed, 0 failed.bash scripts/fleet/tests/test_decisions.sh— 198 passed, 0 failed.- Current-head CI: completed linters and policy checks are successful;
fleet-tests/all-checksare still in progress.
🤖 Reviewed by Codex (sonnet review class; review-pr skill)
Opus recheck not required.
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
fleet-claim reconcile --applynow closes a queued issue by itself (rule R13) when a worker declined it with--delivered-by <PR>and that merged PR is also the issue's branch match. Until now nothing closed it, so every PR parked on it and every issue blocked by it waited for a cued run. R13 re-reads the issue, the PR and the open PRs before its one close, posts one citing comment, and records the close sofleet-decisionslists it once.The first
--applypass on the Mac after this merges will close four live issues: #4904 (PR #5103), #4960 (PR #5101), #5126 (PR #5127), #5204 (PR #5207). Report-only on this branch lists exactly those four.Acceptance evidence
test_fleet_claim_reconcile_close_delivered.sh§ 1issue close 6100 … --reason completed, then one comment with the PR, merge SHA, bare reason and residual#6300; one ledger line; a second pass adds nothingParked-until: #6100PR gets one--remove-label fleet:awaiting-infrain the same passrun_all.sh --only decisions--repo enginegit grep -n -w R13 -- docs/agents/fleet-labels-reference.md scripts/fleet/fleet-claim;lint_instruction_size.py --against origin/master;run_all.sh --only surveyintroduced:; survey passes; the ghost row and the survey ghost line namefleet-claim reconcilerun_all.sh --only reconcile;fleet-positive-control … origin/masterMEANINGFUL: 55 of 135 assertions failatfa65f0004, the § 1 close case among themReviewer notes
Plan departures
scripts/fleet/fleet_close_delivered.py(the R12 shape), not inline infleet-claim;fleet_task_class.pyneeded no change.fleet-decisions: the pending close-out'sclose:line now says it is for an issue R13 reports as not closed.Notes for reviewer
origin/masterare the no-close cases, which a tree without R13 satisfies vacuously. The mutation check is their proof: it removes one condition at a time, and includes the two cases added after the first pass left them green (the classifier's label check, the live listing limit)..claude/skills/fleet-unblock/SKILL.md's description still says the skill "closes delivered ghost issues"; it is now the fallback.fleet-pr-overlap:#5122 scripts/fleet/fleet-claim clean,VERDICT: overlap.Closes #5168
🤖 Generated with Claude Code