Checkpoint Promotion
Seth HobsonCommunityCreated by Seth Hobson
- Skill
- Review and audit
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
Checkpoint Promotion provides a rigorous, multi-stage validation framework for fine-tuned model checkpoints. It ensures that improvements on a specific task do not come at the cost of general capability or data integrity. The process moves through four distinct gates: data quality verification, capability drift analysis against a frozen suite, paired arena comparison against the base model, and a canary rollout. The skill produces a structured report that concludes with a terminal PROMOTE or REJECT verdict, ensuring that only models meeting strict performance and safety standards reach production.
What it does
- Performs data quality checks including deduplication, leakage detection, and label noise scanning.
- Evaluates capability drift against a frozen benchmark suite to detect catastrophic forgetting.
- Conducts paired arena comparisons to validate model performance against the base model.
- Provides a structured remediation ladder for addressing drift-related failures.
- Generates a standardized promotion report with a terminal verdict.
- Supports canary rollout planning for production deployments.
When to use it
- After a training run produces a new model checkpoint.
- When deciding whether a tuned model is ready for production shipment.
- When a previously promoted model requires re-gating against updated golden datasets.
- To diagnose and remediate catastrophic forgetting in LoRA fine-tuned models.
Advantages
- Prevents the deployment of models that suffer from catastrophic forgetting.
- Enforces objective, data-driven decision making for model promotion.
- Provides clear, actionable remediation steps for failed checkpoints.
- Ensures consistency across the model development lifecycle via standardized reporting.
Usage examples
- “Evaluate the latest fine-tuned checkpoint against the frozen drift suite.”
- The agent runs the four-stage gate, compares performance against the baseline, and generates a promotion-report.md with a PROMOTE or REJECT verdict.
- “My model failed the drift budget check; how should I fix it?”
- The agent analyzes the failure, identifies the stage of the breach, and recommends a specific remediation from the escalation ladder, such as adjusting the replay-mix fraction.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/wshobson/checkpoint-promotion/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip checkpoint-promotion.zip -d .agents/skills
Documentation by Seth Hobson
Checkpoint Promotion
The Phase 5 gate for the whole
plugin: a checkpoint that trains
cleanly and beats its task metric
still doesn't ship without
clearing all four stages below.
eval-harness-first built the
suite re-run here — this skill is
where that suite's baseline
decides something.
Input: a trained checkpoint,
eval/baseline-<model>.json from
eval-harness-first, and the
frozen eval/drift-suite.yaml.
Output format:
promotion-report.md — the
four-stage evidence plus a
terminal PROMOTE or REJECT
verdict that /finetune Phase 5
and /promote-checkpoint consume
directly.
The Four-Stage Gate
Each stage gates the next — a failure at stage 2 means stage 3 doesn't run. Stages 2 and 3 share one expensive inference pass, so running them concurrently and applying gate order at verdict time is licensed on a deterministic arena (nothing saved by serializing); a judge-based arena should still wait for stage 2 first — that's where the real savings are.
Data-quality gate. Before any eval touches the checkpoint: dedup the training set, check for eval-goldens leakage (the exact failure
trace-to-training-data's Hygiene section exists to prevent), and scan for label noise. A checkpoint trained on leaked goldens invalidates every later stage.Held-out + frozen capability-drift suite. Re-run
eval-harness-first'seval/drift-suite.yaml— MMLU/GSM8K/IFEval plus 200–500 domain-adjacent items — against the checkpoint and diff againstbaseline-<model>.jsonper benchmark against the Drift Budget table below.Paired arena vs. base. Position-randomized judge, checkpoint vs. base model, same prompts — or the deterministic paired-comparison variant in
references/gate-templates.mdwhen every grader in the harness is deterministic (no LLM-judge; position randomization N/A there). A holdout win that loses the live arena does not ship — stage-2 numbers and stage-3 judgments must agree; a win on frozen goldens and a loss in paired comparison is a real signal, not a discrepancy to explain away.Canary. 5–10% stratified rollout with auto-rollback for any checkpoint reaching production traffic. Local-only users stop at stage 3 — skipping stage 4 for a local deployment is the correct stopping point, not a shortcut.
Drift Budget
| Drift (pts) | Verdict |
|---|---|
| ≤1 | Noise — proceed |
| 2–5 | Rerun with seed variation before deciding |
| >5 | HARD FAIL — no exception for task gains |
The >5pt row governs regardless of the others: a checkpoint that gained 8 points on the target task and lost 6 points of general capability still fails here — task improvement never buys back a drift-budget breach.
Item count derives from the
budget, not convenience: the
strict n for a half-width under
half the 5pt hard-fail threshold
is ~1,300 at typical accuracy
(p≈0.7); n=200 is a pragmatic
floor (±6pt half-width at that
same p, n=50 ±13pt) — report the
half-width with every verdict,
and treat a margin smaller than
it as REJECT (uncertain), not
PASS/HARD FAIL. Full math and a
5-run cautionary example:
references/gate-templates.md.
RERUN is not a verdict. A
2–5pt drift only ever produces a
PROMOTE or REJECT after the
seed-variation rerun completes —
PROMOTE requires landing back
at ≤1pt (noise); any rerun still
1pt — 2–5pt band or >5pt breach alike — resolves stage 2 to a hard
REJECT. No report may reach the Verdict section with stage 2 still showingRERUN.
Catastrophic Forgetting
Unmanaged LoRA fine-tuning loses real general capability, and stage 2 is what catches it:
~43% knowledge loss unmanaged — no replay, no regularization.
~10% with basic management — some replay or a conservative LR.
~3% with replay + EWC — the disciplined case.
10–30% general-data replay mix is the standard mitigation — blend general- domain data into training rather than target-task data alone.
If a checkpoint hits the >5pt
hard fail in stage 2, work this
escalation ladder in order — the
one canonical order this skill
and references/gate-templates.md
both point to:
Adjust the replay-mix fraction — swap rows, don't add them (adding confounds fraction with total optimizer steps). Dose is not monotonic at small-run scale (<~100 steps) — re-check drift after any swap.
Lower the learning rate.
Fewer epochs.
A smaller LoRA rank — the same rank/LR levers
lora-qlora-recipesandpreference-optimizationtune for the training run, applied here in reverse.
This order is a default, not a
law: remediation guidance from
a single before/after run pair
is a hypothesis — label it
low-confidence once any lever
produces a reversal, and prefer
a seed-variation repeat over
trusting the next rung blindly.
A lever that clears the drift
breach but drops a
success-criterion metric below
target is a two-sided tradeoff
for a human, not a reason to
keep descending the ladder. Full
reasoning and the 5-run
trajectory behind both caveats:
references/gate-templates.md.
Disclose drift-suite instruction reuse. A replay row copying the drift harness's exact instruction phrasing (not just disjoint source items) makes that benchmark's post-replay score an upper bound — flag it instruction-familiar, or re-probe with a paraphrase, before treating a near-budget pass as clean.
The Verdict
promotion-report.md covers all
four stages as sections and
must end with a terminal
verdict: PROMOTE or REJECT,
the evidence that produced it,
and exactly one top remediation
when the verdict is REJECT.
Template: references/gate-templates.md.
The terminal contract other
skills parse:
## Verdict
REJECT
Evidence: domain-adjacent drift
suite dropped 6.2pt (threshold:
>5pt hard fail) despite +8pt on
the target task.
Top remediation: swap the
replay-mix fraction from 10%
toward 20%, holding step count
constant.REJECT is a result, not an error. A checkpoint that fails stage 2's drift budget or stage 3's arena comparison did its job. Don't treat a REJECT as a failed run needing a rerun of this skill; it's the correct output of a working gate.
One remediation, not a menu. Evidence sections may list everything observed; the verdict section names the single highest-leverage fix per the escalation ladder above. A report that hedges across three possible fixes hasn't done the prioritization this skill exists to do.
No auto-retraining. This skill produces a verdict and a report, not a re-triggered training run. A
REJECThands the remediation back to a human decision atfinetuning-method-selectionor the relevant training skill.
Related Skills
eval-harness-first— owns the drift suite and baseline this skill re-runs and diffs against; nobaseline-<model>.jsonmeans nothing to gate against.quantized-export— the only valid next step after aPROMOTEverdict.preference-optimizationandlora-qlora-recipes— own the LR and rank levers in the Catastrophic Forgetting escalation path; this skill diagnoses the breach, those skills own the config that caused it.dataset-curation— owns the replay-mix construction recipe the escalation ladder's first rung applies.
Complete promotion-report.md
template with all four stages,
the drift-suite scoring table,
the paired-arena protocol (item
count, position randomization,
win-rate threshold), and a
replay-mix configuration example:
references/gate-templates.md.
Files
- ATTRIBUTION.mdAdded by AutoGineer988 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md7.9 KiB
- references/gate-templates.md12.9 KiB
references/gate-templates.md
Last verified: 2026-07-14
Gate Templates
Complete promotion-report.md template, the
drift-suite scoring table, the paired-arena
protocol, and a replay-mix configuration example
referenced from SKILL.md. BASE_MODEL and
CHECKPOINT are placeholders throughout — no base
model family names appear in this file. Benchmark
names (MMLU, GSM8K, IFEval) are not model names and
are used freely in the drift-scoring table.
promotion-report.md Template
Every promotion run produces exactly one of these,
committed alongside the checkpoint it evaluates.
All four stages get a section regardless of where
the run stopped — a stage the run never reached is
marked NOT RUN, not omitted, so a REJECT report
still documents the full gate.
# Promotion Report: CHECKPOINT
**Run date:** YYYY-MM-DD
**Baseline:** eval/baseline-BASE_MODEL.json
**Drift suite:** eval/drift-suite.yaml (frozen)
**Goldens fingerprint:** <sha256 of eval/goldens.jsonl, first 12 hex chars>
<!-- re-gates compare this field to detect goldens changes since this gate -->
## Stage 1: Data Quality
- Dedup: PASS/FAIL — N duplicate rows removed
- Goldens leakage check: PASS/FAIL — N overlapping
IDs found (must be 0 to pass)
- Label noise scan: PASS/FAIL — sample size, flagged
rate
## Stage 2: Capability Drift
| Benchmark | Baseline | Checkpoint | Delta | Budget verdict |
|---|---|---|---|---|
| mmlu-subset | 68.2 | 67.5 | -0.7 | noise |
| gsm8k-subset | 81.0 | 78.4 | -2.6 | rerun-seed |
| ifeval | 74.1 | 74.3 | +0.2 | noise |
| domain-adjacent | 62.0 | 55.8 | -6.2 | HARD FAIL |
**Stage verdict:** PASS / RERUN / HARD FAIL
(worst-benchmark delta governs — one HARD FAIL
row fails the whole stage regardless of the
others, and regardless of any task-metric gain
reported elsewhere in this document)
RERUN is a mid-report state, not a terminal one —
`## Verdict` below may never show `PROMOTE` or
`REJECT` while this line still reads `RERUN`.
Complete the seed-variation rerun first, then
overwrite this line with the outcome: PASS (rerun
landed ≤1pt) or HARD FAIL (rerun still >1pt, in
either the 2–5pt band or beyond) — this stage
resolves to PASS or HARD FAIL, never RERUN, before
the report reaches a verdict.
## Stage 3: Paired Arena
- Items: N (see Paired-Arena Protocol below)
- Position randomization: applied
- Checkpoint win rate: XX% (95% CI: [XX%, XX%])
- Threshold: 50% + margin
- **Stage verdict:** PASS / FAIL
- Cross-check: does this agree with Stage 2? A
Stage 2 PASS plus a Stage 3 FAIL means REJECT
regardless of Stage 2 — do not average the two
stages into a blended pass.
## Stage 4: Canary
- Applicable: yes (production target) / no
(local-only — stopped at Stage 3)
- Rollout: 5-10% stratified traffic
- Rollback trigger: defined / not yet defined
- **Stage verdict:** PASS / FAIL / NOT RUN
## Verdict
**PROMOTE** / **REJECT**
Evidence: one-paragraph summary citing the
specific stage and number that decided the
verdict.
Top remediation (REJECT only): single highest-
leverage fix — do not list more than one.Drift-Suite Scoring Table
Units: "pts" throughout this file and SKILL.md's
Drift Budget table mean percentage points (absolute
accuracy difference, e.g. 78% → 46% is 32pts), never
relative percent change. State this explicitly in
every report rather than leaving it implicit.
The frozen benchmark set and the drift budget it's
scored against — matches eval-harness-first's
references/grader-templates.md drift-suite.yaml
example exactly, so a report generated here diffs
against the same frozen numbers that skill's
baseline file recorded:
# scored against eval/drift-suite.yaml
drift_budget:
noise_tolerance_pts: 1 # <=1pt: noise, proceed
rerun_seed_variation_pts: [2, 5] # 2-5pt: rerun before deciding
hard_fail_threshold_pts: 5 # >5pt: HARD FAIL, no exceptionsScore every row in the frozen suite (general benchmarks plus the 200-500 domain-adjacent items) against this budget independently — a single domain-adjacent item breaching >5pt fails Stage 2 even if every general benchmark stayed within noise, and even if the checkpoint's target-task metric improved substantially in the same run.
Sizing the Suite: The Honest Math, Then the Pragmatic Floor
The exact formula for a binomial accuracy metric's
95% CI half-width: n ≈ 1.96² · p(1-p) / h², where
h is the target half-width (as a fraction, e.g.
0.025 for 2.5pt) and p is the benchmark's expected
accuracy. SKILL.md's Drift Budget section calls for
sizing n so the half-width sits comfortably under
half the hard-fail threshold — for the 5pt budget
here, h=2.5pt (0.025). Worked at a typical
GSM8K-style accuracy of p≈0.7:
n ≈ 1.96² × 0.7×0.3 / 0.025² ≈ 3.8416 × 0.21 / 0.000625 ≈ 1,290The strict n for a 2.5pt half-width at p≈0.7 is
~1,300 — not 200. A 200-item suite at that same p
only achieves:
half-width = 1.96 × sqrt(0.7×0.3 / 200) ≈ 1.96 × 0.0324 ≈ 6.3ptn=200 is a pragmatic floor, not a suite that meets the strict 2.5pt target. Use it when a ~1,300-item domain-adjacent pool doesn't exist for the task (the common case), but with three rules attached:
Report the actual CI half-width alongside every Stage 2 verdict — at n=200, p≈0.7 that's ≈±6pt; recompute per benchmark since
pvaries row to row.A hard-fail margin smaller than the reported CI half-width makes the verdict
REJECT (uncertain), never PASS or HARD FAIL. A delta that clears or breaches the 5pt budget by less than the half-width has not actually been distinguished from noise at 200 items. ResolveREJECT (uncertain)with either a larger suite (build the domain-adjacent pool toward the ~1,300-item strict number) or a same-config seed-repeat (worked example below) before promoting — do not round an uncertain result to whichever verdict is more convenient.200 is a floor to derive from the budget, never a fixed constant to copy. A tighter hard-fail threshold than 5pt needs the formula re-run at the new
h, and n=50 is well below even the pragmatic floor: atp≈0.7-0.8, n=50 carries a half-width around ±13pt, wider than the entire hard-fail band.
Cautionary Worked Example: A Real 5-Run Trajectory That Was Mostly Noise
From a dogfood run gating LoRA checkpoints on a frozen n=50 GSM8K drift slice, then re-measuring the same checkpoints at n=200 once the pattern looked suspicious:
| Run | Config change | GSM8K@n=50 | GSM8K@n=200 |
|---|---|---|---|
| r1 | 0% replay (baseline config) | 46 | — |
| r2 | +20% replay (swapped) | 64 | 60.0 |
| r3 | r2 + lower LR | 72 | — |
| r4 | r2 + 30% replay (added, not swapped) | 46 | — |
| r5 | r2 exact config, seed repeat | 56 | 58.5 |
Read at n=50, this trajectory looks like real
signal: replay helps (+18pt), LR helps further
(+8pt), more replay hurts (-26pt) — a story
worth writing a remediation note about. Read at
n=200 for the two points actually re-measured
(r2 and r5, same config, different seed): 60.0
vs 58.5, overlapping Wilson CIs — statistically
indistinguishable, against a base-model score
this run family never got within ~23pt of at
either n. The entire 46→64→72→46 shape at n=50
was sampling noise riding on top of one
consistently large true drift. Two lessons this
motivates in SKILL.md's escalation-ladder
caveats: (1) a per-checkpoint verdict at n=50 is
still a fact about that checkpoint on those 50
items, but (2) the run-to-run remediation
trajectory built from a sequence of n=50 verdicts
is not a reliable guide to which lever worked —
re-run the suite at budget-derived n before
trusting a multi-run remediation story, and treat
single-seed lever attribution as a hypothesis
until a same-config seed pair confirms it.
Paired-Arena Protocol
N items: 200 minimum, drawn from the same domain-adjacent pool used in Stage 2 (not the training set, not the goldens used to build the checkpoint). This is the same pragmatic floor as Stage 2's sizing rule above, not a suite proven to resolve the margin below at 95% CI: near the 50% boundary, n=200's half-width is
1.96 × sqrt(0.25/200) ≈ 6.9pt, wider than the 5pt margin threshold. Report the CI half-width alongside the win rate; if the margin is smaller than the reported half-width, the stage verdict isREJECT (uncertain)— same rule as Stage 2 — resolved with a larger arena or a same-config seed-repeat before promoting. This 200-item minimum is for the LLM-judge protocol. The deterministic variant below has its own, smaller floor because it isn't subject to judge noise on top of sampling noise.
Deterministic Variant (No LLM-Judge)
When every grader in the harness is deterministic (code-based, no judge anywhere), Stage 3 collapses to a per-golden paired comparison instead of a judge-scored arena:
Pairing: for each item in
eval/goldens.jsonl, compare the checkpoint's graded verdict against the baseline's verdict on the identical prompt (fromruns/baseline/results.json, paired bytask_id). Win = checkpoint passed where baseline failed; loss = the reverse; tie = same verdict either way.N items: every golden, not a 200-item minimum — the goldens set itself is the population, not a sample drawn from a larger pool. If the goldens set is small (dogfood scale, <100 items), say so in the report and treat the resulting CI width as evidence quality, not grounds to pad the count with unrelated items.
Position randomization: N/A — deterministic grading is order-independent, so there's no position bias to correct for.
Judge calibration: N/A — no judge in this path.
Tie handling and win-rate threshold: same as the judge protocol below (ties count half a win each; 50% + margin, CI excludes 50%).
Position randomization: for each item, flip a coin on which of {CHECKPOINT, BASE_MODEL} appears first in the judge's prompt; log the raw assignment. A judge with any positional bias otherwise inflates whichever model is shown first, independent of quality.
Judge: pinned snapshot, calibrated per
eval-harness-first'sreferences/judge-calibration.md— an uncalibrated judge here invalidates the whole stage.Win-rate threshold: checkpoint must win 50% + margin (5 points is a reasonable starting margin) with the 95% CI excluding 50% — a checkpoint sitting at 51% with a CI spanning 44-58% has not demonstrated a win, it has demonstrated a tie.
Tie handling: judge ties count as half a win for each side in the win-rate calculation, not as excluded items — excluding ties inflates the apparent win rate.
def paired_arena_verdict(wins: int, ties: int, losses: int,
margin_pts: float = 5.0) -> str:
if wins < 0 or ties < 0 or losses < 0:
raise ValueError("paired_arena_verdict: counts must be non-negative")
n = wins + ties + losses
if n == 0:
raise ValueError("paired_arena_verdict: no arena results (wins+ties+losses == 0)")
win_rate = (wins + 0.5 * ties) / n
# bootstrap or Wilson CI in practice; shown here as a stub
ci_low, ci_high = bootstrap_ci(wins, ties, losses)
threshold = 0.5 + margin_pts / 100
if win_rate >= threshold and ci_low > 0.5:
return "PASS"
return "FAIL"Replay-Mix Configuration Example
The standard catastrophic-forgetting mitigation —
general-domain data blended into the target-task
training set at 10-30%. The escalation order
(when and how far to move this fraction) is owned
by SKILL.md's Catastrophic Forgetting section —
this file gives the config shape and the
swap-not-add mechanic, not a competing order.
# training data composition
target_task_fraction: 0.80 # 80% target-task rows
replay_fraction: 0.20 # 20% general-domain replay
replay_source: general-instruct-pool-v3
replay_sampling: stratified # match replay topic mix to
# general-domain eval coverageStart at 20% when no prior forgetting data exists
for the task. When a later run needs to move this
fraction, swap rows rather than adding them —
drop target-task rows out of the mix as replay rows
go in, so total row/step count holds constant
between runs. Adding replay rows on top of the
existing set changes replay fraction and total
optimizer steps in the same move, which makes it
impossible to attribute a drift-score change to
either variable alone — see dataset-curation's
replay-mix construction recipe
(references/synthetic-data.md) for the full
swap procedure. Do not assume the dose-response is
monotonic: a documented dogfood run saw 30.4%
replay (added, not swapped) score 18 points worse
on the replayed capability than 20% replay at
otherwise-identical config, because the added rows
also raised total steps 50→58. Only drop toward 10%
once a run at 20% clears Stage 2 with headroom (all
deltas comfortably inside the noise band, not just
under the hard-fail line).
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Seth Hobson
- Publisher
- Seth Hobson (Community)
- Source
- wshobson/agents · plugins/llm-finetuning/skills/checkpoint-promotion · commit 4bde316
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Seth Hobson or Seth Hobson.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download checkpoint-promotion.zip