Repository navigation
feat(sync): third-party revocation re-issue for records stranded on an unowned origin (ACF-49) - #338
Merged
ahmet-cetinkaya merged 1 commit intoOct 29, 2026
Conversation
…d on an origin no single member owns (ACF-49) maintainMembership already re-issued own records stranded on a sealed origin. It now also re-issues a directory-verified record authored by another member when its carrier origin is unregistered or conflicted, so peers reject the carrier cell and cannot fetch the record. Ledger-only records are never re-issued and the re-issue stays idempotent.
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.
What
ACF-49 (plan
third-party-revocation-reissue, approved by god):maintainMembershipre-signed only records this device authored (card B.2). It now also re-signs a directory-verified record authored by another member when its carrier origin is not registered to a single member (unregistered or conflicted, e.g. a copied data folder): peers reject that carrier cell as unrooted, so nobody else could ever fetch the record.RevocationSet.unpublished: theisAuthoredHerecallback becomesisReissuable; same idempotence rule (a servable record with covering cutoffs suppresses the re-issue).SyncDevice: new_isRevocationOrphaned;_isRevocationServedtreats such a record as not served;maintainMembershipre-issues authored-here or orphaned records.Design note
Revoked members keep their origin registration (the registry includes revoked members; cutoffs decide), so an owner leaving the group does not orphan its origin. The test therefore uses a conflicting registration.
Tests
revocation_ledger_test.dart:third_party_revocation_with_conflicted_carrier_is_reissued_by_a_converged_member(no re-issue while the owner is single; re-issue after the clash; idempotent). Restricting the predicate back to authored-here fails it.dart analyzeclean;whph_sync_corenon-soak 520 pass.sim_stale_cluster_test(the existing sim suite and the soak ran on the change).