PtcRunner.Kernel.ExecutionPolicy (PtcRunner v0.14.0)

Copy Markdown View Source

Destination-free event, inspection, and result policy for one execution.

Artifact paths, object keys, file readers, and publication callbacks are not representable. The policy fixes all owner-affecting choices before the first event is emitted.

Summary

Functions

Validates and seals one destination-free execution policy.

Checks the policy's in-VM construction attestation.

Types

t()

@type t() :: %PtcRunner.Kernel.ExecutionPolicy{
  attestation: binary() | nil,
  event_policy: :normal | :private,
  inspection_capture: boolean(),
  result_projection: :native | :json,
  run_id: binary() | nil,
  trace_id: binary() | nil
}

Functions

new(opts)

@spec new(keyword()) :: {:ok, t()} | {:error, :invalid_execution_policy}

Validates and seals one destination-free execution policy.

valid?(policy)

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

Checks the policy's in-VM construction attestation.