Skip to content

Prepare atomic verified restoration of pinned census source - #232

Open
realmarcin wants to merge 1 commit into
campaign/lbnl-restart-20261120-coordinatorfrom
campaign/lbnl-baseline-20261120
Open

realmarcin wants to merge 1 commit into
campaign/lbnl-restart-20261120-coordinatorfrom
campaign/lbnl-baseline-20261120

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant