Skip to content

seal: testable realm membership for the group distributor (macula#91) - #93

Open
rgfaber wants to merge 2 commits into
mainfrom
seal-distributor-realm-membership-seam
Open

rgfaber wants to merge 2 commits into
mainfrom
seal-distributor-realm-membership-seam

Conversation

@rgfaber

@rgfaber rgfaber commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

The one remaining test gap from the §10 gap-map: the distributor's DEFAULT membership path (realm slot endorsement, tombstone → withdrawn → not_a_member) had no seam and no test.

  • test: ... (red): a realm-endorsed member is admitted; a realm-tombstoned member is refused. Red without the seam (the default path hits the real pool machinery and crashes).
  • seal: ...: lookup option on macula_group_keys:options(), answering what macula:find_records/2 would (decoded records), defaulting to the pool lookup. The injection mirrors the SDK's provider_io/dial_io seam pattern.

Verified: full macula_group_keys + keyring + client_group + new module suites, 55 tests, all green.

Closes macula#91.

…embership (macula#91)

realm_membership/2 answers the realm slot through an optional
lookup fun, defaulting to the pool lookup exactly as before. The
default path (a realm tombstone withdrawing a member's endorsement)
was untestable without it: the only seam the design named, and the
last uncovered item of DESIGN_E2E_SEALED_PUBSUB.md §10.

This branch has not been deployed

No deployments
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