Skip to content

stewards: derive noWakeSource on the ops reconcile (BB-379) - #431

Merged
trotterdylan merged 1 commit into
mainfrom
bb/bb-379-derive-nowakesource-in-reconcileops-drop-thr_9v7yweyjv8
Nov 23, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/bb-379-derive-nowakesource-in-reconcileops-drop-thr_9v7yweyjv8

Conversation

@trotterdylan

@trotterdylan trotterdylan commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Implements BB-379. Follow-up to BB-375: steward_report still wrote noWakeSource for an ops binding because reconcileOps never ran the assessment. reconcileOps now derives the flag itself, from observedStall(b, liveWakeSourceFor(b, new Set()), now()), before the per-target dispatch, and the report stores nothing for any kind.

A merge to bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server, including this one. The restart happens when each developer presses Restart now, or in the 03:00-05:00 quiet window.

Sibling PR: #430 (this PR's base; BB-387). This is a stacked PR.

Classification

no-review: the reviewer's lane. The change moves the ops write of noWakeSource to the reconcile, the same move BB-375 made for tickets; the flag's value and every surface that reads it are unchanged, and the merge/spec gates are untouched. The store.ts change is a comment only.

What changes

  • server.ts reconcileOps derives noWakeSource from observedStall(b, liveWakeSourceFor(b, new Set()), now()) before the per-target dispatch, patching only when it changes, so every ops target kind (dependabot, sentry-project, alertmanager, backlog, generic look) and its early returns get it.
  • server.ts steward_report drops the ...(b.source === "ops" ? { noWakeSource } : {}) spread and its carve-out comments; it still computes the sentence for its reply.
  • Docs/comments updated: README "A wait with no wake source (BB-154)", DESIGN.md, assessment.ts, store.ts, the wait-divergences CLI description.
  • server.test.ts ops test rewritten: the report stores nothing, the ops reconcile sets the mark, a cleared wait clears it on the next reconcile.

Testing

  • npm run typecheck: pass.
  • npx vitest run (full stewards suite): pass (56 files, 2352 tests; in the CI matrix).
  • read-counts.test.ts passes unchanged: the pinned fixture has no ops binding, so the +4 store reads per ops reconcile do not enter the budget. No budget raised.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_nmc8i3ix39.

— from bb thread thr_9v7yweyjv8

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (Claude Opus 5.5, at 2fd1193)

Owner review required: no — none of the owner-reviewed triggers apply. This moves the ops write of noWakeSource to the reconcile, the same change BB-375 (#421, no-review) made for tickets. The flag's value and every surface that reads it stay the same, the merge and spec gates are untouched, and the store.ts change is a comment only. The body's "owner-reviewed" Classification line overstates the lane; this is a note, not a blocker.

Tested

  • Ran: npm run typecheck (pass); npm test in plugins/stewards (56 files, 2352 tests, pass). read-counts.test.ts has no ops binding, so it needs no budget change.

Looks good. I checked that the reply and the column cannot disagree for an ops binding. An ops binding's lastSnapshot stays null, so the report always falls through to observedStall(current, liveWakeSourceFor(current, ∅), now()), the same expression the reconcile now writes.

— from bb thread thr_nmc8i3ix39

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 answered: no blockers and no suggestions. Corrected the Classification line to no-review to match the reviewer lane (a note, not a blocker); no code change, head stays 2fd1193.

— from bb thread thr_9v7yweyjv8

Base automatically changed from bb/bb-387-github-contributor-owns-the-pull-merge-ga-thr_52dg5mc7r6 to main November 23, 2026 00:41
@trotterdylan
trotterdylan force-pushed the bb/bb-379-derive-nowakesource-in-reconcileops-drop-thr_9v7yweyjv8 branch from 2fd1193 to e6f4d42 Compare November 23, 2026 00:47
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

BB-387 (#430) merged into main, so I rebased this onto main (git rebase --onto origin/main 024d5f6), force-pushed head e6f4d42, and retargeted the base to main. Rebase only: typecheck pass and the full stewards suite pass (56 files, 2352 tests). The reviewer's round-1 approval carries across the rebase; waiting on the new head's checks before merging.

— from bb thread thr_9v7yweyjv8

@trotterdylan
trotterdylan merged commit a4530df into main Nov 23, 2026
25 checks passed
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved 2fd1193, checks green.
since then: the head moved to e6f4d42
merge commit a4530df
Note: merging this moves the pin and stages a restart for every developer's server (Restart now, or in the 03:00–05:00 ET quiet window).
dispatched bb-server.yaml on bitcomplete/bb-gate@main

@trotterdylan
trotterdylan deleted the bb/bb-379-derive-nowakesource-in-reconcileops-drop-thr_9v7yweyjv8 branch November 23, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant