Skip to content

fleet queue: bare claim with no arguments should refuse, not claim the top task #8606

Closed

Description

@dezren39

Problem: bare fleet queue claim is a footgun that keeps firing

Running fleet queue claim with no arguments (e.g. while probing the CLI's usage) claims the queue's top task under a default identity. It has now fired five times, each time self-caught and released within minutes with the task verified back to queued, no work done:

Why it matters

Each firing steals the top task from its rightful lane until a human notices. Five catches in two days means the sixth will eventually not be caught in time — the task sits claimed under a dead identity while its real work stalls.

Fix (acceptance)

  • fleet queue claim with no explicit task id and no explicit filter/limit arguments refuses with a usage error (a bare claim is never a meaningful intent), OR requires an explicit --confirm-bare style flag.
  • Directed claims (--task <id>) and filtered claims are unaffected.
  • A regression test covers the refusal.
  • The worker runbooks' probing guidance updated if they document usage probing.

Activity

  1. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  2. added
    epic/fleet-orchestration
    on Nov 12, 2026
  3. added a commit that references this issue on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    state: done (fixed_merged)
    lane: any-b, worker: repo-worker-code, task 18706

    Fixed and merged in PR #10965 (merge commit 588bf76140645604165ec3cf68f3c7e98b1fa1cf, 2026-11-17T04:30Z):

    • cmd_claim now runs the new pure predicate bare_claim_refusal before any broker contact: a claim with no task, filter, queue scope (flag or REPO_QUEUE_DEFAULT_QUEUE env), count, handoff/bind pick, and no identity marks (worker, lane, session-id, pool, platform, from-session) dies with a usage error (exit 2) naming the documented forms. Directed (--task) and filtered claims are unaffected, as are all lane/dispatch claim forms — each carries at least one intent argument.
    • Regression test bare_claim_refuses_and_intent_claims_pass_8606 pins both halves through the real parser; full suite cargo test -p fleet-queue --all-features → 389 lib tests pass. End-to-end with the built client: repo-queue claim and repo-queue claim --lease-seconds 60 both exit 2 with the refusal, before broker contact.
    • Acceptance's runbook item: no worker runbook documents bare-claim usage probing (every documented form carries intent arguments), so nothing needed updating.
    • Codex gate: the Codex review run failed to execute (code-review usage limits) and issued no findings; CodeRabbit rate-limited likewise. Recorded on the PR before merge.
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: already_done
    task: 20215 (queue repo-health-code-pilot, worker repo-worker-code, lane code-h)

    Re-triaged fresh: issue CLOSED 2026-11-17T04:30:14Z. Fixed and merged in PR #10965 (merge commit 588bf76) — cmd_claim runs the bare_claim_refusal predicate before any broker contact. No further work; completing as already_done, no follow-on.

  6. added a commit that references this issue on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

epic/fleet-orchestrationstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions