GeezerVison is showing github.com — feat(fleet-queue): SEL-01 pure reference selector — both predicates, hard gates, urgent predicate (#9491) by dezren39 · Pull Request #15186 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
SEL-01 — Pure reference selector (#9491)
Lands the SEL-01 slice of the #9204 queue-selection design in pkgs/fleet/crates/fleet-queue/src/work/selection.rs, the blocker in the #9206 chain (#9491 → #9440 → #9502). #9491's design gates are now all closed — PR #9225 merged, #9478 (PRI-01) closed, #9451 (DST-01) closed, #8097 closed — so the gated slice is workable; this follows the same pure-model pattern as SEL-06 (already in this module), CLI-01 (#9501) and PRI-01 (#9478). Pure model only: no persistence, no I/O, no live broker behaviour change.
What it adds
- Hard gates first, each with a typed
ExclusionReason: terminal lifecycle, persistent fleet queue: resume-by-session, claim-any-task, and manual-only items #9178 manual_only, unresolved hard dependency, incomplete graph evaluation (fails closed), policy-disabled, active lease, concurrency limit, incompatible ownership.
- Both predicates must apply (Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097): the task-requirement predicate (required capabilities ⊆ caller's, task platform pin matches caller's platform) AND the caller-filter predicate (repository filter). Either alone is not enough.
- Urgent predicate naming its qualifying classes from the active
PriorityProfile (critical, expedite by default in fleet.queue v1) — never a numeric threshold; cross-profile urgency is a typed PriorityError::ProfileMismatch. any_urgent over the eligible set is the exploration gate's input.
- Eligible candidates are ordered by the shared V2 comparator (
priority::compare_candidates); duplicate canonical identities are excluded with a typed reason; mixed profiles are rejected before ordering.
Tests
pmo_selection_requirements_and_filter_both_apply — the design's SEL-01 oracle, including its counterexample: a Linux task with a repo=code caller filter still excludes a Windows claimer.
hard_ineligible_never_selected — every hard gate excludes even a critical candidate.
urgent_predicate_names_classes_from_profile — class naming, untriaged never urgent, foreign-owned urgent work does not trip this lane's gate.
selection_orders_by_comparator_and_dedupes_identity.
Verification: remote dispatch via the fleet-command.yml workflow fallback (run https://github.com/developing-today/fleet/actions/runs/45679999117) running cargo test -p fleet-queue --lib --features client,queue-broker pmo_selection_ against this branch — result noted on #9491. (fleet queue dispatch itself remains blocked by TLS defect #13185.)
Refs #9491
Refs #9206
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…hard gates, urgent predicate (#9491)
Pure, persistence-free reference selector in work/selection.rs:
task-requirement and caller-filter predicates both apply (#8097),
hard gates with typed exclusion reasons, and an urgent predicate
that names its qualifying classes from the active PriorityProfile.
Eligible candidates order by the shared V2 comparator. No live
broker behaviour changes.
Refs #9491, #9206
Warning
Review limit reached
You'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 2 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ba40aee0-6472-45f0-af24-b74081c240b5
Commits
-
Reviewing files that changed from the base of the PR and between 536ad2e and 9874078.
Files selected for processing: 1
-
pkgs/fleet/crates/fleet-queue/src/work/selection.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Verification re-dispatch (xaltha lane, 2026-11-25 ~14:50 CST): prior run 45679999117 was cancelled. Re-dispatched once via the fleet-command.yml fallback in developing-today/fleet (#13185 blocks fleet queue dispatch), same command cargo test -p fleet-queue --lib --features client,queue-broker pmo_selection_ on branch xaltha/9491-sel01-selector. New run: https://github.com/developing-today/fleet/actions/runs/45698655753 — result pending. CI logs not read (log-readback is the held class on #14553).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
|
Agent note · shepherd verification failed — task 23999 PARKED, PR #15186 NOT merged (lane WE, 2026-11-26)
- Fresh verification run https://github.com/developing-today/fleet/actions/runs/45844002600 (
cargo test -p fleet-queue --lib --features client,queue-broker pmo_selection_ on xaltha/9491-sel01-selector, head 98740787ca1dc70a9f5e11645b36536118833113) concluded completed / failure (updated 2026-11-26T15:03:42Z, metadata via API; no CI logs read — log-readback is the held class on main CI failure: pm-stack tests (run 45464688533) #14553).
- This is the third non-pass in a row for this head: 45679999117 cancelled, 45698655753 failure, 45844002600 failure. That is not a verified head, so the PR was not merged despite being
MERGEABLE / CLEAN with no review findings.
- Queue task 23999 is parked with reason
pr-verification-failing.
- Ready condition (non-person): resume shepherding PR feat(fleet-queue): SEL-01 pure reference selector — both predicates, hard gates, urgent predicate (#9491) #15186 when a verification run of that exact cargo test command on head
98740787ca1dc70a9f5e11645b36536118833113 (or a successor head that fixes the failure) concludes success, OR a lane cleared for log-readback diagnoses the failure cause in runs 45698655753 / 45844002600 and a fix lands on the branch. On wake: re-check mergeability against current main immediately before merging, merge via merge-commit only if verified, do NOT re-implement.
- Links: PR feat(fleet-queue): SEL-01 pure reference selector — both predicates, hard gates, urgent predicate (#9491) #15186 · runs 45698655753, 45844002600 · queue task 23999
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Shepherd re-check (xaltha lane, 2026-11-26 09:41 CST hourly run, queue task 23999):
- Mergeability re-checked against current main: MERGEABLE / CLEAN, head unchanged at 9874078 on
xaltha/9491-sel01-selector.
- Review findings: none outstanding. The only review comment is CodeRabbit's rate-limit notice (no findings); no human review decision recorded.
- Verification: still failing on the exact head. Runs 45698655753 and 45844002600 (fleet-command.yml fallback,
cargo test -p fleet-queue --lib --features client,queue-broker pmo_selection_) both fail at the "Execute target command" step; setup/checkout steps succeed. Static review of selection.rs at this head shows no obvious defect, so diagnosis requires the CI log.
- CI logs were NOT read: log-readback is the held execution-risk class on main CI failure: pm-stack tests (run 45464688533) #14553 (consolidated decision Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2, still awaiting the owner). Per that hold, this PR is not merged while verification fails on its exact head.
Resume condition (unchanged): a verification run on this head or a successor fixing head concludes success, or a log-readback-cleared lane diagnoses runs 45698655753/45844002600 and a fix lands on this branch. Task 23999 re-parked with that condition.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|