Repository navigation
queen: no backlog dispatch while finished work waits in review (review_first card, t27#10555) - #2046
Conversation
β¦w_first card, gHashTag/t27#10555) Behind TRIOS_QUEEN_REVIEW_FIRST=on. After the owner's assignments are put first, the round counts the review queue with the card's in_review_queue (the sweep's own filter: started, finished, review_state NULL or 'wait', not reaped, issue open) and keeps only the candidates the card admits: send-backs and assignments at any queue length, backlog only when the queue is empty. When the rule held every candidate and capacity was not the reason, the tick's refusal reads "<n> dispatches wait in review; ...". Card, wasm (310 bytes, two builds one hash) and gen.ts are tool-written; 38 hand-written TS lines added to queen-tick.ts, no new foreign file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary by t27-beesChecked by the t27 compilert27c parse, parse-complete and typecheck on each changed .t27 file at
Read by the modelThis PR wires the "review first" rule (t27#10555) into the Queen's tick: when Worth a look
Read: 5 files, +263 -0, the whole diff. Head |
β¦through (t27#10555) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Taking the points in order:
|
β Tests passed β 3915/3988
|
Wires gHashTag/t27#10555 (spec PR gHashTag/t27#10562): the owner's rule that the Queen takes nothing from the backlog while finished work waits in review.
What it does
runRound(queen-tick.ts), after the owner's assignments are put first and before queend is asked to choose, behindTRIOS_QUEEN_REVIEW_FIRST=on:in_review_queue, over every started and finishedqueen_dispatchrow. This is the review sweep's own filter, the one/queen/statuscounts asreviewable: review_state NULL or 'wait', not reaped, issue still open (all rows count as open before the board is read, as on the status page);kind_of(owner-assigned > review sent back > backlog) and keeps only thoseadmitslets through. Send-backs and assignments are admitted at any queue length; backlog only while the queue is empty (REVIEW_QUEUE_MAX = 0);round_refusedsays the rule held every candidate, and queend's answer was not the capacity refusal, the tick's refusal reads<n> dispatches wait in review; the backlog is closed until the review queue is empty. That is whatlastTick.refusalon/queen/statusshows.TRIOS_QUEEN_DISPATCH=actors).Why
Measured 2026-10-18 17:09Z on api.t27.ai/queen/status: 69 of 70 workers busy; last hour 102 dispatched, 56 finished, 11 reviewed; reviewable 29. About nine bees started per verdict, and each new bee held files the bees already in review needed when sent back.
Own-language budget
Hand-written TS: 38 added lines in queen-tick.ts, 0 deleted, no new foreign file. The card (byte-identical to t27 at sha256 c0ec4028...), its wasm (310 bytes, two builds, one hash) and
queen-review-first-card.gen.ts(t27c gen-ts) are tool-written; PIN lines added.Evidence and what is not verified
On the Railway lab: the card's 8 tests pass, the seal verifies, and 17 of 17 hand mutants are killed (gHashTag/t27#10562). The TypeScript wiring itself has not been executed: the lab has no bun, and nothing heavy runs on the Mac. CI on this PR is the first run of the changed TS.
Not in this PR
TRIOS_QUEEN_REVIEW_FIRST=onon trios-agent-server (merging toqueendoes not deploy).π€ Generated with Claude Code