Repository navigation
Support large recovery files in embedded backups - #764
Merged
Merged
Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
Applications need to preserve recovery files that can exceed a single pack frame. Use Kit v0.30.1 streaming extras so those files can be captured and restored without whole-file buffering. Record the required reader version alongside the existing content-derived snapshot ID. Exercise source loss and repository relocation through the embedded API, and document the reader upgrade and staging-space costs. - fix(backup): keep recovery metadata tied to the validated snapshot. Avoid a duplicate manifest hash and a second read of Kit's private path. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
wesm
force-pushed
the
codex/backup-recovery-extras
branch
from
October 2, 2026 22:17
98ffe5f to
17c97b2
Compare
roborev: Combined Review (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Embedded applications can now back up recovery files larger than 4 GiB without buffering each file in memory. The embedded snapshot result also reports the minimum reader version, so recovery records can pair it with the repository and snapshot IDs.
This replaces the untagged Kit revision on main with the tagged v0.30.1 release, adding large extras support. The embedding-client, telemetry, retry, and compression encoder changes from the earlier upgrade are now already on main.
Extras over 64 MiB use reader-v6 chunk recipes. Once such a snapshot exists, older readers cannot list snapshots, create backups, prune, or select the latest snapshot for restore or verification. They can still restore or verify an older supported snapshot by explicit ID. Upgrade all readers before writing large extras to a shared repository; existing large whole-file extras are stored as chunks once.
The source files must stay unchanged during capture. Restore stages complete extras, so temporary disk space must hold all restored extras alongside existing copies. A synthetic 4 GiB + 1 byte extra was restored with matching size and hash after deleting its source, moving the repository, pruning, and fully verifying the selected snapshot.