Repository navigation
fix(benchmarks): forward providerOrder to sandbox agents and abort fuzz runs on OpenRouter-side 400s - #150
Conversation
…zz runs on OpenRouter-side 400s
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
Original prompt from Abhinav
|
TL;DR
Fixes the two Devin Review findings on openrouter-web#50950: sandbox agents now honor
providerOrder, and toolcall_schema_fuzz scores a 400/422 asrequest_rejectedonly when a provider rejected the request.What changed?
AgentCliOpts.providerOrderis passed asTB_OPENROUTER_PROVIDER_ORDERto the pibefore_provider_requestextension. The extension setsprovider.orderand keeps any other provider preferences the caller sent. terminal_bench, deep-swe and swe-atlas passproviderOrderthrough for Ori agents. Agents that don't forward request plugins fail with aSolverError, which matches how they already handlemodels.request_rejectedonly whenerror.metadata.provider_namein the error body is a non-empty string. A 400/422 that names no provider, such as OpenRouter rejecting an out-of-rangemax_tokens, now aborts the run instead of producing a 0% score.Why?
providerOrderbut dropped it before sending requests.request_rejected.How to test
The error shapes below were captured live today:
Benchmark impact
providerOrderis set.Checklist
Link to Devin session: https://openrouter.devinenterprise.com/sessions/72a3f13c847645c5b06306d88cec089d
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/72a3f13c847645c5b06306d88cec089d?variant=devin
Requested by: @abhinav-pola