Spectre.GAM.Proposal.Result (Spectre v0.4.0)

Copy Markdown View Source

Capability-free result of a public proposal and its declared fallback.

primary is always the durable result of the caller's Candidate. A fallback is either not applicable, explicit silence, or the durable result of one fresh Candidate that crossed the normal kernel boundary. Fallbacks never recurse.

Summary

Types

Independent admission, durable attempt and observed outcome facts; nil means no Outcome.

t()

Functions

Projects the result without equating admission with successful execution.

Types

fallback()

@type fallback() ::
  :not_applicable
  | :silence
  | %{
      mode: :candidate_template | :governed_handoff,
      result: Spectre.GAM.Attempt.Runner.Result.t()
    }

status()

@type status() :: %{
  admission: Spectre.GAM.Decision.outcome(),
  act_committed?: boolean(),
  attempted?: boolean(),
  outcome: Spectre.GAM.Outcome.status() | nil
}

Independent admission, durable attempt and observed outcome facts; nil means no Outcome.

t()

@type t() :: %Spectre.GAM.Proposal.Result{
  fallback: fallback(),
  primary: Spectre.GAM.Attempt.Runner.Result.t()
}

Functions

status(result)

@spec status(t()) :: %{
  primary: status(),
  fallback: :not_applicable | :silence | map()
}

Projects the result without equating admission with successful execution.

The primary and fallback remain separate. outcome: nil means this result contains no Outcome, not failure or proof of no effect. An Act without an Attempt may be an intrinsic governance operation or an undispatched external operation; this helper does not invent a lifecycle status from that absence. No query, retry or repair is performed.