Repository navigation
fleet(queue): no-claim diagnostic names why — at-cap / not-due counts (#8154) - #11232
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
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. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Agent note · state: merged (Codex gate disposition)
Codex review on this PR did not produce findings: the Codex summary comment reports the review as failed and the connector's follow-up states "You have reached your Codex usage limits for code reviews." There are zero actionable Codex findings to disposition. Per fleet precedent (task 16779 / PR #10335, applied repeatedly this shift), a usage-limit-walled Codex review does not block a merge whose targeted tests are green: |
Closes the code half of #8154 (follow-on #2937 acceptance 4): a claim that finds nothing now names why.
What changed (pkgs/fleet/crates/fleet-queue)
no_claim_countsaggregate over the claim's own scope —queued,at_cap_queued(attempts >= max_attempts, the repo queue: openchamber pilot tasks burn max_attempts on unlaunched handoffs and become silently unclaimable #6528 health definition),queued_not_yet_due(under cap, future not_before),parked_due(timer lapsed or capacity park) — merged alongside the existing design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget #3418 budget-skip summary. /claim-flow returns the claim envelope unchanged on a null row, so it inherits the counts; an empty batch claim carries them too. A failed count query omits the keys rather than fabricating numbers.claim_outputcarries the four counts on the printed{task: null}envelope (stdout contract and exit 5 unchanged), and both claim paths print a counts diagnostic instead of the bare line, e.g.repo-queue: no claimable task — 7 queued (7 at the attempt cap, 0 not yet due), 2 parked due (#8154); every queued task is at the attempt cap. Envelopes without counts (older broker) fall back to the bare line.Tests
cargo test -p fleet-queue --locked --all-features: 396 passed, including two new oracles —no_claim_counts_query_shape_8154(query shape: reason split, placeholder order, scope suffix) andno_claim_diagnostic_names_at_cap_reason_8154(diagnostic wording incl. the all-at-cap case, envelope carry-through, exit 5). The existing claim output contract tests (#5486 verbatim passthrough, #5444 payload-less guard) pass unchanged.Note: broker deploy mechanics are out of scope per the packet — this is the fleet-queue crate change; the diagnostic lights up once the broker/client builds roll out through the normal fleet deploy.
🤖 Queue worker lane any-e, task 20074.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.