# Glossary Domain terms for the smart-compact extension. ## Terms ## Discovered Terms ### Warn tier Tier 1: a one-shot `custom_message` injected at `turn_end` once per compaction cycle when context crosses `min(warnTokens, warnFraction × window)` — invisible in the UI (`display: false`), nudges the agent to be economical. ### Force tier Tier 2: `ctx.compact()` triggered from `agent_settled` (idle-guaranteed boundary) when context crosses `min(forceTokens, forceFraction × window)` — never from `turn_end`, because manual compaction aborts the active run and never resumes it. ### Compaction cycle The span between compactions. `session_compact` (any cause: manual `/compact`, forced, threshold, overflow recovery) resets the warn flag, the in-flight lock, and the cached token count; guards fire at most once per cycle.