Skip to main content

protocol/testing/conformance/delivery

packages/protocol/src/testing/conformance/delivery

Purpose

Public barrel for delivery-layer conformance properties. Conversation / message delivery invariants — fan-out cardinality, store-and-replay, payload opacity. Each register* lives in its own file. This barrel re-exports them by name AND aggregates them into DELIVERY_PROPERTIES for the _shared/suite.ts aggregator.

Public surface

acquireConversation

Function
Executes the acquire conversation operation. Returns: The acquire conversation result.

ConversationActor

Interface
Describes conversation actor.

ConversationFixture

Interface
Describes conversation fixture.

DELIVERY_CATEGORY

Variable
Provides the delivery category runtime value.

DELIVERY_DEFAULT_PROPERTY_NUM_RUNS

Variable
Provides the delivery default property num runs runtime value.

DELIVERY_DEFAULT_TIMEOUT_MS

Variable
Provides the delivery default timeout ms runtime value.

DELIVERY_PROPERTIES

Variable
All delivery-layer property registrars.

deliveryViolation

Function
Executes the delivery violation operation. Returns: The delivery violation result.

fixtureN

Function
Executes the fixture n operation. Returns: The fixture n result.

NotificationBuffer

Interface
Historical notification buffer. Holds every inbound notification arriving on a single client’s subscribeAll() Stream. The snapshot and closed fields are the only public surfaces; the pump fiber that feeds them is interrupted by the enclosing Scope finalizer installed by makeNotificationBuffer. closed is set to true when the transport-side stream terminates (either via TransportClosedError or normal exhaustion).

registerFanOutCardinality

Function
Registers fan out cardinality.

registerPayloadOpacity

Function
Registers payload opacity.

registerStoreAndReplay

Function
Registers store and replay.

Files

  • _helpers.ts
  • fan-out-cardinality.ts
  • index.ts
  • payload-opacity.ts
  • store-and-replay.ts