# `Jidoka.Handoff.OwnerStore`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/handoff/owner_store.ex#L1)

Storage boundary for conversation handoff owners.

The default store is process-local ETS for examples and tests. Applications
that need durable or clustered ownership can configure another module:

    config :jidoka, :handoff_owner_store, MyApp.HandoffOwnerStore

# `owner`

```elixir
@type owner() :: %{
  agent: module(),
  agent_id: String.t(),
  handoff: Jidoka.Handoff.t(),
  updated_at_ms: integer()
}
```

# `owner`

```elixir
@callback owner(String.t()) :: owner() | nil
```

Returns the current owner record for a conversation.

# `put_owner`

```elixir
@callback put_owner(String.t(), Jidoka.Handoff.t()) :: :ok
```

Stores the handoff owner for a conversation.

# `reset`

```elixir
@callback reset(String.t()) :: :ok
```

Removes the handoff owner for a conversation.

# `owner`

```elixir
@spec owner(String.t()) :: owner() | nil
```

Returns the current owner record from the configured store.

# `put_owner`

```elixir
@spec put_owner(String.t() | nil, Jidoka.Handoff.t()) :: :ok
```

Stores a handoff owner when a conversation identifier is available.

# `reset`

```elixir
@spec reset(String.t()) :: :ok
```

Removes a handoff owner when a conversation identifier is valid.

# `store`

```elixir
@spec store() :: module()
```

Returns the configured owner-store module.

---

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