Skip to main content

COMPRESSION_BLOCK_START

Constant COMPRESSION_BLOCK_START 

Source
pub const COMPRESSION_BLOCK_START: &str = "<!-- lean-ctx-compression -->";
Expand description

Markers of the heavy compression / output-style block — the per-turn payload that drives cross-channel duplication (#684/#548).

render() wraps the compression prompt in these markers for persistent carriers (the Dedicated and Shared wrappers, i.e. every injected rule file). This is the single carrier/marker model: coverage and dedup (core::rules_channel, cli::rules_dedup) detect and thin the payload by these markers, so the writer and the readers can never disagree again. The ephemeral Bare MCP-instructions channel deliberately omits the markers — its inclusion is governed by carrier coverage (client_autoloads_compression), so a per-session marker would be pure noise.