Skip to main content
Pre-release

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

Verdict Eval

PyPI distribution: cognifity-verdict-eval. Python import: verdict_eval.

Verdict's evaluation engine provides binary rubric judging, structural checks, semantic drift analysis, sampling, and versioned intent clustering. Current cohort comparisons live in the core Verdict Monitor workflow.

Binary judge

Judge evaluates one response against a configurable PASS/FAIL rubric. PASS rate is PASS / (PASS + FAIL). UNCLEAR, missing dimensions, and judge errors remain visible as coverage states and do not enter that denominator.

The evaluator identity includes the provider, model, rubric name/version, behavior-relevant configuration, expected dimensions, and an effective prompt/rubric fingerprint. Results from different identities are never pooled.

from verdict_eval import DEFAULT_RUBRIC, Judge
from verdict_eval.providers import AnthropicAdapter

judge = Judge(
    provider=AnthropicAdapter(),
    model="claude-haiku-4-5-20251001",
    rubric=DEFAULT_RUBRIC,
)
result = judge.judge(query="...", response="...")

Dimensions marked requires_context=True can be skipped when a caller enables skip_context_dependent_when_missing. If every dimension requires unavailable context, evaluation fails before a provider call.

Clustering and semantic analysis

The versioned registry requires an explicit verdict-cluster fit --strategy choice. Exact-key explicit clustering is supported. Automatic semantic clustering and the semantic fallback in hybrid remain experimental opt-ins. Local semantic work uses the pinned sentence-transformers/all-MiniLM-L6-v2 model; the built-in hash embedder is a lexical fallback and is labeled as such.

import verdict

with verdict.intent_context("billing.v1"):
    response = provider.messages.create(...)

The registry lifecycle is normalize, fit, assign, validate, then activate. Current analysis can then use the tenant's active immutable version:

verdict-cluster --storage sqlite:///verdict.db --tenant tenant-a --actor ops \
  normalize --limit 1000
verdict-cluster --storage sqlite:///verdict.db --tenant tenant-a --actor ops \
  fit --strategy explicit --target-workload agent
verdict-cluster --storage sqlite:///verdict.db --tenant tenant-a --actor ops \
  assign --version "$VERSION"
verdict-cluster --storage sqlite:///verdict.db --tenant tenant-a --actor ops \
  validate --version "$VERSION"
verdict-cluster --storage sqlite:///verdict.db --tenant tenant-a --actor ops \
  activate --version "$VERSION" --expected-generation 0
verdict-pipeline --storage sqlite:///verdict.db --registry-mode active \
  --tenant-id tenant-a

The pipeline prepares clusters and judgments. It does not publish a separate fixed-window drift run. Monitor owns current reviewed cohort comparisons; fixed-window rows written by older releases remain read-only in storage but are suppressed by the tenant-scoped dashboard because they have no tenant owner.

Calibration

Calibrate judges on held-out examples from the workload where they will be used. scripts/verify_rubric_alignment.py reports binary rubric agreement and bootstrap confidence intervals. Optional sentinel runs persist only aggregate health, evaluator identity, and label-set identity. Any sentinel execution error prevents a healthy result.

from verdict_eval import (
    DEFAULT_RUBRIC,
    Judge,
    SemanticDriftDetector,
    StructuralChecker,
)

See the repository README, ADR-002, and the verification scripts.

Apache 2.0.

Release files for cognifity-verdict-eval 0.1.0a19

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-eval 0.1.0a19
File Size Uploaded
cognifity_verdict_eval-0.1.0a19.tar.gz 93.2 kB Details

Built distribution (wheel)

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

Total release size: 158.1 kB

Release files / cognifity_verdict_eval-0.1.0a19.tar.gz

Download URL cognifity_verdict_eval-0.1.0a19.tar.gz
Size 93.2 kB
Tags Source
SHA-256 checksum
How to use checksums
070c1c99e4b3c61f3bd294affdf338389798a8af8350eaca5b7dd47430d6d5b1
BLAKE2b-256 checksum
How to use checksums
e576b5fb7290e8644bb18f5bf0c1996206751705b92eb5c2a85f26f85b2eda77
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 Sep 15, 2026.

Transparency log

Release files / cognifity_verdict_eval-0.1.0a19-py3-none-any.whl

Download URL cognifity_verdict_eval-0.1.0a19-py3-none-any.whl
Size 64.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
817fe071771d958cc6dc3ae6e58093fb8d14eb8610d0abeeeb7cb461f386813a
BLAKE2b-256 checksum
How to use checksums
e89adb33ef3af6fdcdfd96bca1e06a0fa1453fe32752a15c65cef1a445340941
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 Sep 15, 2026.

Transparency log
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