Idempotent command receipt keyed by request_id with deterministic payload
fingerprinting and status transitions (queued, placed, done, unanswered, withdrawn).
Summary
Functions
Computes a deterministic SHA-256 fingerprint over a command payload
(excluding request_id).
Normalizes a stored submission map (atom or string keys after file reload).
Transitions a submission to done with its answer entry ID.
Transitions a submission to placed with its concrete entry ID.
Transitions a submission to unanswered with a failure reason.
Transitions a queued submission to withdrawn.
Constructs a new submission map for durable storage.
Formats a submission into a wire command receipt.
Types
@type status() :: String.t()
Functions
@spec fingerprint(String.t(), pos_integer(), map()) :: String.t()
Computes a deterministic SHA-256 fingerprint over a command payload
(excluding request_id).
Normalizes a stored submission map (atom or string keys after file reload).
@spec mark_done(map(), pos_integer(), integer()) :: map()
Transitions a submission to done with its answer entry ID.
@spec mark_placed(map(), pos_integer(), integer()) :: map()
Transitions a submission to placed with its concrete entry ID.
Transitions a submission to unanswered with a failure reason.
Transitions a queued submission to withdrawn.
Constructs a new submission map for durable storage.
@spec to_receipt(map(), non_neg_integer()) :: map()
Formats a submission into a wire command receipt.