SessionConsolidationPass

class SessionConsolidationPass constructor(consolidator: MemoryConsolidator, sessionPropositions: List<Proposition> = emptyList()) : ConsolidationPass

Consolidation pass that folds a session's propositions into long-term memory by delegating verbatim to an injected MemoryConsolidator.

This pass does NOT re-implement promote/reinforce/merge logic — it hands the session and the snapshot (the existing long-term ACTIVE set) to the consolidator and projects the resulting com.embabel.dice.projection.memory.ConsolidationResult into a ConsolidationPassResult.

The session propositions are supplied at construction (one pass instance per cycle) because the run snapshot is the long-term set the session is consolidated against, not the session itself.

Constructors

Link copied to clipboard
constructor(consolidator: MemoryConsolidator, sessionPropositions: List<Proposition> = emptyList())

Properties

Link copied to clipboard
open override val name: String

Short, stable identifier used in reports and logging (e.g. "abstraction").

Functions

Link copied to clipboard
open override fun run(contextId: <Error class: unknown class>, propositions: List<Proposition>): ConsolidationPassResult

Consolidate the snapshot propositions for contextId, reporting the outcome.