# `Spectre.Projection.HumanReport`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/projection/human_report.ex#L1)

Mechanical human-review projection for one governed Definition change.

The report combines an exact structural/textual diff with an already
verified evaluation delta. It never invokes a model and never labels a
Candidate as semantically "better"; it exposes measured evidence and limits.

# `t`

```elixir
@type t() :: %Spectre.Projection.HumanReport{
  candidate_definition_ref: String.t(),
  digest: String.t(),
  evaluation_delta: map(),
  gate_receipt_refs: [String.t()],
  generator_id: String.t(),
  generator_version: pos_integer(),
  input_evidence_digest: String.t(),
  lineage_refs: [String.t()],
  parent_definition_ref: String.t(),
  structural_changes: [map()],
  textual_changes: [map()]
}
```

# `decode`

```elixir
@spec decode(binary()) :: {:ok, t()} | {:error, term()}
```

Decodes and verifies a canonical report.

# `encode`

```elixir
@spec encode(t()) :: {:ok, binary()} | {:error, term()}
```

Encodes a report with the production canonical codec.

# `from_data`

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

Restores and verifies a report from portable data.

# `id`

Returns the fixed generator id.

# `project`

```elixir
@spec project(
  Spectre.Definition.Canonical.t(),
  Spectre.Definition.Canonical.t(),
  keyword()
) ::
  {:ok, t()} | {:error, term()}
```

Projects a deterministic report from two canonical Definitions.

# `to_data`

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

Returns JSON-shaped report data.

# `verify`

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

Verifies that report contents still match its digest.

# `version`

Returns the fixed generator version.

---

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