Insider.Sentinel.Confirmation.Receipt (Insider Lab v0.1.0)

Copy Markdown View Source

Bounded terminal evidence returned by a trusted confirmation target adapter.

An adapter arms its configured observer before executing the scenario against the live lease, finalizes that same observation run afterwards, and returns only after all work it owns has stopped. {:ok, receipt} describes a completed attempt even when the scenario or observer failed; outer body errors are reserved for lifecycle failures.

Summary

Functions

new(options)

@spec new(keyword()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}

validate(receipt)

@spec validate(term()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}