Skip to content

Batch routine child results into one orchestrator wake #507

Open

Description

@tannerpolley

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.

Activity

  1. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    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).

  2. added this to the Fork backlog milestone on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions