Repository navigation
fix(database): publish and restore consistent population checkpoints - #586
Open
Cookie0103 wants to merge 2 commits into
Open
Cookie0103 wants to merge 2 commits into
Cookie0103 wants to merge 2 commits into
Conversation
|
|
This branch has not been deployed
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.
A failed checkpoint save can leave unchanged metadata pointing to overwritten program code. Reloading also scans stale program files and merges them into the live database, so even a saved empty population can resurrect removed programs.
Publish checkpoints through one atomic metadata manifest referencing immutable program and artifact objects. Load the exact population into independent state before replacing the running database. Restore prompts and sampling state, keep large artifacts portable, and update the visualizer, trace extractors and comparison example to read the same committed snapshot. Durable adds reuse unchanged object references and serialize only the new program. Retention failures after publication are logged as cleanup warnings, preserving successful save/add outcomes and matching memory/disk populations.
Legacy checkpoints remain readable. New checkpoints require this version of OpenEvolve; older releases cannot read the versioned format. Immutable versions are retained so concurrent readers of an older manifest can finish safely.
Diff: 1,264 changed lines across 11 files: 527 runtime, 715 tests, 22 documentation.
Validation:
Independent review approved the final commit after the post-publication retention fix.
The two existing test adjustments preserve their assertions while making checkpoint fixtures independent and checking the actual active population, rather than requiring evicted programs to be resurrected.
AI assistance: Codex investigated, implemented and tested this change autonomously with the account owner's authorization. The account owner has not personally reviewed or tested the code.