Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Verdict Python SDK

PyPI distribution: cognifity-verdict · Python import: verdict · Apache 2.0

Verdict records the work a Python agent performs and connects supported model calls to that work. The dashboard helps a team investigate recorded failures and token usage, evaluate a selected scope, compare a change on reviewed cases, and monitor incoming activity.

The product is for agents in real applications. Claude Code and Codex history imports are additional local starting points.

Start locally

The published release is currently a beta pre-release, so use --pre to install the newest beta without hardcoding a version:

python3.12 -m venv .venv
.venv/bin/python -m pip install --pre 'cognifity-verdict[dashboard]'
.venv/bin/verdict

The first-run screen can preview and import your local Claude Code or Codex history, connect an existing Verdict store, or import supported telemetry. Preview and approve local history capture; Verdict does not replay agent commands. Home then shows reported usage and recorded issues. Investigation opens the affected sessions and runs. No provider key is needed for capture, local checks, or the synthetic demo.

Instrument an application agent

Install the extras for the provider SDKs your application actually uses. The example below includes all three supported provider families:

python -m pip install --pre \
  'cognifity-verdict[anthropic,openai,google,dashboard]'

Initialize once at startup and record application work at the point where it happens:

import verdict

verdict.init(storage="sqlite:///./verdict.db", service_name="support-agent")

with verdict.agent_run(name="support-agent", session_id="session-123") as run:
    with run.turn(user_input="Look up the sample order") as turn:
        with turn.tool("lookup_order", arguments={"order_id": "sample"}) as tool:
            tool.set_output({"found": True})
        turn.set_output("The sample order was found.")
    run.record_business_outcome("resolved", True)

Supported Anthropic, OpenAI, and Google SDK calls inside the turn create genuine linked model-call traces. Verdict captures provider-reported usage, latency, finish reason, and errors where the provider supplies them. The application supplies its own run, tool, test, feedback, and outcome records; Verdict does not infer task success from a model answer. SDK content capture is bounded and on by default; use verdict.init(capture_content=False) when the application should retain metadata without prompts or responses.

For exact SDK entry points and coverage, read the release profile. For more event helpers and imports, read the onboarding guide.

Investigate, evaluate, monitor

  • Home and Investigation show source-reported tokens, captured runs, and recorded issues. A finding links to the affected run or event. Missing usage or source coverage remains visible.
  • Suggested setup proposes checks supported by the connected evidence. Run a local check once and review it before saving a recurring plan.
  • Evaluation combines key-free deterministic checks with optional, explicitly approved provider-backed judging of bounded selected evidence. Reviewed cases can compare a configured baseline and candidate application.
  • Monitoring can persist deterministic agent findings on a schedule. A separate prospective statistical monitor compares eligible genuine provider-call traces. A saved schedule or policy is not evidence that its worker has run; check the worker's cycle status.

Start the dashboard against the same store:

.venv/bin/verdict-dashboard --storage sqlite:///./verdict.db --host 127.0.0.1

The Agent Profiler guide contains a key-free synthetic demo and the evidence boundaries for local histories. The statistics primer explains model-call comparison eligibility and alert gates.

Customer-managed deployment

A single-tenant team can use a dedicated PostgreSQL store with a separately run dashboard and supervised verdict-service worker. Instrumented Python processes can write directly to PostgreSQL, or spool bounded local files for the host shipper and authenticated collector. The released collector accepts Agent records, standalone provider Traces, and manual Spans. The host team configures TLS, authentication, retention, access, provider keys, and worker supervision.

See customer-managed operations for the topology, commands, health checks, and upgrade boundary. Verdict is a customer-managed toolkit, not a hosted service.

Evidence boundaries

Local agent histories report tokens according to their source. Those counts are not provider bills. Estimated cost uses a dated list-price table and may omit caching, subscription, or negotiated pricing. Agent-session comparisons are descriptive. Statistical drift alerts apply only to eligible genuine model-call traces; they require a reviewed reference, new traffic, and sample and measurement gates. Optional judge calls send the approved bounded evidence to the selected provider. Redaction is best-effort, so choose capture fields and provider egress policies for your own environment.

For the supported behaviors and limitations, start with the main README and Verdict explainer.

Metadata

Release files for cognifity-verdict 0.1.0b4

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

Source distribution (sdist)

Source distribution for cognifity-verdict 0.1.0b4
File Size Uploaded Provenance Actions
cognifity_verdict-0.1.0b4.tar.gz 1.1 MB With provenance Details for cognifity_verdict-0.1.0b4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cognifity-verdict 0.1.0b4
File Interpreter ABI Platform Actions
cognifity_verdict-0.1.0b4-py3-none-any.whl Python 3 none any Details for cognifity_verdict-0.1.0b4-py3-none-any.whl

Total release size: 1.9 MB

Release files / cognifity_verdict-0.1.0b4.tar.gz

Download URL cognifity_verdict-0.1.0b4.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
708e23d50a91dbe78977cb53614d0b59dfb46b0003746b2d72b89630991f0dd1
BLAKE2b-256 checksum
How to use checksums
caed7cda002f6cdd31c1305a1a928c8b9ea0b46861e7ba8a4a9712cab1d0d7bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 1, 2026.

Transparency log

Release files / cognifity_verdict-0.1.0b4-py3-none-any.whl

Download URL cognifity_verdict-0.1.0b4-py3-none-any.whl
Size 812.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3a20f3255f9e9c856228055dc25fec0ae358fa929ec98f9bc13e02743c3340b
BLAKE2b-256 checksum
How to use checksums
b3e690ceac0696a62e59ace0d871dbcd702b02a761bec2e4bb41bce73b7c591e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 1, 2026.

Transparency log

Security for cognifity-verdict 0.1.0b4

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 cognifity_verdict-0.1.0b4.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 1, 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.

Release history Release notifications | RSS feed

This release
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