symfonic.core.learning.phases_semantic_expiry¶
phases_semantic_expiry ¶
Moved to :mod:symfonic.capabilities.memory.phases.expiry.
These phases are on a roster the kernel composes, so they live in the capability now and are imported back here for the legacy consolidator to call. One phase, one implementation, for as long as both routes ship.
The private helpers travel with them: the shipped per-phase tests import them by name, and a shim that re-exported only the public surface would have moved the code away from the tests that watch it.
expire_semantic_durability
async
¶
expire_semantic_durability(graph: GraphMemoryStore, scope: TenantScope, all_nodes: list[MemoryNode]) -> int
Soft-retract SEMANTIC nodes whose durability/validity has elapsed.
Terminal action is always soft-retraction (the namespaced marker from
symfonic.memory.retraction), never delete: this flows through the
same reversible, audited path as retract_node, and the existing
prune_retracted phase reclaims the row after the grace window.
Returns:
| Type | Description |
|---|---|
int
|
Number of nodes retracted. |
Source code in src/symfonic/capabilities/memory/phases/expiry.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |