Insider.Invariant (Insider Lab v0.1.0)

Copy Markdown View Source

Evaluates application-declared invariants and records one bounded outcome event.

Evaluation, disclosure, and recording remain independent. Only a disclosed violation whose trigger is frozen into a complete recorder snapshot is a confirmed incident.

Summary

Functions

Resolves a frozen invariant outcome after its recorder post-trigger window.

Functions

check(handle, contract, invariant, arguments, invocation_options)

new(options)

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

resolve(handle, outcome)

Resolves a frozen invariant outcome after its recorder post-trigger window.

Pending windows remain unconfirmed and can be passed back later. Only the exact trigger event retained by the supplied recorder can produce a finding.