{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ContextCompress",
 "ref": "ContextCompress#0bf5",
 "hash": "sema:ContextCompress#mh:SHA-256:0bf5ce89d0ad9cac74bb69f253f06331989714d3c34bb0b385f9674439ce30b0",
 "stub": "0bf5",
 "layer": "Mind",
 "type": "Memory",
 "summary": "Semantic compression for long-running contexts",
 "mechanism": "A memory management primitive that uses Compress#b585 to reduce the token footprint of a Context#c1b7 while preserving critical State#4f25. It explicitly retains active Constraint#7013s and unresolved goals.",
 "invariants": [
  "Reduces the Context#c1b7's token footprint by at least `min_reduction`.",
  "Retains every active Constraint#7013 and every unresolved goal.",
  "Re-evaluates which constraints are active and which goals unresolved on each pass."
 ],
 "parameters": [
  {
   "name": "min_reduction",
   "type": "Ratio",
   "range": "(0.0, 1.0)",
   "description": "Share of the token footprint a pass must remove to count as a compression."
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Silent over-compression: a discarded Constraint#7013 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."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ContextCompress",
 "builds_on": [
  {
   "alias": "context",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Context",
   "ref": "Context#c1b7",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Context"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  },
  {
   "alias": "compress",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Compress",
   "ref": "Compress#b585",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Compress"
  },
  {
   "alias": "constraint",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Constraint",
   "ref": "Constraint#7013",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Constraint"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "CapacityPressure",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CapacityPressure"
  },
  {
   "slug": "DataMinimization",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DataMinimization"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ContextCompress",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ContextCompress.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
