Skip to content

build: make fleet declines temporary by default (#5167) - #5178

Merged
jakildev merged 2 commits into
masterfrom
claude/5167-decline-markers
Nov 19, 2026
Merged

jakildev merged 2 commits into
masterfrom
claude/5167-decline-markers

Conversation

@jakildev

Copy link
Copy Markdown
Owner

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

Criterion Check run Observed
1. CLI marker arms and refusals bash scripts/fleet/tests/run_all.sh --only fleet_claim_decline PASS; objection, delivered, unmarked, combined, reserved-prefix, wrong-kind, and unmerged arms all fired.
2. Default temporary; marked seven-day hold python3 scripts/fleet/tests/test_fleet_decline.py PASS; the default holds at 10 minutes, expires at 31, while both markers hold through six days and release on item change.
3. Three fired incident reasons are temporary python3 scripts/fleet/tests/test_fleet_decline.py PASS; all three are transient while fresh and absent at 31 minutes.
4. Delivered close-out and sandbox scoping bash scripts/fleet/tests/run_all.sh --only task_class PASS; marker PR wins, unmarked row shadow does not form a close-out, and marked sandbox text is durable.
5. Task, feedback, and review cap bash scripts/fleet/tests/run_all.sh --only dispatcher_completion PASS; each lane records five declines, the sixth parks, adds fleet:needs-human, and quotes its last reason. Every target kind reaches the shared claim_target gate.
6. Existing decline consumers run_all.sh --only task_class, review_pick, survey, smoke_worker, fleet_runtime, dispatcher_completion PASS for all six selectors.
7. Decline slice and positive control bash scripts/fleet/tests/run_all.sh --only decline; fleet-positive-control scripts/fleet/tests/test_fleet_decline.py origin/master 3/3 suites pass; positive control reports MEANINGFUL, including the default-class failure on 18a91f694.
8. Ungated docs, usage, and budgets marker greps; python3 scripts/lint_instruction_size.py --against origin/master; ruff check scripts/ Both marker greps hit their required files; usage names both flags; no introduced size offender; ruff clean.
9. Gated role-doc lines Human applies the exact replacements in the #5167 ## Gated edits for a human comment. Not shipped in this PR; the issue remains open and will be parked at fleet:needs-human.
Additional regression coverage python3 scripts/lint_instruction_refs.py --against origin/master; python3 scripts/lint_comment_refs.py --against origin/master; python3 scripts/light-verify.py --if-changed No new instruction-reference or comment-reference finding; light verification correctly reports 0/19 trigger paths.
Full fleet suite fleet-jobs start fleet-tests (job 20261118T061655Z-fleet-tests-47a25c) Blocked outside the diff: test_fleet_edit_scope.sh could not create /Users/evinjkill/.ir-fleet-edit-scope-test.XXXXXX (Operation not permitted); job stopped, not retried.
Reviewer notes

Plan departures

Notes for reviewer

Decline-instruction census

  • Ungated and updated: FLEET-RUNTIME.md, FLEET.md, FLEET-CROSS-HOST-SMOKE.md, FLEET-FEEDBACK-HANDLING.md, FLEET-CACHE.md, fleet-unblock.md, and fleet-survey.
  • Gated, human-applied from the issue comment: role-worker.md, role-opus-reviewer.md, role-sonnet-reviewer.md, role-smoke-worker.md (two sites), and role-merger.md.
  • Checked, no decline instruction requiring a change: AUTHOR-PIPELINE.md, fleet-labels-reference.md, campaign-protocol.md, and increase-complexity/SKILL.md; no other SKILL.md instructs a decline.

Refs #5167

🤖 Generated with Codex (GPT-5 runtime)

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 jakildev added fleet:wip Work in progress — not ready for review fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend labels Nov 18, 2026
@jakildev jakildev removed the fleet:wip Work in progress — not ready for review label Nov 18, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 above last_decline_reason instead of park_target. Move the new helper above that block.
  • scripts/fleet/fleet-claim:3110 — the decline header 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_reason quotes the raw stored detail, so the park comment can read Last decline: [objection] …. Strip the marker token with fleet_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 short No park line. 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 class and transient fields: fleet_runtime.py:267 and fleet_task_class.py:749 (runtime scope for sandbox) and :949 (the TTL choice). All are consistent with a marked decline reporting class=objection. A marked decline whose text mentions the sandbox is deliberately not runtime-scoped, which test_marked_sandbox_text_is_not_runtime_scoped pins.
  • Grepped for dangling references: HOST_SCOPED_DECLINE_RE is gone with no remaining use, and _shadow_number is still used at fleet_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) and test_fleet_claim_decline.sh (71 passed, 0 failed), all green.
  • Did not run run_all.sh or 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-lint and whitespace pass. fleet-tests is 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, not Closes, 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-tests goes green on 351265d6.

Opus recheck not required.

🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant