# `CommBus.Prompts.OverrideStore.Memory`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

In-memory override store for testing and local usage.

# `create_override`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Stores a new prompt override in the in-memory agent. The override map
should contain `:slug`, `:content`, and optionally `:scope`, `:metadata`,
`:active`, and `:priority` keys.

## Parameters

  - `attrs` — A map of override attributes.

## Returns

`{:ok, normalized_override}` on success.

# `get_active_override`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Retrieves the highest-priority active override for the given prompt slug,
optionally filtered by scope.

## Parameters

  - `slug` — The prompt slug to look up.
  - `opts` — Keyword options: `:name` (agent name), `:scope` (filter by scope).

## Returns

A map with `:slug`, `:content`, `:scope`, `:metadata`, `:active`, `:priority`
keys, or `nil` if no active override exists.

# `start_link`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

```elixir
@spec start_link(keyword()) :: Agent.on_start()
```

Starts the in-memory override store backed by an Agent process.

## Parameters

  - `opts` — Keyword options: `:name` (process name, defaults to module name).

## Returns

`{:ok, pid}` on success.

---

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