aicr-reviewing-component-drift
Skill489 starsChanged 41 days agoApache-2.0View on GitHub
Use when reviewing the weekly AICR component drift report — the Slack digest and drift-report.json artifact produced by Registry Drift Report (registry-drift.yaml) listing which recipes/registry.yaml chart pins have moved upstream. Triggers on "review this week's drift", "component drift", "/aicr-reviewing-component-drift", "should we bump <component>", "what changed in <chart>", a pasted drift digest from Slack, or release prep that needs to know which chart pins are safe to advance. Gathers values-path compatibility, lockstep-family, image/BOM, CRD/upgrade-record, upstream release-note, and Kubernetes-compatibility evidence per component, then writes a ranked take/hold/defer recommendation. Recommends only — it never edits the registry, files an issue, or opens a PR.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- aicr-analyzing-snapshotsSkill
- aicr-auditing-docsSkill
- aicr-creating-guided-demosSkill
- aicr-creating-slide-decksSkill
- aicr-cross-reviewSkill
- aicr-managing-openvexSkill
- aicr-release-notesSkill
- aicr-triageSkill
- aicr-uat-reportSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Do NOT use this skill to perform a bump.
- Very specific: line 36
Read drift-state.yaml beside this file before anything else.
- Distinctive: line 39
Update it in Step 5.
- Very specific: line 66
Read drift-report.json and drift-report-raw.json from "$dir".
- Very specific: line 205
Write Markdown to a temp file ("$TMPDIR"/aicr-drift-review-<date>.md) and summarize it in chat.
- Distinctive: line 218
Do not edit the registry, file issues, or open PRs.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AICR Component Drift Review
Turns a weekly drift report into a decision. The workflow (https://github.com/NVIDIA/aicr/actions/workflows/registry-drift.yaml) answers "what moved"; this skill answers "what should we take, and what does taking it cost". An AICR component bump is never a version-string edit, which is exactly why the workflow does not open PRs.
When to Use
- The weekly drift digest landed in Slack and someone asks what to do about it
- Release prep needs to know which chart pins can safely advance
- Someone asks whether a specific component should be bumped
Do NOT use this skill to perform a bump. It produces a recommendation; the edit,
the make bom-docs run, and the PR are separate, human-initiated work.
Step 1 — Read the state file
Read drift-state.yaml beside this file before anything else. It records what
was reviewed at which candidate set and why anything was held, so a component
whose candidates have not changed since last week is confirmed, not re-derived.
Update it in Step 5.
Reuse a verdict only after comparing the whole candidate set — current,
latest, and every entry in alternatives[] and predating[] — against what
the entry records. A chart in withheld[] has no latest; its set is
current plus predating[].
A verdict keyed on the version pair alone goes stale silently, because a new
candidate can appear while current and latest both stay put: kai-scheduler
sat at v0.16.9 -> v0.20.1 across two runs while a patch v0.16.10 arrived
beside it, and v0.16.10 is the one worth taking. If any candidate was added,
removed, or changed, re-derive.
An entry with no recorded candidates predates that field. Treat it as changed
and re-derive it; do not read the absence as "nothing new".
Step 2 — Resolve the input
In order of preference:
- An explicit run, downloaded into a scratch directory rather than the
working tree (
gh run downloadextracts in place; without--dirthe two report files land as untracked files in this checkout and collide with themselves on a second run):
Readdir=$(mktemp -d "${TMPDIR:-/tmp}/aicr-drift.XXXXXX") gh run download <id> -R NVIDIA/aicr -n drift-report --dir "$dir"drift-report.jsonanddrift-report-raw.jsonfrom"$dir". The latest run:
gh run list -R NVIDIA/aicr --workflow=registry-drift.yaml --status=success --event schedule --limit 1 --json databaseIdthen the same scratch-directory download as above (mktemp -d+gh run download <id> -R NVIDIA/aicr -n drift-report --dir "$dir").The default is deliberately the weekly scheduled run on the default branch —
registry-drift.yamlalso runs onworkflow_dispatchand, for a same-repo PR touching the drift surface, onpull_request; every successful path uploads the samedrift-reportartifact name, so an unfiltered "latest successful run" could just as easily be a PR-validation run and put the review against unmerged changes.--event scheduleexcludes both. Reviewing a manual or PR-validation report is still supported — pass--run <id>explicitly (option 1) rather than relying on the default.- A local
drift-report.jsonpath the user provides - A pasted Slack digest — it carries counts and a
report artifactlink, no component names, so take the run ID out of that link and download the artifact per option 1. If the artifact has expired, re-derive the drift set fromrecipes/registry.yamland the upstream registry (helm show chartfor HTTP repos,crane lsforoci://). That re-derivation is unfiltered: it does not apply Renovate'sminimumReleaseAge(3 days,.github/renovate.json5),internalChecksFilter: "strict", or the report's publish-date screen. It can surface a release younger than the cooldown, one Renovate's strict filter would reject, or a frozen line numbered above the maintained one (the highestcrane lstag forkai-scheduleris the retractedv0.20.1). Use it only to identify which components to look at — never to justify a bump on its own; the artifact remains the authoritative source for whether a version is actually eligible.
Confirm schemaVersion is 2. A higher number means this skill is stale —
read tools/drift-report/report.go before trusting the field names. A 1 is
an artifact from before the publish-date screen: its latest can be a
retracted or frozen line, so verify every candidate's release date by hand.
Report unresolved[] to the user before reviewing anything: those pins are
unknown, not current, and a persistent entry is a broken datasource worth
fixing ahead of any bump.
Read alternatives[] on every row that has one. latest is the largest
step on offer, not the only one and not necessarily the one to take. A row
carrying alternatives has a smaller step available — usually the one worth
recommending, since it crosses fewer upstream changes. Name both in the verdict
and say which you are recommending; a verdict that discusses only latest when
the row offered a minor beside a major has reviewed the wrong upgrade (#2791).
The field is absent when only one candidate was offered, the common case.
Read predating[] and withheld[]. A registry can carry a frozen or
retracted line numbered above the maintained one, and Renovate offers the
highest number. That is how kai-scheduler's retracted v0.20.1 and
agentgateway's kgateway-lineage v2.2.1 were proposed for weeks (#2791). The
tool walks each update type from the highest version down. It withholds
versions published more than a day before the current pin (currentPublished)
until it reaches one that is not, offers that one, and drops lower versions of
that type unexamined. A withheld version stays visible in the row's
predating[]; a chart whose every candidate was withheld moves out of
drift[] into withheld[] and has no latest. Publish order is a signal, not
a verdict: a maintained parallel line is withheld too when its newest release
is older than the pin, as when the pin is itself a recent patch on an older
line. Never recommend a withheld version without confirming upstream still
maintains its line (gh release list, the release being marked Latest, no
retraction), and say in the verdict that you did.
Treat unscreened as unchecked. It is set when an offered version could
not be checked against the pin: the pin itself has no publish date (then
nothing was withheld), or an offered version has none. Causes are a failed
registry lookup, an OCI chart without a usable
org.opencontainers.image.created annotation, or a Helm entry Renovate left
undated. An unscreened version is offered exactly as before the screen
existed, and lower lines of its type were not examined. Check the dates
yourself (crane manifest <image>:<tag> for oci://, helm search repo -l
or the repo index for Helm) and look for a maintained line below it
(crane ls) before recommending one. summary.unscreened counts these rows,
and the digest names the count when it is not zero; a sudden jump usually means
a registry refused the lookups. A row without unscreened had every offered
version checked.
Step 3 — Gather evidence per component
Ordered by how often each is what actually bites.
Values-path compatibility. Pull both chart versions and diff their values, then verify every path AICR depends on still exists:
- keys set in
recipes/components/<name>/values.yaml values:blocks inrecipes/overlays/*.yamlandrecipes/mixins/*.yamlthat target the component- the component's
nodeScheduling.nodeSelectorPathsandtolerationPathsinrecipes/registry.yaml
The third is the silent one: a renamed
master.nodeSelectorleaves AICR rendering valid YAML that no longer schedules anything correctly, and no current test catches it. Treat a missing path as a blocking finding.- keys set in
- Lockstep families. These move together; never recommend a partial bump:
slinky-slurm-operator-crds,slinky-slurm-operator,slinky-slurmmariadb-operator-crds,mariadb-operator,slurm-accounting-mariadbagentgateway-crds,agentgatewayprometheus-operator-crds,kube-prometheus-stack, keyed onappVersion, not chart version (the two chart sequences are unrelated). A lagging CRDs pin also breaksnvsentinelandk8s-ephemeral-storage-metrics, which create resources defined by those CRDs.TestPrometheusOperatorAppVersionLockstepenforces this.prometheus-adapter/prometheus-adapter-ocp,nvidia-dra-driver-gpu/nvidia-dra-driver-gpu-ocp, andk8s-nim-operator/k8s-nim-operator-ocp— these three-ocptwins carry adefaultRepositoryidentical to their base, soBuildReportalready collapses each pair into one report row; name both in the verdict anyway. The other four-ocpcomponents (gpu-operator-ocp,network-operator-ocp,nfd-ocp,cert-manager-ocp) havedefaultRepository: ""and are manifest-only —BuildReportdrops them beforeTracked++, so they never appear in the report at all (they surface inuntrackedComponentsinstead). Do not assume a base component's row already accounts for one of these four; there is no shared row to collapse into.
- Image and BOM delta. Render old against new and diff the image list.
make bom-docsis the repo's renderer; a new image means new vulnerability surface, and a new registry host meanstools/registry-inventory's allowlist needs extending too. - CRD and upgrade-record impact. For CRD-bearing charts (kueue,
gatekeeper, mariadb, slinky, prometheus-operator-crds, nvsentinel), check
whether the transition needs an ADR-021 record: see
pkg/upgradeandtools/check-upgrade-records. - Upstream breaking changes. Where the chart maps to a GitHub project,
read the releases between the two versions
(
gh release list -R <owner>/<repo>), looking for removed flags, renamed values, and required migration steps. - Kubernetes compatibility and blast radius. Compare the new chart's
kubeVersionagainst theK8s.server.versionconstraints of the overlays that pull the component, and check whetherrecipes/checks/<name>/health-check.yamlexists and whether its assertions still hold against the new chart's resource names.
Step 4 — Write the recommendation
Write Markdown to a temp file ("$TMPDIR"/aicr-drift-review-<date>.md) and
summarize it in chat. Rank components by (blocking findings, then update type,
then age of the pin). Per component:
- Verdict: take / hold / defer, one line of why. When the row carries
alternativesorpredating, name which version the verdict is about — a bare "take" is ambiguous once more than one is on offer, and awithheld[]row has nolatestto default to - Evidence: the findings from Step 3 that produced the verdict, with the specific values path, image, or release note that matters
- Cost: what a bump would require — a values-file edit, a new upgrade record, a BOM refresh, a health-check update, an allowlist entry
Do not edit the registry, file issues, or open PRs. Ask before doing anything outward-facing.
Step 5 — Update the state file
Record every component reviewed: the version pair, the full candidate set the verdict was formed against, which candidate the verdict recommends, the date, and for a hold or defer the condition that would change it. Next week's digest repeats the same components by design — this file is what keeps the review from repeating with it.
candidates is what Step 1 compares against, so record it verbatim from the
report rather than summarizing: an entry that omits a candidate makes next
week's run confirm a verdict that never considered it. Record a predating[]
entry with a predating prefix (predating major v2.2.1) so a withheld version
is never read back as one that was offered. recommends is only meaningful
when the row had alternatives or predating versions; omit it otherwise, since
the single candidate is already named by to. A withheld[] row has no latest, so omit to and set
recommends to the predating version the verdict names, if any.
Gotchas
crane lsonghcr.ioworks in the sandbox; NGC (nvcr.io, andhelm.ngc.nvidia.comovercurl) and some TLS paths needdangerouslyDisableSandbox: true. Try sandboxed first.- OCI chart repositories list cosign signature and attestation tags alongside real chart tags. Ignore anything that is not a version.
recipes/overlays/aks.yamlpinskube-prometheus-stackto83.7.0deliberately (#700, declared inversionPinExemptionsinpkg/recipe/version_pin_guard_test.go). Akube-prometheus-stackbump has to reckon with that exemption; do not propose removing it casually.aws-efa's chart is tracked but its device-plugin image is in Renovate'signoreDepsand must be coordinated with EKS add-on releases.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

