Skip to content

Make child and worker state visible and completion wakes reliable #429

Open

Description

@tannerpolley

From a 2026-11-16 review of the owner's T3 history across all projects (run from agentic-cse). Owner-approved. This is the costliest recurring friction in the owner's threads, and it is not fixable by skills or rules.

Evidence

  • epcsaft / ePC-SAFT: 61 owner messages, 2026-09-23 → 2026-11-16, asking what is running, whether a worker is stuck, where a child thread lives, or why a pending question never reached them. "one of the subagents has been waiting for a answer to a question for hours" (2026-09-24); "review the two subagents to see what is taking so long" (2026-11-16). On 2026-10-12 the owner described the wanted view as a "live roadmap" with a visible work indicator.
  • Amine / Lithium / MEA / Publications: at least 21 messages, 2026-10-05 → 2026-11-14: "you were never notified"; "I don't see your workers"; why completed work did not report back.
  • Tooling projects: 21 messages, 2026-09-24 → 2026-11-13: "the parent says its done but its child is waiting for a process"; "it didnt wake this thread again". A T3 feedback memory records the no-reply-after-wake failure recurring three times after 2026-11-11.
  • Issues shown "In progress" with no working agent (2026-10-21, 10-22, 11-04).
  • Observed today: a queued investigator started with its brief lost ("Conversation recovery failed"), asked its orchestrator to resend the task, and finished without working when the answer arrived.

The confused states: a parent turn ended while its child is active; a worker queued vs waiting on a question vs running; completion events that never wake the parent; status that does not reflect a live worker.

Done when

  • The Issues view (or a thread panel) shows, per issue and child: live state (queued / running / waiting on question / waiting on approval / done), its pending owner question with a way to answer it directly, and the linked thread and branch.
  • "In progress" is shown only while a worker is actually live.
  • A child's final result reliably wakes its parent; a missed wake is detected and surfaced.
  • A queued child keeps its task brief through start (no "recovery failed, please resend").

Activity

  1. tannerpolley commented on Nov 16, 2026

    @tannerpolley
    OwnerAuthor

    Triage (repository orchestrator, 2026-11-16)

    Accepted. This is an umbrella over four separate problems. It goes to a Designer first, not straight to a worker, so the plan can tell what's still broken from what earlier fixes already cover.

    Past fixes in the same area. The Designer should confirm which ones still hold before planning new work:

    Overlapping open work:

    Concrete bug, likely its own sub-issue: a queued read-only child starting with "Conversation recovery failed" and losing its brief. This is new since #426 / PR #427 made readers queue visibly. The queued request's task text should survive admission.

  2. tannerpolley commented on Nov 16, 2026

    @tannerpolley
    OwnerAuthor

    Correction to the triage note above: I have no evidence that the "Conversation recovery failed" brief loss is new since #426 / PR #427. Read-only children queued on the reader limit before that change too. When it started is unverified.

  3. added this to the Fork backlog milestone on Nov 20, 2026
  4. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Design plan for #429

    Inspected local and hosted main at d8fdc04789. This is a read-only source audit. The scope is Codex and Claude, with the shared web/desktop client. The #418 owner decision assigned ordinary completion delivery and restart recovery to #418 and left visibility, direct answers, and queued brief loss here. The wake work below is limited to residual failure paths.

    What main already meets

    Work Done criteria met on main
    #418 completion delivery Managed run-less and ordinary run-owned delegations share the completion planner. It commits the result and delivery reservation together. The provider acceptance path settles the applicable generation, and startup reoffers open deliveries for both owners. The fork test exercises restart and overlapping completions for both. Orchestrator.ts:15161 Orchestrator.ts:2166 Orchestrator.ts:16966 serverRuntimeStartup.ts:551 DelegatedCompletionDelivery.fork.test.ts:242
    02f797b95b The selective read includes the spawning run and the existing wake message, run and tasks. A second result can join the same queued wake before acceptance. This satisfies the earlier race in #429 triage. Orchestrator.ts:2053 Orchestrator.ts:14806
    1e1d85c3a6 Both cohort owners use a shared pending-result decision. A read that did not observe the wake cannot acknowledge an unseen result. The same completion plan writes the result and delivery for either owner. ForkDelegatedCompletion.ts:54 ForkDelegatedCompletion.ts:143 Orchestrator.ts:3642 Orchestrator.ts:15161
    #500 quiet-worker alerts Merged as PR #500 for issue #496. On the same environment, the shared quiet rule excludes active commands, known background work and requests. The sidebar shows quiet minutes, and the worker sends one parent notice per quiet stretch. This covers an apparently stalled running child. threadActivity.ts:221 SidebarThreadRow.tsx:672 QuietDelegatesWorker.ts:32
    repository_status The agent-facing status read groups children into Working, Needs you and Ready for review, rolls up descendant requests, and gives thread/issue/PR links, elapsed time, last summary and quiet minutes. This covers parent status queries. The owner-facing per-child question and approval controls are still missing from the issue detail. handlers.ts:56 IssueWorkService.ts:718 IssueWorkService.ts:772
    #441 PR watching Linking or syncing an eligible managed implementor PR starts the existing watch on that worker. Review remarks wake the worker, and a recorded Stop or unwatch suppresses backfill. This satisfies the review-event wake without asking the parent to relay it. Orchestrator.ts:5545 PullRequestWatchReactor.ts:700
    #363 silence nudge An eligible wake that started and completed without an assistant reply gets one follow-up. A second silence or a failed follow-up raises attention. A silent delegated child reports its outcome to the parent without starting a nudge on the child. SilentWake.ts:3 Orchestrator.ts:15555 SilentWake.test.ts:445
    f6a950c85f The no-reply notice and silence-check effect commit with completion. The effect dispatches a serialized command that rechecks Stop, newer work and outstanding requests before nudging. Attention is carried to web notifications. This protects the silence check across restart and concurrent input. EventSink.ts:441 EffectWorker.ts:178 Orchestrator.ts:15587 Orchestrator.ts:16656 ThreadNotificationCoordinator.tsx:153

    The issue row already has a status pill, a link to its first worker, and per-worker branch information in the tooltip. Owner-facing child questions already have a global popup, with request routing deciding when they appear. Child approvals also have a direct control in chat. Those are the starting points for the issue detail. IssueLiveWork.tsx:24 QuestionPopup.logic.ts:27 QuestionPopup.tsx:95 ChildThreadApprovals.tsx:15

    Remaining work and done criteria

    1. Show each worker's actual state in the issue detail. #513 covers the lifecycle inputs during review and retry. It does not cover the per-worker presentation or ordinary queue classification. The server counts a queued run as Working, downgrades inherited Working children to Idle, and compresses requests into Waiting on you. The streamed overlay separately maps sidebar status, drops inherited provenance from rebuilt rows, and only rebuilds rows for threads available in the shell index. The issue group treats Working and Waiting on you as In progress. The detail currently renders an aggregate badge. IssueLinks.ts:244 IssueLinks.ts:308 issueLiveWork.logic.ts:78 IssueStateIcon.tsx:47 IssueWorkSection.tsx:244

    • Smallest change and deletion. Add one Work list to the existing issue detail. Reuse the issue's associated threads, the shell updates and the existing family read if a child shell was left out of the snapshot. Use one issue-work classification for the server snapshot and streamed overlay. Preserve inherited association as a fact for aggregation, while showing the child's own state on its row. Use Implementors run their own review; the orchestrator wakes only to merge or decide #513's authoritative review/retry state and Keep idle worker threads visible in the sidebar, and show stopped workers and their issues as paused #498's paused state. Replace the divergent three-state mappings. Keep the compact issue-list trigger and give every worker its own thread link and branch in the detail.
    • Done. A managed worker and an issue-linked child show queued, running, waiting for a question, waiting for approval, and done as distinct states. Failed and paused work retain their own state. A child can finish while the issue remains open. A queue-only issue shows Queued. Active execution, a live owner request or an ongoing Implementors run their own review; the orchestrator wakes only to merge or decide #513 review/retry keep the issue In progress. A finished attempt with only an open PR, a parked idle child or a retained link moves out of In progress. State and links are correct on reload and live updates. Check the roadmap and thread-side Issues entry points with the same data, including an inherited child.

    2. Let the owner answer the originating child's request in that Work list. #513 does not cover this. The current issue work section exposes issue decisions and proposed changes. Its worker tooltip contains text only, and its button jumps to the first worker. The popup loads question detail for a scoped thread and request, and the chat approval control already sends the response to the originating thread. IssueWorkSection.tsx:230 IssueLiveWork.tsx:34 QuestionPopup.tsx:95 ChildThreadApprovals.tsx:31

    • Smallest change and deletion. Reuse the popup question form and approval actions in the selected worker row, with a detail subscription only for a visible pending request. Move the shared form logic out of its popup-only placement as needed. Keep the existing owner-visibility, permission and response-capability checks. Leave issue summaries carrying compact status and links. A question routed to an active parent can show who is handling it, with owner controls when the existing routing rules make it owner-visible.
    • Done. In the web/desktop issue detail the owner can read and answer a Codex or Claude child's owner-visible question, or act on its approval, without leaving the issue. The correct environment, child and request get the response. Answer, dismissal or cancellation clears the control live. A routed, stale or unresumable request cannot accidentally be answered. Test a child request handed back from the parent and one resolution from another surface.

    3. Recover or surface a missed completion wake in the existing delivery path. #513 covers premature results while a worker still owns a running reviewer, and retries of worker turns. It does not cover delivery of an already-final result to the parent. There is a concrete asymmetry: the checkpoint outbox runs targeted completion recovery after finalization, but its pending predicate joins only the run owner and its reoffer loop excludes null run IDs. A claimed thread-owned delivery with a saved result can therefore be skipped, and finalization skips tasks with published results. The startup sweep knows both owners. Also, continuation dispatch failures currently have log-only retries with a capped delay and no attempt ceiling. The silence check starts from a completed parent run, so a delivery that never produces a parent turn cannot trigger it. EffectWorker.ts:625 ProjectionStore.ts:6775 Orchestrator.ts:17081 Orchestrator.ts:15301 Orchestrator.ts:17004 ProviderContinuationService.ts:85 ProviderContinuationService.ts:303 Orchestrator.ts:15555

    • Smallest change and deletion. Extend the existing targeted recovery lookup and reoffer to both owner types, including null for a thread-owned delivery. Remove the run-only filter. Reuse the existing generation/message check before retries and any attention update. Once repeated dispatch failure crosses the agreed threshold, write one owner-visible attention reason on the parent with a route to the saved results. Retain existing recovery eligibility and the saved result. Preserve intentional Stop/archive/unwatch and provider-disabled dispositions. Reuse the existing attention presentation with a delivery-specific reason. Avoid a second mailbox, per-thread polling or a new wake to report that a wake failed.
    • Done. Fault-inject after a run-less managed result and cohort have committed but before its wake is offered. With the server still up, targeted recovery delivers once. A repeated failure of a current dispatch surfaces once, leaves the saved result readable, and clears or supersedes attention on delivery or deliberate disposal. A stale generation, prior acceptance and Stop do not spuriously retry or alert. Keep existing run-owned, overlapping-child, restart and silent-wake regression cases green. Use a test clock and event/outbox completion barriers.

    4. Prove the brief reaches the provider on queued admission. #513 can cover a reproduced transient or restart-continuation failure through its existing retry work. It does not prove first admission retains the brief. The field report says “Conversation recovery failed” and the child asked for the task again. Triage explicitly withdrew the attribution to #426. On current main the original text is persisted as the child input, queued start reloads it, and provider start selects that message by ID. The existing reader-limit test asserts queued → starting, without inspecting provider input. The point of failure and its provider are unverified. Orchestrator.ts:10174 Orchestrator.ts:2589 Orchestrator.ts:3181 ProviderTurnStartService.ts:489 ProviderTurnStartService.ts:1810 ThreadLaunchService.readOnlyLimit.fork.test.ts:207

    • Smallest change and deletion. Extend the existing reader-limit test through provider acceptance. Hold the only slot, queue a child with a distinctive full brief, free the slot, then inspect what reaches Codex and Claude at the adapter boundary. Include a queued child surviving restart, and compare immediate admission if a failure appears. Fix only the first boundary where the original input is lost. If a shared recovery replacement is responsible, replace that branch with the existing retained input path. If main passes and the field report cannot be reproduced, retain the evidence and close the investigation without speculative production code.
    • Done. A queued reader starts the same child with the original brief once, including after restart while queued. Focused proof reaches provider input rather than just the run status. If the historical failure remains unverified, record the tested paths and the missing evidence. Any new failure must preserve the brief and give a specific failure reason so the parent can act without reconstructing it.

    Owner decisions

    1. Where to answer. Recommend inline in the existing issue detail Work list. The compact list stays a summary and the existing global popup still serves other views.
    2. When to flag a missed dispatch. Recommend one attention marker per current delivery after three failed dispatch attempts, with existing backoff/recovery still eligible. This gives the owner a visible source of truth without escalating a single transient error or generating a second parent turn. Explicitly disposed deliveries follow their existing rules.

    Task split

    Each task fits one Codex implementor. Use four top-level implementation issues referencing this plan, with 2 following 1. No need to hold 3 or 4 for the client work.

    1. Issue work state and links across the server summary, live overlay and detail. Coordinate the shared state boundary with Implementors run their own review; the orchestrator wakes only to merge or decide #513 and Keep idle worker threads visible in the sidebar, and show stopped workers and their issues as paused #498 before landing. Run focused issue-state/overlay tests and one isolated web pass.
    2. Direct child request controls in that detail, using the existing routed request forms and guarded commands. Run a focused regression for routing/response and one web pass. Translate new client copy.
    3. Managed completion reoffer and visible dispatch failure through the existing checkpoint recovery and continuation paths. Extend the cohort and continuation tests. Verify the targeted live-recovery fault and the terminal/suppression cases in the same change.
    4. Queued reader brief reproduction and localized fix if proven. Extend reader-limit coverage through first provider input and restart with Codex and Claude fixtures. Hand a reproduced retry-specific fault to Implementors run their own review; the orchestrator wakes only to merge or decide #513 for one fix.

    #498 retains ownership of sidebar visibility, lazy family loading there, and stopped/paused presentation. #513 retains ownership of review, review-state liveness, nested-child completion and worker-turn retry. Main already holds results for some descendant/background work and revisits them on settlement. #513 should extend or prove that shared rule for its managed review case. RestartBackgroundNote.ts:234 Orchestrator.ts:15057 Orchestrator.ts:16885

    #507 remains downstream of #429 and #513. Its implementation should build on the corrected completion path and #513's final-result semantics. Its owner-approved 15-second window starts at the first routine result. Extend the existing queued cohort merge. Questions, blockers, actionable failures and dependency-unlocking results stay immediate. The batch must retain the acceptance identity that the completion and silence paths use, so an already-covered result cannot trigger another nudge. The work in task 3 makes delivery failures visible before batching extends the wait on routine results. Orchestrator.ts:14806 Orchestrator.ts:2180

  5. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Scope amendment from audit #530

    The problem. On main, an issue with one working child and one child waiting on the owner reads Working. Clicking it opens the working child (issueRoadmap.logic.ts:9, IssueLiveWork.tsx:38), so the owner can follow the UI correctly and still miss the question.

    Add to done-when:

    • A fixture with mixed working and waiting children. The summary shows the waiting state, and clicking it opens the child that needs the owner, or answers through the existing question and approval controls.
    • One worker-status rule shared by the server summary (IssueLinks.ts:308) and the streamed web overlay (issueLiveWork.logic.ts:94), with a test that checks both agree.
    • An open PR alone no longer makes an issue read Paused (IssueStateIcon.tsx:48). Show it as ready for review. Paused is for an explicit Stop.

    Rebase the state changes on #520 (explicit Stop and Resume) and #522 (review liveness). Evidence: synthesis plan on #530, row 2.

  6. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Done

    Issue: #429 Make child and worker state visible and completion wakes reliable

    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst

    Model: gpt-6.2-sol

    Branch: issue-429-worker-state

    Updated: 2026-11-21T07:23:00.278Z

  7. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-make-child-and-worker-state-visible-and
    Completed: 2026-11-21T00:39:20.136Z

    Codex request 'turn/start' (182) timed out after 60000ms; closing the transport.

    Last assistant message before the run failed:

    The scope amendment adds two cases the current UI misses: a waiting child must take priority over a running sibling, and an open PR should read “Ready for review.” This branch already includes #522. I’ll use #520’s explicit Stop state for the pause behavior.

  8. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-make-child-and-worker-state-visible-and
    Completed: 2026-11-21T00:50:36.554Z

    The provider could not start this turn. Retry the turn; if it keeps failing, check the provider setup and server logs.

  9. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-make-child-and-worker-state-visible-and
    Completed: 2026-11-21T02:12:47.600Z

    Codex request 'thread/start' (108) timed out after 60000ms; closing the transport.

    Last assistant message before the run failed:

    I moved the issue changes onto a clean branch from main, so the draft will exclude the earlier #520 pause-marker stack. The issue list and detail now use the same worker-state rule. I’m checking wake recovery and retry behavior alongside those UI changes.

  10. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-worker-state
    Completed: 2026-11-21T03:12:45.115Z

    Chromium verified that the mixed worker summary opens the child who needs an answer, and that the owner can answer from the issue detail. Completion recovery and retry tests passed. Desktop before-and-after captures remain pending.

    PR #544, head eb790dc, checks and reviews: 326 tests and 17 React Compiler cases passed, three mobile type errors reproduced on unchanged main, no hosted checks reported, draft review pending.

  11. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-worker-state
    Completed: 2026-11-21T03:34:26.002Z

    1. Fixed owner-routed questions opening behind parent-routed questions. Test “opens the owner-routed question before the parent-routed question”.
    2. Fixed both SQL reads to choose the same pending request. Test “matches full-shell work and PRs when an older approval is pending alongside a newer question”.
    3. Fixed open PRs losing Ready for review when their worker is absent. Test “keeps an open compact PR ready for review while its worker is absent”.
    4. Fixed failed-wake alerts to name the child and open its result. Tests “names and links the saved result for a failed %s-owned wake, and clears it on Stop” and “opens the child result from a failed wake alert”.
    5. Fixed both mixed-child regressions and verified that each fails on main by selecting the running sibling. Tests “opens the waiting child from the issue row when its sibling is running” and “opens the waiting child from the overlay when its sibling is running”.

    PR #544, head 0a8d72c07d9cf5deb0eb7a271ea6b502da5e814d, checks and reviews: 384 tests and 18 React Compiler checks passed in check:changed. The stale roadmap test was corrected and its suite passed separately. Three mobile type errors reproduce on main. GitHub reports no checks or review decision on the draft.

  12. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #429 Make child and worker state visible and completion wakes reliable
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6432914972%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-429-worker-state
    Completed: 2026-11-21T07:23:00.493Z

    GitHub responded directly. PR #544 is open as a draft and can merge into main without conflicts. Its head is still 0a8d72c07d9cf5deb0eb7a271ea6b502da5e814d.

    PR #544, head 0a8d72c07d9cf5deb0eb7a271ea6b502da5e814d, checks and reviews: GitHub shows no check runs or submitted reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions