Repository navigation
Conversation
--model beveridge talks to bev.load() in process (Large-C by default; CPU is enough) or, when BEV_URL is set, to bev serve at POST /v1/decide. Choice and noul only; no images; at most 15 questions per call. Contract tests use a stub server and a fake bev.load so CI never downloads weights. Closes #135.
Birfy
left a comment
There was a problem hiding this comment.
Review (Birfy) — comment only, own PR, not approving
Head e4d07eee, CI green (core 3.11/3.13, full, benchmarks). This matches #135: --model beveridge against in-process bev.load() (default Large-C after uv sync --extra beveridge, BEV_MODEL selects large-c / pro-c / pro-c-web or a repo/path) or a local bev serve (BEV_URL wins and posts to /v1/decide, not /v1/systemone). Optional BEV_API_KEY is only for a gateway; upstream bev serve has no auth. Choice and noul only; instructions are a non-empty string; browser element rows are flattened via omnijev_option. Screenshots are dropped and no images field is sent. More than 15 questions is a config error (paper cap; the 0.2.5 package allows 16). Missing or malformed answers fail closed. In-process decide is the answers dict itself, not an {"answers": ...} envelope; the served path uses the envelope and Usage.from_payload. Provenance keeps path, requested checkpoint, and on the served path URL, request id, and Server-Timing. One transport / 502 / 504 retry sits inside BEV_TIMEOUT_S.
Offline stub tests cover served vs in-process bodies, aliases, the 15-question cap, missing/malformed answers, image dropping, and env selection (BEV_URL wins over an installed package). No live Large-C or bev serve run in this PR, as stated. Do not copy Beveridge-Bench / automation-rate / web-navigation percentages as Agents results. I did not find a blocker in the adapter.
Two non-blocking notes for the first live run:
BEV_URLis treated as the server origin and always has/v1/decideappended. If a first run pasteshttp://127.0.0.1:8000/v1/decide, the client will post to/v1/decide/v1/decide. The.env.examplealready shows the origin form; just don't treat a 404 from a pasted path as a model failure.- Images are dropped with a warning rather than refused, so the browser front can still use the text page state. A live browser write-up should say the screenshot was not sent, and should not be read as a multimodal Beveridge run.
/healthalso does not name the checkpoint, so served provenance falls back toBEV_MODELuntil a payloadmodelfield appears (already tested when the server echoes one).
I am not approving this PR (it is mine). The adapter looks ready for review.
Required human contributor answers
Danyang (repo owner) asked scheduled coding runs to fill these from the issue and not wait for a separate human form (ignore PR #71's gate). Source: #135.
What outcome are you trying to achieve?
Answer: A first-class
--model beveridgeadapter so Agents can use Beveridge Large-C / Pro-C / Pro-C-Web on the same fronts as the other text backends, without pretending their published benchmark numbers are ours.What is the highest-leverage variable for that outcome?
Answer: A faithful mapping onto Beveridge's real request path (
bev.load()orPOST /v1/decide), with fail-closed limits (15 questions, noscore, no inventedimagesfield) and contract tests that never download weights.How will this work move that variable rather than create busywork?
Answer: It lands the adapter and registration only. Live qualification on ticket_router or Allrecipes is explicitly out of scope for [Feat] Add Beveridge (Large-C / Pro-C / Pro-C-Web) as a decision backend #135 and left as a follow-up.
Who is the customer or user, and what do they actually need?
Answer: Agents contributors and eval runners who want to point
--model beveridgeat a local Large-C (CPU) or abev serveprocess, with clear docs on checkpoints,/v1/decide, and limits.After answering the four questions: is a PR needed at all to achieve this outcome?
Human decision and rationale (or explicit source reference): Yes — #135 asks for the adapter to land this way, same split as #129.
For a bug fix: link actual observed failure evidence.
Evidence: Not a bug fix.
Why
Beveridge is an Apache-2.0 family of open-weight System One decision models (arXiv:2611.18655). Its HTTP server speaks
POST /v1/decide, not/v1/systemone, so it cannot ride--model jev. Large-C is a laptop-CPU encoder in the same niche as in-process Laya. See #135.How
New adapter
s1a/decision_models/beveridge.py, registered onbuild_model, tool, rails, browser,decide/probe, and MCP:bev.load()of Beveridge-Large-C afteruv sync --extra beveridge.BEV_MODELselectslarge-c/pro-c/pro-c-web(or a repo id / path).BEV_URLwins and posts to/v1/decide. OptionalBEV_API_KEYonly for a gateway; upstreambev servehas no auth.Observation.stateplus named choice/noul questions onto Beveridgestate+questions(string instructions, flattened criteria). Fails closed on more than 15 questions and on a missing or malformedanswersobject. Screenshots are dropped; noimagesfield is sent.raw: in-process vs served, requested checkpoint, and the model name the package or server echoes when it sends one.Files to open first:
s1a/decision_models/beveridge.py,tests/test_decision_models_beveridge.py,docs/decision-models.md.What
--model beveridgeon the text fronts (tool, rails, browser,s1a decide/probe, MCPdecide).uv sync --extra beveridge(bev-decisions>=0.2.5). The served path needs no extra.BEV_URL,BEV_MODEL,BEV_DEVICE,BEV_API_KEY,BEV_TIMEOUT_S(see.env.exampleanddocs/configuration.md).Verification
uv run ruff format --check . && uv run ruff check . && uv run ty checkuv run pytest -q— 1415 passed, 136 skipped (plus a later targeted re-run after format);scripts/smoke.sh—smoke: okCHANGELOG.mdand the docs say what the code does nowDemo / evidence
/v1/decideand fakebev.loadcontract tests only (choice, noul, 15-question cap, missing/malformed answers, in-process vs served env selection). CI does not call Hugging Face or a GPU.e4d07eeonissue-135-beveridge, based onmainc4da7c3. No live worker.Closes #135.