symfonic.core.learning.phases_pruning¶
phases_pruning ¶
Moved to :mod:symfonic.capabilities.memory.phases.pruning.
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.
consolidate_pending_edges
async
¶
consolidate_pending_edges(graph: GraphMemoryStore, scope: TenantScope, all_nodes: list[MemoryNode], pending_connections: list[dict[str, Any]]) -> int
Write inferred pending_connections as real graph edges.
Source code in src/symfonic/capabilities/memory/phases/pruning.py
generate_meta_nodes
async
¶
generate_meta_nodes(graph: GraphMemoryStore, scope: TenantScope, all_nodes: list[MemoryNode], llm_summarise: Any | None = None) -> int
Create meta-nodes from clusters of related nodes.
Idempotence: generated META: and Entity: nodes are excluded from
the clustering input. Without the first filter, a second consolidation run
groups every META:foo/META:bar node under the shared prefix
META and emits a META:META cascade node -- correct but
cosmetically noisy. Without the second, every entity minted late in DEEP's
roster groups under META:Entity on the next unchanged cycle. Phase 4
clusters raw domain nodes; both kinds are phase outputs, not inputs.
Source code in src/symfonic/capabilities/memory/phases/pruning.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
prune_orphans
async
¶
Delete orphan nodes: few edges, stale, low confidence, or TTL-expired.