Cognitive working memory with Baddeley-inspired slot management.
Also implements IWorkingMemory for backward compatibility — get/set/delete/clear/has/size/getAll delegate to the backing store, while slot management is layered on top.
get/set/delete/clear/has/size/getAll
Optional
Current number of occupied slots.
Maximum slot capacity (personality-modulated).
Get all active slots.
Get a specific slot by ID.
Focus attention on a trace, adding it to working memory. If at capacity, the lowest-activation slot is evicted first.
The slot ID assigned to this trace.
Rehearse a slot (maintenance rehearsal), bumping its activation.
Apply per-turn activation decay to all slots. Slots that drop below minActivation become eviction candidates.
Get working memory utilisation (0-1).
Serialise current slots as a formatted string for prompt injection.
Readonly
Cognitive working memory with Baddeley-inspired slot management.
Also implements IWorkingMemory for backward compatibility —
get/set/delete/clear/has/size/getAlldelegate to the backing store, while slot management is layered on top.