symfonic.memory.backends.in_memory_deletion¶
in_memory_deletion ¶
Atomic in-process deletion of a scope, its edges, and workset progress.
cascade_incident_edges ¶
Erase native incident descendants of the actual deleted owner.
A descendant-owned edge may point to an ancestor node. Keeping that edge when its ancestor endpoint is deleted would resurrect it if the ID is re-added. Legacy callers retain their exact ancestor-chain cascade.
Source code in src/symfonic/memory/backends/in_memory_deletion.py
delete_node ¶
Preserve visible deletion semantics under the backend writer lock.
Source code in src/symfonic/memory/backends/in_memory_deletion.py
delete_subtree ¶
Erase every node at scope or below it, with its edges.
Atomic by construction: the whole sweep runs in one synchronous span
with no await in it, so no concurrent write on this loop can land
in a scope between its discovery and its deletion.