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).
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Completed: 2026-11-23T17:40:19.559Z
Implemented #507 locally for delegated child results. Successful routine async results in the same completion cohort now share one orchestrator wake, 15 seconds after the first result. A failure or an immediate result releases a waiting batch early. Questions, blocking waits, and managed issue results keep their immediate delivery paths.
The batch uses the existing delivery identity. Recovery can reoffer a pending batch, and a reply covering the batch prevents an extra silence follow-up. Urgency comes from the existing delegation mode and result status. A blocker reported only in the prose of a successful routine result can wait up to 15 seconds. Provider-native background commands continue through their provider’s wake path.
Verification. The 82 focused tests passed. The broader check passed formatting, lint, Knip, GraphQL, and 289 of 290 tests. The remaining SQLite test passed on rerun with the repository’s pinned Node 26. The remaining server type errors reproduced on clean main.
The changes are in the issue worktree. Publishing remains pending separate approval.
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Completed: 2026-11-23T17:58:33.194Z
Fixed all four Orchestrator.ts writes to omit dispatchAfterMs when there’s no deadline. When an immediate result joins a pending delivery, the merge removes the key. Rebased onto the latest origin/main, including #556, and pushed with a lease scoped to the PR branch.
Both requested files passed in full on the pushed head:
DelegatedCompletionDelivery.test.ts — 70 of 70 passed, including the reported regression.
DelegatedCompletionDelivery.fork.test.ts — 43 of 43 passed.
The changed-file check passed all 290 tests. Its web type errors also reproduced on clean main.
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).
tannerpolley commentedon Nov 23, 2026
T3 Code status: Unavailable
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Updated: 2026-11-23T18:08:01.759Z
tannerpolley commentedon Nov 23, 2026
T3 Code closeout: done
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Completed: 2026-11-23T17:40:19.559Z
Implemented #507 locally for delegated child results. Successful routine async results in the same completion cohort now share one orchestrator wake, 15 seconds after the first result. A failure or an immediate result releases a waiting batch early. Questions, blocking waits, and managed issue results keep their immediate delivery paths.
The batch uses the existing delivery identity. Recovery can reoffer a pending batch, and a reply covering the batch prevents an extra silence follow-up. Urgency comes from the existing delegation mode and result status. A blocker reported only in the prose of a successful routine result can wait up to 15 seconds. Provider-native background commands continue through their provider’s wake path.
Verification. The 82 focused tests passed. The broader check passed formatting, lint, Knip, GraphQL, and 289 of 290 tests. The remaining SQLite test passed on rerun with the repository’s pinned Node 26. The remaining server type errors reproduced on clean
main.The changes are in the issue worktree. Publishing remains pending separate approval.
tannerpolley commentedon Nov 23, 2026
T3 Code closeout: done
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Completed: 2026-11-23T17:46:28.574Z
PR #557, head b678499.
tannerpolley commentedon Nov 23, 2026
T3 Code closeout: done
Issue: #507 Batch routine child results into one orchestrator wake
Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6502756877%3Afirst
Model: gpt-6.2-sol
Branch: issue-507-batch-routine-child-results-into-one
Completed: 2026-11-23T17:58:33.194Z
Fixed all four
Orchestrator.tswrites to omitdispatchAfterMswhen there’s no deadline. When an immediate result joins a pending delivery, the merge removes the key. Rebased onto the latestorigin/main, including #556, and pushed with a lease scoped to the PR branch.Both requested files passed in full on the pushed head:
DelegatedCompletionDelivery.test.ts— 70 of 70 passed, including the reported regression.DelegatedCompletionDelivery.fork.test.ts— 43 of 43 passed.The changed-file check passed all 290 tests. Its web type errors also reproduced on clean
main.PR #557, head 70fb1da.