19a59f7d7b
Review follow-up on #67431 (hermes-sweeper): - The viability check compared the floored percentage against the raw context window, but the built-in trigger recomputation also applies the output-token reservation, the 64K floor, and the degenerate-window guard (_compute_threshold_tokens). Mirror that math exactly, so e.g. a 200K window with max_tokens=120K recomputes to max(0.75*80K, 64K)=64K and the suggestion is correctly KEPT for an 80K aux model instead of being suppressed by the raw-window percentage. - Gate the built-in policy behind isinstance(ContextCompressor): external context engines own compaction policy (#44439), so plugin engines keep the plain suggestion untouched. - The non-viable explanation now names the recomputed trigger instead of hardcoding the 75%/512K wording, so it stays accurate when the reservation (not the percentage floor) is what makes the value unreachable. Tests: reservation-viability regression and plugin-engine passthrough, per the review; the floored-branch assertion updated to the recomputed number. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>