ExGAM.Domain.Reconciliation (ExGAM v0.1.0)

Copy Markdown View Source

Pure scheduling policy for reconciliation of durable Domain facts.

ExGAM.Attempt.Reconciler determines which repairs are required. This module answers only when the sequencer must ask it again: immediately when a required Duty is missing, or at the nearest dispatch, observation or Scope promise deadline. It owns no timer and performs no ledger write.

Summary

Functions

Returns the next trusted timestamp requiring reconciliation, or nil.

Functions

next_deadline(projection, now)

@spec next_deadline(ExGAM.Domain.Projection.t(), non_neg_integer()) ::
  non_neg_integer() | nil

Returns the next trusted timestamp requiring reconciliation, or nil.