Membership and key rotation
The membership package models authenticated configuration epochs and joint-majority transitions.
import {
CollectiveMembershipHostV1,
InMemoryCollectiveMembershipRegistryV1,
InMemoryCollectiveMembershipRepositoryV1,
} from '@agentplat/collective-membership';
const registry = await InMemoryCollectiveMembershipRegistryV1.create({
configurations: [initialConfiguration]
});
const repository = new InMemoryCollectiveMembershipRepositoryV1();
await repository.initialize(initialConfiguration);In production, replace the in-memory repository with @agentplat/collective-membership-postgres. The protocol fails closed on invalid signatures, stale configuration digests, expired envelopes and insufficient old or new majorities.
Source: packages/collective-membership/README.md (opens in a new tab).