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
- Reduces the Context's token footprint by at least `min_reduction`.
- Retains every active Constraint and every unresolved goal.
- Re-evaluates which constraints are active and which goals unresolved on each pass.
Risks
Failure modes
Silent over-compression
a discarded Constraint surfaces only when a later step violates it.
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
Lossy or lossless reduction
Infrastructure
Non-negotiable boundary condition
Infrastructure
Portable execution environment with inherited constraints
Infrastructure
System condition at time T
Used by
References
Forcing abstraction via resource starvation
Society
Ingest only what is strictly necessary
Reference
Parameters
min_reductionRatio, (0.0, 1.0)- Share of the token footprint a pass must remove to count as a compression.
