Contracts & Agreements

Customer-Supplied Test Dataset Integrity Clause

Example Usage

"Customer shall supply the agreed test dataset with a manifest, version identifier, permitted-use terms, and checksum; Provider shall preserve an unchanged reference copy and log any approved transformations."

What Is a Customer-Supplied Test Dataset Integrity Clause?

A customer-supplied test dataset integrity clause governs the quality, identity, versioning, security, and handling of a dataset that a customer gives a vendor to test software, analytics, automated decisions, or an artificial-intelligence system. It defines which party prepares the data, who can edit it, how changes are recorded, and which version controls the contractual acceptance test. The goal is to make the result reproducible rather than allow a dispute about whether the vendor and customer evaluated different information.

An acceptance test may fail because a feature is defective, but it can also fail because records are missing, labels are inconsistent, file formats changed, or a test set contains prohibited personal information. The clause allocates the relevant responsibilities without declaring in advance that every data problem belongs to one side.

Standard Customer-Supplied Test Dataset Integrity Clause — Sample Contract Language

AI document classification: A customer provides labeled invoices and contracts. The vendor logs dataset version 1.2, documents an approved correction to duplicate labels, and reports precision and recall against the frozen acceptance set.

Why a Customer-Supplied Test Dataset Integrity Clause Matters

Test datasets influence reported performance. If an AI classifier is evaluated on a different set of examples, its accuracy and error profile may change. A reporting tool may pass an acceptance test using a clean dataset but fail against the customer’s real business records because of missing values, duplicates, or unexpected formats. A contract should make explicit whether the dataset is intended to be representative, adversarial, synthetic, confidential, or simply a known set of regression cases.

Unexpected dataset changes can also undermine evidence. When a file is replaced while a dispute is open, it may become impossible to reproduce the original test. Hashes, manifests, change logs, and immutable reference copies can help preserve identity, but they do not themselves establish data quality, licensing rights, or correctness of labels.

The clause also limits misuse. Personal data, trade secrets, customer records, and licensed third-party material may be subject to contract, privacy, or intellectual property restrictions. Vendor access should be purpose-limited, and any transfer to a subprocesser or model training system should be governed separately.

How the Clause Works

Define the dataset, purpose, and permitted uses

List the files, tables, schemas, labels, reference answers, expected outputs, and documentation that constitute the customer dataset. Record the version, creation or delivery date, relevant population or period, and intended testing purpose. If subsets are allowed, specify how they are selected. State whether the vendor may create derived datasets, normalize fields, or generate synthetic variants, and distinguish testing permission from permission to train a model.

The customer should represent only matters within its knowledge, such as authority to provide the data and disclosed format requirements. The supplier should accept responsibility for complying with the agreed security measures and documenting its transformations. Avoid an absolute promise that a real-world dataset is error-free; define how discovered inaccuracies are reported and corrected.

Preserve a baseline and change history

Use a controlled delivery channel and maintain a manifest with filenames, row or record counts, schemas, version identifiers, and a cryptographic checksum where appropriate. Preserve an original reference copy separately from working copies. The log should identify additions, removals, relabeling, corrections, transformations, who approved them, and the effective test run. If a customer refreshes data, label the refresh as a new test version rather than silently replacing the old acceptance baseline.

For structured data, record key uniqueness and missing-field rules. For images, documents, or audio, define relevant metadata such as source category, labeling instructions, and known exclusions. If labels are disputed, establish an adjudication procedure involving qualified reviewers. A corrected label may improve the dataset without automatically proving that an earlier test was invalid.

Set test execution, review, and remediation rules

Define the test environment, permitted preprocessing, software build, scoring method, sample size, evaluation metrics, and threshold for acceptance. Require each test report to identify the exact dataset version and any exclusions. If the test fails because of a documented defect in the data, the parties should isolate that issue and determine whether the affected cases are corrected, excluded under a preapproved rule, or retained as valid edge cases.

Specify who pays for additional testing when the customer changes the baseline or when the vendor alters the dataset without approval. Define review periods and preservation duties while a result is disputed. Protect confidential or sensitive records in test logs, and provide the customer enough evidence to verify the result without disclosing unrelated vendor source code or third-party data.

Practical Business Examples

AI document classification: A customer provides labeled invoices and contracts. The vendor logs dataset version 1.2, documents an approved correction to duplicate labels, and reports precision and recall against the frozen acceptance set.

Enterprise reporting: A buyer supplies a sample transaction database. The parties document date formats, null-value rules, record count, and expected totals. A later data refresh becomes a separate test version.

Image inspection software: A customer supplies images of known defects. The vendor preserves the source images, documents resizing and other approved preprocessing, and retains results tied to the original image identifiers.

Variations and Special Cases

A frozen acceptance-set model prohibits changes after an agreed cutoff except by written amendment. A rolling dataset model permits periodic updates through controlled versions. A blind evaluation model restricts access to reference answers until a test is complete. A privacy-preserving model uses approved synthetic or de-identified data and restricts re-identification attempts. A disputed-label model assigns an independent domain specialist to adjudicate contested expected outcomes.

A frozen benchmark supports reproducibility but may become less representative as business conditions change. A rolling benchmark can reflect new conditions but makes longitudinal comparisons harder unless prior versions and scoring definitions remain available.

Negotiating Tips for Each Side

For the buyer or customer

Supply a clear data dictionary, labeling criteria, and intended acceptance decision. Require the vendor to preserve the original files and link every test result to a version, environment, code build, and agreed scoring procedure. Prevent unauthorized addition or removal of difficult cases. Where the data includes personal information or licensed content, set retention, permitted processing locations, confidentiality, and deletion duties consistent with applicable law.

Avoid treating a dataset as sufficient merely because it is large. Consider representativeness, duplicate records, missing fields, distribution shifts, subgroup performance, and the risk of using test examples during development. Define a fair correction process and a final arbiter for ambiguous labels. Coordinate the clause with security, privacy, intellectual property, acceptance testing, and termination assistance.

For the supplier or service provider

Request a stable schema and examples before implementation. Define which errors the vendor is expected to detect and which depend on customer subject-matter knowledge. Keep an unchanged copy and record transformations so the result can be reproduced. If the data includes unsafe or unauthorized content, provide a documented refusal or remediation route rather than silently deleting examples and reporting a pass against the reduced set.

Clarify whether the customer can add new test cases after results are delivered and whether doing so changes the acceptance threshold or project scope. Protect the vendor from perpetual retesting on an evolving dataset without agreed fees or dates. At the same time, a claim that the data is imperfect should not excuse software defects unrelated to that imperfection.

Common Drafting Mistakes

  • Testing against a dataset that can be silently replaced after the test starts.
  • Failing to distinguish test-set use from permission to train or improve a model.
  • Reporting a performance score without recording the dataset and software versions.
  • Removing difficult or invalid-looking records without a documented exclusion rule.
  • Assuming a checksum proves labels are correct or the sample is representative.
  • Sharing sensitive records with unauthorized subprocessors or external tools.
  • Ignoring what happens when data errors and software defects both contribute to a failed test.

Drafting Checklist and Authoritative References

  • Identify dataset contents, version, manifest, format, and permitted use.
  • Set delivery, access, retention, confidentiality, and deletion controls.
  • Freeze or version the acceptance set and preserve the original baseline.
  • Log transformations, corrections, label disputes, and approved exclusions.
  • Define test environment, metrics, acceptance thresholds, and review rights.
  • Allocate correction and retesting costs based on documented cause.
  • Provide a reproducible report and a dispute-resolution procedure.

The NIST AI Risk Management Framework Core discusses documenting test sets, metrics, evaluation tools, and conditions similar to deployment. It is voluntary guidance and does not prescribe a single data-integrity contract or a universal acceptance metric. The parties should define an appropriate dataset and any mandatory privacy or sector-specific rules separately.

Related LawyerAI Glossary Terms

The Customer Test Data Quality Clause addresses fitness and defects in supplied data; the Customer Test Data Representativeness Clause addresses the population and coverage; and the Audit Evidence Retention Clause addresses proof preserved for later review.

Frequently Asked Questions

Who is responsible when customer test data contains errors?

Responsibility depends on the contract, disclosures, and whether the issue could reasonably have been detected. Define correction and retesting rather than assigning every error categorically.

Should test datasets be frozen?

For a fixed acceptance test, a frozen version helps reproducibility. Rolling datasets can work if every revision is controlled and the acceptance implications are agreed.

Does a checksum prove a dataset is accurate?

No. It helps show that a file has not changed unexpectedly. It does not establish correctness, lawful use, representativeness, or labeling quality.

May a vendor train its AI model using the dataset?

Only if the contract and applicable permissions allow it. Testing rights should be expressly separated from training, retention, resale, and other uses.

How are disputed reference answers resolved?

Use documented adjudication criteria, qualified reviewers, preserved original labels, and a controlled process for corrections and retesting.

Key Takeaway

A customer-supplied test dataset integrity clause makes acceptance testing reproducible and permission-aware. Freeze or version the data, log changes, protect sensitive records, and identify which test result controls.

World-Class legal intelligence, Within Reach, Built for Personal and Business Matters
Try for free