feat(queen): the Queen's priority, decided in t27, and tri priority (Closes #6366) - #6367
Merged
Merged
Conversation
#6366) specs/queen/priority.t27 owns the rule: label vocabulary per level, a cap of 3 criticals, blocked issues skipped, one level of aging for labelled work, listing order as the tie-break. tri queue prints today's order beside it, deciding only through gen/c/queen/priority.c (gen-c SAME on the t27c lab). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
#6366) scripts/tri_loop/queue.py shadowed the stdlib queue for every tool run from scripts/tri_loop (tri stranded failed: queue has no SimpleQueue). Renamed to priority.py. The shell census moved: run: steps 287->288 and runner-named 266->267, the one new step 'The Queen's priority is decided in t27'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-10-05 05:54:38 UTC
Summary
Seal Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #6366. Refs #6063.
What
specs/queen/priority.t27: the one home of the priority rule.P0,priority/critical,critical; HIGHP1,priority/high,high-priority; NORMALP2,priority/medium; LOWP3,P4,priority/low.issue_dependencies_summary.blocked_by) skips the issue.tri priority: read-only; prints today's listing order beside the priority order. It decides only throughgen/c/queen/priority.c+ ctypes, and reads the vocabulary from the same compiled file.loop-tools-gatestepThe Queen's priority is decided in t27. It runs the spec tests from the generated C, fixtures for every rule (including stokowski's "no priority sorted ahead of urgent"), and a reversedoutranksas the mutation control.Evidence
t27c test-report specs/queen/priority.t27: 8 pass, 0 fail. Negative control: a broken assert reports FAIL 1.tri t27b gen-check --spec specs/queen/priority.t27 --gen gen/c/queen/priority.c:SAME 004ef75d1697on the t27c lab.python3 scripts/ci/test_the_queen_ranks_by_priority_t27.py: all three halves ok.tri priorityon gHashTag/t27: 858 open issues, 3 priority-labelled (Spec: the card-chat night watch -- open, comment, close or leave the regression issue (specs/automation/card-chat-night-watch.t27) #5701, Spec: the review jam -- which case a stuck pull request is in, and the Queen's action (specs/automation/review-jam.t27) #5700, EPIC: a kanban card opens its agent conversation -- history, mobile sheet, A2A on the same thread #5388), 0 blocked.Design sources
A survey of Copilot coding agent, Devin, OpenHands, Cursor, Jira rank, the Kubernetes priority queue, Sidekiq and stokowski. None of them picks the next task for you. The failure modes guarded here: starvation, priority inflation, head-of-line blocking, and "no priority" sorting ahead of urgent.
Not here
trios/agent-server) still ignores labels. It changes in its own PR, which the owner decides because merging there deploys production.specs/queen/dispatch.t27PRIORITY_RULE still describes the running Queen. It changes when that PR lands.🤖 Generated with Claude Code