/hvantk:drift-triage <provider:dataset> [--report drift-report.json] [--raw-dir DIR]from hvantk
Triage drift signals from hvantk drift or drift-bot PRs: classify the signal (content change, schema change, broken probe), repair the plugin, rebuild and verify the dataset against committed snapshots, and record the fingerprint and rebuild-ledger row.
Ships in hvantk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the hvantk:workflow-conventions skill (skills/workflow-conventions/SKILL.md)
first; this skill assumes its site-profile rule, its section contract and its
measurement contract.
Turn one dataset's drift signal into a reviewable change: the plugin repaired or left alone with a reason, the dataset rebuilt from the current upstream file and verified against its own schema snapshot, the fingerprint regenerated, and the rebuild-ledger row recorded and marked rebuilt.
Use it on a drifted report, probe_failed, an open drift-bot pull request, or a
build that used to work and now fails with a missing column, a key field not found, or
a header marker not found. Classifying and repairing (steps 2, 4) touch only the
checkout, no image, no job; reproducing, rebuilding, verifying and the bookkeeping
(1, 3, 5, 6) all run through the image, where the fingerprint and ledger files live.
Not this skill: writing a new plugin (a resource spec under hvantk/skills/<provider>/),
changing a dataset's output contract on purpose (references/repair-patterns.md says
where that line is), building many datasets at once (dataset-build-at-scale), or
redesigning a probe beyond making it answer again.
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/_site/check-site-profile.sh";
stop and ask for any missing value. Every later command that reads a profile value
starts with the same source "$HVANTK_SITE_PROFILE" &&. Needed by every image-touching
step (1, 3, 5, 6); classifying (2) and repairing (4) are checkout-only.dev) is checked out at
$HVANTK_REPO, clean tree -- git -C "$HVANTK_REPO" status --porcelain -- so the
repair you make is the only diff.sha256sum "$(readlink -f "$HVANTK_SIF")"); rebuild and verify jobs run inside it.hvantk drift directly. Without it -- a
compute node, a sandbox, or to pin the signal to a file in hand --
templates/probe-offline.py answers the same probe locally
(references/bookkeeping.md says which).hvantk or python -m hvantk here -- the PATH/
stale-copy trap below):
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
hvantk drift <provider:dataset> --json > drift-report.json
With no egress, or to pin the signal to a file already on disk:
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
python "$HVANTK_REPO/skills/drift-triage/templates/probe-offline.py" drift \
--dataset <provider:dataset> --file <upstream-file> -- --json
A drift-bot pull request's body carries the same diff.references/triage.md: headers/checksums in diff.changed, or a
top-level key added or removed, is a schema signal; only extras/source_version
moving is routine; probe_error means the probe is broken, not the dataset --
three different causes there, each with its own fix (same ref).source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
hvantk reprocess <provider:dataset> --raw-dir <dir> --output <dir>/unused.ht \
--skip-build --no-check-drift --plugin-arg overwrite=true
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
python "$HVANTK_REPO/skills/drift-triage/templates/probe-offline.py" diff \
--dataset <provider:dataset> --file <new-file> --against-committed
Then read the plugin's rename map (hvantk/skills/<provider>/shared/constants.py, or
the builder) to see which declared source columns the new file lacks.references/repair-patterns.md: a renamed column gets its new source
name added to the rename map, keeping the old one; a removed column feeding an
output field needs a decision with the user (the output contract changes); an
added column needs nothing unless it should be mapped; a moved header marker is a
builder fix.skills/hpc-hail-job/SKILL.md section 3 steps 3-4 describe (a foreground --wait
outlives most tool timeouts):
source "$HVANTK_SITE_PROFILE" && nohup bash -c 'source "$HVANTK_SITE_PROFILE" && \
bash "$HVANTK_REPO/skills/hpc-hail-job/templates/submit-hail-job.sh" --name <run>-build \
--cpus 4 --mem-gb 16 --time 0-00:30:00 --wait -- \
hvantk reprocess <provider:dataset> --raw-dir <dir> --output <out> \
--skip-download --no-check-drift' > <run>-build.submit.log 2>&1 &
The job id is printed at the top of that log once submitted; poll with squeue -j <id> .../sacct -j <id> .... Verifying and testing are quick enough to --wait on:
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/submit-hail-job.sh" --name <run>-verify \
--cpus 2 --mem-gb 8 --time 0-00:15:00 --wait -- \
python "$HVANTK_REPO/skills/dataset-build-at-scale/templates/verify-builds.py" \
--build <provider:dataset>=<out> --receipt <out>.receipt.json
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/submit-hail-job.sh" --name <run>-test \
--cpus 2 --mem-gb 8 --time 0-00:15:00 --wait -- \
python "$HVANTK_REPO/skills/drift-triage/templates/run-plugin-tests.py" \
--repo "$HVANTK_REPO" --dataset <provider:dataset>
verify-builds.py is dataset-build-at-scale's template, referenced here by path.references/bookkeeping.md -- regenerate BEFORE marking rebuilt
(the reverse order is a trap, below):
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
hvantk drift --regenerate <provider:dataset> --accepted-in "<PR or branch>"
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
hvantk drift --mark-rebuilt <provider:dataset>
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
hvantk drift --ledger # must no longer list <provider:dataset>
On a machine with no egress, or to pin the baseline to the file just validated, the
first command becomes:
source "$HVANTK_SITE_PROFILE" && bash "$HVANTK_REPO/skills/hpc-hail-job/templates/run-in-image.sh" -- \
python "$HVANTK_REPO/skills/drift-triage/templates/probe-offline.py" drift \
--dataset <provider:dataset> --file <new-file> -- --regenerate --accepted-in "<PR or branch>"
tests/drift_fingerprint.json,
resources/drift_ledger.json, and the fixture or snapshots only if intentionally
regenerated (say so in the commit). Commit as fix(<provider>): accept <what changed upstream>.dataset-build-at-scale, mark each rebuilt individually.rebuilt_at: null keeps the debt visible until it runs.hvantk drift --timeout <seconds>.hvantk/skills/_conventions/SKILL.md section 12): repair once, then rebuild
every dataset sharing it, not only the one named in the report.probe_failed, by cause (probe_error tells them apart; full table in
references/triage.md). Network error: a login node with egress, or answer
templates/probe-offline.py from a downloaded copy. No baseline yet, or one shaped
like a placeholder (empty checksum, sentinel string, epoch fetched_at):
--regenerate. The probe's own code raising on content it DID fetch (a missing
marker, say): repair drift_probe.py; bump PROBE_VERSION only for an
OUTPUT-shape change (references/bookkeeping.md).drift_fingerprint.json. Cause: only a placeholder-shaped baseline
(trap above) is rejected outright; any other edit is accepted as a file but then
never matches a live probe, so the dataset reports drifted forever. Fix:
--regenerate, never by hand.observed/expected differ in fetched_at or informational, which
looks like a reason to act. Cause: both show in full but are excluded from diff
before it is even computed. Fix: read diff.changed, never the raw blocks.--regenerate run minutes after the report shows a different content_length.
Cause: upstream moved again in the gap; the bot skips this case rather than commit
an unvalidated result. Fix: use the offline form pinned to the file you built from.--regenerate. Cause: a first capture, or a
probe_version-only change -- neither is an upstream change by itself. Fix: add
the row by hand if upstream genuinely moved too.--ledger reports clean after --mark-rebuilt, but nothing was recorded. Cause:
--regenerate recorded no row this time, so --mark-rebuilt marked an older row
instead (references/bookkeeping.md). Fix: regenerate first, always; confirm
last_upstream_change is from THIS run.references/repair-patterns.md), and say so in the commit.templates/run-plugin-tests.py chdirs there first --
run it, not pytest.hvantk/python -m hvantk, or a bookkeeping syntax error. Cause and fix:
see workflow-conventions's Runtime rules (section 4) -- route every command
through run-in-image.sh, as every step above does.dataset-build-at-scale/templates/verify-builds.py: the schema
satisfies the snapshot as a floor (every declared field present with its type;
extra upstream fields expected) and the row count as expected -- compared against
your own previous build, never the fixture's hand-authored keys.hvantk drift <provider:dataset> reports clean, and hvantk drift --ledger no longer lists the dataset.signal, a non-empty accepted_in, and
last_upstream_change/rebuilt_at from THIS run -- not a stale row the
--mark-rebuilt-before---regenerate trap left behind.run-plugin-tests.py --repo "$HVANTK_REPO" --dataset <provider:dataset>, run as a job like step 5's verify.eval/check.py (opens in a new tab)eval/control.sh (opens in a new tab)eval/reference.json (opens in a new tab)eval/stage.sh (opens in a new tab)eval/task.md (opens in a new tab)references/bookkeeping.md (opens in a new tab)references/repair-patterns.md (opens in a new tab)references/triage.md (opens in a new tab)templates/probe-offline.py (opens in a new tab)templates/run-plugin-tests.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/ancestry-inferenceUse when samples of a cohort must be assigned a continental ancestry with hvantk: building a labelled reference MatrixTable from 1000 Genomes, running the PCA and random-forest pipeline as a Slurm job, and reading the predictions and their confidence. Also when the pipeline refuses for too few shared variants, mixed genome builds or a missing label column, or when many samples come back unassigned./callset-subset-exportUse when a sample subset of a joint callset must be delivered as a verified VCF: subsetting the lossless VDS by sample list, densifying and exporting with hvantk, verifying header samples and record counts, writing checksums and a manifest, per contig for large callsets. Also when sample names in a list do not match the callset, when per-contig VCFs refuse to concatenate, or when a delivery must go to a read-only share./npx claudepluginhub bigbio/hvantk --plugin hvantk