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.0a20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cognifity_verdict_eval-0.1.0a20.tar.gz | 93.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cognifity_verdict_eval-0.1.0a20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 158.1 kB
Release files / cognifity_verdict_eval-0.1.0a20.tar.gz
| Download URL | cognifity_verdict_eval-0.1.0a20.tar.gz |
|---|---|
| Size | 93.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5187fac4a64be7c8eae6274578d1a063360c939ec7df61fd0a451685625203b3
|
|
BLAKE2b-256 checksum How to use checksums |
ab9818a90520c0c1efdbdf81b60fdd40ba73c66d7c97e763d07abdd9f280fd8a
|
| 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 18, 2026.
Transparency logRelease files / cognifity_verdict_eval-0.1.0a20-py3-none-any.whl
| Download URL | cognifity_verdict_eval-0.1.0a20-py3-none-any.whl |
|---|---|
| Size | 64.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
563beca2dd7bf1e195d4e5a195a5bcb8a61475867963d07720848b6a451ef522
|
|
BLAKE2b-256 checksum How to use checksums |
e6b08bbe02b26a8346ab3b88cd8153638257d4df036f16a320b814934b2054a8
|
| 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 18, 2026.
Transparency log