evaldenom
Check that evaluation exports cover the cases you intended to measure before comparing their scores. Offline, Python standard library only.
A paired comparison can look better because a hard case errored, disappeared, changed its input under the same ID, used a different grader, or lost a repeated trial. Statistical comparison tools often report their matched subset. This tool asks a prior question: do both supplied exports satisfy the same intended contract?
It does not run models, compute significance, pick a best run, average repeated trials, fill missing scores, retry requests, or change your dataset. A READY report is a coverage/identity check on supplied claims, not proof that the model saw those inputs or that an evaluator was implemented correctly.
Try the missing-case check
Python 3.9 or newer, no runtime dependencies. The repository includes an invented four-observation fixture: two cases with two trials each. The candidate drops both hard-case trials.
git clone https://github.com/anishpentyala/evaldenom.git
cd evaldenom
python -m pip install .
evaldenom freeze examples/cases.jsonl --metrics examples/metrics.json --output manifest.json
evaldenom audit manifest.json --run baseline=examples/baseline.jsonl --run candidate=examples/candidate-missing.jsonl
The audit exits 1 with BLOCKED, rather than approving comparison on only the
easy cases. Replace candidate-missing.jsonl with candidate-complete.jsonl for
an exit-0 READY report. Neither verdict establishes a score gain or verifies
that the claimed inputs and graders were actually used.
A PyPI release is being prepared. Until its package page is linked here, use the source-install commands above.
Check a changed evaluation plan before running it
An audit checks exports against one intended manifest. Before executing a changed plan, compare its frozen contract with the earlier one:
evaldenom manifest-diff previous-manifest.json proposed-manifest.json --output drift.json
Exit 0 means MATCH: declared cases, input digests, trials, cluster labels and
metric contracts agree. Exit 1 means CHANGED: the report names added/removed
cases, changed inputs or clusters, added/removed trials, and changes to metric
names, graders, directions or bounds. Exit 2 means unusable input or an output
error, with no new comparison verdict. Standard output must accept the complete report
and flush successfully before exit 0 or 1; failed help/diagnostic delivery also
exits 2. A broken destination can retain a partial JSON prefix, so a report is
usable only with its successful delivery and expected exit status. Both manifests are fully validated first;
an old output is left untouched on input errors, so check the exit status.
Case/metric list order and trial order do not matter. A missing bound differs
from an explicit bound. Numeric bounds such as 0 and 0.0 are equivalent,
matching the core audit's numeric comparisons. Nothing aligns cases by position,
selects a common subset or approves dropping a difficult case. Source-manifest
hashes identify the supplied files' JSON values, including list order, so these
hashes may differ even when the declared contracts match.
This command reads only prospective manifests, not run exports or scores. It
helps inspect denominator/rubric drift before spending on an experiment. It does
not approve the new plan or establish actual model inputs, grader implementation
or statistical comparability. Reports contain case and metric identifiers; review
them before sharing. Per-case input hashes, raw inputs and score values are not
copied into the change list. The existing audit command still decides export
coverage against the chosen manifest; MATCH is never an audit READY verdict.
Python callers can use evaldenom.manifestdiff.compare_manifests(previous, current)
with parsed manifests. File callers should use the CLI's strict JSON boundary,
which rejects repeated object members and non-JSON numeric constants.
Install from source
git clone https://github.com/anishpentyala/evaldenom.git
cd evaldenom
python -m pip install .
Python 3.9 or newer. Runtime dependencies: none.
Workflow
- Declare intended cases before running the experiment. Each JSONL record:
{"id":"case-1","input":{"question":"Example?"},"trials":[1,2],"cluster":"source-document-1"}
IDs and cluster labels are exact nonempty strings. Trials are explicit positive
integers, never inferred from the largest observed trial. Cluster is optional;
when declared, every export must match it exactly. It is metadata, not an
independence test. Numeric 1, string "1", and boolean true do not alias.
- Declare metric contracts in a JSON array:
[{"name":"accuracy","grader":"exact-match-v1","direction":"higher","min":0,"max":1}]
grader is a caller-chosen version label. Use a version/digest that actually
identifies your scoring implementation. Bounds are optional finite numbers.
Direction is higher or lower. Every intended case/trial must report every
metric; subsets, extra metrics and silent grader/direction changes block READY.
python -m evaldenom freeze examples/cases.jsonl --metrics examples/metrics.json --output manifest.json
The manifest keeps input digests, not raw inputs. pyjson-v1 uses Python JSON
serialization with sorted object keys, compact separators and ASCII escaping,
then SHA-256. Array order and JSON value types matter; 1 and 1.0 differ.
Object order, whitespace and escape spelling do not. This is not RFC8785 JCS,
a cross-language canonicalization promise, anonymization, or signing. Low-entropy
inputs can be guessed by hashing candidates. Keep your raw inputs privately.
- Export each run to this explicit format. No framework-specific parser guesses:
{"id":"case-1","trial":1,"input_digest":"pyjson-v1:...64-lowercase-hex...","cluster":"source-document-1","metrics":{"accuracy":{"status":"ok","grader":"exact-match-v1","direction":"higher","value":1}}}
Use input_digest(actual_input) in your exporter, not a copied manifest digest,
to catch accidental input changes. A copied label cannot prove input identity.
status is ok, error or missing. ok needs a finite non-boolean real score
within any declared bounds. Error/missing remains blocking even if a stale value
is also present; the tool never treats it as success or zero. Scores are checked,
not copied into the report.
python -m evaldenom audit manifest.json --run baseline=examples/baseline.jsonl --run candidate=examples/candidate-missing.jsonl
Exit 0: READY, supplied exports satisfy coverage and identity contracts. Exit 1: BLOCKED, report lists missing/duplicate/unexpected observations, metric errors and contract mismatches. Exit 2: unusable input or output error, no new verdict. Duplicate observations block even if identical: no last-row-wins or implicit attempt selection. Change the intended trial plan explicitly instead.
At least two separately named runs are required, but they need not represent independent experiments. Blank JSONL lines are ignored; findings retain physical line numbers. Repeated JSON object members and non-JSON NaN/Infinity are input errors, including nested objects. Unknown envelope fields are errors, not silently ignored. IDs remain case-sensitive, with no Unicode/whitespace normalization.
--output report.json replaces a report only after parsing and auditing finish,
via a temporary file in that directory. A blocking audit still writes its complete
report. Input errors preserve the previous report. An output path resolving to
an input path is rejected. This is not a concurrency-safe file transaction against
hostile path replacement or a hard-link alias defense.
Experimental native export API
A narrow Promptfoo JSON API supports explicit repeat>=2, scalar inline vars and literal equals/contains assertions for current summary-v3 JSON exports. Python API and explicit CLI, not a general config resolver or default single-trial integration. Use its strict JSON-text boundary and read the limits first.
Example that catches selection bias
The synthetic fixture has easy and hard, each with two intended trials.
The baseline scores the hard cases at zero. A candidate export containing only
the easy cases could show 100% on its paired-complete subset. This audit reports
both missing hard trials and refuses READY. The fixture is invented, not observed
model performance. Fixing coverage might reveal no gain; coverage alone cannot
establish a gain either way.
Scope and existing alternatives
This is a small preflight contract, not a new statistical method or an all-purpose evaluation platform. Related tools and the behavior their descriptions document (checked2026-11-06):
- evaldiff computes paired statistics, excludes unmatched rows with counts, and warns while keeping the last duplicate. Use it for inference after resolving your intended coverage.
- abeval offers paired comparisons, intervals, power and judge-noise analysis; unmatched items are dropped/reported.
- MLflow pairs rows, reports unmatched/duplicate rows and skips scorer-error pairs.
- errorbars already validates identity, cluster assignments and repeated observations, and provides statistical inference. It is a stronger alternative when its data model fits your workflow.
- eval-run-manifest records run provenance and directory digests. This tool instead checks intended case/trial/metric closure across supplied exports; neither is execution attestation.
- EVALSIG explains paired versus unpaired inference. This tool does not choose either test.
No claim that these tools hide their exclusions, that this project is unique, or that a blocked strict contract invalidates every possible subset analysis. A justified subset analysis needs an explicit separate plan, not a silent change in denominator.
Limits
- General harness export integration is not provided. A narrow experimental Promptfoo JSON API and CLI are available for their documented subset only.
- A manifest created after seeing results can encode selective inclusion.
- Input digests, grader versions and cluster labels are supplied claims, not authenticated execution evidence. No code/model/dataset attestation.
- READY does not check uncertainty, statistical dependence, rubric validity, sample representativeness, model provenance, leakage or multiple comparisons.
- Every case has the same declared metric set; sparse metric plans are not supported.
- Data is retained in memory, including the intended identity set and findings. This is not bounded-memory processing for arbitrarily large logs.
- Finite numbers within Python float range are accepted as scores/bounds. No numeric string, bool or extreme integer coercion. No score arithmetic occurs.
- Reports include case/metric identifiers and run labels; review before sharing. Input files and manifests can contain private metadata.
Development
pip install -e . pytest
python -m pytest -q
Authorship: implementation, documentation and synthetic tests were produced by an AI assistant working on Anish's behalf. Anish has not personally reviewed or executed them. Early source release, not a published PyPI package. No adoption claim.
Metadata
Release files for evaldenom 0.1.0
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 |
|---|---|---|---|---|
| evaldenom-0.1.0.tar.gz | 35.8 kB | Without provenance | Details for evaldenom-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evaldenom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for evaldenom-0.1.0-py3-none-any.whl |
Total release size: 54.3 kB
Release files / evaldenom-0.1.0.tar.gz
| Download URL | evaldenom-0.1.0.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7908110f855074cae72f901a6814731ce36c79ca4baa3cde211f9598afbb81b4
|
|
BLAKE2b-256 checksum How to use checksums |
a5a29ce43fa20cf761b60f740ae074eb0f7da5196651bd7989073968389e50f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / evaldenom-0.1.0-py3-none-any.whl
| Download URL | evaldenom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39b99da3c8b7ff066d0683665d969595afe460aa8f2c453a3d3c2ab6737a9f8d
|
|
BLAKE2b-256 checksum How to use checksums |
2590ba68c358939c5f40027e0667fe3d1dc1d30b04d10898541afd07e15e4b97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for evaldenom 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.