@@ -84,12 +84,24 @@ surface** for data-heavy work. These tools run in-process alongside the plugin
8484hooks and share the same canonical root-session identity and Redis/FalkorDB hot
8585tier.
8686
87+ The ` session_* ` tools also write into the same local continuity model as the
88+ rest of the session: their bounded summaries are recorded as structured events,
89+ folded into the local snapshot, and preserved through compaction under the same
90+ ` <session_memory> ` envelope used for ordinary chat continuity.
91+
8792- ** Bounded execution** (` session_execute ` , ` session_execute_file ` ,
8893 ` session_batch_execute ` ) — run commands or process files locally, store full
8994 output in the local corpus, and return only a bounded summary to the model.
95+ ` session_batch_execute ` supports ordered mixed steps, so one request can
96+ combine bounded command execution with local corpus search.
9097- ** Local indexing and search** (` session_index ` , ` session_search ` ,
9198 ` session_fetch_and_index ` ) — index content into a per-session local corpus in
92- Redis/FalkorDB and search it with bounded result sets.
99+ Redis/FalkorDB and search it with bounded result sets. The local corpus stays
100+ local-first: indexing and retrieval happen against the session's local store,
101+ while any Graphiti augmentation remains asynchronous and cache-backed.
102+ ` session_index ` accepts either inline ` content ` or a local ` path ` ; when the
103+ same ` source ` and ` label ` are indexed again for one root session, the prior
104+ logical document is replaced instead of appended.
93105- ** Diagnostics** (` session_stats ` , ` session_doctor ` ) — inspect session state
94106 and corpus health.
95107
@@ -311,8 +323,9 @@ Events are also queued for background ingestion into long-term memory:
311323
312324- ** On idle** (` session.idle ` ): buffered events are sent to Graphiti and the
313325 priority-tiered snapshot is rebuilt.
314- - ** Before compaction** (` session.compacted ` ): all pending events are sent
315- immediately so nothing is lost.
326+ - ** After compaction** (` session.compacted ` ): the compaction summary and any
327+ pending continuity are scheduled for background Graphiti ingestion so nothing
328+ is lost across compaction boundaries.
316329
317330### Compaction Preservation
318331
0 commit comments