Repository navigation
Closed
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
fleet(queue): repo-queue silently ignores extra positional arguments on every verb
Evidence
pkgs/fleet/crates/fleet-queue/src/client.rs:
parse_args(line 471) collects positional arguments intoArgs.pos, and rejects unknown--flagswith exit 2 — but no verb ever checks how many positionals it received.cmd_validate(line 669) andcmd_enqueue(line 687) use onlyargs.pos.first()— a second packet path is silently dropped, sorepo-queue validate a.json b.jsonvalidates (andenqueueenqueues) onlya.jsonwhile the caller believes both were processed.cmd_health(line 1137),cmd_list(line 768), andcmd_signal(line 1174) never readposat all — any stray positional is silently ignored.- The task verbs (
lane,bind,heartbeat,checkpoint,park,block,cancel,fail,complete) read onlypos_i64(0, "task_id")— a second positional (a typo'd extra id, a stray word) is silently dropped, sorepo-queue complete <task> <something-else>completes the task and reports success.
Verified this run with the shipped binary on the laptop (~/.local/bin/repo-queue, probe ~/git/fleet/probe-rq-posargs):
repo-queue health junkpositional→ exit 0, full health table printed (positional ignored).repo-queue list junkpositional --limit 1→ exit 0, task list printed (positional ignored).- Control:
repo-queue health --bogus-flag→ exit 2,unrecognized argument— flags are validated, positionals are not.
Why it matters
repo-queue is the fleet's own control-plane client: creator/monitor/worker automation and humans drive queue state through it. A silently ignored positional means a mistyped command does something other than what the caller asked — validating/enqueueing the wrong (first) packet, or completing/parking the intended task while an extra argument the caller meant as a guard vanishes — and exits 0, so scripts cannot detect the mistake. This is the same silent-arg-discard class fixed for the fleet multicall leaves in #5560/#5575, on the one client those fixes did not cover.
Acceptance criteria
- Every repo-queue verb rejects an unexpected positional argument count with a usage error (exit 2) naming the verb and the offending argument, before any broker call: exactly 1 positional for
validate/enqueue(packet path) and the task verbs (task_id); exactly 0 forlist/health/signal. - A unit test pins the arity check (extra positional rejected; correct counts accepted).
- Existing behavior is otherwise unchanged: unknown
--flagsstill exit 2, valid invocations of every verb behave as before. cargo test -p fleet-queuepasses.
Metadata
Metadata
Assignees
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 4, 2026
CODE-1382
dezren39 commentedon Nov 4, 2026
🤖 Agent note · filed
health junkpositionalandlist junkpositionalexit 0 doing the real operation;--bogus-flagcontrol correctly exits 2). Guarded self-solve this run under lifecycle protocol §4 (trivial, clearly scoped).fix(fleet): repo-queue rejects extra positional arguments on every ve…
dezren39 commentedon Nov 4, 2026
🤖 Agent note · done