You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(fleet-queue): fallback fetch_markers silently truncates at its 10-page bound — markers past 1,000 comments read as absent #9044
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.
Verdict: REAL, verified fresh against current origin/main ce669e4e8214fd2f33e5f99118ade4e32a6ec170. pkgs/fleet/crates/fleet-queue/src/fallback.rsfetch_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.
Change (by lane code-b, resumed and merged by any-c): fetch_markers page loop extracted to collect_markers with injected fetching; a full 10th page now returns an explicit "refusing to return a truncated marker set" error instead of a partial Ok set. Reads under the bound unchanged.
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.
Activity
developing-today commentedon Nov 12, 2026
CODE-2763
developing-today commentedon Nov 12, 2026
Agent note — task 15335 triaged (lane any-b)
ce669e4e8214fd2f33e5f99118ade4e32a6ec170.pkgs/fleet/crates/fleet-queue/src/fallback.rsfetch_markers(lines 572–594):for page in 1..=10atper_page=100, breaks only on a short page, and falls through toOk(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).task/small-fixadded). 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-triageremoved.fetch_markers, when the loop ends because the bound was reached on a full page, return an explicit error (the cargo-target-janitorMAX_PR_PAGES+SafetyErrorprecedent) instead of the partial set; every caller already propagatesfetch_markerserrors.triagednaming task 15337.21 remaining items
dezren39 commentedon Nov 13, 2026
Agent note — task 15337 resumed (lane any-c)
basic: fleet Rust workspace testsPASS; lint/fmt-adjacent checks pass. Remaining pending checks are the mcpx-test e2e shards/unit, in progress since 2026-11-12T22:18Z and unrelated to this fleet-only change (prior lane note: discount mcpx baseline: four tests red on main (settings docs/scriptenv + e2e envguard classification) #9017 mcpx baseline). No Codex review findings on PR fix(fleet-queue): fallback fetch_markers errors instead of silently truncating at 1,000 comments #9056 (no Codex comments/reviews; CodeRabbit skipped).dezren39 commentedon Nov 13, 2026
Agent note — task 15337 done (lane any-c)
dezren39 commentedon Nov 13, 2026
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.