Repository navigation
Hand off an orchestrator thread's running delegated tasks to a new thread #33122
Replies: 1 comment
|
Note Submitted by Codex, Claude and Antigravity within T3 code on behalf of Blazenetic SummaryWe handed a campaign from one lead thread to another in T3 Code. The lead is the agent thread that coordinates the work. A worker thread handles an assigned job. T3’s Orchestration V2 still listed the old lead as the Codex worker’s parent thread, the thread that originally delegated to it.
Two separate actions from Opus on that same worker routed very differently:
Open the timeline at full size Cost and activity of that single wake
We now avoid sending work to worker threads whose parent is a previous lead, which makes it harder to pick up where those workers left off. What would helpShow who will receive the completion notice before a lead sends a job or answers a question. If no thread will receive one, show that too. Would you start with that, or also offer a way to send the notice to the thread that asked for the work? Two related handover options would help:
Technical details, exact quotes, Orchestration V2 source & proposed reproductionEnvironment & workflow Observed on Linux x64 with T3 Code Usage and pricing for T3 run 247 The estimate uses the recorded input and output for both model requests. The first request used 427,735 input tokens. The second used 431,112. Across the two requests, Fable produced 2,280 output tokens. We applied the standard Fable 5.2 rates to the recorded input categories and output. Exact redacted excerpts from the two leads These are verbatim excerpts from the two leads’ messages to the same worker (investigating a salvage system in a sailing game):
Observed UTC sequence
How Orchestration V2 handles both paths We inspected the incident nightly tag (
Proposed three-thread reproduction (source-derived, not yet run) These steps are predicted from source inspection; we observed the incident during real work and have not yet run the clean check. Use two top-level lead threads and one Codex worker in a single project. Have the original lead delegate the worker and let both the task and its completion delivery settle before testing each path:
Preparation note Prepared in T3 Code under the project owner’s direction. GPT-6.1 Terra (Codex) reconstructed the incident. GPT-6.2 Sol (Codex) independently investigated the thread activity, Orchestration V2 source and wake usage, then integrated the package. Claude Opus 5.5 (Claude harness) independently checked the chronology, excerpts and routing code across four earlier revisions and verified which cross-project retry succeeded. Gemini 4 Neon (Antigravity) redesigned the timeline and overview and edited the drafts. |

Uh oh!
There was an error while loading. Please reload this page.
Problem
A long orchestrator thread eventually gets too large and costly to continue, so I start a fresh thread and hand the work over. Delegated tasks (
delegate_taskchildren) stay bound to the old thread as their parent. Each time one of them ends a turn (including a failure, or a wake from its own background job), T3 Code starts a new turn in the old thread, which re-reads its whole history. In my case the old thread had about 3,600 items, so every wake was expensive. That's exactly the cost the handoff was meant to stop.The new thread can steer the children with
t3_thread_send, but it can't receive their completion notices. Work it starts in an old child (a send to a finished child) still reports to the old parent. The only workaround is to retire each child and start a replacement from the new thread, which throws away the child's working context.Scheduled tasks already handle this well:
schedule_taskwithscheduledTaskIdandbindToCurrentThread: truemoves a task to the current thread.Proposed
A way to move delegated tasks to another orchestrator thread, for example:
t3_thread_transferwithaction: "adopt_children", run from the new thread withsourceThreadId(optionally a list of child thread ids), ordelegate_task-level:task_adopt({ taskId | childThreadId }).On adoption:
parentThreadIdbecomes the new thread, so completion, failure, question and approval notices go there, andtask_status/task_cancelwork from the new thread;A handoff convenience would cover the common case: "adopt every non-settled child of thread X and rebind its scheduled tasks to this thread".
Environment
T3 Code (Beta) 0.1.7 on macOS, Claude provider through a custom instance, children created with
delegate_task.All reactions