Skip to content

resolveWorkingMemoryStore

function resolveWorkingMemoryStore(config, harnessDefault?): PersistentMemoryStore;

The one place a working-memory store is obtained, and therefore the one place layer 1 belongs. Every store handed out here validates its owner and block key before touching a backend.

It is wrapped here rather than inside each backend class deliberately: a backend constructed directly stays as permissive as it always was (its own layers 2/3 make it collision-safe regardless), while everything that goes through the framework — wireWorkingMemory, the memory_block tool, and any consumer calling this exported function — gets the reject-and-throw guarantee.

Parameter Type

config

WorkingMemoryConfig

harnessDefault?

PersistentMemoryStore

PersistentMemoryStore