Skip to content

[Feat] Add Beveridge (Large-C / Pro-C / Pro-C-Web) as a decision backend #135

Backlog

Description

@Birfy

Why

Beveridge is an Apache-2.0 family of open-weight System One decision models (released October 2026, paper dated on arXiv as 2611.18655). A request is a document plus named typed questions (choice / noul / score); the response is a probability distribution per question, with no generated text.

Large-C is in the same niche as in-process Laya (a small encoder that can run on a laptop) and is a natural fit for ticket_router. The authors also emphasise calibrated probabilities and a bev.gate(..., threshold=...) helper for handing over only the confident answers; that is related to #94 but this issue is the adapter, not deferral. Pro-C-Web is trained on generated web steps and, in the paper, is plugged into the jev-ultrafast decision interface (operation + target questions over a JSON page description). Large-C is text-only (no images, 4,096-token context, English). Do not assume screenshot input.

The HTTP server is close to, but not, the System One path we already speak:

pip install "bev-decisions[serve]"
bev serve --model sathiskumarjothi0/Beveridge-Large-C --port 8000
# POST /v1/decide  body: {"state": ..., "questions": {...}} or {"state": ..., "preset": "ticket_triage"}
# GET  /health, /v1/presets

It binds 127.0.0.1 and has no auth of its own. There is no /v1/systemone, so this cannot ride --model jev with TYPESAFE_API_URL. In-process use is pip install bev-decisions and bev.load() (default Large-C) or bev.load(bev.PRO_MODEL) / the Web checkpoint.

This is not a substitute for the open issues that add or qualify other backends:

Do not copy Beveridge's Beveridge-Bench / automation-rate / web-navigation percentages into our docs as Agents results. Those are their runs, on their harness.

Proposed work

  1. Add --model beveridge as a dedicated adapter (same shape as laya / clef / glide):
    • In-process default: bev.load() of Beveridge-Large-C when no server URL is set. A BEV_MODEL (or equivalent) selects Large-C, Pro-C, or Pro-C-Web. This path should work on CPU for Large-C after uv sync of a documented extra; do not vendor weights.
    • Served path: BEV_URL (e.g. http://127.0.0.1:8000) wins when set, and posts to /v1/decide (not /v1/systemone). Optional key only if we later sit it behind a gateway; the upstream server has none.
  2. Map our Observation.state + named ChoiceQuestion / NoulQuestion onto their state + questions (type, instructions, criteria). Fail closed on score (we have no ScoreQuestion), on more than 15 questions in one decide_many (their documented cap), and on a missing or malformed answers object. Do not invent a screenshot / images field the cards do not document.
  3. Provenance on the reply (raw): which checkpoint or served URL was used, in-process vs served, and the model name the package or server echoes, not only the name we sent.
  4. Contract tests against a stub /v1/decide server and, if in-process is in this PR, against a fake bev.load so CI never downloads weights or needs a GPU. Register the name on the same fronts as the other text backends (decide, tool, rails, MCP, browser text path).
  5. Docs and CHANGELOG: how to run Large-C locally, how to point at bev serve, the 15-question and 4,096-token limits, that Large-C has no images, and that Pro-C-Web is a text/JSON page-action checkpoint rather than a screenshot model. A live qualification run is not required to land the adapter (same split as [Feat] Add Fastino GLiDE as a served System One decision backend #129).

Acceptance criteria

  • --model beveridge is selectable and fails closed when neither the package/weights nor BEV_URL can be used.
  • Offline stub tests cover choice and noul, the 15-question cap, a missing answers object, and the in-process vs served env selection. CI does not call Hugging Face or a GPU.
  • CHANGELOG and docs/decision-models.md / configuration describe the real request path (/v1/decide or bev.load()), checkpoints, and limits.
  • Their benchmark percentages are not copied as Agents results.

Out of scope

References

Activity

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions