Repository navigation
Prepare atomic verified restoration of pinned census source - #232
Open
realmarcin wants to merge 1 commit into
Open
realmarcin wants to merge 1 commit into
realmarcin wants to merge 1 commit into
Conversation
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.
The recovered full census still binds an absent historical source-snapshot directory. This adds a bounded helper to verify the recovered original source and restore only an absent destination, preserving the exact original manifest and every failed attempt. The parent owns recovery; the helper contacts no source host or provider.
The helper resolves and validates repository ownership, rechecks owner state under a short lock context, uses guarded nonblocking regular-file reads, verifies copied bytes, and publishes the flushed/hash-checked original manifest atomically without replacement. Both real plan runs passed original hashes, byte/row counts and header/prefix checks for three source members totaling 3,267,015,185 bytes. Live apply has not run. It remains held until independent verification of the fully validated exact published head.
Independent final review passed all four files and independently reproduced 16 focused tests. The original private plan helper and receipts remain unchanged. The two review defects are recorded in #231, with digest-only public provenance under #228. Fresh-process tests against retained pre-fix bytes produced four meaningful failures: two partial-marker failures and two blocked FIFO reads. No live mutation was used for those tests.
Final validation: 1,489 passed in 205.24 seconds, 16 pinned contracts, configured CI Ruff, and wheel/sdist builds. The initial build hit a DNS failure; a retained offline-cache build passed. Final pytest log SHA256:
0470e52996ced207a55631098b696ffa904cd3b614a0fdfaf2249677c5fc6488. Reviewed helper SHA256:a06782633c92ce8ce59957a0d65c371592e2bdafbd7ad6f52836f8bd4b9cdb37.Stacked on unmerged PR #230 and its #226/#214/#211 dependencies. Full census replay, exhaustive A/B accounting, actual-worker library/canonical readiness, and scientific gates remain separate. Scientific coverage is zero; no merge or worker prompt input is included.