Skip to content

Privacy and preparation

Dataset manifest version mismatch: the check a checksum never runs

By SourceX Editorial · Updated

9 sections

Short answer

A dataset manifest version mismatch is a manifest whose version label, hashes or counts belong to another build than the files, code or sample. Checksums and row counts will not catch it, because they compare bytes and rows, not the version claim. Compare four witnesses (manifest, build record, sample, human label) and decide from which one moved. At one pinned public commit, 22 of 759 manifests failed such a check.

Redaction

Dataset manifest version

This page covers dataset manifest version mismatch: the check a checksum never runs.Illustrative

Key takeaways

  • Checksums prove bytes and counts prove rows; neither proves that the manifest describes the version everyone agreed to.
  • The Hugging Face datasets loader at tag 2.5.2 checks file hashes and example counts but takes its version from the code, so a stale manifest version loads silently.
  • In a census of 759 public manifests at commit c59cc34, 22 failed a version, fixture or size-arithmetic check, and 34 once size labels are included.
  • Decide by pattern: a drifted label is corrected, a build mismatch holds the release, and a stale sample means rerunning acceptance.
  • A versioned delivery manifest needs a literal version, a build record, per-file hashes, reconciled counts, the sample's source version and labels with their units.

Why can a manifest pass integrity checks and still describe another version?

A dataset manifest version mismatch means the version label, file hashes or counts in the manifest belong to a different build than the files, the code that produced them or the sample a buyer tested. It survives ordinary integrity checks because those checks compare bytes and rows, not the version claim itself.

The Hugging Face datasets library shows the mechanism in its own code at release tag 2.5.2. Its documentation says the loader verifies the list of downloaded files, their byte counts, their SHA-256 checksums, the number of splits and the number of examples in each split, and raises an error when the dataset has changed. The loader does not compare the version written in the manifest file, dataset_infos.json, with the version the code declares: when it assembles the dataset information it sets the version from the loading script's configuration (builder.py, line 316 at the pinned commit).

Two more details matter for anyone building a delivery gate. The split check compares example counts only, not byte sizes. The checksum check logs "Unable to verify checksums" and carries on when the manifest holds no checksums at all. A stale manifest therefore loads cleanly whenever its source files and example counts still match, under whatever version the code happens to declare.

So a release needs three answers: are the bytes intact, are the rows all there, and is this the agreed version. Only the third catches a manifest that describes a different version.

Four witnesses to one release, and what each can prove

Every release has at least four witnesses to its version, and a mismatch is any disagreement among them. Treat each witness as evidence with its own blind spots, not as a copy of the others.

At a glance

Four witnesses to one release, and what each can prove

A release is consistent when all four name the same version and their hashes and counts reconcile with the stored files; any disagreement is a finding to explain before it is a fix to choose. The four are listed below.

  • The manifest: the version label, every file with its byte size and hash, and counts per table or split. It proves what was recorded, not what was built.
  • The build record: the code commit, parameters and change log entry that produced the files. It proves which transformation ran, if it can be rerun.
  • The sample or test fixture: the subset a buyer evaluated or a test suite runs against, with the version it was cut from. It proves what was accepted.
  • The human label: the dataset card, a size category, the scope description in the signed agreement. It proves what people believe they bought.

What 759 public manifests showed at one pinned commit

At the last huggingface/datasets release that still carried its datasets folder, 22 of 759 dataset manifests failed at least one version, fixture or size-arithmetic check, and 34 did once human size labels are included. The population is tag 2.5.2 (commit c59cc34, 5 October 2022): 771 dataset directories, 759 with a dataset_infos.json describing 5,102 configurations, each normally written by the library's own test command, which records checksums and example counts.

The clearest case is medical_dialog. Its loading script declares version 2.0.0 and its test fixtures sit under 2.0.0, but the manifest records 1.0.0 for the en and zh configurations: the code and the fixtures moved, the manifest stayed. In super_glue the script declares 1.0.3, with a version-history comment that reads "Fix not including entity position in ReCoRD", while ten configurations in the manifest still say 1.0.2. A transformation changed and the manifest's version predates it; the library's own dataset-script guide quotes the same class at 1.0.2.

Fixtures drift too. xtreme's manifest lists 183 configurations at 1.0.0, while 176 of its 196 fixture archives sit under a 1.1.0 folder and 137 fixture configuration names do not appear in the manifest at all. squad_es keeps a fixture for a configuration named v2.0.0 beside a manifest that knows only v1.1.0.

Some manifests disagree with themselves. In art, the version string reads 0.1.0 while the major, minor and patch fields read 1, 0 and 0; gooaq writes 1.2.0 over fields that read 1.1.0. Size totals break in three datasets, c4, enwik8 and eli5. c4's English configuration records a dataset size of 1,657,178,361,414 bytes against split sizes that sum to 829,414,947,973, and eli5 lists one file under two web addresses with the same hash and size, so its download size counts the file once while the checksum list counts it twice. Not every break is corruption, but each fails its own arithmetic.

Two gaps sit underneath the flags. 299 configurations in 37 datasets record no file checksums, so the loader's checksum step has nothing to compare. And 14 of the 712 datasets checked carry a README size label that matches none of their example counts, such as telugu_books, labeled n<1K with 25,794 examples in its single training split. The table below gives each check with its denominator.

What 759 public manifests showed at one pinned commit
CheckWhat it comparesConfigurations flaggedDatasets flagged
Version declared by codeManifest version against every version string the loading script declares19 of 5,0258
Fixture versionManifest version against the version folders of that configuration's test fixtures53 of 3,9317
Fixture configuration setFixture configuration names against manifest configuration names160 fixture names absent8
Self-consistencyVersion string against the major, minor and patch fields2 of 5,0732
Size arithmeticDataset and download sizes against the sums of their parts5 of 5,1023
Human size labelREADME size category against example countsDataset-level check14 of 712
A test matrix of six manifest mismatch types against three checks, file hashes, example counts and a version-witness comparison, with the census count for each type; only the witness comparison catches every type.
Census of 759 Hugging Face dataset manifests at commit c59cc34 (October 2022); counts are datasets flagged.

Which side moved? Reading the pattern of disagreement

The pattern of agreement tells you which witness moved, and each pattern has a default decision. Read the manifest against the files first, because that comparison decides whether you are fixing a label or holding a release.

In medical_dialog the code and fixtures agree with each other and the manifest is the outlier; in xtreme the fixtures are the outlier. The same evidence supports different repairs, which is why the decision depends on the pattern rather than on which file looks newest. The defaults below assume the version in the signed scope is the reference.

  • Manifest label differs, but recomputed hashes and counts match the stored files: the label drifted. Correct the label, keep the files and log the correction under the release.
  • Manifest label differs and a rebuild from the recorded commit produces different hashes or counts: the files and the manifest come from different builds. Hold the release, establish which build matches the signed scope and regenerate the other side.
  • Sample or fixture version differs from the manifest: the acceptance evidence covers another version. Cut a new sample from the release candidate and rerun the acceptance test before release.
  • The manifest contradicts itself on version fields or size totals: it was hand-edited or merged from two runs. Regenerate the whole manifest in one pass instead of patching fields.
  • A human label disagrees with the counts: fix the label and state the unit it counts, rows, files, frames or conversations. If the signed scope description is the label that is wrong, route it to the contract owner.
  • The code computes its version at run time, so no literal version can be read: require a literal version string in the release record before anyone signs it. Three datasets in the census could not be checked for this reason.

Is a valid checksum proof enough? Testing the strongest objection

No. A valid checksum proves that a file's bytes match the hash someone recorded; it says nothing about which version that record describes or whether the rows mean what the buyer expects. The objection is strongest for transfer integrity, and there it is right.

For transfer, the BagIt packaging format (RFC 8493) is a sound model: every payload file must appear in every payload manifest, and a Payload-Oxum value gives a total octet count and file count for a quick completeness check. The RFC calls Payload-Oxum an optimization and still requires checksum validation before a bag is valid. Neither element carries a version.

Identity needs its own policy. DataCite's metadata schema suggests tracking versions as major.minor and registering a new identifier for a major version change, and its versioning guidance links releases with IsNewVersionOf and IsPreviousVersionOf relations. Zenodo registers a DOI for each version plus a concept DOI that resolves to the most recent one, and recommends the version DOI when reproducibility matters. A manifest that cites a latest-version identifier describes whatever is newest, not what you shipped.

The census shows the cost of leaning on bytes alone. The 19 configurations whose manifest version is missing from the code would pass the loader's checks whenever their source files and example counts still match, because the version is never compared, and the 299 without checksums would skip the byte check entirely. A size total roughly double its parts passes a split check that only counts examples.

The versioned delivery manifest: fields that make a mismatch visible

A versioned delivery manifest makes a mismatch visible by giving every witness a field that another witness can contradict. The minimum set below pairs each field with the check it enables and the condition that stops a release.

The versioned delivery manifest: fields that make a mismatch visible
FieldWhat it pinsCheck before releaseStops the release when
Release version, written as a literal stringWhich release this isEquals the version in the build record, the sample record and the signed scopeAny witness names another version, or the version is computed at run time
Build commit, parameters and change log entryThe transformation that made the filesA rebuild reproduces the hashes, and the newest change log entry is this versionRebuilt hashes differ, or the change log describes a later change
File list with path, bytes and SHA-256The bytesRecomputed from stored files; every file listed once; nothing unlistedA file is missing, extra, listed twice or has no hash
Counts per table or split, with totalsThe rowsTotals equal the sum of parts; counts recomputed from the filesParts do not add up, or a recount differs
Sample of: version and selection ruleWhat the buyer evaluatedThe sample was cut from this release candidateThe sample comes from another version or uses other table names
Scope referenceThe agreed dataset descriptionNames the description the release fulfills, with its dateIt cites a superseded description
Human labels with their unitHow people will read the sizeEach label contains the recount in its stated unitA label matches no count

Release checklist: reconcile before anything ships

Run the reconciliation in a fixed order, because each step assumes the one before it passed. The checklist below is the reproducibility half of the asset; write the result of every step into the release record, including which witness moved when a step fails.

Checklist · 9 items

  1. Freeze the candidate and record one literal version string that every later step refers to.
  2. Recompute byte sizes and SHA-256 hashes from the stored files and compare them line by line with the manifest; treat a missing hash as a failure, not a skip.
  3. Recount rows per table or split from the files and confirm each total equals the sum of its parts.
  4. Read the version from the manifest, the build record, the sample record and the human label, and stop if they do not all match.
  5. Rebuild from the recorded commit and parameters and compare hashes; where the build is not byte-for-byte deterministic, record why and compare counts and field lists instead.
  6. Confirm that the newest change log entry is this version and that every transformation since the previous release is listed.
  7. Confirm that the sample used for acceptance was cut from this candidate, with the same table names compared case-sensitively.
  8. Confirm that every identifier the manifest cites resolves to this version only, not to whatever is latest.
  9. Record the outcome: pass, or the witness that moved, the decision taken and who approved it.

0 of 9 ticked. Tick each item as you go.

Where version evidence fits in a SourceX data request

If you are buying data, put the version evidence you will check into the request itself, so it shapes the scope before any record moves. SourceX works directly with the companies that hold business records, licensing their data for AI training and evaluation, and it sources datasets on request rather than holding stock, so a buyer starts by describing the records wanted, roughly how many, the language, the file format, the timing and the license terms.

On the supplier side, SourceX's how-it-works page says each deal's Dataset Deal Confirmation fixes the exact dataset, the rights and the processing route, and that a material change later needs a signed amendment. That makes the signed description the natural reference witness: a manifest that describes a different version than the Confirmation is a question for the parties, not something to patch quietly.

A useful request names the acceptance test in plain terms: the four witnesses you will compare, the counts you will recompute and the decision rule you will apply when one of them moves.

Methods note: the census rules, counts and limits

Source: huggingface/datasets, tag 2.5.2, commit c59cc34fcd2a369d27b77cc678017f5976a926a9 (committed 5 October 2022), the last release tag whose tree holds the datasets folder; tag 2.6.0 has none. It was read from a blobless sparse clone on 28 October 2026 with a script that parses files as text, JSON and YAML and parses the Python loading scripts with ast without running them. The script and its outputs (per-configuration CSV and summary JSON, no personal data) are kept in the batch scratch folder as bin/xs0928_hf_manifest_census.py.

Unit: a dataset is a directory directly under datasets/ (771); a configuration is a top-level key of that dataset's dataset_infos.json (5,102 in 759 manifests; 12 directories have no manifest). Files are read as UTF-8 with any byte-order mark removed. The loading script is the file named after its folder, datasets/<name>/<name>.py. The manifest version is version.version_str, or the value itself where it is a plain string (29 configurations); where version is an object, the self-consistency check compares version_str with its major, minor and patch fields (5,073 configurations). Versions are compared as integer triples.

Code versions are the strings reachable from Version(...) calls (first argument or version_str), any version= keyword and any VERSION assignment, with names resolved through assignments of a string constant or of a Version call; 0.0.0, the library default, is always accepted. A configuration is flagged when its manifest version is absent from that set and the script has no unresolved version expression; 77 configurations in three datasets are unresolved and not counted. The 5,025 checked configurations ignore pass-through version names (version=version, self.config.version) wherever the manifest version matches a declared string; the stricter reading, which sets aside every script that passes a version through, gives 4,866, with the same 19 flagged.

Fixtures are paths ending dummy/<configuration>/<version>/dummy_data.zip, following the library's mock download manager, where the configuration is the folder path between dummy/ and the version; a fixture without a configuration folder maps to the manifest's only configuration and is left unmapped when there are several. A configuration is flagged when it has at least one fixture and none of its fixture versions equals its manifest version. 129 fixture files with other names are ignored. Fixture and manifest configuration names are compared case-sensitively; one of the 160 absent names (in hda_nli_hindi) differs only by case.

Size arithmetic: dataset_size must equal the sum of split byte counts, download_size the sum of checksum byte counts and size_in_bytes the sum of dataset, download and post-processing sizes (a null post-processing size counts as zero), the way builder.py computes them, each checked only where its fields are present; the last identity held for all 5,102 configurations. Size labels are read from the README front matter and turned into buckets (K, M, B and T as thousand, million, billion and trillion), with bounds inclusive and unknown ignored; all 722 labeled datasets use a list of labels, 9 list only unknown, and german_legal_entity_recognition, whose manifest example counts are all zero, is left out, so 712 are checked. A dataset is flagged only when no candidate count (each configuration's total, each training split and the total over all configurations) falls in any listed bucket, so the count of 14 is a floor. The 22 datasets are those flagged by at least one of the version, self-consistency, fixture, fixture-set or size-arithmetic checks; the 34 add the 14 size-label datasets, less the two that appear in both lists (enwik8 and wino_bias).

Not measured: whether any data file has changed since the manifest was written (source files were not downloaded), whether a flagged configuration was ever loaded by a user, and anything after October 2022, when these datasets moved to separate repositories. The census describes one open registry's manifests, not commercial deliveries. A separate study of the same commit counts the dataset cards (README files) of 770 of these directories, every one except datasets/parquet; all 759 manifests here have a card, and the 722 size labels are read from those cards, but the two studies count different parts of each file.

Frequently asked questions

What does a dataset manifest record, and what does it leave out?

A dataset manifest is a machine-readable record of one release: its version, every file with its size and hash, and counts per table or split. It lets a recipient check what arrived without trusting the sender's word. It leaves out meaning and provenance unless you add them, and it is only as current as the last time it was regenerated.

Can two releases share a checksum and still be different versions?

Yes, when only the label changed. A checksum covers bytes, so a file that was not rebuilt keeps its hash even if the manifest around it now claims a new version. That is why version identity needs its own comparison against the build record and the signed scope.

Should I edit a stale manifest by hand?

No. Regenerate it from the stored files in one pass and compare the result with the old manifest. Hand edits are how version strings, size totals and file lists end up describing different runs, as the self-contradicting manifests in the census show.

When does a dataset change need a new version identifier?

DataCite's guidance treats major changes as needing a new identifier linked to the previous one, while minor changes can keep the identifier with updated metadata; which changes count as major is left to the data's steward. Whatever rule you adopt, write it down before the first release so the decision is not made under deadline.

What does a size label like 10K<n<100K count?

It depends on who wrote it, which is the problem. The Hugging Face size categories name buckets of n without saying whether n counts rows, files, frames or conversations, and the census found labels that match no reading of the counts. State the unit next to any size label you deliver.

Sources

  • The datasets library's loader verifies downloaded file lists, byte counts, SHA-256 checksums, split counts and examples per split, and raises an error when a dataset has changed. Source
  • dataset_infos.json stores file checksums and the number of examples, and is generated with datasets-cli test --save_infos --all_configs; the guide's example class is quoted at version 1.0.2. Source
  • At tag 2.5.2 the builder sets the dataset information's version from the script configuration and computes dataset_size and size_in_bytes from split and download sizes. Source
  • Split verification compares example counts only, and checksum verification returns with 'Unable to verify checksums' when no checksums are recorded. Source
  • Test fixtures are stored as dummy/<config name>/<version>/dummy_data.zip, or dummy/<version>/ when there is no config. Source
  • The size category labels the library accepted at tag 2.5.2, from n<1K to n>1T plus unknown. Source
  • The datasets folder at commit c59cc34 holds the 771 dataset directories that form the census population. Source
  • BagIt (RFC 8493) requires every payload file in every payload manifest and defines Payload-Oxum as an octet and file count that does not replace checksum validation. Source
  • DataCite Metadata Schema 4.6 suggests tracking versions as major.minor and registering a new identifier for a major version change. Source
  • DataCite's versioning guidance links a new DOI to the previous one with IsNewVersionOf and IsPreviousVersionOf, and lets minor changes keep the DOI with updated metadata. Source
  • Zenodo registers a DOI for every version and a concept DOI that resolves to the latest, and recommends the version DOI for reproducibility. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies