Repository navigation
Recover missing stream blocks through the getBlock Worker - #89
Merged
Merged
Conversation
Add selected cost and recovery evidence, owner operation tools, and fresh merged-branch checks. Use canonical private directories in Unix socket fixtures so the checks also run on macOS. Preserve the original deployment identities and omit unrelated host inventories.
Keep all existing jobs and the full-history secret scan. Add standalone recovery coverage and tests that distinguish reviewed public metadata from credential fields. Apply Rustfmt, repair local links, and retain exact archive-boundary enforcement.
Pin the original Unix listener through cleanup so a replacement socket cannot reuse its inode. Record the existing decoder dependency in the consumer example lock, install Ripgrep for boundary checks, and remove stopword flakiness from generated secret-policy fixtures.
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.
After a disconnect, the Rust stream consumer now recovers retained blocks through the getBlock Worker, verifies frame/object hashes and source, Bank, parent and cursor identities, commits each event with its cursor, and resumes the exact native sequence. Original control frames come from a bounded Foundation metadata plan. Expired history remains an explicit gap.
The public API at https://getblock.blockzilla.dev reads existing Foundation recent Compact V2 data first. A verified finalized miss can use the original R2 ranges and Foundation ID resolution. This adds no second block store, history-wide per-block index or production result RAM cache. The package retains the newer archive and consensus changes on main and includes the required SDK, consumer, read-only resolver and deployment tools.
The Unix socket cleanup guard now pins its original listener until cleanup finishes, preventing Linux inode reuse from deleting a replacement socket. The replacement regression checks its identity and connection.
The archive reprocessor now reads and preserves optional consensus fields with its existing size limits. It checks a parsed current prefix against the block index before selecting the format. Once that prefix matches, damaged or extra tail bytes cannot fall back to an older schema. The archive repair lock has explicit release when its owner ends, including when a duplicate file handle stays open. Format compatibility, index checks, field preservation and lock contention have regression tests.
CI now covers the standalone recovery crates, gateway and activation tools. The CI repair also formats existing Rust files and fixes local links. Default Gitleaks rules and full-history scanning remain enabled; reviewed metadata exceptions have positive and negative regression checks. See the per-file CI repair record.
Validation: