ExGAM.Domain.Command.Durability (ExGAM v0.1.0)

Copy Markdown View Source

Shared append and completion policy for a durable Domain command.

Command modules still own planning, conflict re-planning and recovery checks. This helper owns the mechanical boundary they all share: obtain an operational batch identity, append once, recover after a CAS conflict, and classify fatal durability failures. Ordinary adapter errors are returned; exhausted or ambiguous commits stop the Sequencer so supervision can recover from ledger truth.

Summary

Functions

Appends payloads and invokes command-specific recovery or re-planning callbacks.

Repairs derivable Duties before a command observes or changes Domain state.

Types

command_result(value)

Functions

append(state, payloads, recorded_at, conflicts_left, on_success, on_conflict)

Appends payloads and invokes command-specific recovery or re-planning callbacks.

preflight(state)

Repairs derivable Duties before a command observes or changes Domain state.