Skip to content

symfonic.memory.node_patch

node_patch

Opaque persisted node guard for exact-owner conditional property patches.

OwnedNodePatchBackend

Bases: Protocol

Optional exact-owner graph port for deferred property writes.

The read returns a detached snapshot and guard; the patch merges onto the current row atomically. None means missing, foreign or stale. Adapters must persist incarnation/revision across restarts and advance revision on every node mutation; a new row at the same ID gets a new incarnation.

OwnedNodeVersion dataclass

OwnedNodeVersion(owner: str, incarnation: str, revision: int)

Identity of one stored row at one revision, captured at read time.