Crosswake. Commerce. Reconciliation
(crosswake v0.1.0)
View Source
Typed backend-owned reconciliation vocabulary for commerce.
This module encodes the canonical flow:
- Device/native evidence enters Phoenix.
- Phoenix records a reconciliation attempt.
- Host-owned workers verify it.
- Backend publishes a refreshed authoritative entitlement snapshot.
These states represent reconciliation or freshness outcomes, not automatic access grants or silent denials. Device success is evidence, not entitlement.
Summary
Types
Functions
@spec authority_mutation_allowed_from_evidence?(
Crosswake.Commerce.Contracts.ReconciliationEvidence.t()
) ::
false
@spec ingest_evidence( Crosswake.Commerce.Contracts.ReconciliationEvidence.t(), keyword() ) :: {:ok, Crosswake.Commerce.Reconciliation.EvidenceResult.t()} | {:error, term()}
@spec outcome_vocabulary() :: [outcome()]