Repository navigation
fleet-queue: manual-only-update verb + CLI — set/clear manual_only on a live task (#16666) - #16694
Conversation
#9178 §4 criterion 1, update half: manual_only could be set at enqueue (PR #14860) and is honored by both automatic pick paths, but no production path could set or clear it on a live task — the §4 migration's parked-for-manual conversions (tasks 15864, 17413, 24232, 25939, 23911, 26340) were blocked on exactly this. Mirror the resume-update path (PR #16650): - broker verb /manual-only-update (verb_manual_only_update): creator / bound worker / bound session / reasoned operator authorization, manual_only_updated audit event (actor, prior, new, reason, authorized_via), manual_only_update_refused on refusal, terminal tasks refused, optimistic-concurrency batch identical in shape to verb_resume_update. - CLI: fleet queue manual-only-update <task-id> --set|--clear [--bound-session <id>] [--operator] [--reason <text>]. - Oracle tests in the resume-update style: creator set/clear, bound worker, stranger refusal logged, operator-requires-reason (the §4 conversion path), terminal refusal, boolean validation + clear sugar, no-op records no event.
…nly-update (#16666) The published_queue_reference_matches_registered_help_inventory oracle (fleet-registry/tests/pmo_operator_docs.rs) fails at the base of this branch: PR #16650 documented resume-update in the book (queue-lifecycle.md) but never registered it in the queue domain's subcommand inventory, so the book drifted from the registry. Register resume-update and the new manual-only-update (both in client dispatch order after reprioritize) and add the manual-only-update reference section beside resume-update's, so the inventory, the help surface, and the book agree.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Lane 0352-E claim (bravo SUSTAIN, 2026-11-29) — landing PR #16694. Verified firsthand: full diff read (7 files, +458/-0 — broker verb |
Closes #16666. Refs #9178 (§4 criterion 1).
What
manual_onlycould be set at enqueue (PR #14860) and is honored by both automatic pick paths, but no production path could set or clear it on a live task — the onlyUPDATE tasks SET manual_onlyin the tree was inside a test. The #9178 §4 migration audit (2026-11-29) found 6 parked-for-manual candidates (tasks 15864, 17413, 24232, 25939, 23911, 26340) whose disposition is "convert to manual_only" and none of them could be converted; two are past their not_before and keep churning through automatic lanes.This adds the update half, mirroring the resume-update path (PR #16650) shape-for-shape:
/manual-only-update(verb_manual_only_update, turso_queue/lifecycle.rs):enqueuedevent), currently bound worker, live-bound session (presented assession_id), or an operator action (operator: true) carrying a reason — checked in that order so the audit names the path.manual_only_updatedhistory event with actor, prior value, new value, reason, andauthorized_via; refusals logged asmanual_only_update_refused.manual_onlymust be a JSON boolean (clear: trueaccepted as sugar for false); same-value requests are a no-op (changed: false, no event); the write uses the same optimistic-concurrency batch (updated_at+ prior-value guard,changes() = 1event insert) asverb_resume_update.fleet queue manual-only-update <task-id> --set|--clear [--worker <id>] [--bound-session <id>] [--operator] [--reason <text>], with usage text alongsideresume-update.stacks_outbox::dispatchnext to/resume-update.manual-only-updateandresume-updateare now registered in the queue domain's subcommand inventory (fleet-registry), andmanual-only-updatehas a reference section in the book besideresume-update's. This also repairs pre-existing drift the canonical suite caught at this branch's base: PR feat(fleet-queue): authorized resume-hint update path (#9178 §1 criterion 2, update half) #16650 documentedresume-updatein the book but never registered it, sopublished_queue_reference_matches_registered_help_inventorywas failing before this change (missing[]; unregistered["resume-update"]).Tests
Oracle tests in the resume-update style (
manual_only_update_tests, 7 tests): creator sets and clears with audit; bound worker sets; stranger refused and the refusal is logged; operator path requires a reason (the §4 conversion path); terminal tasks refused; boolean validation +clearsugar; no-op records no event.Verification (remote, canonical venue):
fleet-rust-testsworkflow run 46248219773 on this branch — success: 66 suites ok, 2,400 tests passed, 0 failed, including all 7 newmanual_only_update_testsand the registry/book inventory oracle. (The earlier run 46247687925 on the first commit shows the 7 new tests passing and the single pre-existing registry-drift failure this PR then fixed.)After merge
The 6 §4 conversion candidates can be converted with e.g.:
Left unmerged for review.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T09:41:38Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/worktrees/lane-16666-manual-only", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/worktrees/lane-16666-manual-only", "repo": "developing-today/code", "branch": "felix/lane-16666-manual-only", "sha": "8a53996bd3f9ad4a0bc1212a6a0bc722ceca77f4" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.