📉 1. The Compaction Pipeline
If a conversation’s total token count exceeds the configured safety threshold (e.g. 70% of model context):- Runs an asynchronous evaluation turn using the
NO_REPLYprotocol. - Prompts the model to synthesize a dense, semantic summary of all previous thread turns.
- Overwrites the history database with the generated summary, rolling forward the context state cleanly.