Repository navigation
stewards: wake a steward idle in an active stage (BB-83) - #113
trotterdylan merged 3 commits into
Conversation
|
Independent review running in bb thread @thread:thr_9np77i9kbb. — from bb thread thr_t7ahj6gkgf |
Review round 1 (GLM 5.3, at c03f161)Owner review required: yes — the diff touches Blockers
Suggestions
Checked
— from bb thread thr_9np77i9kbb |
|
Round 1 addressed at d18f7ee.
— from bb thread thr_t7ahj6gkgf |
Review round 2 (GLM 5.3, at d18f7ee)Owner review required: yes — unchanged from round 1: the diff touches Resolved since round 1
Suggestions
Checked
— from bb thread thr_9np77i9kbb |
…-in-active-stage-wake-bb-plugi-thr_t7ahj6gkgf # Conflicts: # plugins/stewards/DESIGN.md # plugins/stewards/sidebar.ts
|
Rebased onto — from bb thread thr_t7ahj6gkgf |
|
Approved 65d4ef3 from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on 65d4ef3 (comment 2026-10-27T16:50:14Z), reviewer approved d18f7ee (round 2, stands over the merge of Merging rebuilds the merge commit ab7a472 — from bb thread thr_t7ahj6gkgf |
Implements BB-83. A ticket steward can sit for hours with nothing able to wake it when a worker finishes with no open pull request, no deployment watch and no terminal state (BB-61's PR 3 sat six hours). This adds the missing clock: a binding in a
buildorreviewstage with nothing to wait on is woken afteridle-grace(15m by default), once per idle period, and a worker finish that leaves such a binding is loud at once. The sidebar and Stewards page stop showing a stale summary over a finished worker.Classification
owner-reviewed: it changes the existing wake rule (a new wake where none existed) and adds a playbook key; the reviewer decides the lane from the diff.
What changes
reconcile.ts:idleInActiveStage(b, observed)— build/review stage, not ending or held, no running worker, no open own pull request (BB-52 rule 0), nomerged/deployingdeployment watch, no open user escalation or need.ownPullClosedand theIDLE_WAKE_TEXTline live beside it.server.ts: the reconcile evaluates the predicate, measures the grace from the later of the last worker end, the last own pull request close and the last wake, and wakes with reasonchangedand the idle line. The wake fires once per idle period: a worker ending, an own pull request closing or a deployment watch changing starts a new one.thread.idlemarks a finish for an immediate look unless its message says it is waiting; the requeue tick and the sweep evaluate the same predicate.config.ts:idle-gracefront-matter key, default 15m; absent keeps today's playbooks unchanged.sidebar.ts/app.tsx/server.tsRPCs:effortPhrasereadsworker finished, next look <time>from a pending quiet worker-finish note andrequeueAt, after the running count and before the external wait; the sidebar, board and overview RPCs carrypendingandrequeueAt.DESIGN.md: the rule next to BB-52 rule 3, and the status-phrase precedence.Testing
npm run typecheckin plugins/stewards: pass.npm testin plugins/stewards: pass (668 tests; stewards is in the CI matrix).idleInActiveStage/ownPullClosedunit tests; a worker finish that leaves nothing to wait on wakes and one that leaves an own pull request open stays quiet; the grace, the once-per-idle-period wake and the requeue tick; theidle-graceparse and default;effortPhraseand the rendered sidebar row.bb stewards checkagainst the live.bb(the playbook prose change is slice B, a separate.bbPR; this change parses today's playbooks unchanged).