symfonic.memory.models.node¶
node ¶
MemoryNode model -- represents a single node in the memory graph.
MemoryNode ¶
Bases: BaseModel
A node in the tenant-scoped memory graph.
Nodes represent facts, events, skills, triggers, or working context depending on their layer assignment. Each node carries an optional embedding vector for similarity search and tracks access frequency for retrieval scoring.
durability
property
¶
Return the node's durability marker (v7.26.2 -- Shape C1).
Reads from properties['durability']. Pre-v7.26.2 nodes (and
adopters who never set the key) get "durable" -- the safe
default that preserves byte-identical promotion behaviour. An
unknown persisted value falls back to "durable" so the
consolidation gate never silently drops a row.
This is a computed property, NOT a model Field: it does not change the serialised shape (Contract A).
is_promotable ¶
Return True when the node is eligible for consolidation promotion.
Only "durable" nodes promote. "transient" and "expired"
are gated out of Phases 10/11/12.