Skip to content

A saved-agent mention can be silently ignored by the parent model #298

Closed as not planned

Description

@Jacksondr5

Found in the #262 live pass 2 (test D, evidence in `j5/evidence` → `pr-262/3adf174382/live-pass/e07`, `e08`).

Repro: on a Claude Haiku 4.5 parent, send "@persona:scout What is in README.md? One sentence." The parent's reasoning says it should call `delegate_task` with `persona=scout`, but it judges the task simple and answers itself. No subagent runs, and nothing in the UI says the saved agent was skipped. It only delegated when the prompt added "you must run this via delegate_task with persona=scout".

Why it matters: the `@persona:` mention is the person's explicit request to run a saved agent with its own route, permissions and handoff-artifact contract. Leaving it to the model's judgment makes it unreliable on smaller models.

Options:

  1. Server-side routing: when a person's message contains an explicit `@persona:` token, J5 dispatches `delegate_task` itself (the persona, plus the message minus the token), rather than relying on the prompt. This is deterministic, but it takes away the parent's ability to add context.
  2. Stronger steering plus detection: keep model-driven delegation, but detect turns that end with no `delegate_task` for a mentioned persona and show a visible notice ("Scout wasn't used") with a one-click "Run Scout".
  3. Mention kind: render the mention as a message-context record (Carry J5 A2A metadata as a message-context record instead of text envelopes #285) with its own instruction, so the model sees it as structured intent rather than text.

Check behavior on Codex and Claude, and across model sizes.

Activity

  1. added
    enhancement
    on Sep 24, 2026
  2. Jacksondr5 commented on Oct 25, 2026

    @Jacksondr5
    OwnerAuthor

    Closing as a one-off (Jackson, 2026-10-24). The instructions already say a @persona:ID mention runs that persona through delegate_task. Claude Haiku 4.5 read them and chose to answer itself, and it hasn't been seen since. Neither J5 nor upstream has the server act on message text, so server-side dispatch would be new machinery for a rare case. If skips show up again, reopen with the model and transcript, and start by making the instruction firmer ("always run it, even when you could do the task yourself").

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions