Verdict
Use the right AI model for every task—not the most expensive one.
Verdict is a local-first, policy-gated control plane for agent model selection. Task routing is explicit and opt-in; no provider or router is required for the offline proof paths.
User journey · Quickstart · Why it matters · Architecture · CLI · Docs · Contributing · Security
Why Verdict?
The problem it solves
Agents may use frontier, hosted, or local providers, but Verdict does not assume that a catalog entry is reachable or qualified.
Verdict is the decision layer between your task and those providers:
- Understand the task's difficulty, risk, context, and tool needs.
- Remove models that cannot safely or reliably handle it.
- Send routine work to the least expensive capable option.
- Escalate difficult or sensitive work to a frontier model when justified.
- Record why the route was chosen and what happened.
The goal is not “always use the cheapest model.” The goal is use the cheapest model that is good enough—and keep premium capacity available for the work that needs it.
Most AI tooling starts with: "which model should I use?"
Verdict starts earlier: "should this action happen, which choices are allowed, and can we prove what happened?"
In plain English: Verdict helps you use more of the models you already pay for—free, low-cost, and frontier—without sending every task to the most expensive option. It blocks choices that violate your rules, budget, privacy, or safety requirements.
It's the difference between a recommendation engine and a control plane:
| Typical router | Verdict | |
|---|---|---|
| Model selection | Heuristic tiers, static allowlists | Orchestrator proposes candidates; Verdict admits only policy- and evidence-qualified options |
| Safety | Best-effort fallback | Fail-closed gate — capability, budget, privacy, availability checks run before any upstream call |
| Unknown health | Assumed healthy | Explicit unknown / error states — unknown ≠ healthy |
| Explainability | "we picked GPT-4" | Per-candidate exclusion reasons, freshness timestamps, confidence, cache state — served at GET /v1/route/explain |
| Learning | None | Outcomes feed back through SONA / RuVector — advisory only, never bypasses the gate |
| Accountability | Logs | Durable, privacy-safe evidence receipts for every routing decision |
An optional orchestrator can do the expensive research. The gate (deterministic Python, no LLM in the enforcement path) does the enforcing. Neither can do the other's job — by design, codified in 20+ ADRs.
Verdict Core is a deterministic execution-policy control plane that sits between your agents and model providers:
┌─────────────────────────────────────────────────────────────────┐
│ YOUR AGENTS │
└─────────────────────────┬───────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ VERDICT CORE (Control Plane) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Eligibility │ │ Adaptive │ │ Evidence │ │
│ │ Gate │ │ Ranking │ │ Chain │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────┬───────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ EXPLICIT PROVIDER / ROUTE ADAPTERS │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ 19 Strategies│ │ Quota Guard │ │ Cost/Quality│ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────┬───────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ MODEL PROVIDERS (operator-configured) │
│ Anthropic • OpenAI • OpenRouter • Local • Custom │
└─────────────────────────────────────────────────────────────────┘
Key Features
| Feature | Description |
|---|---|
| Deterministic Routing | Same task → same model, every time. No randomness. |
| Eligibility Gates | Hard requirements (capabilities, latency, budget) enforced before ranking |
| Adaptive Ranking | Learns from runtime observations; promotes healthy models, demotes failing ones |
| Evidence Chain | Append-only audit trail: every decision has a verifiable receipt |
| Cost Optimization | 90% reduction vs always-frontier via task-based model selection |
| Multi-Provider | Anthropic, OpenAI, OpenRouter, local models — unified interface |
| Formal Verification | Contracts, schemas, and proofs for every layer |
30-Second Demo
No API keys. No config. Deterministic, offline, auditable. This is a local fixture demo—not a live provider call or production-readiness proof:
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
Status: PASS
- demo/no-tools: missing capability: tools
- demo/quota-empty: quota exhausted
- demo/unverified: health unknown
Every exclusion carries a machine-readable reason and state (capability_mismatch, quota_exhausted, unknown). That's the gate working.
Install → provider → route → mission → failover → replay
Follow the full user journey for the commands, evidence, and maturity limits. In short:
uv sync --extra dev
verdict --help
verdict detect --offline --json # no-probe offline status; no prompt sent
verdict quickstart --non-interactive --dry-run --json # offline route proof
The mission, failover, and replay stages are also available as bounded offline proofs. They do not imply live provider availability or generated-output quality. Run the forced failover proof and reload the persisted session:
verdict failover-proof --memory-path /tmp/failover.db --json
VERDICT_MEMORY_DB=/tmp/failover.db verdict replay <session-id> --json
Use route only as a local policy decision preview after configuring provider
metadata; it does not send the prompt to a model:
verdict route "summarize this change" --criticality low --terse
Install
# Recommended: transparent source install (uv)
# Requires Python 3.10+ and uv.
git clone https://github.com/mrnicholasbcarter-code/verdict-core.git
cd verdict-core
uv sync --extra dev --extra server --extra dashboard
# Optional convenience installer (review release assets first; Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/mrnicholasbcarter-code/verdict-core/main/install.sh | bash
Then:
verdict setup # interactive setup wizard (supports --dry-run --json)
verdict doctor --fix # scan & repair config / connectivity issues
verdict detect # discover available LLM providers on this machine
Cost Demo
# Run a fixture simulation; its numbers are not live-provider evidence
python scripts/demo-routing.py
# Output shows:
# - Always Opus: $12.47
# - Always Haiku: $0.18
# - Verdict Routed: $1.23
# - SAVINGS vs Opus: $11.24 (90.1%)
# - Quality gates: Reasoning→Frontier 88%, Simple→Cheap 92%
How It Works
┌──────────────────────────────────────────────┐
│ ORCHESTRATOR (frontier model) │
│ 1. Research the task │
│ 2. Review the OmniRoute catalog │
│ 3. Pick right-sized candidates per slice │
│ 4. Dispatch workers (Ruflo swarms / agents) │
└──────────────────┬───────────────────────────┘
│ candidate set
▼
┌──────────────────────────────────────────────┐
│ ELIGIBILITY GATE (deterministic) │
│ ✓ Capability passports ✓ Budget floors │
│ ✓ Privacy policy ✓ Probe-verified │
│ availability (TTL + stale-while-revalidate)│
│ │
│ PROTECTED WORK: fail-closed when fresh truth │
│ is absent. Intelligence is advisory — it can │
│ NEVER re-admit an excluded candidate. │
└──────────────────┬───────────────────────────┘
│ admitted set
▼
Workers execute → outcomes → SONA / RuVector
(learning loop improves advice, not authorization)
The gate has no selection logic. The orchestrator has no enforcement power. That separation is the whole point — see ADR-002 and the Routing Policy.
Hard guarantees (test-enforced)
- Intelligence cannot re-admit an excluded candidate —
test_ranker_cannot_reintroduce_excluded_candidate - Protected work fails closed when fresh truth is absent —
test_protected_work_fails_closed_when_truth_absent - Gate filters before any ranking —
test_intelligence_route_filters_before_ranking - Explain surface carries per-model eligibility and exclusions —
test_explain_surfaces_eligible_set_and_exclusions - Budget, concurrency, and timeout limits enforced — over-budget plans and replan increases rejected (
tests/test_planner.py,tests/test_ruflo_verification.py) - Every claim maps to acceptance criteria in ACCEPTANCE_GATES.md — CI fails if any gate lacks evidence
Evidence-backed public claims
Every public claim carries a status in the claims ledger — verified, observed, partial, self-reported, or unsupported — indexed in the proof matrix. Catalog counts are historical observations, not proof that every advertised route is live. The portfolio proof matrix maps each audience story to reproducible evidence and states its limits.
CLI Reference
verdict setup Interactive setup wizard (plan / --dry-run / --json)
verdict route Route a task: --criticality {critical,high,medium,low} --terse
verdict quickstart Credential-free deterministic flagship demo
verdict detect Discover local LLM providers (--config emits suggested config)
verdict probe 1-token liveness probe (--allow-live-probe for explicit consent)
verdict catalog Qualify an OmniRoute catalog snapshot (bounded sample probes)
verdict benchmark Reproducible local benchmark harness (--fixture, --output-json)
verdict stats Routing analytics
verdict suggest Review intelligence suggestions from past outcomes
verdict serve Launch the FastAPI microservice
verdict ui Launch the Streamlit analytics dashboard
verdict doctor Scan & repair configuration (--fix, --json)
verdict runtime Inspect/reconcile global Ruflo/RuVector ownership
verdict memory Local-first unified memory plane (put/search/export/import/...)
verdict check Validate config syntax and sanity
verdict uninstall Reversibly remove hooks and MCP registrations
Full flags and examples: docs/CLI_REFERENCE.md
Configuration
Layered — project overrides global:
- Global:
~/.verdict/config.toml - Project:
.verdict/config.toml
[gateway]
primary_model = "anthropic/claude-3-opus-20240229" # frontier floor for protected work
providers = {}
[intelligence]
profile = "balanced" # fast | balanced | thorough
timeout_ms = 8000
allow_client_model_override = false
[availability]
ttl_seconds = 60 # availability cache TTL
stale_window_seconds = 30 # stale-while-revalidate window
omniroute_base_url = "http://localhost:20128" # optional live catalog
Full reference: docs/CONFIGURATION.md
Architecture
| Component | Role | Technology | Status |
|---|---|---|---|
| EligibilityGate | Fail-closed deterministic checks — no LLM in the request path | Python | Implemented |
| ProbeRunner | Consented, budgeted liveness probes | Python + httpx | Implemented |
| OmniRoute catalog | Optional historical catalog snapshots with bounded liveness evidence and explicit limitations | External service (optional) | Optional adapter |
| Orchestrator | Candidate research, assignment, and worker dispatch | Optional runtime adapters | In progress |
| Learning loop | Outcome → advisory feedback | Optional intelligence adapters | In progress |
| Evidence ledger | Durable, privacy-safe routing receipts | JSONL + signed manifests | Implemented; expanding |
Design decisions live in docs/adr/ — 26 numbered records covering the evidence ledger, orchestrator boundary, fail-closed capability passports, consented probes, catalog qualification, gateway adapter contracts, and more. The ADR index lists every record with its decision and current status.
Ecosystem-stories ADR trail (verdict-ecosystem tracks the source stories):
| Story | ADR | Status |
|---|---|---|
| PRO-001 — Provider receipts | ADR-021 | Accepted (partial) |
| CTX-002 — Context provider conformance | ADR-022 | Accepted (partial) |
| SWARM-001 — Governed swarm supervision | ADR-023 | Accepted (partial) |
| CON-001 — Cross-repo compatibility gate | ADR-024 | Accepted (partial — verdict-core side only) |
| NOD-002 — Node envelope enforcement | ADR-025 | Proposed |
TypeScript ecosystem
TypeScript packages are published under the current @bodanglin/* namespace. Check each package README and release metadata before integrating:
| Package | Description |
|---|---|
@bodanglin/verdict-contracts |
Canonical TypeScript contract schemas and types |
@bodanglin/verdict-client |
TypeScript client SDK |
Python ↔ TypeScript field-level parity is verified in CI — see CONTRACT_PARITY.md.
Ecosystem repos
| Repo | Role | Status |
|---|---|---|
verdict-core |
Control plane (this repo) | Active |
verdict-node |
TypeScript adapter | Active |
verdict-ecosystem |
Cross-repo coordination | Active |
verdict-risk |
Risk evaluation provider | In progress |
verdict-strategy |
Strategy evaluation provider | In progress |
verdict-backtest |
Backtest provider | In progress |
verdict-cockpit |
UI dashboard | In progress |
Security
- Fail-closed protected work: protected actions halt when required fresh truth is unavailable — no silent fallback
- Consent-gated probes: network liveness checks require explicit
--allow-live-probe - Privacy: privacy-safe receipt ledger (THREAT_MODEL_RECEIPTS.md); logs and evidence must not contain PII
- Supply chain: CI runs dependency/security checks on protected-branch pushes, pull requests, and scheduled runs; see security workflow for scope and documented exceptions
- Installer trust: source/uv installation is the most transparent path; review
install.shand release assets before usingcurl | bash - Report vulnerabilities: see SECURITY.md
Documentation
| Topic | Link |
|---|---|
| Getting started | docs/GETTING_STARTED.md |
| CLI reference | docs/CLI_REFERENCE.md |
| Configuration | docs/CONFIGURATION.md |
| Architecture decision records (26) | docs/adr/README.md |
| Routing policy | docs/specs/ROUTING_POLICY.md |
| Acceptance gates (G1–G7) | ACCEPTANCE_GATES.md |
| Evidence index & claims ledger | docs/proof/EVIDENCE_INDEX.md |
| Portfolio proof matrix | docs/portfolio/PORTFOLIO_PROOF_MATRIX.md |
| Capability passports | docs/CAPABILITY_PASSPORTS.md |
| Contract parity (Python ↔ TS) | CONTRACT_PARITY.md |
| Autonomous development | docs/guides/autonomous-development.md |
| OmniRoute workers | docs/guides/omniroute-workers.md |
| Runtime ownership | docs/guides/runtime-ownership.md |
| Local development | docs/guides/local-development.md |
Development
# Tests (81 test files — unit + integration)
uv run pytest -q
# Lint & format
uv run --extra dev --extra server --extra dashboard ruff check .
uv run --extra dev --extra server --extra dashboard ruff format --check .
# Type check (strict)
uv run --extra dev --extra server --extra dashboard mypy verdict --strict
# Build
uv run python -m build
Contributing guide: CONTRIBUTING.md · Versioning: VERSIONING.md · Release process: RELEASE_CHECKLIST.md
License
MIT — © Verdict contributors
Built by Nicholas Carter — 25 years shipping systems at GM OnStar, Deloitte, BCBS Michigan, Mad Mobile/Stäubli, and now AI orchestration.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verdict_core-0.2.0.tar.gz.
File metadata
- Download URL: verdict_core-0.2.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fa8a38beed89a709d07fdc6f86b301e79bc8d6e97378254821a283f3b022825
|
|
| MD5 |
63dd30128ae76326d7205300a633ccc9
|
|
| BLAKE2b-256 |
0374648392f663afe9d8878ba7935500f2a073a882c99af07e21e9feab487d29
|
Provenance
The following attestation bundles were made for verdict_core-0.2.0.tar.gz:
Publisher:
release.yml on mrnicholasbcarter-code/verdict-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verdict_core-0.2.0.tar.gz -
Subject digest:
6fa8a38beed89a709d07fdc6f86b301e79bc8d6e97378254821a283f3b022825 - Sigstore transparency entry: 2568268058
- Sigstore integration time:
-
Permalink:
mrnicholasbcarter-code/verdict-core@762335eef314ffd7e7fff4c098e586533d2ca3d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mrnicholasbcarter-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@762335eef314ffd7e7fff4c098e586533d2ca3d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file verdict_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: verdict_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 525.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ffae641cbcb13f61665415080b3ba29d63692bb5e3092e7ac086fdec9cafb35
|
|
| MD5 |
81128c47ed2f7e49fd89e743aec81d3c
|
|
| BLAKE2b-256 |
116791d39033f98338f735ded4c95d6ea927ab7582df8f95a43312ec072b91b0
|
Provenance
The following attestation bundles were made for verdict_core-0.2.0-py3-none-any.whl:
Publisher:
release.yml on mrnicholasbcarter-code/verdict-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verdict_core-0.2.0-py3-none-any.whl -
Subject digest:
7ffae641cbcb13f61665415080b3ba29d63692bb5e3092e7ac086fdec9cafb35 - Sigstore transparency entry: 2568268079
- Sigstore integration time:
-
Permalink:
mrnicholasbcarter-code/verdict-core@762335eef314ffd7e7fff4c098e586533d2ca3d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mrnicholasbcarter-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@762335eef314ffd7e7fff4c098e586533d2ca3d6 -
Trigger Event:
push
-
Statement type: