class RubyLLM::AgUI::Store::MemoryStore

An in-process run store.

It is correct for a single process and a reasonable default in development and tests. It is not shared between processes, so a host that runs more than one Puma worker, or retries on a different worker, must use a durable store (the optional Rails adapter’s ActiveRecord store) instead. Nothing here pretends otherwise.

Every public method holds the store’s lock for its whole body, so the reservation and the interrupt redemption are atomic: the first caller to answer an interrupt is the only one that records a decision. The private helpers assume the lock is already held and never take it themselves.