Skip to content

fix(fleet): repo-queue rejects extra positional arguments on every verb (#5592) - #5596

Merged
dezren39 merged 1 commit into
mainfrom
creator-a/5592-repo-queue-posargs
Nov 4, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator-a/5592-repo-queue-posargs

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #5592.

Every repo-queue verb now rejects extra positional arguments before any broker call (reject_extra_pos, client.rs): exactly 1 positional for validate/enqueue (packet path) and the task verbs (lane/bind/heartbeat/checkpoint/park/block/cancel/fail/complete), exactly 0 for list/claim/health/signal. Unknown --flags were already rejected by parse_args; positionals were collected and silently dropped — validate a.json b.json validated only a.json, health junk ran health, complete <task> <extra> completed the task, all exit 0.

Verification (laptop, worktree):

  • cargo test -p fleet-queue --all-features — 7 passed, including new pinning test client::tests::extra_positional_names_the_first_unexpected_one.
  • Fixed binary re-probed: health junkpositional, list junkpositional --limit 1, validate a.json b.json, complete 123 extrastuff all exit 2 naming the extra argument; health and list --limit 1 controls exit 0 unchanged.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 17:17
@dezren39 dezren39 added kind/bug Something isn't working (prefixed form of the classic bug label) app/fleet pkgs/fleet multicall binary + platform crates labels Nov 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T17:19:19.773332Z dd4a7b9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 8a8d509 into main Nov 4, 2026
@dezren39
dezren39 deleted the creator-a/5592-repo-queue-posargs branch November 4, 2026 17:18
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

app/fleet pkgs/fleet multicall binary + platform crates kind/bug Something isn't working (prefixed form of the classic bug label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet(queue): repo-queue silently ignores extra positional arguments on every verb

1 participant