Bounded orchestration for normalized restart-recurrence evidence.
The caller supplies already-normalized, trusted events paired with trusted receipt times. This module fans each event to the recorder and detector in one causal step, freezes on the first recurrence finding, assembles one redacted capsule, validates its canonical bytes offline, and tears down its recorder before returning.
Signal collection and authorization stay outside this boundary. In particular, this module does not turn fixture observations or caller claims into trusted Logger events.
Summary
Types
@type observation() :: {Insider.Event.t(), integer()}
@type result() :: {:ok, [Insider.Incident.Capsule.t()], accounting()} | {:error, Insider.Protocol.Error.t(), accounting()} | {:timeout, accounting()} | {:cancelled, accounting()}
Functions
@spec capture([observation()], keyword()) :: result()