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
Agent UX: pm next ready queue is documented as ranked but is not priority-ordered (no rank/score exposed) #513
pm next --help describes the output as "the ranked ready and blocked queues" and the recommended item is correctly chosen highest-priority-first (reason: "priority p0 (highest)"). However, the ready[] array in pm next --json is not ordered by priority, matches no other documented field (creation, updated_at, order), and carries no rank/score field — so a JSON-consuming agent cannot trust or reconstruct the ranking.
recommended.priority = 0 ("Login fails on Safari") ✅ correct
ready[] priorities = [1, 3, 2] ❌ not ranked
[1, 3, 2] matches neither priority order (1,2,3), creation order, nor updated_at order (1,2,3). Each ready item has order: null, reasons: null, and no score/rank key.
Why it matters (project management = context management)
The docs promise a ranked queue; agents reasonably treat ready[0] as the next-best pick.
Agents must re-sort client-side (extra tokens + logic) to recover the intended order, defeating the "answers what to work on in one read" goal.
Suggested fix (either)
Sort ready[] by the same ranking used to choose recommended (priority-first, then existing tie-breakers), so ready is a true continuation of the recommendation; or
Expose the composite rank/score (and reasons) on each ready item so consumers can sort deterministically without guessing.
Option 1 is the least-surprise fix and makes ready[0] the correct answer after the recommended item is claimed.
Filed while dogfooding the pm fleet. Happy to test a patch.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Jul 11, 2026
🔗 Related PRs
#390 - Fix pm next closeout-row projection [merged]
#428 - Harden SDK extension runtime packaging [merged]
#431 - Add SDK boundary inventory ratchet [merged]
#487 - feat(sdk): adaptive context relevance and evaluation gates [merged]
#502 - Atomic agent work selection, dependency integrity, and recovery primitives [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
chore(pm): reconcile PR#512 lane (7-close resolution backfill, faucet…
unbraind commentedon Jul 11, 2026
pm tracker item:
pm-1mwk— Agent UX: pm nextreadyqueue is documented as ranked but is not priority-ordered (no rank/score exposed) #513: pm next ready[] documented as ranked but not priority-ordered; no rank/score exposed