# `Spectre.GAM.Scope`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/scope.ex#L1)

Ephemeral handle binding a scope identifier to authenticated ingress context.

A Scope is a projection over the Domain ledger. Copying this struct does not
copy a Mandate, a balance, or any other authority.

# `t`

```elixir
@type t() :: %Spectre.GAM.Scope{
  context: Spectre.GAM.SubmissionContext.t(),
  domain: Spectre.GAM.Domain.t()
}
```

Transparent binding used by the facade and application state owners.

The fields are readable data, not an encapsulated execution capability.
Authentication depends on the context seal and the live Domain/Scope fence,
which are revalidated at the governed boundary, not on typespec opacity.

# `domain_ref`

```elixir
@spec domain_ref(t()) :: String.t()
```

Returns the Domain reference bound by both the handle and its context.

# `new`

```elixir
@spec new(Spectre.GAM.Domain.t(), Spectre.GAM.SubmissionContext.t()) ::
  {:ok, t()} | {:error, term()}
```

Pairs a Domain handle and context with matching Domain references.

This is local construction, not authentication, durable Scope opening or
seal/generation verification. Use the facade's authenticate/open/resume
workflows; every governed operation still verifies the resulting handle.

# `ref`

```elixir
@spec ref(t()) :: String.t()
```

Returns the durable Scope reference bound by the authenticated context.

---

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