Repository navigation
build: make fleet declines temporary by default (#5167) - #5178
Merged
Merged
Conversation
Require explicit objection or merged-delivery markers for durable decline memory. Preserve reason subclasses for reporting and runtime routing while bounding unmarked retries through the existing dispatch cap. Teach shadowed close-outs and operator docs to trust only verified delivery markers, and quote the last temporary reason when the cap parks a target.
jakildev
commented
Nov 18, 2026
jakildev
left a comment
Owner
Author
There was a problem hiding this comment.
Review — build: make fleet declines temporary by default (#5167)
Verdict: approve
The marker contract is consistent end to end: fleet-claim decline stamps [objection] or [delivered-by #N], fleet_decline.parse_detail reads it, and only a marked decline gets the seven-day hold. _shadowed_closeout now forms only from the delivered marker. --delivered-by verifies the PR is merged and refuses on an unreadable or unmerged PR, leaving the claim held. The three incident reasons from the issue are now temporary.
Nits (follow-up)
scripts/fleet/fleet-dispatcher:3061— the# Park a target at the dispatch cap…comment block now sits abovelast_decline_reasoninstead ofpark_target. Move the new helper above that block.scripts/fleet/fleet-claim:3110— thedeclineheader comment now breaks after the usage line, and— the honest exit…begins a fresh comment line. Fold it back into one sentence.scripts/fleet/fleet-dispatcher:3069—last_decline_reasonquotes the raw stored detail, so the park comment can readLast decline: [objection] …. Strip the marker token withfleet_decline.parse_detail, or leave it as is if the marker in the quote is intended.docs/agents/FLEET-FEEDBACK-HANDLING.md:172— the rewrap leaves a stray shortNo parkline. Cosmetic only.
Checked
- Read the full diff of
fleet-claim,fleet-dispatcher,fleet_decline.py,fleet_task_class.py,fleet-survey, the six role-neutral docs, and the tests. - Grepped the consumers of the decline
classandtransientfields:fleet_runtime.py:267andfleet_task_class.py:749(runtime scope forsandbox) and:949(the TTL choice). All are consistent with a marked decline reportingclass=objection. A marked decline whose text mentions the sandbox is deliberately not runtime-scoped, whichtest_marked_sandbox_text_is_not_runtime_scopedpins. - Grepped for dangling references:
HOST_SCOPED_DECLINE_REis gone with no remaining use, and_shadow_numberis still used atfleet_task_class.py:1077. - Ran on the head (
351265d6):test_fleet_decline.py(4 tests),test_fleet_task_class.py(152),test_review_pick_order.py(5) andtest_fleet_claim_decline.sh(71 passed, 0 failed), all green. - Did not run
run_all.shor the dispatcher-completion suite. They are not hermetic against the live fleet host, so the dispatcher cap arms (T8c) are taken from the author's table. - CI:
changes,closes-lint,comment-refs,instruction-refs,instruction-size,no-plan-files,python-lintandwhitespacepass.fleet-testsis still pending on this head, so it is unread, not green. Merge should wait for it. The author's own full-suite run was blocked by a sandbox write refusal outside the diff. - Acceptance: the body uses
Refs #5167, notCloses, so there is no acceptance grader. Criterion 9 (the role-doc edits, which a human applies) is explicitly unshipped and the issue stays open.
Test plan the author should run before merge
- Confirm
fleet-testsgoes green on351265d6.
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
Fleet declines now expire after 30 minutes unless the session explicitly marks an item-level objection or names a verified merged delivery PR. Delivered markers alone create shadowed close-outs, and repeated temporary declines park through the existing dispatch cap with the last reason quoted.
Acceptance evidence
bash scripts/fleet/tests/run_all.sh --only fleet_claim_declinepython3 scripts/fleet/tests/test_fleet_decline.pypython3 scripts/fleet/tests/test_fleet_decline.pybash scripts/fleet/tests/run_all.sh --only task_classbash scripts/fleet/tests/run_all.sh --only dispatcher_completionfleet:needs-human, and quotes its last reason. Every target kind reaches the sharedclaim_targetgate.run_all.sh --only task_class,review_pick,survey,smoke_worker,fleet_runtime,dispatcher_completionbash scripts/fleet/tests/run_all.sh --only decline;fleet-positive-control scripts/fleet/tests/test_fleet_decline.py origin/masterMEANINGFUL, including the default-class failure on18a91f694.python3 scripts/lint_instruction_size.py --against origin/master;ruff check scripts/## Gated edits for a humancomment.fleet:needs-human.python3 scripts/lint_instruction_refs.py --against origin/master;python3 scripts/lint_comment_refs.py --against origin/master;python3 scripts/light-verify.py --if-changedfleet-jobs start fleet-tests(job20261118T061655Z-fleet-tests-47a25c)test_fleet_edit_scope.shcould not create/Users/evinjkill/.ir-fleet-edit-scope-test.XXXXXX(Operation not permitted); job stopped, not retried.Reviewer notes
Plan departures
18a91f694; later overlap fleet: stop sandboxed macos display launches before the wake (#5159) #5173 was included in the fixture-ownership review required by the final plan correction.test_dispatcher_completion.shand is exposed to--only declinebytest_dispatcher_decline_cap.sh.Notes for reviewer
Refsis intentional: criterion 9 remains human-owned. Please grade this evidence table directly rather than relying on the closing-issue acceptance hook.--delivered-by.FLEET-FEEDBACK-HANDLING.md,fleet-claim), fleet: bound claim acquisition settle window #5127 (fleet-claim), fleet: wake and hold the macos display for display-backed runs #5160 (FLEET-RUNTIME.md, task-class tests), build: fix fleet test fixture subject paths #5169 (task-class tests), fleet: bound ir-run's watchdog kill and render-verify's capture passes #5171 (FLEET.md), and fleet: stop sandboxed macos display launches before the wake (#5159) #5173 (FLEET-RUNTIME.md, task-class tests) all trial-merge clean;VERDICT: overlaprequests semantic review.Decline-instruction census
FLEET-RUNTIME.md,FLEET.md,FLEET-CROSS-HOST-SMOKE.md,FLEET-FEEDBACK-HANDLING.md,FLEET-CACHE.md,fleet-unblock.md, andfleet-survey.role-worker.md,role-opus-reviewer.md,role-sonnet-reviewer.md,role-smoke-worker.md(two sites), androle-merger.md.AUTHOR-PIPELINE.md,fleet-labels-reference.md,campaign-protocol.md, andincrease-complexity/SKILL.md; no otherSKILL.mdinstructs a decline.Refs #5167
🤖 Generated with Codex (GPT-5 runtime)