8000 feat(sync): third-party revocation re-issue for records stranded on an unowned origin (ACF-49) by ahmet-cetinkaya · Pull Request #338 · ahmet-cetinkaya/whph · GitHub
[go: up one dir, main page]

Skip to content

feat(sync): third-party revocation re-issue for records stranded on an unowned origin (ACF-49) - #338

Merged
ahmet-cetinkaya merged 1 commit into
feat/reliable-secure-lan-syncfrom
feat/sync-p3-20-third-party-reissue
Oct 29, 2026
Merged

ahmet-cetinkaya merged 1 commit into
feat/reliable-secure-lan-syncfrom
feat/sync-p3-20-third-party-reissue

Conversation

@ahmet-cetinkaya
Copy link
Copy Markdown
Owner

What

ACF-49 (plan third-party-revocation-reissue, approved by god): maintainMembership re-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: the isAuthoredHere callback becomes isReissuable; same idempotence rule (a servable record with covering cutoffs suppresses the re-issue).
  • SyncDevice: new _isRevocationOrphaned; _isRevocationServed treats such a record as not served; maintainMembership re-issues authored-here or orphaned records.
  • Unchanged: ledger-only records are never re-issued, a record merely un-manifested at a healthy third-party origin is not a target, and a removed device writes nothing.
  • Laundering residual extended (attribution only: revoked member and cutoffs unchanged); recorded in plan 0001 B.2.

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 analyze clean; whph_sync_core non-soak 520 pass.
  • Soak range 100415-100428 on this branch: exit 0, 14/14 seeds, 0 violations, no cap hit.
  • Not done: a bespoke case in sim_stale_cluster_test (the existing sim suite and the soak ran on the change).

…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.
@ahmet-cetinkaya
ahmet-cetinkaya merged commit 766c554 into feat/reliable-secure-lan-sync Oct 29, 2026
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

0