8fe9025abd
Lean mode (tail_mode='lean', default stays 'legacy'): - tail budget = clamp(2.5% of window, 10K, 25K) instead of 0.20*window - stale tail tool results demoted to session_search recovery stubs - chunked identifier-preserving digests of the compacted region (map-reduce, pristine pre-prune tool contents) - verbatim user messages embedded in summary (codex retention-by-role rule) - deterministic session_search recovery footer Eval: policies matrix gains lean + a '+recovery' arm giving the answerer one simulated session_search round-trip against the archived region.