cadrumo.application.operations._projection_authority module

Runtime-only response authority mechanics for operation projections.

response_authority_binding_matches(authority, request, pending)[source]

Match request and checkpoint coordinates to the bound bearer exactly.

Return type:

bool

Parameters:
class OperationResponseAuthorityBrokerMixin[source]

Bases: _AuthorityHost

Implementation of process-local REVIEW bearer custody.

reserve(operation_id, actor_ref)[source]

Issue an actor-bound opaque handle before operation execution starts.

Return type:

OperationResponseCapability

Parameters:
  • operation_id (OperationId)

  • actor_ref (OperationActorReference)

issue(pending, response_token)[source]

Retain one mutable bearer only after its digest-bound checkpoint exists.

Return type:

None

Parameters:
bind(request, pending, capability, *, clock)[source]

Transfer one exact live bearer into an actor-bound response service.

Return type:

Any

Parameters:
close()[source]

Wipe every unbound bearer during application shutdown.

Return type:

None