evidentia-eval
Dev-time AI-output quality eval harness for Evidentia.
Hosts the DFAH (Decision-Faithfulness Assessment Harness) — the auditor-defensible numerical proof layer that validates LLM-driven artifact production is deterministic, replay- equivalent, and faithful to its source policy clauses.
Why this package exists (v0.10.5 P9 extraction)
The DFAH harness was originally bundled into evidentia-ai (the
risk-statement generator + control explainer package). That
conflated two very different deployment surfaces:
evidentia-ai— PRODUCTION runtime. Needed in air-gap installs to actually generate risk statements.evidentia-eval— DEVELOPMENT-time evaluation. NOT needed in air-gap installs; only fires when a CI pipeline runs a determinism / faithfulness gate before tagging a release.
Extracting the eval harness lets air-gap installs of
evidentia-ai skip the optional sentence-transformers stack
entirely (it now lives behind evidentia-eval[faithfulness-semantic]
instead of evidentia-ai[eval-faithfulness]).
Quick start
# Stdlib Jaccard baseline (no extra needed; <10 MB install)
pip install evidentia-eval
# Optional semantic-similarity faithfulness (~250 MB extra
# for sentence-transformers + numpy + model cache on first use)
pip install 'evidentia-eval[faithfulness-semantic]'
CLI verbs:
# Smoke test against a deterministic stub generator (no LLM
# tokens burned)
evidentia eval stub-smoke
# Real-LLM determinism gate against the risk-statement generator
evidentia eval risk-determinism --gap-report gaps.json \
--system-context ctx.yaml \
--fail-on-determinism-rate-below 0.95
# Verify a previously-signed eval bundle
evidentia eval verify path/to/eval-output.json
The CLI verbs live in evidentia.cli.eval (the meta-package);
this package contributes the underlying library.
Public API
| Symbol | Purpose |
|---|---|
DFAHarness |
Owns the run loop + audit emit |
EvalResult |
Top-level harness output (JSON-serializable, Sigstore-signable) |
EvalSample |
One prompt's inputs (immutable; audit-trail-stable) |
DeterminismResult |
Per-prompt determinism outcome |
ReplayResult |
Per-prompt replay-equivalence outcome |
FaithfulnessResult |
Per-claim faithfulness outcome |
PromptFaithfulnessResult |
Aggregated per-prompt faithfulness |
faithfulness_score |
Stdlib Jaccard token-overlap baseline |
faithfulness_score_semantic |
Sentence-transformers path (optional extra) |
determinism_score |
Computes the modal-output pass rate |
replay_equivalent |
Binary replay-equivalence check |
extract_claims |
Atomic-claim extraction from generated artifacts |
normalize_for_determinism |
Canonical whitespace + punctuation normalization |
hash_output |
SHA-256 hex of normalized output |
sign_eval_result |
Sigstore-sign an EvalResult JSON |
verify_eval_result |
Verify a previously-signed eval bundle |
Migrating from evidentia_ai.eval
The v0.10.5 P9 extraction left evidentia_ai.eval.* in place as
re-export shims that warned once at import time. They were
removed in v0.12.0 as announced, together with the
unconditional evidentia-eval dependency on evidentia-ai.
Replace every from evidentia_ai.eval import X with
from evidentia_eval import X — same symbols, same signatures.
The evidentia-ai[eval-faithfulness] install extra still works;
only the import path is gone.
License
Apache-2.0. See the workspace root LICENSE file.
Metadata
Release files for evidentia-eval 0.13.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evidentia_eval-0.13.2.tar.gz | 30.7 kB | With provenance | Details for evidentia_eval-0.13.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evidentia_eval-0.13.2-py3-none-any.whl | Python 3 | none | any | Details for evidentia_eval-0.13.2-py3-none-any.whl |
Total release size: 64.9 kB
Release files / evidentia_eval-0.13.2.tar.gz
| Download URL | evidentia_eval-0.13.2.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c279b9e35e42fb9af6f550d9e1191096b168805376b77d9e56989defe9daaea
|
|
BLAKE2b-256 checksum How to use checksums |
ebe819ee6b705a915abef65fad8098806e530e4f27d56ef731f5866caff8415c
|
| 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 Oct 21, 2026.
Transparency logRelease files / evidentia_eval-0.13.2-py3-none-any.whl
| Download URL | evidentia_eval-0.13.2-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4220f75a312d5c42af3f487f7def1ebf11727858ea0390f934ae05c56c8163e9
|
|
BLAKE2b-256 checksum How to use checksums |
cf847825575c9f5f57fb7f698332e2d98bc64fc05d1a2d945688ea4bc42634c1
|
| 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 Oct 21, 2026.
Transparency logSecurity for evidentia-eval 0.13.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for evidentia_eval-0.13.2.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 Oct 21, 2026.
Transparency logA 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.