You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Standard: a benchmark's own agent cannot declare the API it speaks #813
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
Builder: WebArena-Infinity, Original, agent "Browser Use with Claude".
Provider: OpenAI, listed in setups.original.providers.
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
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.
Activity
harenome commentedon Dec 3, 2026
Checked against main (
0046bf29b) and #803's head (ff89e8603).Why the gap exists
model.apisis read only for catalogue agents (definitions.py:387-393,1919-1949). Anapisfield inagents.jsonis silently ignored today.definitions.py:1546), the same for every agent of the benchmark.messages; fix(settings): keep preset provider endpoints fixed #384 then made preset endpoints fixed. Two tests pin the current list (test_provider_registry.py:102,test_judge_decisions.py:89-90).Suggested fix
agents.jsonentry takesmodel: {apis}, checked like a catalogue agent's. Resolve chosen agent, then Original, thenchat, once, for the builder andnullius standard run(recipe.py:274-279already readsmodel.apis).messagesto the OpenRouter preset, keeping bearer authentication: choosingmessagesswitches the relay tox-api-keytoday (run.py:237-244,relay.py:941-950).Side effects of adding
messagesto 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-191anddocs/standard.mdpin 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
model.apis, not a top-levelapis.opPO333 commentedon Dec 4, 2026
Updated the acceptance boxes in the description to the suggested changes.