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(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --* · Issue #5713 · developing-today/code

fleet(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --* #5713

New issue
Copy link
New issue
Copy link
Closed
#6773
Closed
fleet(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --*#5713
#6773
Copy link
Assignees
dezren39
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/in-progressQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

fleet(dispatch): duplicate and contradictory flags are silently resolved — last value wins, --no-* always beats --*

Summary

fleet dispatch launch / fleet dispatch enqueue parse their flags with a hand-rolled parser (pkgs/fleet/crates/fleet-dispatch/src/lib.rs) that silently discards user input in three ways:

  1. Duplicate value flags overwrite silently. parse_args stores each --flag value with values.insert(...) (lib.rs:555), so --repo developing-today/code --repo dezren39/darwin-nix launches against the second repo with no error or warning — the first value is silently dropped.
  2. Contradictory boolean pairs resolve by check order, not argument order. verb_launch tests no-issue before issue and no-wait before wait (lib.rs:638-649), so --issue --no-issue and --no-issue --issue both send issue: false. One of the two flags the user typed is silently ignored, whichever order they wrote them in.
  3. --prompt + --prompt-file together silently drop the prompt. prompt_of (lib.rs:580-587) prefers --prompt-file whenever it is present; an explicitly typed --prompt <text> is discarded without a word.

This is the fleet CLI family's established silent-discard class (see #5568, #5572, #5592, #5603, #5607, #5652 — trailing/extra arguments silently ignored, each fixed to a usage error naming the argument). Duplicate and contradictory flags are the same failure one step earlier in parsing, with sharper consequences: launch creates real sessions, tracking issues, and queue tasks, so a silently-wrong --repo, a silently-dropped tracking issue (--issue overridden by a stray --no-issue), or a silently-substituted prompt acts on the wrong work instead of merely misreporting success.

Evidence (main @ af0847d, read via gh api raw; laptop unavailable this run — broker tunnel down, #5708)

  • pkgs/fleet/crates/fleet-dispatch/src/lib.rs:527-570 — parse_args: value flags go into a Map via values.insert(name, ...) at :555 with no duplicate check; bool flags via flags.insert(...) at :544. Unknown flags and missing values are usage errors — duplicates are the one malformed shape that is not.
  • pkgs/fleet/crates/fleet-dispatch/src/lib.rs:638-649 — verb_launch: if parsed.flag("no-issue") { issue=false } else if parsed.flag("issue") { issue=true }, and the same shape for no-wait/wait. Both members of a pair can be present simultaneously; the negative always wins regardless of order.
  • pkgs/fleet/crates/fleet-dispatch/src/lib.rs:580-587 — prompt_of: if let Some(path) = args.get("prompt-file") { read it } else require --prompt. Both supplied → the --prompt text never reaches the request body.
  • pkgs/fleet/crates/fleet-dispatch/src/lib.rs:660-735 — verb_enqueue shares the same parser and the same prompt_of, so duplicates of --repo / --title / --issue-number / --dedupe-key overwrite silently there too.
  • The fleet-queue client parser has the same overwrite shape (pkgs/fleet/crates/fleet-queue/src/client.rs:471-504, opts.insert at :487/:490) — noted as the sibling surface; this issue's fix is scoped to fleet-dispatch, and the queue parser can be aligned in the same change if the worker judges it in-scope, or filed separately.

Why it matters

fleet dispatch launch is the fleet's own session launcher: it POSTs to pm-dispatch, which creates a tracking issue and a queue task and starts an OpenCode session on the laptop. Silent flag resolution means a mistyped or scripted command can launch work against the wrong repository, skip the tracking issue the operator asked for, wait (or not wait) contrary to the flag they wrote last, or run a prompt read from a file instead of the text they typed — with exit 0 and no indication anything was overridden. Every sibling surface in this CLI family now errors on silently-discarded input; dispatch's parser is the remaining one that resolves it quietly.

Acceptance criteria

  • parse_args in fleet-dispatch rejects a repeated value flag (--repo a --repo b, including the --repo=a inline form) with a usage error naming the flag, before any network call.
  • verb_launch rejects --issue together with --no-issue, and --wait together with --no-wait, with a usage error naming the contradictory pair, before any network call. (Rejecting a repeated identical bool flag is optional; the contradictory pair must error.)
  • Supplying both --prompt and --prompt-file to launch or enqueue is a usage error naming both, instead of silently preferring the file.
  • Single, non-contradictory invocations behave exactly as today (including --help in any position, per fleet dispatch status silently ignores all arguments — --help performs a live GET /health and typos are swallowed #5560's verb help handling).
  • New pinning tests in the fleet-dispatch test module cover: duplicate value flag rejected, both contradictory pairs rejected in both orders, prompt+prompt-file rejected, and the ordinary single-flag controls still parse.
  • cargo test -p fleet-dispatch passes on the laptop / in CI.

Related: #5560 (dispatch status args, fixed), #5555 (dispatch status endpoint gap), #5413 (absorb dispatch into repo-queue — if that lands first, the same rule should hold in the absorbing parser).

Activity

Next
  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/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 5, 2026
  2. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane new-issue-creator-code-a)
    • Session / ID: new-issue-creator-code-a run 2026-11-04 18:05 CST (2026-11-05T00:05Z)
    • Found via: filed this run
    • Task: filed issue fleet(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --* #5713 — fleet(dispatch) parse_args silently overwrites duplicate value flags, verb_launch resolves --issue/--no-issue and --wait/--no-wait by check order (negative always wins), and prompt_of silently drops --prompt when --prompt-file is also given. Verified by code read at main af0847d via gh api raw (laptop unavailable this run, broker tunnel down — issue incident: repo-queue broker tunnel down 2026-11-04 23:11 UTC — worker lanes cannot claim (session proxy CONNECT closed) #5708).
    • Expectation: effort/s — a queue worker makes the parser reject duplicates, contradictory pairs, and prompt+prompt-file with usage errors naming the flag, with pinning tests; done when cargo test -p fleet-dispatch passes.
    • Links: packet hidden_files/packet-5713-fix.json (enqueue attempted this run; broker tunnel down per issue incident: repo-queue broker tunnel down 2026-11-04 23:11 UTC — worker lanes cannot claim (session proxy CONNECT closed) #5708, so the fleet monitor's safety net should enqueue from the queue/queued label)
  3. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    queue/queuedHas a queued queue task
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  5. 167 remaining items

    Load more actions
  6. dezren39
    removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 6, 2026
  7. developing-today commented on Nov 7, 2026

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

    Picked up by repo-worker-code-n — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-n posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  8. developing-today commented on Nov 7, 2026

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

    Progress from repo-worker-code-n: claimed: small-fix fleet dispatch duplicate/contradictory flags silently resolved; revalidating against current main

  9. developing-today commented on Nov 7, 2026

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

    Progress from repo-worker-code-n: implementation_complete: parse_args duplicate rejection + contradictory pair rejection + prompt/prompt-file rejection; cargo test -p fleet-dispatch 10/10 on laptop; opening PR

  10. developing-today
    added a commit that references this issue on Nov 7, 2026

    fix(fleet-dispatch): reject duplicate and contradictory flags (#5713) (…

    a254741
  11. developing-today
    closed this as completedin #6773on Nov 7, 2026
  12. developing-today commented on Nov 7, 2026

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

    Released by repo-worker-code-n (outcome: done). Fixed and merged: PR #6773 (squash a254741) — fleet-dispatch parse_args rejects repeated value flags (usage error naming the flag), verb_launch rejects --issue/--no-issue and --wait/--no-wait pairs in either order, prompt_of rejects --prompt + --prompt-file naming both. cargo test -p fleet-dispatch 10/10 on laptop (3 new pinning tests). No Codex findings posted on the PR. Issue #5713 closed by the merge. Sibling fleet-queue parser alignment left as the follow-up named in the PR, per the issue scope.

  13. developing-today
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  14. developing-today commented on Nov 7, 2026

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

    Picked up by repo-worker-code-c — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-c posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  15. developing-today
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  16. developing-today commented on Nov 7, 2026

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

    Released by repo-worker-code-c (outcome: done). already_done (fallback claim race): lane code-n fixed and merged PR #6773 (squash a254741) and closed #5713 at 04:34Z, minutes before this lanes claim landed at 04:41Z on the stale scan; verified issue CLOSED + PR MERGED fresh. No lane-C work; release done only to clear claim labels.

  17. developing-today
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

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/in-progressQueue worker lifecycle statetask/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.