feat(storage): persist and replay durable blocks - #12
Merged
Conversation
Apply blocks to an independent ledger candidate, commit materialized state and canonical admitted history atomically, and publish only after durable commit. Reopen now validates trusted genesis, full-replays ordered history, compares every kernel output, and requires exact materialized-head agreement.\n\nStorage schema version 1 and consensus-visible kernel behavior are unchanged.\n\nRefs #11
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.
Outcome
Implements the first end-to-end durable block path for issue #11:
Scope and effects
Verification
Passed on commit 2196e29:
PROTOCOL_STACK_PRESET=gcc-debug tools/verify.sh— 16/16ASAN_OPTIONS=detect_leaks=0 PROTOCOL_STACK_PRESET=gcc-sanitizers tools/verify.sh— 16/16PROTOCOL_STACK_PRESET=clang-debug tools/verify.sh— 16/16ASAN_OPTIONS=detect_leaks=0 PROTOCOL_STACK_PRESET=clang-sanitizers tools/verify.sh— 19/19, including three fuzz smoke testsgit diff --checkpassed.Leak detection is disabled only because the managed execution sandbox runs under
ptrace; ASan and UBSan remain enabled for project code and the SQLite amalgamation.Refs #11