# ============================================================================ # memory.py — working memory for the Thematic Analysis workbench (stub) # ============================================================================ # # Scaffolding stub identical in shape to the Grounded Theory memory stub. # Future rounds will grow this into a real per-run memory for inter-node # continuity. Not currently used by any real node. # ============================================================================ class WorkbenchMemory: """Tiny in-process memory store. Keyed by arbitrary string.""" def __init__(self): self._store = {} def get(self, key, default=None): return self._store.get(key, default) def put(self, key, value): self._store[key] = value def clear(self): self._store.clear() def items(self): return list(self._store.items()) memory = WorkbenchMemory()