mcp_engram_session_end
Finalizes the conversation by storing decisions, reasoning traces, and changes into a tamper-evident chain, preserving the session's work for future agents without loss.
Instructions
MANDATORY (now with reasoning trace support): Call at end of every conversation/task. Commits the session as ZEDOS_EPISODIC and extracts key reasoning traces (decision points, justifications, forks) into structured trace segments. These become part of the serial, tamper-evident chain for the agent self-model. Flat summaries are still accepted but strongly discouraged. Automatically refreshes helper:session_hydration_cache, hot-promotes continuity artifacts, and mints compression_handoff_* manifest. CONSEQUENCE OF SKIPPING: The session's work + reasoning trajectory is lost to future agents. WHAT TO INCLUDE IN SUMMARY: decisions made, problems solved, files changed, open questions, next steps. Optional COMPRESS: lines for 0x10 functor minting later. 2026-06 Ritual Evolution: for meta arcs ensure tiles + current_meta_arc promoted/updated for bundles (per helper:meta_work_escalation_v1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minimal | No | If true, thin closure: 1-line summary + auto boundary trace + handoff only (no compression ritual). Preferred for fast fix loops. | |
| prepare_compression | No | If true (default when minimal=false), run full compression handoff: hydration cache + hot promote + compression_handoff_* manifest. Ignored when minimal=true. | |
| summary | Yes | Agent's summary of the session |