# `Spectre.Input.Source`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/input/source.ex#L1)

Provider-neutral origin attached to a normalized Spectre input.

Optional channel and protocol packages use `kind` as their namespace and
`mount` as the concrete configured endpoint. Identifiers remain opaque to
the core. Trust is explicit and defaults to `:untrusted`; authentication
evidence and provenance never promote content on their own.

# `t`

```elixir
@type t() :: %Spectre.Input.Source{
  actor_id: term(),
  authenticity: map(),
  conversation_id: term(),
  kind: atom() | String.t(),
  metadata: map(),
  mount: term(),
  provenance: map(),
  reply_to: term(),
  trust: :untrusted | :trusted | :system
}
```

# `new`

```elixir
@spec new(t() | map() | keyword()) :: t()
```

# `trust_classes`

```elixir
@spec trust_classes() :: [:untrusted | :trusted | :system]
```

Returns the closed trust classes understood by the core.

# `validate`

```elixir
@spec validate(term()) :: :ok | {:error, term()}
```

Validates source evidence at trust and persistence boundaries.

This is intentionally separate from `new/1`: checkpoint decoding can
reconstruct a struct without invoking its constructor, so consumers must be
able to re-establish the same invariants without raising.

---

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