Repository navigation
Description
Problem
A bb-collab dispatcher/director pair produced repeated wakes from two distinct BB paths for the same lane state:
- the dispatcher explicitly sent a progress/status
bb thread tellto the director; and - about 5.2–9.9 seconds later, BB automatically forwarded the dispatcher's thread-completion message as a
[bb system] @thread ... completedwake.
The director received 93 wakes at roughly 2–4/minute. In one bounded director-log sample, there were 34 explicit dispatcher tells and 41 automatic system completion forwards, including 18 adjacent duplicate pairs. The pairs were not two plugin watcher events.
The bb-collab implementation was audited at exact origin/main 1343b4468e5774c873e7cc17530006cc5f328abe. Its only threads.send calls target registered waiters, lane workers, and canonical role holders; it contains no director-tell or automatic completion-forwarding implementation. A narrowly scoped bb-collab patch was independently rejected and reverted because it could not guard the real sender seam. Fleet mitigation is to stop explicit progress/ack/dispatch tells; only terminal DONE|BLOCKED and decision-class messages should enter the director.
Requested BB-core behavior
At the BB dispatcher/runtime send seam:
- director-bound traffic accepts only one terminal
DONE|BLOCKEDreceipt per lane or a decision-class item; - progress updates, rollups, dispatch confirmations, and acknowledgements are not forwarded to the director;
- duplicate delivery is durably coalesced by
(lane identity, event identity)before sending; - an ambiguous send result retains the reservation and suppresses blind retry;
- the native receipt exposes the dedupe key/source so a plugin can verify expected/attempted/verified delivery.
The automatic completion-forward path and explicit tell path must share this contract, not emit independent turns.
Acceptance
- A terminal lane completion produces at most one director wake.
- A decision-class message produces at most one director wake.
- Repeated progress/ack/dispatch messages produce zero director wakes.
- Explicit tell plus automatic completion for the same lane/event coalesce to one delivery.
- Restart/retry does not duplicate a reserved delivery.
- Archived/deleted/unknown targets fail closed.
- Existing ordinary parent completion behavior remains unchanged for non-director parents.
Related project evidence: pixexid/bb-collab issue #57, mechanism 8 / registered waits.
Activity
SawyerHood commentedon Sep 9, 2026
Tracked as a sub-issue of #3050. The parent now covers the shared scope and links this implementation. This issue retains its distinct evidence and acceptance criteria and remains open until that work is complete.