Separate capture and completion

The save that finished last contains generation 12. Another completed save contains generation 20. At interruption, the toy task has completed generation 24. Choosing by completion order therefore replays twelve logical units; choosing the highest captured generation among eligible snapshots replays four. This is an original synthetic CPU example, with no measured recovery time or storage behavior.[3][4]

The distinction is between the progress a checkpoint captured and the order in which saves finished. Our complete event ledger records progress at generation 12, capture of an older snapshot, progress at generation 20, and capture of a newer snapshot. The newer save finishes at event 5; the older save finishes at event 6. The inclusive observation cutoff is event 7, when completed progress is 24. Event numbers express order, not time.[3][4]

The task is deliberately small. Generation n means logical units 1 through n are complete. The entire state is n and the exact integer sum of that prefix. The frozen states are generation 12 with sum 78, generation 20 with sum 210, and generation 24 with sum 300. Every generation belongs to one declared monotonic lineage. Both completed snapshots in the main case are valid and available by assumption.[3][4]

Both selection policies use the same eligible set: an observed capture in the target lineage, the exact valid toy state, and a successful save completed by the cutoff. Last completion selects the greatest completion ordinal. Highest captured generation selects the greatest captured generation; a later completion breaks ties only after equal-generation bodies have been checked for consistency. Neither policy is allowed to select a pending, failed or foreign-lineage snapshot.[3][4]

  • Keep two orderings: Capture generation 12, then 20. Finish saving 20, then 12. Completion order does not establish freshness.

Compare the same eligible snapshots

The saved output contains the full replay suffixes. Restoring generation 12 requires units 13 through 24; restoring generation 20 requires units 21 through 24. Adding either suffix to its restored prefix sum reaches 300. The counts are twelve and four logical units. They do not measure elapsed time, GPU work, energy or dollars, and they do not establish a speedup.[3][4]

The controls make the boundary visible. If the older save finishes first, both policies restore generation 20. If the newer save finishes after the cutoff, both restore generation 12; a later successful event stays in the full ledger but cannot influence the earlier observation. A failed newer save is also excluded. A later completed generation 30 in another lineage does not outrank either valid target-lineage snapshot.[3][4]

Seven further authored traces produce refusals under both policies: no completed snapshot, conflicting state bodies at one generation, completion before an observed capture, capture ahead of observed progress, regressing progress, an incorrect prefix state, and ambiguous event order. Six traces fail validation. The no-completed-snapshot trace passes structural validation, but both selection policies refuse because nothing is eligible. Every refusal is retained as an outcome. These are selected teaching controls, not a test distribution or a claim that this small validator covers every recovery failure.[3][4]

  • Make eligibility explicit: The highest generation must belong to the same declared lineage and a valid snapshot successfully saved by the cutoff.

Five authored selection cases from the full twelve-trace fixture. Seven further traces are refused under both policies.

Authored caseLast completion: restored / replayHighest captured generation: restored / replay
Newer save finishes first12 / 12 units20 / 4 units
Older save finishes first20 / 4 units20 / 4 units
Newer save finishes after cutoff12 / 12 units12 / 12 units
Foreign generation 30 finishes last12 / 12 units20 / 4 units
Newer save fails12 / 12 units12 / 12 units
  • All five cases observe target progress 24 at cutoff. Replay counts are logical units, not durations.
  • Both policies share the same eligibility filter. Later, pending, failed and foreign-lineage snapshots cannot be selected.

Retain the original proof and credit

PyTorch's Distributed Checkpoint documentation distinguishes staging a local state copy from completing a save. Its asynchronous-checkpoint recipe waits for the previous checkpoint before another request. That recipe is useful background for separating lifecycle stages; it is not evidence for the two outstanding saves in our fixture. This example does not run PyTorch or report a PyTorch bug.[1][2]

Nodus authored the event traces, policies, code and expected answers. The program ran once on CPython 3.9.6 on November 25, 2026 UTC. All twenty-four frozen policy expectations across twelve traces matched, and the ten selected restore outcomes reconstructed the expected prefix sum. The MIT package retains the executed source, portable protocol, full fixture and complete output. Packaging and artwork use the saved result without another proof invocation.[3][4][5]

  • The PyTorch sources are background for separating staging and saving. Its documented recipe limits outstanding requests. This model does not run PyTorch or identify a PyTorch bug or an out-of-order completion in that recipe.

Keep selection separate from storage guarantees

This method asks which complete checkpoint is selected. It does not test atomic replacement, partial-write visibility, mutation during staging, optimizer-state completeness, persistence or crash recovery. A saved event declares availability; it does not prove that a storage system delivered it. The simple prefix state is not a checksum or validity test for a real training checkpoint.[3][4]

For a recovery benchmark, record captured logical progress separately from save completion order and make cutoff eligibility explicit. Compare policies against the same valid snapshots. Keep lineage and state validation ahead of ordering. Intentional rollback, branched runs, counter reset, changed configuration and incomparable progress need another contract; choosing the largest counter across them would not be justified by this example.[3][5]

  • Keep captured progress, completion order, cutoff eligibility and the full replay record together.

Sources

  1. PyTorch contributors: Distributed Checkpoint 2.15 docs.pytorch.org
  2. PyTorch tutorial authors: Asynchronous Saving with DCP docs.pytorch.org
  3. MIT proof and complete saved output data.nodus-compute.ai
  4. Saved result JSON data.nodus-compute.ai
  5. Source and saved-result provenance data.nodus-compute.ai
  6. Vector figure data.nodus-compute.ai