Repository navigation
feat: detect and repair lagging recovery escrows - #11200
Open
huggingbot wants to merge 5 commits into
Open
huggingbot wants to merge 5 commits into
huggingbot wants to merge 5 commits into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Fold repairReplicas into resume(identifier): with no pending mutation, it copies the highest escrow record to escrows one version behind. Drop abort while writing: local approval expiry does not prove a delayed write cannot land, since the device clock may run ahead of the escrow's. Co-authored-by: Cursor <cursoragent@cursor.com>
- Require every escrow and one version for getIdentifiers (replica_lagging) - Probe escrows moved off expectedVersion without identifier proofs, even with receipts, so resumed writes never fork and clear without the original identifier or SIWE wallet - Clear with mutation_superseded, unsent, when a renewed approval no longer covers the payload and every remaining escrow moved - Reject updates whose identifier is not enrolled on every escrow (identifier_not_enrolled) - Let resume(identifier) authorize a pending update with another enrolled identifier - Reuse the pre-write escrow reads to find new SIWE identifiers
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.
Explanation
replica_lagging.repairReplicas(identifier). It copies the highest record to escrows one version behind, as a mutation addressed only to them (register,updateIdentifiersorupdateRecoverySecret).abortwhile writing once the approval has expired, there are no receipts, and every target escrow is still atexpectedVersion.References