Keep the last complete save when a newer version is unreadable #275

Manually merged
github merged 2 commits from github-bot/gh-275 into gh-pr/275/base 2026-12-06 00:55:41 +00:00 AGit
Owner

@⁠yyc160 on GitHub · 2026-12-05 22:27 UTC · original
yyc160:fix/keep-last-readable-save → main · +76 −28 · 1 files · 2 commits · merged 2026-12-05 22:51 UTC

current pruned every earlier version before opening the latest manifest. A malformed or incomplete newest directory could therefore make the one complete checkpoint inaccessible and delete its predecessor. An unrelated noncanonical version name could also affect selection.

Adapt VIctory-NVIDIA's latest-readable recovery rule: consider positive canonical version numbers, check the manifest and presence of every named blob before pruning, and commit the next update above all occupied version numbers. A transient access error is reported, not treated as permission to discard a version. This does not repair corrupted blob contents or add a new save format.

Tested a_bad_newer_version_does_not_displace_the_last_complete_save on the upstream baseline: a good checkpoint, torn manifest, missing blob, a complete manifest for a different slot, and a noncanonical directory coexist; the good data remains readable and a subsequent update uses the next unoccupied version.

AI-assisted by GPT-6.2 Astra.

**@⁠yyc160** on GitHub · 2026-12-05 22:27 UTC · [original](https://github.com/gamingwithhomie/larp/pull/275) `yyc160:fix/keep-last-readable-save` → `main` · +76 −28 · 1 files · 2 commits · merged 2026-12-05 22:51 UTC `current` pruned every earlier version before opening the latest manifest. A malformed or incomplete newest directory could therefore make the one complete checkpoint inaccessible and delete its predecessor. An unrelated noncanonical version name could also affect selection. Adapt VIctory-NVIDIA's latest-readable recovery rule: consider positive canonical version numbers, check the manifest and presence of every named blob before pruning, and commit the next update above all occupied version numbers. A transient access error is reported, not treated as permission to discard a version. This does not repair corrupted blob contents or add a new save format. Tested `a_bad_newer_version_does_not_displace_the_last_complete_save` on the upstream baseline: a good checkpoint, torn manifest, missing blob, a complete manifest for a different slot, and a noncanonical directory coexist; the good data remains readable and a subsequent update uses the next unoccupied version. AI-assisted by GPT-6.2 Astra.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:29:26 +00:00
github-bot changed target branch from main to gh-pr/275/base 2026-12-05 22:53:58 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit 4a13f4b934 into gh-pr/275/base 2026-12-06 00:55:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.