symfonic.capabilities.memory.legacy_access¶
legacy_access ¶
Legacy access bookkeeping for the records a native recall admitted.
CORE-227. Legacy hydration re-reads each recalled entry's node through
GraphMemoryStore.get_node (SymfonicAgent._run_spreading_activation),
and that read is what advances the node's access_count and updated_at
-- the frequency signal legacy ranking and consolidation later read. The
migrated hydration reads the same store through :class:LegacyRetrievalPort
and never re-reads a node, so a served-memory turn on the kernel route left
both fields untouched.
This decorator restores that one effect and nothing else: after the wrapped hydration it re-reads, through the legacy engine's own graph store, each record the coordinator admitted. It renders no neighbour context and changes no ranking, block or count. Like legacy, a failed re-read never fails the turn.
LegacyAccessHydrator ¶
A hydrator that records legacy access for each admitted memory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inner
|
Any
|
the hydrator whose result is returned unchanged. |
required |
graph
|
Any
|
the legacy |
required |
scope_of
|
Any
|
the port's translation from a capability scope to the
legacy |
required |
Source code in src/symfonic/capabilities/memory/legacy_access.py
hydrate
async
¶
Hydrate, then re-read each admitted record as legacy hydration does.