Skip to content

symfonic.capabilities.memory.guarded_memory

guarded_memory

The composition's admitted writer and lifecycle (CORE-199).

Split from turn_generation, which still exports :class:GuardedMemory.

GuardedMemory

GuardedMemory(store: Any, generations: TurnGenerations, path: str)

The composition's writer and lifecycle; nothing else is forwarded.

Each call presents the running turn's admission, so a turn that never captured refuses before the store is reached.

Source code in src/symfonic/capabilities/memory/guarded_memory.py
def __init__(self, store: Any, generations: TurnGenerations, path: str) -> None:
    self._store = store
    self._generations = generations
    self._path = path