Mind · Memory

ContextCompress

Semantic compression for long-running contexts

Definition

Mechanism

A memory management primitive that uses Compress to reduce the token footprint of a Context while preserving critical State. It explicitly retains active Constraints and unresolved goals.

Invariants

  1. Reduces the Context's token footprint by at least `min_reduction`.
  2. Retains every active Constraint and every unresolved goal.
  3. Re-evaluates which constraints are active and which goals unresolved on each pass.

Risks

Failure modes

  1. Silent over-compression

    a discarded Constraint surfaces only when a later step violates it.

  2. Stale activeness

    a pass reuses an earlier pass's list of active constraints instead of recomputing it, so a lapsed constraint is preserved and a new one is dropped.

Relationships

Builds on

References

Infrastructure

Compress

Lossy or lossless reduction

Infrastructure

Constraint

Non-negotiable boundary condition

Infrastructure

Context

Portable execution environment with inherited constraints

Infrastructure

State

System condition at time T

Used by

References

Reference

Parameters

min_reduction Ratio, (0.0, 1.0)
Share of the token footprint a pass must remove to count as a compression.

Identity

Ref
ContextCompress#0bf5
Sema ID
sema:ContextCompress#mh:SHA-256:0bf5ce89d0ad9cac74bb69f253f06331989714d3c34bb0b385f9674439ce30b0
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:ContextCompress#mh:SHA-256:6dbdad39d305207e19f80a38fbb7622505d35259338335493053eb49cfe4d817
  • sema:ContextCompress#mh:SHA-256:81bff304fb7fe57e71c152ac04faa987e06787468369ea65ab3cd2339c8739cb