You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Batch routine child results into one orchestrator wake #507
Part of #506 (plan: #506 (comment), change 3). Owner decision 2026-11-19: batch routine results.
Problem
Every child result and background-command completion starts a full orchestrator turn that re-reads the whole thread. On 2026-11-19 the orchestrator had 72 turn starts: 39 child results and 13 background completions.
Wanted
Questions, blockers, failures that need action, and the result that unlocks the next dependent step still wake the parent at once.
Routine results (passes, completed re-checks, build completions) that arrive close together are delivered in one wake, with one short visible reply.
Test the existing completion cohort / mailbox path first; extend it rather than adding a second mechanism.
Keep silent-wake recovery for a truly dropped result (SilentWake.ts), but it must not start an extra turn for a result already covered by a batched reply.
Done when
Several routine child results that finish within the batching window produce one parent turn; a question or failure still wakes immediately. Tests cover both.
The global rule ('every wake gets a visible report') is updated separately to match.
Owner decision (2026-11-20): the batching window is 15 seconds from the first routine result. Questions, actionable failures, blockers and results that unblock dependent work are delivered immediately.
Planned order: a #429 design comes first, then this issue. The design should account for the wake fixes already on main and the existing merge of queued completions (Orchestrator.ts, around line 14806).
Activity
tannerpolley commentedon Nov 20, 2026
Owner decision (2026-11-20): the batching window is 15 seconds from the first routine result. Questions, actionable failures, blockers and results that unblock dependent work are delivered immediately.
Planned order: a #429 design comes first, then this issue. The design should account for the wake fixes already on main and the existing merge of queued completions (Orchestrator.ts, around line 14806).