Skip to content

Support large recovery files in embedded backups - #764

Merged
wesm merged 1 commit into
mainfrom
codex/backup-recovery-extras
Oct 2, 2026
Merged

wesm merged 1 commit into
mainfrom
codex/backup-recovery-extras

Conversation

@wesm

@wesm wesm commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

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.

@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (d94dfd9)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 7m35s

@wesm wesm self-assigned this Oct 2, 2026
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (98ffe5f)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex, 6s | Total: 6m2s

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
wesm force-pushed the codex/backup-recovery-extras branch from 98ffe5f to 17c97b2 Compare October 2, 2026 22:17
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (17c97b2)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 7m46s

@wesm
wesm merged commit 1fc83dc into main Oct 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant