Spectre.GAM.GovernedAct.Class (Spectre v0.4.0)

Copy Markdown View Source

Closed metadata for the runtime's intrinsic governed classes.

This table does not declare a class for a Domain and grants no authority; that remains the active Spectre.GAM.Surface and its Mandates. It only keeps the fixed runtime semantics of reserved classes in one place so classification, execution routing and replay cannot disagree about them.

Summary

Functions

Returns whether Admission must append an intrinsic event suffix for the class.

Returns the fixed Row dimensions, or :application for an ordinary class.

Returns whether a Row exactly matches an intrinsic class declaration.

Returns whether the class has fixed runtime semantics.

Returns whether an intrinsic class completes inside the ledger kernel.

Returns the fixed purpose of a retained-controller Mandate revocation.

Returns the stable pure-validator identifier for an intrinsic class.

Types

execution()

@type execution() :: :ledger_internal | :executor_mediated

Functions

batch_effect?(class)

@spec batch_effect?(term()) :: boolean()

Returns whether Admission must append an intrinsic event suffix for the class.

dimensions(class)

@spec dimensions(term()) :: {:ok, [Spectre.GAM.Row.dimension()]} | :application

Returns the fixed Row dimensions, or :application for an ordinary class.

exact_row?(class, row)

@spec exact_row?(term(), term()) :: boolean()

Returns whether a Row exactly matches an intrinsic class declaration.

intrinsic?(class)

@spec intrinsic?(term()) :: boolean()

Returns whether the class has fixed runtime semantics.

ledger_internal?(class)

@spec ledger_internal?(term()) :: boolean()

Returns whether an intrinsic class completes inside the ledger kernel.

retained_revocation_purpose_ref()

@spec retained_revocation_purpose_ref() :: String.t()

Returns the fixed purpose of a retained-controller Mandate revocation.

validator(class)

@spec validator(term()) :: {:ok, String.t()} | :application

Returns the stable pure-validator identifier for an intrinsic class.