Skip to content

Crews and Peer Agents stall silently when a placed agent asks a native question #281

Closed

Description

@Jacksondr5

Problem

When agent A orchestrates agent B (a Crew Captain and its seats, or a spawner and its Peer Agent) and B asks the person something through its provider's native question tool (a pending user_input request), nobody who can act finds out:

  • B's run stays open in waiting. J5's SilenceDetector only emits notices when a run ends, so A gets nothing and assumes B is still working.
  • The question isn't a J5 Exchange, so it never reaches the person's Inbox. It's visible only if someone opens B's thread.
  • A can only find out by polling t3_pending_request_list / t3_thread_read. Upstream's orchestrators would block on t3_thread_wait, which J5 deliberately excludes (it starves a participant of the notices it waits for).
  • A can answer with t3_pending_request_respond, but that tool is scoped to the whole project, not the Squadron. It doesn't check that A is related to B, and it isn't recorded as a J5 act. Any agent can answer questions meant for the person.

When B asks through J5's send_message with a reply expected instead, this works: A gets an "awaiting-human" silence notice and the ask lands in the Inbox.

Scope: think broadly

The real problem is placed agents stalling silently on native questions, not one tool. Weigh the options, and combinations of them:

  1. Keep native questions away from placed agents. Disable or deny the native question tool for Crew seats and spawned Peer Agents, with provider-specific mechanics, so they must ask through send_message (which already routes to A and the Inbox). Check what each adapter (Codex, Claude, Cursor, OpenCode, ACP, Pi) allows, and what breaks when an agent can't ask natively.
  2. Surface them. When a placed agent waits on a native question, notify its orchestrator with a silence-style notice and put the question in the person's Inbox.
  3. Scoped answering. Allow t3_pending_request_respond only for threads the caller placed, within its Squadron, and record who answered. Everything else stays for the person.
  4. Revisit t3_thread_wait. Is there a form of waiting that doesn't starve notices, for example returning on child completion or on a native question?
  5. Check upstream's direction first. Look at V2's (feat(orchestrator): introduce new orchestrator pingdotgg/t3code#2829) recent history and open issues around delegated children, pending requests and t3_thread_wait. If upstream is about to route child questions to orchestrators, prefer adopting that over building our own. Record what you find in the upstream convergence watchlist (docs/j5/research/upstream-convergence.md).

Deliver a short recommendation for Jackson before building.

Context: raised during the review of the 2026-09-24 upstream advance (#262).

Activity

  1. added
    enhancement
    on Sep 24, 2026
  2. bryantderosier commented on Oct 20, 2026

    @bryantderosier
    Collaborator

    I recovered the original recommendation in the project artifact artifacts/issue-281/recommendation.md (last modified October 19 at 21:51 UTC, before the implementation commit at 22:11 UTC). The relevant scope was:

    Preserve #325's seat-tool suppression and D2's upstream pending-request answer access. Do not change providers, Orchestrator, answer attribution schemas or t3_thread_wait.

    It also explicitly says upstream does not record who answered pending requests and recommends preserving that behavior. This supplies the recommendation context missing from the GitHub discussion; I am not claiming a separate Jackson sign-off that I cannot link.

    The closure scope is:

    • Native-question suppression: retain Crew seats ask their Captain, not the person: no native question tools on seats #325. Claude/Codex Crew seats suppress native question tools; other seats get the ask-your-Captain instruction. Solo Peers keep their provider's native capabilities. Adding provider-specific suppression beyond that is not part of this fix. The notifier handles native user-input requests that still arise, independently of provider.
    • Surface questions: fix(agents): surface placed agents' native questions #669 supplies parent notices, actionable Inbox links, and truthful Crew seat status. Forks and ordinary manually placed threads do not gain this routing. J5-spawned agents notify their current reachable placement parent.
    • Answer access and attribution: follow the existing #345 decision and D2. Upstream checks the caller's modes; placement neither grants extra authority nor adds a parent-only restriction. Answers and resolution are recorded in the original request. Responder identity and a J5 ledger answer are not added. Use a J5 Exchange when an attributed reply is needed. This retains a documented limitation rather than treating attribution as delivered.
    • Waiting: keep t3_thread_wait hidden. A parent does independent work or ends its turn to receive queued notices. The separate delegated-task wait can still return on a blocking question. The new notifications supply the nonblocking path for placed agents; no new wait tool is required.
    • Upstream direction: rechecked the delegated-question reactor at c911f654b9. It still uses delegated tasks/native lineage, not J5 placement. The convergence watchlist now records this focused October 20 check without claiming a full upstream advance.

    The follow-up #674, stacked on #669, makes these boundaries explicit in the product definitions and user guide. It changes documentation only. 110 focused tests pass across question routing, Inbox selection, runtime composition, seat policy, tool registration, and MCP access checks. Desktop/mobile/remote and live-client coverage remain as reported on #669; this follow-up adds none.

    Leave #281 open until #669 and the stacked documentation follow-up have both landed on j5/main. This is a proposed closure rationale for review, not a claim that the stack has merged.

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

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions