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

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

Built distribution (wheel)

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

Total release size: 159.4 kB

Release files / cognifity_verdict_eval-0.1.0a21.tar.gz

Download URL cognifity_verdict_eval-0.1.0a21.tar.gz
Size 94.0 kB
Tags Source
SHA-256 checksum
How to use checksums
398bc5548b7ef8879495d62d69e8512e678800d7ad314f87a061db1533a6f301
BLAKE2b-256 checksum
How to use checksums
413a40db1904140bb644874195f0eb3faf6630279f6794891c5a97479aac42fa
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 25, 2026.

Transparency log

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

Download URL cognifity_verdict_eval-0.1.0a21-py3-none-any.whl
Size 65.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71b5dfd510b0ea7ae187759089db3f9ced7816465872c3647654850ee017287f
BLAKE2b-256 checksum
How to use checksums
a4c463490afecfab997666e609243b26f15f9261938d832ca047c86b65e30eea
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 25, 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