# `Pixir.Delegate.OwnerSupervisor`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/pixir/delegate/owner_supervisor.ex#L1)

Dynamic supervisor and lookup surface for live Delegate owners.

Delegate owner residency is intentionally scoped to the current BEAM runtime in this
slice. The registry lets `start`, `status`, and `cancel` find live capability while
the runtime is alive; durable Session Logs remain the source of truth after restart or
escript exit.

# `cancel`

```elixir
@spec cancel(
  map(),
  keyword()
) :: {:ok, map()} | {:error, :not_found | map()}
```

Cancel live Delegate work through the owner when reachable.

# `child_spec`

Application child spec.

# `lookup`

```elixir
@spec lookup(map()) :: {:ok, pid()} | {:error, :not_found}
```

Lookup a Delegate owner by delegate id or parent Session id.

# `owner_state`

```elixir
@spec owner_state(map()) :: {:ok, map()} | {:error, :not_found}
```

Return live owner state when the current runtime owns the handle.

# `start_delegate`

```elixir
@spec start_delegate(map(), map(), map(), keyword()) :: {:ok, map()} | {:error, map()}
```

Start a live owner for a validated Delegate spec.

# `start_link`

Start the Delegate owner supervisor.

---

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