Skip to content

Delegate envelope: the required prompt is omitted on the first hand-off call, costing a wasted step #6314

Closed

Description

@M3gA-Mind

What happens

On a live account run (core built from #6304 at 2abd462ec), the orchestrator called setup_skills and setup_mcp_server once each with no prompt argument, and both came back as schema validation errors. It then retried with the argument. Two wasted steps on an otherwise successful hand-off.

Why it is worth a considered fix

prompt is the required field of the shared envelope ArchetypeDelegationTool::parameters_schema emits, so this is not specific to those two tools — it is shared by all 19 delegates. Whatever is done here lands on every hand-off in the product.

orchestrator/agent.toml already records that the envelope's shared argument documentation was deliberately charged once in prompt.md rather than repeated per delegate, to save ~6.8k tokens per turn. Any fix that re-describes the field on every delegate schema gives that back, so the trade-off needs to be made deliberately.

Options, none obviously right

  • Default prompt from the user's turn text when omitted — removes the error, but silently invents an argument the model did not supply.
  • Name the field in each delegate's description — costs tokens per turn, the thing the current design avoids.
  • Leave the schema and improve the recovery so the retry is not a wasted round trip.

Acceptance

Filed for a decision, not a patch. This is a routing-quality change: it deserves an eval comparing hand-off success rates rather than a drive-by, which is why it is last in priority despite being the easiest to "fix".

Found during the #6302 live acceptance run.

Activity

  1. self-assigned this
    on Sep 15, 2026
  2. added
    priority: p2
    on Sep 15, 2026
  3. tinysweeper commented on Sep 15, 2026

    @tinysweeper

    The shared delegation envelope requires prompt, but the orchestrator occasionally calls a delegate without it on the first hand-off, producing a schema-validation error and a wasted round trip before retrying (observed on setup_skills and setup_mcp_server, affecting all 19 delegates). It is recoverable via retry, so it is broken-but-workaroundable rather than a core outage; the reporter explicitly frames it as a routing-quality decision needing an eval (default the field, per-delegate description at token cost, or better recovery) rather than an immediate patch. No candidate in the list describes the same omitted-required-argument problem — the closest ones (#6312, #6311, #6315) concern different tool/schema defects in the same delegate/tooling area, so no duplicate is asserted.

    Labelled priority: p2.

  4. added theissue type on Sep 15, 2026
  5. added
    triage: needs-opinion
    on Oct 9, 2026
  6. senamakel commented on Oct 9, 2026

    @senamakel
    Member

    Triage: needs opinion — “Delegate envelope: the required prompt is omitted on the first hand-off call, costing a wasted step” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

  7. added
    source: team
    on Oct 9, 2026
  8. M3gA-Mind commented on Nov 16, 2026

    @M3gA-Mind
    CollaboratorAuthor

    Thanks for the detailed write-up. This one is resolved on current main by #8319. The 19 per-archetype delegate tools were replaced by a single spawn_subagent tool, and its own schema now documents prompt as required, next to agent_id (also in the orchestrator's prompt and agent config). So the arg is no longer described only in prompt.md.
    We haven't re-measured how often a model skips prompt on the first call; that needs a live eval. If it still shows up on the new tool, please open a fresh issue with a trace and we'll pick it up there. Closing as fixed by #8319.

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

Metadata

Metadata

Assignees

Labels

priority: p2source: teamtriage: needs-opinion

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions