Skip to content

stewards: schedule overlapping tickets one after another - #38

Merged
trotterdylan merged 2 commits into
mainfrom
bb/the-project-steward-should-take-care-about-sched-thr_8dih33k3e3
Oct 20, 2026
Merged

trotterdylan merged 2 commits into
mainfrom
bb/the-project-steward-should-take-care-about-sched-thr_8dih33k3e3

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Why

Tickets that change the same files were being built in parallel, and whichever merged second paid for it in rebases, often several times through the review loop. Nothing told the project steward what each ticket touched, nothing stopped a non-substantial ticket going straight from Todo to a worker, and nothing woke anyone when the blocking PR merged.

What

  • steward_report { touches }: the repo-relative paths a binding's work changes, repo directory first. Two bindings overlap when a touch of one is, or is inside, a touch of the other (schedule.ts, unit-tested).
  • schedule escalation: when a ticket's ready gate passes while another binding is building or reviewing on the same paths, the plugin asks the project steward to schedule it, the way it asks for approvals. The ticket steward's wake and report reply say to start no workers until it is decided. A decided request is not re-asked until a new overlap appears.
  • steward_update { hold, behind: [keys] }: a hold that waits behind named bindings. It lifts itself, wakes the held steward with a "rebase before building on" note, and tells the project steward, once every binding named has merged its pull requests or ended. Work whose PRs have all merged no longer counts as in flight.
  • Wakes, bb stewards list and show print touches, overlaps and what a hold waits behind. The project steward's intro, the default playbook, the skill and the README explain the flow.

Lane

Owner-reviewed: three new columns on bindings (a store migration, append-only). Everything else is additive; a binding that reports no touches behaves exactly as before.

Companion

The project playbook and AGENTS.md changes are on the same branch in .bb (published as a guidance branch). Merge this first; they refer to touches and behind.

Shipping

Merging moves the bb-server pin: a new image is built and a restart is staged for every developer's server (Restart now, or the 03:00 to 05:00 ET quiet window).

Tests

npm run typecheck and npm test in plugins/stewards: 209 tests pass, including three new end-to-end scheduling tests and four unit tests for overlap detection.

🤖 Generated with Claude Code

@trotterdylan
trotterdylan force-pushed the bb/the-project-steward-should-take-care-about-sched-thr_8dih33k3e3 branch from 2308227 to d5ea86a Compare October 20, 2026 11:39
trotterdylan and others added 2 commits October 20, 2026 13:17
Two tickets changing the same files on two branches end in a rebase for
whichever merges second. The project steward now sequences them:

- steward_report takes `touches`, the repo-relative paths the work changes;
  two bindings overlap when a touch of one is, or is inside, a touch of the
  other (schedule.ts).
- When a ticket's ready gate passes while another binding is building or
  reviewing on the same paths, the plugin files a `schedule` escalation with
  the project steward, like the approval request, and the ticket steward is
  told to start no workers until it is decided. A decided request is not
  made again until a new overlap appears.
- steward_update takes `behind` with a hold: the keys the hold waits behind.
  The hold lifts itself, waking the steward and telling the project steward,
  once every binding named has merged its pull requests or ended. Work whose
  pull requests have all merged no longer counts as in flight.
- Wakes, `bb stewards list` and `show` print touches, overlaps and what a
  hold waits behind; the default playbook, skill and README say how to use it.

Store: three new binding columns (touches, hold_behind, schedule_asked).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- A ticket whose gate has passed with nothing holding or scheduling it is
  cleared to start and counts as in flight at once, so a second ticket going
  ready before Linear shows the first In Progress schedules against it
  instead of racing it.
- A binding reaching a terminal state, or detached, releases the holds
  waiting behind it as its ending begins, not when it finishes: a wrap-up
  turn that follows through for hours no longer delays the lift.
- A hold that would wait, directly or through other holds, behind the
  binding being held is refused as a cycle.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@trotterdylan
trotterdylan force-pushed the bb/the-project-steward-should-take-care-about-sched-thr_8dih33k3e3 branch from fc993ee to c510b3d Compare October 20, 2026 13:18
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

LGTM

@trotterdylan
trotterdylan merged commit 46b7853 into main Oct 20, 2026
20 checks passed
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