Skip to content

fleet queue list: broker /list reply has no rows array for --status queued at limits >=100 #9001

Closed

Description

@dezren39

Problem

fleet queue list --queue repo-health-code-pilot --status queued fails at larger limits while other statuses work:

  • --limit 3 (queued): works.
  • --limit 100, --limit 300, --limit 500 (queued): repo-queue: queue-broker /list reply had no rows array — refusing to report an empty list.
  • Same limits for --status claimed and --status blocked returned rows in the same window (2026-11-12 ~19:40–19:55Z).

Observed by lane any-b during task 12021 while dedupe-checking a follow-on packet: the queued-list failure makes "is there a live task for issue X" unanswerable via list at exactly the scale the queued set has (251 queued per health at 2026-11-12T19:10Z). The client correctly refuses to report an empty list, so the defect is in the broker /list reply for the queued set — possibly a row whose serialization breaks the rows array, or a reply-size/pagination cap.

Acceptance

  • fleet queue list --status queued --limit 500 returns the full queued set (or a well-formed paginated reply the client accepts).
  • A regression check covers listing a queue whose queued count exceeds the previous failure threshold (~100).

Found by: lane any-b, task 12021 shift, 2026-11-12.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  2. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    kind/testTest coverage, test infrastructure, or test-only fixes
    on Nov 17, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18804 (lane code-e)

    • Work kind: task/small-fix · Priority: priority/normal · Effort: effort/s · Kind: kind/test
    • Fresh state (2026-11-17): issue fleet queue list: broker /list reply has no rows array for --status queued at limits >=100 #9001 OPEN, no labels, no hard-stop labels. The reported failure no longer reproduces: run live today, fleet queue list --queue repo-health-code-pilot --status queued --limit 500 returned the full 500-row set (the queue holds ~1190 queued per health), where on 2026-11-12 limits ≥100 failed with "queue-broker /list reply had no rows array". The client guard that produced that error still exists (pkgs/fleet/crates/fleet-queue/src/client.rs:1219) — it simply no longer fires, because the broker reply is now well-formed at scale. This triage could not attribute the fix to a single commit (the one-queue broker deploy window is the likely carrier).
    • What remains: acceptance item 2 — a regression check covering a queued count above the ~100 threshold. No such test was found in the fleet-queue broker/client tests at triage.
    • Follow-on: task 20262 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:9001; packet hidden_files/18804-fix-packet-9001.json) — one hermetic regression test at the /list reply seam, or a citation of an existing covering test if one was missed. The issue stays OPEN for that remainder; the production behavior half of the acceptance is met and verified.
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — picked up by repo-worker-code (lane code-g, task 20262): remaining regression-test half of #9001.

  5. added a commit that references this issue on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — task 20262 (lane code-g, repo-worker-code)

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#11303) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · claimed — Lane LF (archer)

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — Lane LF (archer). Done check passes on current main + the live broker; closing as completed.

    Per the 2026-11-22 flow-review note, I ran the issue's done check. Both acceptance criteria verified first-hand today:

    Criterion 1 — production behavior (live broker, laptop fleet):

    • The pilot queue's queued set is currently 0, so I built the failing condition in a scratch queue (scratch-9001): enqueued 150 valid slice packets for this issue (health confirmed queued=150).
    • fleet queue list --queue scratch-9001 --status queued --limit 500 → all 150 rows returned, no rows-array error (the original failure).
    • --limit 300 → all 150 rows; --limit 100 → exactly 100 rows (well-formed limit truncation). The original failing thresholds (100/300/500) all pass.
    • Cleanup: all 150 proof tasks cancelled (ok=150 fail=0); the scratch queue reads 0 queued / 150 cancelled.

    Criterion 2 — regression coverage: pkgs/fleet/crates/fleet-queue/tests/chunked_list.rs (landed via PR #11303) is present on current main (ed65beca46e) and green: cargo test -p fleet-queue --features client,queue-broker --test chunked_list → 2 passed, exit 0 (worktree off the exact main head).

    Adjacent findings, filed separately (not part of this issue's acceptance):

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

    effort/sSmall: expected under 2 hours of workkind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)status: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