Skip to content

j5_spawn_agent can't spawn a model that has no reasoning option #704

Closed

Description

@Jacksondr5

Problem

j5_spawn_agent requires reasoning, but some models have no reasoning option. Claude Haiku 4.5 in the catalog has only a thinking boolean. An agent that picks such a model can't spawn it, and has to choose another model.

Seen in the 2026-10-24 upstream-advance live test, commit 60c7d590e6. Claude used orchestrator_capabilities search, found claude-haiku-4-5, and was refused because it had no reasoning value to pass. It then spawned claude-sonnet-4-6 instead.

This isn't caused by the advance, since the tool on j5/main already requires reasoning. The new search input makes such models easier for agents to reach.

Done when

j5_spawn_agent accepts a model that has no reasoning option. reasoning becomes optional, and is required only when the chosen model declares a reasoning or effort option. The refusal says which options the model does have.

Activity

  1. Jacksondr5 commented on Oct 31, 2026

    @Jacksondr5
    OwnerAuthor

    Plan (Jackson approved the eval spend, 2026-10-31)

    • Build after Bryant's Crew stack merges: feat(j5): choose which models custom Crew members can use #757 and feat(j5): choose which reasoning levels custom Crew members can use #770 change the same spawn code (a2a/mcp/tools.ts, SpawnAgentService, agentDelegation) and add Crew member model and reasoning limits.
    • reasoning becomes optional. It's required only when the chosen model declares a reasoning or effort option, and the refusal names the options the model does have.
    • mcp-tool-use eval: a case from the 2026-10-24 failure (an agent picks claude-haiku-4-5, which has only a thinking boolean, and must spawn it), plus a control (a model with reasoning options still gets one). Targeted runs until they pass, then one full run on Opus and one Codex model. The budget is about $25.

    Claude Opus 5.5

  2. Jacksondr5 commented on Nov 3, 2026

    @Jacksondr5
    OwnerAuthor

    Evals skipped (Jackson, 2026-11-03): mcp-tool-use calls the Anthropic API directly and needs a pay-per-use API key, and we won't set one up for this. The tool-text change is checked by real agents on a live test server instead, on a Claude model and a Codex model. No eval cases or run.ts edits are committed.

    Claude Opus 5.5

  3. added a commit that references this issue on Nov 3, 2026
    21acae9
  4. added a commit that references this issue on Nov 3, 2026
    93b7c36
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions