# Design a dataset split with leakage checks

Define entity, time and source boundaries before assigning data to training, validation and holdout partitions.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- An authorised dataset snapshot with hashes, dataset licence, source/configuration/split identity and extraction completeness evidence.

- The prediction task, intended deployment population, prediction time, label availability and feature availability definitions.

- Stable row IDs, entity/group/source identifiers, event and availability timestamps, duplicate relationships and an existing local data runner.

## Reviewed resources

### Hugging Face Dataset Workflows

Help inspect Hub dataset configuration, existing splits and paginated-read completeness when preparing the frozen dataset manifest.
https://undominated.ai/skills/huggingface-huggingface-datasets/

Reviewed: 2026-10-14; revision: c3ff942be3e07116b475253f0a8fc4f54682c1a8
Definition SHA-256: no redistributable definition attached
Source: https://github.com/huggingface/skills/tree/c3ff942be3e07116b475253f0a8fc4f54682c1a8/skills/huggingface-datasets

Permissions: Read public or explicitly authorized private/gated dataset data over the network.; Optional repository creation and file uploads are separate external writes.; Optional raw-trace export discloses local session data and requires explicit scope and redaction.
Cost boundary: The skill is Apache-licensed; private storage, hosted services and the consuming agent follow their own account terms.
Licence: Apache-2.0 — https://github.com/huggingface/skills/blob/c3ff942be3e07116b475253f0a8fc4f54682c1a8/LICENSE

#### Component limitations

- The opening read-only scope does not cover later repository creation and upload examples. A private destination is still an external disclosure of the uploaded contents.

- Raw traces can contain prompts, paths, tool output, personal data and secrets. The guide names broad session directories; its example is not permission to upload an entire user history.

- A row page is at most 100 rows in the documented workflow. Record offset, length, partial and total metadata; pagination alone does not prove complete or representative coverage. Filtered totals describe matches, not the source population.

- The skill pin does not pin the queried dataset. The illustrated Viewer URLs contain no dataset revision; retain actual response/shard identities and retrieval dates for reproducibility.

- Dataset licences and gated/private access are separate from the Apache-licensed skill. Viewer availability is not redistribution permission.

- The referenced hf-cli skill covers many mutating commands and proposes a remote installer; neither that installer, huggingface_hub, @huggingface/hub nor the Skills CLI dependency chain was audited or run.

- The existing CRLF-related no-download decision is retained: no normalized copy or new artifact is proposed.

#### Not runtime-verified

- No Dataset Viewer data request, Hub account call, dataset download, CLI installation or upload was performed.

- No dataset quality/licence audit, token-scope verification, pagination completeness test or CLI dependency audit; source retrieval is not a dataset runtime test.

### MLE Reviewer

Help independently challenge entity/time leakage, prediction-time feature availability and preprocessing fit scope before scoring.
https://undominated.ai/agents/ecc-mle-reviewer/

Reviewed: 2026-10-14; revision: ef648e01899ba3e8dc6371642deaaf64b4477775
Definition SHA-256: c505be5fccea9d067775b86fed76bc4b84e63e17090855ac135694adbc83a7f8
Source: https://raw.githubusercontent.com/affaan-m/ECC/ef648e01899ba3e8dc6371642deaaf64b4477775/agents/mle-reviewer.md

Permissions: Read, Grep, Glob, and Bash.; The body forbids installing packages without approval and forbids revealing secrets.
Cost boundary: MIT. The file sets model to sonnet and does not state a price.
Licence: MIT — https://github.com/affaan-m/ECC/blob/ef648e01899ba3e8dc6371642deaaf64b4477775/LICENSE

#### Component limitations

- Bash can execute repository code; use existing approved tools and inspect test side effects. The prompt forbids installing new packages without approval.

- The role references mle-workflow and sibling reviewers; these are dependencies for the complete upstream workflow, not bundled capabilities.

- Its grep examples can print sensitive matching lines; redact outputs and use synthetic data/scoped repository access when reviewing leakage.

#### Not runtime-verified

- The agent was not executed against a live repository or host.

### Study Design and Evidence Statistician

Help review the intended population, sampling assumptions and coverage limits behind the owner's split policy.
https://undominated.ai/agents/agency-statistician/

Reviewed: 2026-10-13; revision: 4bce55aa8b97385a5ad7b37d09b44ab976b96573
Definition SHA-256: 4b023595c59becec2026cab38807f835e48e280885f9cd381bab7845cbf4280c
Source: https://raw.githubusercontent.com/msitarzewski/agency-agents/4bce55aa8b97385a5ad7b37d09b44ab976b96573/academic/academic-statistician.md

Permissions: No tool allowlist is declared, so the configured host tool set is inherited.; Access to data, statistical runtimes and output files must be bounded by the host and the study’s own handling requirements.
Cost boundary: The definition is reusable under its stated licence. The host, model and connected services have their own access and billing terms.
Licence: MIT — https://github.com/msitarzewski/agency-agents/blob/4bce55aa8b97385a5ad7b37d09b44ab976b96573/LICENSE

#### Component limitations

- The prompt does not supply data, a statistical runtime or a validated analysis package. Calculations require suitable tools and reproducible inputs.

- Its persona memory does not create persistent storage, and its templates cannot certify statistical correctness.

- For Claude Code, the hexadecimal color #8B5CF6 is not one of the eight documented color names; adjust it in a working copy. The download preserves the original.

#### Not runtime-verified

- This agent has not been executed or benchmarked.

- Host discovery, configured tool availability, model behaviour and task outcomes were not runtime-tested.

## Independent research tasks

- Task and time reviewer: Write prediction-boundary.md from the frozen task and data dictionary: what is known at prediction time, when labels become available, and which entity or temporal relationships must be excluded from training.

- Overlap auditor: Independently write overlap-map.md using authorised identifiers and content checks. Trace exact duplicates, candidate near duplicates, entity links and shared sources, with detection rules and missing identifiers; do not use model scores to decide membership.

- Population reviewer: Write coverage-review.md from the same snapshot and deployment brief. Identify source, time and subgroup coverage gaps and feasibility constraints without choosing proportions from generic defaults or viewing holdout performance.

## Sequence and verification

1. Name the evaluation owner as integration owner. Freeze the task, dataset, rights and local environment; give all roles the same authorised evidence. For a Hub source, record the exact dataset revision/configuration and verify the completeness of retained files or paginated reads. A preview is insufficient for a whole-dataset audit.

2. Reconcile the independent reports. The owner sets training/validation/holdout policy, group or connected-component boundaries, time cutoffs, label-availability rules, source separation and any justified gap. Choose partition sizes from the task and available data; record the rationale without inventing standard proportions.

3. Freeze the assignment procedure, stable ordering, any seed, duplicate-detection rule and any near-duplicate threshold before building. Resolve conflicts between group isolation and time order explicitly; quarantine missing identifiers or unresolvable links instead of silently assigning them. Specify which information each audit role may access and keep outcome labels restricted as required.

4. Build a versioned row-to-partition manifest in the existing local runner. Keep raw data unchanged and retain excluded rows with reasons. Record code, configuration, environment and input/output hashes; a seed alone is not a reproduction record.

5. Before training or scoring, run independent checks for prohibited entity/source/duplicate overlap, temporal violations and features or labels unavailable at prediction time. Inspect the preprocessing plan: fitted transformations must use only the permitted training data in each evaluation fold. Recompute counts and repeat the assignment from the frozen inputs.

6. Hand over the manifest, audit and access policy. Seal the holdout under the project's actual access controls and record who can read labels. If leakage is found, mark the manifest invalid, retain its evidence and issue a new version; invalidate dependent evaluations. If holdout outcomes have already influenced choices, document the contamination and let the evaluation owner choose a defensible replacement or narrowed claim.

## Boundaries

- This is split design and leakage checking before model evaluation. No training run, model call, paid compute purchase or Hub upload is implied. The dataset skill also describes repository creation and trace uploads; those operations are outside this task unless separately authorised.

- Use an Agent Skills-compatible host for the dataset instructions and map the Claude Code reviewer profiles' tools/model fields before use. Restrict access to the approved snapshot and local outputs, and pass findings as files. The profiles supply neither a data runtime nor enforced holdout isolation.

- Dataset licences, gating and permission to process data are separate from the resource licences. Use approved local exports if access is unavailable; retain necessary identifiers in controlled files and share redacted audit summaries.

- Stop if rights, snapshot completeness, prediction-time meaning or required grouping identifiers cannot be established. A split with unresolved prohibited overlap is not ready for scoring, and a clean overlap report does not establish representative deployment performance.

- Do not tune partition membership, deduplication thresholds or preprocessing using holdout scores. Recovery changes the manifest version and dependent evidence; deleting an output does not undo information already seen by a model-selection process.

## Expected output

A reproducible split manifest and leakage audit with explicit exclusions, holdout access rules and limits on population coverage.

## Deliverables

- Frozen dataset and task manifest with rights, population and prediction-time definitions.

- Independent boundary, overlap and coverage reports.

- Split policy, deterministic assignment code/configuration and row-to-partition manifest.

- Leakage checks, partition counts, exclusions and reproducibility receipts.

- Holdout access handoff and invalidation/replacement procedure.

## Acceptance checks

- [ ] Every source row is assigned once or excluded with a reason, and partition counts reconcile to the retained snapshot.

- [ ] No relationship prohibited by the declared entity/source/duplicate policy crosses partitions; unresolved near-duplicate candidates remain visible.

- [ ] Temporal cutoffs, label-availability rules and prediction-time feature availability are checked, including entities that span a cutoff.

- [ ] Missing identifiers and conflicting group/time constraints have explicit dispositions rather than random fallback assignments.

- [ ] The preprocessing plan fits only permitted training data for each fold, and partition design has not used holdout performance.

- [ ] A repeat assignment reproduces the manifest; holdout access, coverage gaps and any invalidated evaluation are recorded.

Workflow: https://undominated.ai/workflows/#design-a-dataset-split-with-leakage-checks
