Spectre.GAM.Kernel.Grant (Spectre v0.4.0)

Copy Markdown View Source

Internal, ephemeral permission to consume one committed Act into an Attempt.

This type is documented so runtime orchestration signatures are inspectable; it is not part of the application-facing proposal API. Grants are minted only after commit, bound to a Domain generation and exact Act material, and checked again at consumption. They are not ledger records, externally verifiable signatures or reusable provider credentials. Applications should submit via Spectre.GAM.propose/3, which does not return this internal value.

Summary

Types

t()

Internal sealed claims; never persist or expose this value to a Mind.

Types

t()

@type t() :: %Spectre.GAM.Kernel.Grant{
  act_ref: String.t(),
  domain_ref: String.t(),
  executor_ref: String.t(),
  expires_at: integer(),
  generation: non_neg_integer(),
  issued_at: integer(),
  mac: String.t(),
  material_digest: String.t(),
  nonce: String.t()
}

Internal sealed claims; never persist or expose this value to a Mind.

verification_error()

@type verification_error() ::
  :invalid_grant
  | :grant_not_yet_valid
  | :grant_expired
  | :grant_generation_mismatch
  | :grant_executor_mismatch
  | :grant_material_mismatch
  | :grant_authentication_failed