symfonic.capabilities.memory.phases.nightly¶
nightly ¶
The NIGHTLY cadence: the eleven phases quick does not run, and the factory.
PHASE_ROSTER[NIGHTLY] is quick's four plus eleven more, and it is nested
rather than merely different: every quick phase is a nightly phase, so a
deployment that runs both never has to ask which cadence maintains what.
:func:nightly_phases returns all fifteen or raises, the same contract
quick_phases holds.
What the extra eleven need that the four did not. Quick works over the
recent window; most of these work over everything, because a node that must
be pruned, decayed or expired is by definition one nothing has touched. Two of
them -- synthetic_links and procedural_promotion -- learn from a
scope's turns, which is a third read again. :mod:.evidence holds all three,
each read once per cycle.
Three phases decline rather than run. pending_edges materialises edges
a caller inferred and has nothing to do when no caller offered any;
meta_nodes and the two learning phases need collaborators a deployment may
not have composed. Declining is what skipped is for, and it is a different
sentence from the roster being incomplete.
MetaNodesPhase ¶
Phase 4. Clusters summarised into a node that stands for them.
Source code in src/symfonic/capabilities/memory/phases/nightly.py
PendingEdgesPhase ¶
Phase 2.5. Edges a caller inferred, written as real ones.
connections is the deployment's, per cycle: legacy took it as an
argument to run() and did nothing when it was empty. Kept that way, so
a scope with no inferred edges reports a skip rather than a zero.
Source code in src/symfonic/capabilities/memory/phases/nightly.py
ProceduralPromotionPhase ¶
ProceduralPromotionPhase(procedural: Any, evidence: EpisodicEvidence | None, *, llm_extractor: Any = None, llm_model_name: str = '', **settings: Any)
Phase 12. Something a scope does repeatedly becomes a draft skill.
Draft, always. This is the offline learning path: it runs unattended and
must never activate a skill on its own, which is why the counter it feeds
is promoted and not published. A human approves.
Source code in src/symfonic/capabilities/memory/phases/nightly.py
SyntheticLinksPhase ¶
nightly_phases ¶
nightly_phases(*, graph: Any, store: Any = None, procedural: Any = None, pending_connections: Any = (), llm_summarise: Any = None, procedural_extractor: Any = None, procedural_model_name: str = '', stale_days: int | None = None, **quick: Any) -> tuple[ConsolidationPhase, ...]
Build the complete NIGHTLY roster, in roster order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graph
|
Any
|
the |
required |
store
|
Any
|
the memory store, for the two phases that learn from a scope's turns. Without it they decline: reading episodic evidence through anything but the retrieval port would mean a second answer to "what has this scope done", and the wrong one. |
None
|
procedural
|
Any
|
where a draft skill is written. Without it phase 12 declines rather than extracting patterns it cannot store. |
None
|
pending_connections
|
Any
|
inferred edges to materialise this cycle. |
()
|
llm_summarise
|
Any
|
what names a cluster, for phase 4. |
None
|
procedural_extractor
|
Any
|
a model-backed
:class: |
None
|
stale_days
|
int | None
|
the decay horizon, when a deployment tunes it. |
None
|
**quick
|
Any
|
forwarded to :func: |
{}
|
Source code in src/symfonic/capabilities/memory/phases/nightly.py
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 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |