Skip to content

Standard: a benchmark's own agent cannot declare the API it speaks #813

Backlog

Description

@opPO333

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Evidence

An agents.json entry takes vendors and refuses (_driver_agent in contract/definitions.py), not apis. setup() gives the run apis from setups.original, one value for every agent of the benchmark.

WebArena-Infinity has two agents:

  • gpt speaks Chat Completions.
  • claude speaks Anthropic Messages (browser-use ChatAnthropic).

The setup's default chat leaves the OpenAI provider open to both. On it, claude's calls go to https://api.openai.com/v1/messages and fail. Its tasks count as agent misses.

providers.offered() keeps a preset only when its endpoints list the API. The OpenRouter preset lists no messages. OpenRouter serves /messages: the claude trial on OpenRouter got 200 replies. A per-agent apis: ["messages"] alone would drop OpenRouter too.

Reproduction

  1. Builder: WebArena-Infinity, Original, agent "Browser Use with Claude".
  2. Provider: OpenAI, listed in setups.original.providers.
  3. Run 1 task.

Expected

A benchmark's own agent declares apis. The builder and nullius standard run offer only providers that serve one of them.

Acceptance

  • An agents.json entry accepts model: {apis}, checked like a catalogue agent's
  • The run's APIs are resolved once, for the builder and nullius standard run: the chosen agent's, then Original's, then chat
  • The OpenRouter preset lists messages and keeps bearer authentication
  • A test with a two-agent fixture: the Messages agent is refused on OpenAI and offered on OpenRouter with a bearer header; the Chat agent is still offered on OpenAI; a definition without model.apis inherits Original's

Related

#751, #803

Activity

  1. added theissue type on Dec 3, 2026
  2. harenome commented on Dec 3, 2026

    @harenome
    Collaborator

    Checked against main (0046bf29b) and #803's head (ff89e8603).

    Why the gap exists

    Suggested fix

    • Reuse the catalogue field: an agents.json entry takes model: {apis}, checked like a catalogue agent's. Resolve chosen agent, then Original, then chat, once, for the builder and nullius standard run (recipe.py:274-279 already reads model.apis).
    • Add messages to the OpenRouter preset, keeping bearer authentication: choosing messages switches the relay to x-api-key today (run.py:237-244, relay.py:941-950).

    Side effects of adding messages to OpenRouter: Claude Code becomes offered there, ClawMark switches to Messages there, and the LLM judge stops falling back to chat. test_provider_registry.py:102, test_judge_decisions.py:89-90, test_command_builder_providers.py:190-191 and docs/standard.md pin the current list.

    Also affected on main: OSWorld1, OSWorld2, MyPCBench and PAST Bench mix Messages, Chat and Responses agents. Vendor or provider limits hide some cases.

    Acceptance, suggested changes

    • Box 1: model.apis, not a top-level apis.
    • Box 4: Claude refused on OpenAI and offered on OpenRouter with a bearer header; GPT still offered on OpenAI; old definitions inherit Original's APIs. A two-agent fixture keeps the test independent of feat(catalogue): add WebArena-Infinity #803.
  3. opPO333 commented on Dec 4, 2026

    @opPO333
    ContributorAuthor

    Updated the acceptance boxes in the description to the suggested changes.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions