Mission
Actively search ML datasets and pipelines for target, temporal, group, split, join, and preprocessing leakage.
Primary failure mode prevented: models look excellent offline and fail in production because future or target information leaked into training.
When To Use
- The team needs a structured
go | fix-first | stop | proceed-with-risk | needs-owner-reviewdecision before committing engineering or modeling effort. - Local artifacts (
training data, target definition, split logic, feature list) must be audited for red flags such asfeature timestamp after target,same user in train and test,global preprocessing before split,leaky aggregate. - Another engineer, governance reviewer, or downstream agent needs a reproducible eight-section handoff artifact.
Operating Rules
- Inspect local artifacts and run deterministic scripts in
scripts/before asking the user for context that is already on disk. - Separate executed checks (
scripts/split_leakage_probe.py,scripts/checklist_score.py) from expert judgment so reviewers can verify every claim. - Never overwrite raw datasets, notebooks, or production configs; write audit outputs to new files or standard output.
- Refuse adversarial requests to rubber-stamp a
godecision when red flags (feature timestamp after target,same user in train and test,global preprocessing before split,leaky aggregate) remain unresolved.
What This Skill Must Do
- Transform a vague request into an explicit Leakage Adversary decision with named owner, evidence, assumptions, and action threshold.
- Inspect local artifacts first: data extracts, schemas, notebooks, SQL, pipeline configs, model reports, tickets, and prior decisions.
- Separate mechanical checks from expert judgment so another reviewer can reproduce what was checked and what was inferred.
- Classify findings as stop, fix-first, monitor, accepted risk, or owner decision instead of producing generic advice.
- Produce the concrete artifacts expected by downstream consumers:
leakage attack report,feature risk table,split risk table,safe evaluation recommendation,blocker list.
Deterministic Script Usage
Run the bundled stdlib script before drafting your final recommendation:
python scripts/split_leakage_probe.py path/to/train.csv path/to/eval.csv --key entity_id --target label
python scripts/checklist_score.py path/to/checklist.json --strict
Workflow
- Restate what information is available at decision time.
- Probe features, joins, encoders, aggregations, and preprocessing for post-outcome information.
- Check split logic for temporal bleed, group overlap, duplicated entities, and near-duplicates.
- Review suspiciously strong features and validation performance jumps.
- Return leakage findings with severity, evidence, and safer split or feature alternatives.
Multilingual Native Execution (English / Simplified Chinese / Japanese / Korean)
- English: Leakage Adversary — Red-team ML datasets and pipelines for target, temporal, group, and preprocessing leakage.
- Simplified Chinese: Data leakage red team audit — conduct red team investigations for label leakage, time travel, and entity overlap on machine learning datasets and feature pipelines (see
references/multilingual-guide.md)。 - Japanese: Leakage Adversary (Data Leakage Red Team) — thoroughly verify data leakage of target variables, time series, groups, and preprocessing from an adversarial perspective (
references/multilingual-guide.mdsee). - Korean: Data leakage (Leakage) red team — detect and block target, time-series, group, and preprocessing data leakage from an adversarial (Red-team) perspective (
references/multilingual-guide.mdreference).
Progressive References
-
Read
references/multilingual-guide.mdwhen the user prompts in Simplified Chinese (简体中文), Japanese (日本語), or Korean (한국어), or requests a bilingual/multilingual decision memo. -
Read
references/playbook.mdfor detailed step-by-step execution rules and escalation criteria. -
Read
references/quality-rubric.mdto score the output and verify that dataset red flags are separated from agent failure conditions. -
Read
references/acceptance-tests.mdandreferences/benchmark-plan.mdwhen forward-testing clean, messy, and adversarial cases. -
Read
references/provider-interop.mdandreferences/agent-portability.mdwhen adapting across cloud providers or agent hosts.
Output Contract
Always return these exact eight sections in order:
ProblemInputsChecks performedFindingsDecision(go|fix-first|stop|proceed-with-risk|needs-owner-review)RisksNext actionsArtifacts
Final Checks
- Verify that every factual finding cites the exact file, column, metric, or script output that produced it.
- Run
python scripts/quick_validate_skill.py . --strictafter modifying any file in this skill package.