{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "OsmoticFilter",
 "ref": "OsmoticFilter#b968",
 "hash": "sema:OsmoticFilter#mh:SHA-256:b968c9f47a45740f884f6963dc171b91877c02cc61536e6d6279d97a06312122",
 "stub": "b968",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Spam prevention via pressure thresholds",
 "mechanism": "Agents operate inside a semi-permeable membrane. Inbound messages are rejected unless they carry sufficient 'pressure' (stake, reputation, or relevance score) to overcome the membrane's current tension. The filter supports Multi-Solvent extraction, allowing different types of pressure (Money vs Trust) to be converted at defined rates per the Criteria#92ab criteria. It uses Hysteresis#c2d1 to prevent oscillation and Canary#d38c messages to test permeability.",
 "invariants": [
  "Normalized Pressure: Sum(Weighted_Solvents) > Membrane.tension",
  "Permeability: If Queue < Capacity, tension must approach zero (membrane relaxes)",
  "Snapback: If Queue drops rapidly, tension must reset instantly (anti-hysteresis)"
 ],
 "parameters": [
  {
   "name": "decay_rate",
   "type": "Float",
   "range": "[0.1, 0.9]",
   "description": "Linear relaxation"
  },
  {
   "name": "snapback_threshold",
   "type": "Float",
   "range": "[0.0, 0.2]",
   "description": "Queue depth % triggering instant reset"
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Starvation of low-stake but high-importance messages (mitigated by Whitelist)."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "OsmoticFilter",
 "builds_on": [
  {
   "alias": "canary",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Canary",
   "ref": "Canary#d38c",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Canary"
  },
  {
   "alias": "hysteresis",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Hysteresis",
   "ref": "Hysteresis#c2d1",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Hysteresis"
  },
  {
   "alias": "accepted_solvents",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Criteria",
   "ref": "Criteria#92ab",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Criteria"
  }
 ],
 "related": [],
 "used_by": [],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/OsmoticFilter",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/OsmoticFilter.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
