Skip to main content

Module context_promote

Module context_promote 

Source
Expand description

Postmortem promotion + memory.promote chain event (ADR-058 Phase 4.2/4.3).

Because the session view (SessionView) is discarded per run, a session-end rollup must promote durable facts to the trunk before the view is dropped — else “fresh each run” becomes “amnesia each run”. This is the load-bearing L2→L3 boundary:

  • 4.2 postmortem — a mandatory post-task review that nominates chunks for promotion using multiple signals (explicit “important” marks, recall / reference count, task-completion score). Not a single heuristic.
  • 4.3 MemoryPromote / promote_to_chain — promotion is itself a memory.promote ChainLoggable event (ADR-020/022) recording which chain sequences were distilled, giving auditable lineage of long-term memory. (Requires the exochain feature.)

Structs§

MemoryPromote
A memory.promote chain event (ADR-058 Phase 4.3 / ADR-020 ChainLoggable).
PromotionCandidate
A chunk nominated for L2→L3 promotion by the postmortem.
PromotionSignals
Multi-signal thresholds for the postmortem nominator.

Enums§

PromotionReason
Why a chunk was nominated for promotion (auditable, multi-signal).

Functions§

postmortem
Postmortem promotion stage (ADR-058 Phase 4.2).
promote_to_chain
Promote the nominated candidates to the durable trunk (ADR-058 Phase 4.3).