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.0a18

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

Built distribution (wheel)

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

Total release size: 158.1 kB

Release files / cognifity_verdict_eval-0.1.0a18.tar.gz

Download URL cognifity_verdict_eval-0.1.0a18.tar.gz
Size 93.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb5c8726b1a68583f409fc749548817c94a488a68140e5f6ca4089f38866c6c4
BLAKE2b-256 checksum
How to use checksums
1a0c7a62bdbeda4cc7772843a5a04c987a6d8c3a79bb6d7133697a9d223289b2
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 14, 2026.

Transparency log

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

Download URL cognifity_verdict_eval-0.1.0a18-py3-none-any.whl
Size 64.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aefdc96525c7b639a46ecf1cd87f83b855e6cbaea28fec1213118329e1e22b4
BLAKE2b-256 checksum
How to use checksums
e6945d7fb16d7ff99c205fe2a9ec35448161f04d81316d04da4b0bcc12744457
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 14, 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