# `PtcRunner.Kernel.ExecutionPolicy`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/kernel/execution_policy.ex#L1)

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.

# `t`

```elixir
@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
}
```

# `new`

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

Validates and seals one destination-free execution policy.

# `valid?`

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

Checks the policy's in-VM construction attestation.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
