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

Closed machine-readable warning published by command envelope V4.

Warnings are non-terminal operator facts. They never contain credentials,
provider payloads, or dependency errors. The installed provider alias and an
adapter-attested public model selector are the only variable fields.

# `t`

```elixir
@type t() :: %PtcRunner.Kernel.CommandWarning{
  code: :model_uncataloged,
  message: binary(),
  model: binary() | nil,
  provider: binary()
}
```

# `message`

```elixir
@spec message() :: binary()
```

# `model_uncataloged`

```elixir
@spec model_uncataloged(binary(), binary() | nil) :: {:ok, t()} | :error
```

# `sort`

```elixir
@spec sort([t()]) :: [t()]
```

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

# `valid?`

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

# `valid_map?`

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

---

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