Skip to main content

Verdict

A control plane for coding agents that shows its work.

Verdict decides which model may run each piece of a coding task, checks the work, has a different model review it, and writes a receipt you can verify.
Model admission, bounded recovery, a separate review route and receipts you can verify.

CI Security coverage gate 70% version 1.0.0 Python 3.10+ MIT license

Replay of one live verdict orchestrate run (20261119T130739Z, 2026-11-19, main 35c110c1, free capacity) in the Verdict cockpit: workers on cerebras/gpt-oss-120b hit a real HTTP 429 rate limit and a failed test, both nodes are reassigned to nvidia/google/gemma-4-31b-it and pass, open-code-review on a different model family returns PASS, and verdict run-receipt reports integrity OK with exit status 0. Gaps between events capped at 1.5 s.

Replay of one live verdict orchestrate run on the operator's gateway (2026-11-19, main 35c110c1, FREE capacity only), not a fixture and not a benchmark. Idle time is capped: gaps between events over 1.5 s are shortened. asciicast | evidence record

Quick start | How a run works | Verify a receipt | Limits | Docs


The problem

A coding agent can reach many models through one gateway. Some are out of quota. Some are rate-limited. Some cannot call tools. The model list does not tell you which. When the run ends you are told it passed. You are not told which model did the work, which models were refused and why, or whether anyone other than the author looked at the result.

Give Verdict a goal and a git repository. It plans the work, admits models from live evidence, runs the work in parallel, reassigns a node when a model fails, asks a reviewer on a separate route to approve the result, and writes a receipt you can check afterward. A model that fails an admission check cannot be ranked back in.

Verdict does not run models itself. OmniRoute, a local OpenAI-compatible gateway, lists the models and carries the calls. ocr (open-code-review) does the review.

What you get

Models are checked before they are trusted Verdict looks at live account, health and quota evidence before it uses a model, and records why it dropped any other.
Free and already-paid capacity first Eligible free and already-paid capacity is tried before pay-per-call routes. This is a selection policy, not a savings claim. The retained live run used subscription workers, not free workers; free capacity still needs fresh admission evidence.
Recovery with a limit A quota limit, rate limit, timeout or failed verification can retry the same work, sometimes on another admitted model, within a bounded number of tries. When the tries are spent or no admitted model is left, the run ends BLOCKED. It does not hang.
A separate review route A reviewer on a route that did not implement the work must approve the result. Another model family is preferred; when none has capacity, review falls back to route-level independence. A skipped or empty review is an error, not a pass.
A receipt you can verify A completed run's receipt stores a digest of its event log. verdict run-receipt checks that log against the receipt and flags any change.
A live view verdict watch shows a run while it happens, and replays a finished one.

Quick start (no API keys)

The fixture makes one deterministic routing decision. It needs no API key, no gateway and no model call:

git clone https://github.com/mrnicholasbcarter-code/verdict-core && cd verdict-core
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

verdict quickstart --non-interactive --dry-run
Verdict credential-free quickstart
===================================
Task: Add structured output to the invoice parser
Required capabilities: structured_output, tools
Selected route: demo/frontier-tools
Excluded candidates: 3
Receipt: fixture:issue-35 (deterministic_fixture)
Status: PASS
- demo/no-tools: missing capability: tools
- demo/quota-empty: quota exhausted
- demo/unverified: health unknown

Three candidates were refused, and each refusal has a named reason. Source: verdict/flagship_demo.py. Test: tests/test_flagship_demo.py asserts this block byte for byte.

Run the whole loop offline

verdict demo
18    failure         node-1    category=rate_limited
...
58    review                    attempt 1  reviewer=gamma/gemini-c  PASS
...
60    run_finished              outcome=COMPLETE

OFFLINE SCENARIO: scripted workers (1.5 s each), injected faults

verdict demo is an offline self-test: scripted workers, fixture routes and injected faults, with no model calls. It runs the real orchestration pipeline (planner, admission, DAG runtime, failure handling, integration barrier, review-route policy, receipt writer) against fixture data. It shows the mechanics. It is not evidence of live behaviour. The full trace and the offline recordings are in the offline demo guide.

Watch the interface in action

Offline UI walkthrough with scripted workers: a task DAG, injected rate-limit recovery, a scripted review, receipt verification and rejection of a tampered receipt

Offline UI walkthrough — scripted workers and injected failures; no live model calls. Shows the interface and receipt verification, not model performance, savings or release certification. Recorded terminal replay at 1x; idle gaps over 1.5 seconds are capped. Recording details and full cast | Live-run evidence

How a run works

  1. Plan. A planner model splits the goal into a small graph of work items, called nodes. Each node owns its files and has a command that checks the work.
  2. Admit. Verdict builds one list of models that may be used now, from live gateway evidence: inventory, accounts, health, cooldowns and quota. Every dropped model gets a named reason. A model with no runtime evidence stays unknown. It is never counted as healthy.
  3. Run. Each node runs as its own worker, in parallel where the graph allows. By default workers use the built-in direct-gateway executor: each worker request goes straight to the gateway, so no agent has to be installed.
  4. Recover. A quota limit, rate limit, timeout or empty answer cools down the route or its provider, and the node goes to another admitted model. When none is left, or the attempt budget is spent, the node stops with a named FAIL_CLOSED and the run ends BLOCKED.
  5. Check and review. Each node must pass its own check. The merged result must pass an integration check. Then ocr reviews the diff on a route that no final implementer used.
  6. Receipt. The run writes a receipt that holds a SHA-256 digest of its event log.
%% run-overview.mmd -- one verdict orchestrate run at reader level (README)
%% Source (verified against code at this commit):
%%   verdict/orchestration/planner.py (FrontierPlanner)
%%   verdict/orchestration/eligibility.py (EligibilityLadder)
%%   verdict/orchestration/runtime.py (DagRuntime)
%%   verdict/orchestration/review.py (OpenCodeReviewer)
%%   verdict/orchestration/receipt.py (verify_run_receipt)
%%{init: {'theme':'base','themeVariables':{'darkMode':true,'background':'#101014','fontSize':'15px','primaryColor':'#18181b','primaryTextColor':'#f4f4f5','primaryBorderColor':'#52525b','secondaryColor':'#18181b','secondaryTextColor':'#f4f4f5','secondaryBorderColor':'#52525b','tertiaryColor':'#101014','tertiaryTextColor':'#f4f4f5','tertiaryBorderColor':'#52525b','lineColor':'#7c7c88','textColor':'#f4f4f5','mainBkg':'#18181b','nodeTextColor':'#f4f4f5','nodeBorder':'#52525b','clusterBkg':'#101014','clusterBorder':'#52525b','titleColor':'#f4f4f5','edgeLabelBackground':'#18181b','noteBkgColor':'#18181b','noteTextColor':'#f4f4f5','noteBorderColor':'#52525b','actorBkg':'#18181b','actorBorder':'#a78bfa','actorTextColor':'#f4f4f5','actorLineColor':'#7c7c88','signalColor':'#7c7c88','signalTextColor':'#f4f4f5','labelBoxBkgColor':'#18181b','labelTextColor':'#f4f4f5','loopTextColor':'#f4f4f5','activationBkgColor':'#101014','activationBorderColor':'#22b8eb','sequenceNumberColor':'#101014'}}}%%
flowchart TD
    G["Goal and a git repository"] --> P["Plan: nodes, each with owned files and a check"]
    P --> A{"Admit: live evidence for each model"}
    A -- "dropped, with a named reason" --> D["Not a candidate"]
    A -- admitted --> W["Run: one worker per node, in parallel"]
    W --> V{"Node check passes?"}
    V -- "no, or the worker failed" --> R{"Admitted model and attempts left?"}
    R -- "yes: reassign" --> W
    R -- no --> B["BLOCKED, with a named reason"]
    V -- yes --> I{"Integration check on the merged result passes?"}
    I -- no --> B
    I -- yes --> O{"Review by ocr on a separate route"}
    O -- "no PASS" --> B
    O -- PASS --> C["COMPLETE: receipt holds the SHA-256 of the event log"]
classDef active fill:#18181b,stroke:#22b8eb,color:#f4f4f5,stroke-width:2px
classDef selected fill:#18181b,stroke:#a78bfa,color:#f4f4f5,stroke-width:2px
classDef cooldown fill:#18181b,stroke:#f5b00b,color:#f4f4f5,stroke-width:2px
classDef failed fill:#18181b,stroke:#f87171,color:#f4f4f5,stroke-width:2px
classDef validated fill:#18181b,stroke:#4ade80,color:#f4f4f5,stroke-width:2px
classDef muted fill:#18181b,stroke:#52525b,color:#a1a1aa,stroke-width:1px
class P,W active
class C validated

The eligibility ladder, the recovery rules, the three engineering diagrams and the source file behind each step are in docs/HOW_IT_WORKS.md.

What a receipt proves, and what it does not

A verified receipt proves It does not prove
The event log is byte-for-byte the one the receipt was written from (SHA-256 digest). That nobody replaced both the log and the receipt. Neither is signed or externally anchored.
Every field of the receipt can be rebuilt from that log: nodes, attempts, routes, failures, reassignments, review status. That the model output or the code is correct. Each node's own check and the review decide that.
A reviewer on a route that did not implement the final work recorded PASS. That the review was thorough. Raw ocr output must show non-skipped coverage to count as semantic review.
Which routes were tried, refused or cooled down, and why. The capacity class or cost a provider actually billed.

Verify a receipt yourself

From your clone, check a tracked live-run receipt. Then check a copy with one byte added to its event log:

verdict run-receipt docs/proof/dogfood-bod-225-live-2026-09-29

copy="$(mktemp -d)/tampered"
cp -r docs/proof/dogfood-bod-225-live-2026-09-29 "$copy" && printf ' ' >> "$copy/events.jsonl"
verdict run-receipt "$copy"
COMPLETE: all implement/integrate nodes validated, barrier ok, review PASS
integrity: OK (events digest verified)
...
INTEGRITY FAILED: events_digest mismatch: events.jsonl changed after receipt was written
recorded (unverified): COMPLETE: all implement/integrate nodes validated, barrier ok, review PASS
...

The first command exits 0. The second exits 1, names the digest mismatch first, and labels the stored outcome as recorded but unverified.

Proof from a live run

A bundle you can verify. docs/proof/dogfood-bod-225-live-2026-09-29/ holds a live verdict orchestrate run for a real story (BOD-225), with real providers reached through OmniRoute. It is not a fixture. It records one injected fault and two real worker faults, a controller restart and resume, and a reviewer PASS on a route no final worker used. It is a single run. The raw ocr output was not retained, so the review itself cannot be re-audited from the bundle. Its README says what it proves and what it does not.

The recording at the top. One verdict orchestrate run from main 35c110c1 on 2026-11-19, on free routes only: a real HTTP 429 and a failed test on cerebras/gpt-oss-120b, both nodes reassigned to nvidia/google/gemma-4-31b-it, review PASS by ocr on a route from another model family, receipt integrity OK. Its evidence record quotes the run's digests and verdict run-receipt output. It is an evidence record, not a verifiable bundle: the raw event log is kept privately because it holds host paths. An earlier one-node run has its own evidence record.

Verdict building Verdict. Verdict has built one story of its own: BOD-305, merged as PR #1115. It took six runs and five of them ended BLOCKED. This is not routine yet.

Install

Version 1.0.0 is in this repository and is not published. There is no v1.0.0 tag. PyPI and install.sh still give 0.4.2. To get 1.0.0 today, install from a clone, as the quick start does:

git clone https://github.com/mrnicholasbcarter-code/verdict-core && cd verdict-core
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

The published release is one command:

pip install verdict-core

That installs 0.4.2, not 1.0.0. verdict demo ships in verdict-core on PyPI (since 0.4.0; the newest version on PyPI is 0.4.2 until 1.0.0 is published), and so does verdict quickstart. The rest of this README describes 1.0.0.

Python 3.10, 3.11, 3.12 and 3.13, tested in CI on Linux (Ubuntu). macOS and Windows are not tested in CI.

A live run

A live run needs four things: an OmniRoute gateway at http://localhost:20128 with at least one provider account, its key exported as VERDICT_OMNIROUTE_API_KEY, ocr on your PATH, and a git repository to change.

verdict doctor                                  # health check, with a repair command for each failure
verdict orchestrate "your goal, in a sentence" --repo .
verdict watch <run-id>                          # live view of the run
verdict run-receipt <run-id>                    # show and verify its receipt

verdict serve is the HTTP service (install it with pip install -e '.[server]'). POST /v1/route returns a route decision for a request that carries an execution_path_request. POST /v1/chat/completions routes a call and relays it upstream. It needs LLMGATE_AUTH_TOKEN and VERDICT_RECEIPTS_DB before it starts; verdict setup --apply --allow host.serve sets both. See first run.

Claude Code, Codex, Cursor, Cline and OpenCode can be pointed at that relay as their model endpoint: verdict harness <tool> enable. That makes the tool a client of Verdict. It does not make it a worker: verdict orchestrate cannot run a worker on any of them. See the harness guide.

Architecture

Verdict is the control plane. Other tools do the execution, and Verdict only calls them.

Part What it does
Verdict Plans, admits and selects models, recovers from failures, verifies, writes receipts. Never runs a model itself.
OmniRoute The gateway: lists the models (/v1/models) and carries every model call (/v1/chat/completions).
Worker executor Runs one node. direct-gateway by default. It never selects a model: Verdict passes it the exact admitted route.
ocr The reviewer CLI (open-code-review). Runs on a route no implementer used.

Component map and data flow: docs/architecture.md. The design decision behind the loop: ADR-036.

Limits

  • 1.0.0 is not released. The release workflow requires a CERTIFIED evidence bundle (repository variable VERDICT_REQUIRE_CERTIFIED_BUNDLE is true). None exists, because the certification rehearsal does not pass yet. Until one exists the workflow refuses to publish.
  • No cost saving is claimed yet. No token saving is claimed either. The 2026-09-28 live cost check chose the same model in both arms, so it measured no routing saving. One paired usage run on 2026-11-19 did not support a claim: the Verdict arm completed fewer tasks than the baseline, so the bench refused it. Its evidence is not published. See docs/benchmarks/README.md.
  • Context packing: one dated live observation, not offline proof. One recorded paired run, n=1, on a live gateway. See docs/benchmarks/context-lift.md. A blocked or skipped live run makes no lift claim.
  • Self-hosting is early. One story built by Verdict itself, in six runs, five of them BLOCKED.
  • Live orchestration requires a gateway. OmniRoute must be running at http://localhost:20128. The credential-free quickstart and benchmark paths need no gateway.
  • Worker model availability is external. Verdict combines gateway inventory and account evidence with its own runtime health and admission evidence before selection. Quota, rate limits, and provider outages are not under Verdict's control. It recovers from them, but cannot prevent them.
  • Workers run on direct-gateway by default. There is no worker executor for OpenCode, Claude Code or Codex.
  • Independent review requires ocr on PATH. open-code-review is a separate binary. --no-review skips it and ends the run BLOCKED.
  • Receipt integrity covers event logs, not LLM or OCR output. Verification detects event-log changes against the retained receipt. Recorded reviewer PASS alone can lack semantic coverage. Neither the receipt nor the log is signed or externally anchored against replacing both files.
  • No static fallback chains (retries stay inside the admitted set); OpenTelemetry is optional (verdict-core[tracing]). See How Verdict differs.
  • Version 1.0.0, active development. Contracts, schemas, and receipt formats are versioned. Breaking changes require an ADR.

Documentation

Topic Location
How it works, in full: the loop, the ladder, three diagrams, feature tables, decision signals docs/HOW_IT_WORKS.md
Getting started docs/GETTING_STARTED.md
A live orchestration run, step by step docs/guides/orchestration-golden-path.md
Offline demo, its trace and recordings docs/guides/offline-demo.md
Every command and flag docs/CLI_REFERENCE.md
Configuration, entry points, live gateway checks docs/CONFIGURATION.md
API keys and optional dependencies docs/credentials.md
Coding-agent harnesses: clients of the relay, and the optional worker harness docs/guides/harnesses.md
How Verdict differs; LiteLLM, OpenRouter, Portkey docs/guides/comparison.md
Architecture and decisions docs/architecture.md, ADR index
Evidence: index, benchmarks, claim ledger docs/proof/EVIDENCE_INDEX.md, docs/benchmarks/README.md, docs/CLAIMS.md
Unknown is not healthy: fail-closed drops docs/guides/unknown-not-healthy.md
Receipt threat model docs/THREAT_MODEL_RECEIPTS.md
User journey and maturity of each step docs/USER_JOURNEY.md
Changelog and upgrade notes CHANGELOG.md

Roadmap

None of this is done. It is listed so nothing above is read as covering it.

  • Publish 1.0.0. Waits on a passing certification rehearsal.
  • A worker executor for OpenCode. Planned, not started.
  • Cross-provider fencing on the first worker failure. Today a failure cools down only the failed route or its own provider.
  • A single retry authority. Node recovery, the relay and the reviewer each keep their own bounded retry loop today.
  • Subscription headroom-aware selection. Admission drops exhausted subscription routes. Selection does not yet rank eligible routes by the headroom left.
  • Automatic gateway restart and upgrade. Verdict can start a configured local gateway when you opt in. It does not restart an unhealthy one or upgrade OmniRoute.

Contributing

Start with CONTRIBUTING.md and AGENTS.md. Security reports: SECURITY.md.

License

MIT. See LICENSE.

Metadata

Release files for verdict-core 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verdict-core 1.0.0
File Size Uploaded Provenance Actions
verdict_core-1.0.0.tar.gz 1.8 MB With provenance Details for verdict_core-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for verdict-core 1.0.0
File Interpreter ABI Platform Actions
verdict_core-1.0.0-py3-none-any.whl Python 3 none any Details for verdict_core-1.0.0-py3-none-any.whl

Total release size: 3.9 MB

Release files / verdict_core-1.0.0.tar.gz

Download URL verdict_core-1.0.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
b460750c85e76d667b7204483b7e8ea67b6175e940e32ae70d854e7d0eaa81b4
BLAKE2b-256 checksum
How to use checksums
634be923c4f93e4d84c3b61dd7f0eb0c444b67daf068efa9c7c787c4ba4f3ac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / verdict_core-1.0.0-py3-none-any.whl

Download URL verdict_core-1.0.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
06cde9649e4a634a23bd8747345b2c7b746f821b49d4d162bcdddef9bf0ea10b
BLAKE2b-256 checksum
How to use checksums
9e139172dbc581c05c01164c25dc8d2a2ed6d7ff422ef06327024e10e8b23b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for verdict-core 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for verdict_core-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page