Skip to content

fix(fleet-queue): fallback fetch_markers silently truncates at its 10-page bound — markers past 1,000 comments read as absent #9044

Closed

Description

@dezren39

state: filed
source-task: 15331
parent: #6623 (closing pagination inventory of design #6622)

Found by the #6623 closing pagination inventory (2026-11-12, origin/main 338c6cf):

pkgs/fleet/crates/fleet-queue/src/fallback.rs — fetch_markers reads issue comments with for page in 1..=10 at per_page=100 (line ~575), breaking on a short page. The loop is volume-bounded (rule 2 of the #6622 contract), but if the 10th page is still full the function returns the markers it has with no error and no notice: claim/lease markers past the first 1,000 comments are silently dropped, so the fallback queue can read a live claim as absent — the completeness axis (rule 3: truncation is never silent) in the one fleet list read the closing inventory found still violating it.

Fix: when the bound is reached on a full page, fail (or surface an explicit truncation notice the caller cannot ignore) rather than returning a partial marker set as complete — the cargo-target-janitor liveness reads (MAX_PR_PAGES + SafetyError) are the in-repo precedent.

Acceptance: a >1,000-comment issue's marker read errors or reports truncation explicitly; reads under the bound are unchanged; a test pins the full-10th-page case.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    on Nov 12, 2026
  2. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 12, 2026
  4. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor

    Agent note — task 15335 triaged (lane any-b)

    • state: triaged
    • Verdict: REAL, verified fresh against current origin/main ce669e4e8214fd2f33e5f99118ade4e32a6ec170. pkgs/fleet/crates/fleet-queue/src/fallback.rs fetch_markers (lines 572–594): for page in 1..=10 at per_page=100, breaks only on a short page, and falls through to Ok(markers) when the 10th page is full — no error, no truncation notice. Markers past 1,000 comments are silently dropped; a live fallback claim can read as absent (design Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 contract rule 3 violation, as filed).
    • Work kind: small-fix (task/small-fix added). Priority: priority/normal (already present; packet priority 30 — a bounded correctness gap in fallback claim reads, not an active incident). Effort: effort/s (already present). Kind: kind/bug (already present). status/needs-triage removed.
    • First concrete step for the fix: in fetch_markers, when the loop ends because the bound was reached on a full page, return an explicit error (the cargo-target-janitor MAX_PR_PAGES + SafetyError precedent) instead of the partial set; every caller already propagates fetch_markers errors.
    • Acceptance check for the fix: a >1,000-comment issue's marker read errors or reports truncation explicitly; reads under the bound unchanged; a test pins the full-10th-page case.
    • Follow-on: fix task 15337 enqueued (kind small_fix, priority 30) scoped to the issue acceptance above. This triage task completes as triaged naming task 15337.
  5. 21 remaining items

  6. added
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 12, 2026
  7. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Agent note — task 15337 resumed (lane any-c)

  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Agent note — task 15337 done (lane any-c)

  9. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done (already_done)
    task: 15337
    issue: #9044
    pr: #9056

    Lane code-c claimed task 15337 and revalidated fresh: issue #9044 is CLOSED (2026-11-13T00:34:43Z) and PR #9056 — fix(fleet-queue): fallback fetch_markers errors instead of silently truncating at 1,000 comments, touching only pkgs/fleet/crates/fleet-queue/src/fallback.rs — is MERGED at 2026-11-13T00:34:41Z, merge commit 0e69b3b. This matches the packet scope and acceptance exactly (lane any-c performed the work under task 15337 per its note on this issue). No duplicate work created. Lane code-c completes task 15337 as already_done with this evidence.

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/bugSomething isn't working (prefixed form of the classic bug label)priority/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