# `ExGAM.Presentation.Approval`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/presentation/approval.ex#L1)

Pure consent-response semantics for an immutable Presentation.

A Presentation describes material prepared for disclosure. This module owns
the separate Evidence graph proving that the material was successfully shown
and then supported or contradicted by an authenticated recipient. Keeping
those responsibilities apart makes the causal order visible:

    Presentation -> show Act -> successful Outcome -> response Evidence

None of these checks grants authority. Admission remains responsible for
requiring the returned Evidence basis under the selected Mandate.

# `proposition`

```elixir
@spec proposition(String.t(), String.t()) :: map()
```

Returns the closed proposition for a response to one successful show Act.

# `refs`

```elixir
@spec refs(ExGAM.Evidence.t()) ::
  :not_approval | {:ok, String.t(), String.t()} | {:error, term()}
```

Recognizes only the exact canonical response proposition.

# `response_evidence`

```elixir
@spec response_evidence(
  ExGAM.SubmissionContext.t(),
  ExGAM.Presentation.t(),
  ExGAM.Act.t(),
  ExGAM.Evidence.stance(),
  integer(),
  map() | keyword()
) :: {:ok, ExGAM.Evidence.t()} | {:error, term()}
```

Builds an authenticated supporting or contradicting response Evidence record.

# `validate_approval`

```elixir
@spec validate_approval(
  ExGAM.Evidence.t(),
  ExGAM.Presentation.t(),
  ExGAM.Act.t(),
  [ExGAM.Outcome.t()],
  [ExGAM.Evidence.t()],
  integer()
) :: :ok | {:error, term()}
```

Validates one supporting approval and discards its computed Evidence basis.

# `validate_approval_with_basis`

```elixir
@spec validate_approval_with_basis(
  ExGAM.Evidence.t(),
  ExGAM.Presentation.t(),
  ExGAM.Act.t(),
  [ExGAM.Outcome.t()],
  [ExGAM.Evidence.t()],
  integer()
) :: {:ok, [String.t()]} | {:error, term()}
```

Validates a supporting approval and returns its complete Evidence basis.

# `validate_response_with_basis`

```elixir
@spec validate_response_with_basis(
  ExGAM.Evidence.t(),
  ExGAM.Presentation.t(),
  ExGAM.Act.t(),
  [ExGAM.Outcome.t()],
  [ExGAM.Evidence.t()],
  integer()
) :: {:ok, [String.t()]} | {:error, term()}
```

Validates either response stance and returns its complete Evidence basis.

---

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