# `Spectre.Governance.ChangeSet.Operation`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/governance/change_set/operation.ex#L1)

One inert operation in a governed Definition ChangeSet.

Operations carry only a stable textual type and JSON-shaped payload. The
type is resolved against a registry assembled by trusted host code; authored
data never selects a module, function, evaluator, or policy implementation.

# `t`

```elixir
@type t() :: %Spectre.Governance.ChangeSet.Operation{payload: map(), type: String.t()}
```

# `new`

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

Builds a transport-stable, non-executable operation.

# `to_data`

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

Returns the JSON-shaped representation sealed into ChangeSet identity.

---

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