Repository navigation
feat(queen): a runner bee that left no bundle is judged empty after the card's grace, behind TRIOS_QUEEN_NO_BUNDLE_EMPTY (Closes #1886) - #2044
Conversation
β¦he card's grace, behind TRIOS_QUEEN_NO_BUNDLE_EMPTY (Closes #1886) The review now asks reviewer.t27 no_bundle_is_empty (gHashTag/t27#9069, spec PR t27#9095) where it used to write `wait` for "the diff of queen-N could not be read". With TRIOS_QUEEN_NO_BUNDLE_EMPTY=on, a finished runner row has no stored bundle and finished NO_BUNDLE_GRACE_MINUTES (10) or more ago. Its branch is then read as a branch with no commit, so the row is judged exactly as a container bee that committed nothing: `empty`, or the existing dead-letter escalate, and its issue is free after the retry floor. Inside the grace it still waits. The flag is off by default; off, the review asks nothing new and writes what it wrote before. - reviewer.t27 re-vendored byte-identical from the t27 PR head; reviewer.wasm rebuilt with every fn exported, no_bundle_is_empty included (two builds, one hash); PIN and the gen-ts constants updated. - queen-review-loop.ts: the card call and the flag, next to the reviewer card's other calls. - queen-export.ts runnerBundleFacts: whether queen_bundle holds the issue's bundle and the minutes since this attempt finished, in one statement. - Tests: queen-no-bundle.test.ts (flag off byte for byte, inside and past the grace, a container row, a stored bundle, a bundle 40 s late) and queen-no-bundle-bench.test.ts, which replays the recorded 07:10-10:31Z window through the real sweep, flag off against flag on. Part of gHashTag/t27#9021. Re-issued on the dmitrii-f-t27 lane from #1891 (original commit 216a6dc, author @gHashTag). Co-authored-by: Dmitrii Vasilev <raoffonom@icloud.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 adds a feature flag Worth a look
Read: 11 files, +1394 -6, the whole diff up to 60000 characters (the rest was not read). Head |
β Tests passed β 3915/3988
|
What this does
A runner bee that commits nothing leaves no bundle, so the reviewer's diff fails and the row answers
waitfor up to six hours while its issue stays claimed. This addsreviewer.t27'sno_bundle_is_emptyand wires it into the review sweep: withTRIOS_QUEEN_NO_BUNDLE_EMPTY=on, a finished runner row with no stored bundle is judgedemptyafter a 10-minute grace, exactly as a container bee that committed nothing already is. A bundle that arrives inside the grace is still judged on its branch.The flag is off by default: without it the code asks nothing new and every verdict is byte-identical to today's.
Provenance
This is a re-issue of #1891 by @gHashTag (original commit
216a6dc072), rebased onto today'squeenso the dmitrii-f-t27 lane can carry it. The original commit did not apply cleanly:queengained the region-merge check in the meantime. Both features are additive and are kept:queen-reviewer.tsandqueen-tick.tsnow carry bothregionCheck(regions) andrunnerBundleFacts(no-bundle);specs/PINkeeps today'sholdshashes and the newreviewerhashes;queen-tick.tsgained the missingGC_RV_SEND_BACK/GC_RV_WAITimport that today'squeenuses but does not import β without itbun run typecheckfails onqueenitself.The original author is credited in the commit trailer.
Verification
biome ci .β 0 errors (120 pre-existing warnings).bun run --cwd apps/server typecheckβ exit 0.bun test apps/server/tests/api/queen-no-bundle.test.ts apps/server/tests/api/queen-no-bundle-bench.test.tsβ 17 pass, 0 fail, 1032 expect() calls.bun run --cwd apps/server test:apiβ 2220 pass, 72 skip, 18 fail; all 18 are environment-bound on this Mac (missingage-keygen, failing localgit clonein vault/salvage fixtures), none touch the changed files. CI is the authority here.Live context
/queen/statusat 2026-10-18 02:59Z: capacity 70, active 12, unreviewed 328,reviewedLastHour 3,finishedLastHour 72. Measured 2026-10-11: 425 of 480 reviewer visits answeredwaitfor a missing runner bundle. The six-to-seven-minute review rounds are also what makes the HUD printround stale.Refs: gHashTag/t27#9021, gHashTag/t27#9069, #1886, #1891.
Dmitrii Fedorov (@dmitrii-f-t27)