Crosswake.ReleaseCandidate.EvidenceGate (crosswake v0.2.9)

View Source

Validates a versioned REL-17 evidence envelope without performing I/O.

Evidence sources are supplied as path-to-bytes values so the caller can fetch and retain them before validation. A passing pre-merge envelope is evidence readiness only; it does not authorize a release side effect.

Summary

Functions

Returns the read-only operator projection of the closed validator result.

Types

result()

@type result() ::
  {:ok,
   %{
     :stage => String.t(),
     :operation => String.t(),
     optional(:next_step) => String.t()
   }}
  | {:error, String.t()}

Functions

status(envelope, sources)

@spec status(map() | nil, map()) :: map()

Returns the read-only operator projection of the closed validator result.

A passing envelope describes evidence only; it never records or consumes authorization.

validate(envelope, sources)

@spec validate(map(), map()) :: result()