Keep the last complete save when a newer version is unreadable #275
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!275
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-275"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCcurrentpruned 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_saveon 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.