GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet(queue): `fleet queue --version` / `repo-queue --version` silently ignore trailing arguments · Issue #5603 · developing-today/code

fleet(queue): fleet queue --version / repo-queue --version silently ignore trailing arguments #5603

New issue
Copy link
New issue
Copy link
Closed
#5605
Closed
fleet(queue): fleet queue --version / repo-queue --version silently ignore trailing arguments#5603
#5605
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

fleet(queue): fleet queue --version / repo-queue --version silently ignore trailing arguments

Summary

The queue domain's --version shortcut in the fleet multicall binary checks only the first argument and returns success no matter what follows it:

  • pkgs/fleet/crates/fleet/src/main.rs:458-475 (run_domain, #[cfg(feature = "queue")] arm): when args.first() is --version or -V, it prints the version and returns EXIT_OK — args[1..] is never inspected.
  • The root built-ins in the same file got exactly this fix in fleet: root built-ins (version / capabilities / --version) silently ignore trailing arguments #5572: run_root's --version/-V/version/capabilities arms all call reject_extra_args first (main.rs:661-682), and the queue client's own verbs got the same treatment in fleet(queue): repo-queue silently ignores extra positional arguments on every verb #5592. The domain-level shortcut that sits in front of the queue client is the one surface both fixes missed — it intercepts the invocation before fleet_queue::client::run(args) is ever reached.

So fleet queue --version --bogus reports success for a command line that contains an unrecognized flag, and the argv0 form repo-queue --version junk does the same.

Verified this run (2026-11-04, laptop, binary rebuilt from main 18f0aa1a6)

$ fleet queue --version            → "fleet 0.1.0", exit 0   (control, correct)
$ fleet queue --version junkextra  → "fleet 0.1.0", exit 0   (trailing arg silently ignored)
$ fleet queue --version --bogus    → "fleet 0.1.0", exit 0   (unrecognized flag silently ignored)
$ fleet queue -V junk              → "fleet 0.1.0", exit 0   (same for -V)
$ repo-queue --version junk        → "repo-queue 0.1.0", exit 0  (argv0 alias route, same arm)
$ fleet --version junk             → usage error, exit 2     (control: root arm, fixed by #5572)

Why it matters

  • A version probe in a script or CI step that accidentally appends an argument (or a caller who mistypes a flag) gets a clean success and a version string instead of the usage error every sibling surface now returns — the exact silent-misparse class fleet: root built-ins (version / capabilities / --version) silently ignore trailing arguments #5572/fleet(queue): repo-queue silently ignores extra positional arguments on every verb #5592/fleet: serve <broker-role> silently ignores all trailing arguments — a typo'd flag starts the daemon instead of erroring #5568/fleet: proxy serve --help (and any trailing argument) silently starts the session-proxy daemon #5575 have been eliminating across the fleet surfaces one leaf at a time.
  • The shortcut is also the argv0 repo-queue binary's only version surface (the census fix noted in the arm's own comment), so the laxity ships in two binaries' shapes from one arm.

Acceptance criteria

  • fleet queue --version <anything-else> and fleet queue -V <anything-else> (including via the repo-queue argv0 alias) exit 2 with a usage error naming the unexpected argument, before printing the version — mirroring run_root's reject_extra_args behavior for the root built-ins.
  • Bare fleet queue --version / -V and repo-queue --version still print the version and exit 0.
  • A pinning test covers the queue-domain version arm with and without a trailing argument, alongside the existing root_builtins_reject_trailing_arguments test in main.rs.

Evidence

  • pkgs/fleet/crates/fleet/src/main.rs:458-475 (unguarded queue-domain version arm), :661-682 (root arms with the reject_extra_args guard), :626-639 (reject_extra_args itself)
  • Probe: fleet binary rebuilt on the laptop from main 18f0aa1a6 (2026-11-04), outputs above
  • Related: fleet: root built-ins (version / capabilities / --version) silently ignore trailing arguments #5572 (root built-ins, closed), fleet(queue): repo-queue silently ignores extra positional arguments on every verb #5592 (repo-queue client verbs, closed), epic: one fleet multicall binary — search, queue, dispatch, proxy — with capability-selected builds #5412 (fleet multicall epic, open)

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/in-progressQueue worker lifecycle state
    source/creatorFiled by the new-issue-creator job
    on Nov 4, 2026
  2. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1386

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    work/self-assignedAn agent grabbed this item directly, outside the queue
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-11-04 11:35 CST
    • Found via: filed this run
    • Task: Filed this issue after verifying on the laptop (binary rebuilt from main 18f0aa1): fleet queue --version junkextra / --bogus and repo-queue --version junk all print the version and exit 0, while the root control fleet --version junk exits 2. Guarded self-solve this run (trivial, clearly scoped, low-risk): the queue-domain version arm in run_domain gets the same arity guard the root built-ins got in fleet: root built-ins (version / capabilities / --version) silently ignore trailing arguments #5572, plus a pinning test.
    • Expectation: effort xs; done = PR merged with the guard + test, fixed binary re-probed (trailing-arg forms exit 2, bare forms exit 0).
    • Links: branch creator-a/5603-queue-version-args (incoming)
  5. developing-today
    added
    status:in-review
    on Nov 4, 2026
  6. dezren39
    added a commit that references this issue on Nov 4, 2026

    fix(fleet): queue-domain --version rejects trailing arguments (#5603) (…

    7912457
  7. dezren39
    closed this as completedin #5605on Nov 4, 2026
  8. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: done

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-11-04 11:35 CST
    • Found via: filed this run
    • Task: Self-solved (guarded, trivial): PR fix(fleet): queue-domain --version rejects trailing arguments (#5603) #5605 squash-merged as 7912457 — the queue-domain --version/-V arm in run_domain now rejects a trailing argument with a usage error naming it (exit 2), and the new pinning test queue_domain_version_rejects_trailing_arguments covers both flags with and without a trailing argument.
    • Expectation: done — cargo test -p fleet green on the laptop (5 passed); fixed binary re-probed: trailing-arg forms (fleet queue --version junkextra, -V --bogus, repo-queue argv0 --version junk) exit 2, bare forms exit 0.
    • Links: PR fix(fleet): queue-domain --version rejects trailing arguments (#5603) #5605 (merged), branch creator-a/5603-queue-version-args (deleted on merge)
  9. dezren39
    removed
    work/self-assignedAn agent grabbed this item directly, outside the queue
    status/in-progressQueue worker lifecycle state
    on Nov 4, 2026
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.