Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evidentia-eval 0.13.1
File Size Uploaded Provenance Actions
evidentia_eval-0.13.1.tar.gz 30.7 kB With provenance Details for evidentia_eval-0.13.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for evidentia-eval 0.13.1
File Interpreter ABI Platform Actions
evidentia_eval-0.13.1-py3-none-any.whl Python 3 none any Details for evidentia_eval-0.13.1-py3-none-any.whl

Total release size: 64.9 kB

Release files / evidentia_eval-0.13.1.tar.gz

Download URL evidentia_eval-0.13.1.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01313a912c671a740779c978780c4cc8fa2825b2eeb45983d1fecf1c0241cc60
BLAKE2b-256 checksum
How to use checksums
2eb1c17b287bf199ba0afb4b34fc1250da0631bab8e8b560eb45a18f16c79131
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 log

Release files / evidentia_eval-0.13.1-py3-none-any.whl

Download URL evidentia_eval-0.13.1-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67345aaa112c2392b4724b5cb5d2476982e52b0ef33e1b3adf1231a0f0defc0b
BLAKE2b-256 checksum
How to use checksums
f6f6ccebef0d9b2c95e7906f30f16db12906bfaeb489d71090fd69737724aaa1
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 log

Security for evidentia-eval 0.13.1

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.

Select from 2 files

Attestation for evidentia_eval-0.13.1.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 log

A 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.

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