{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "InvariantFilter",
 "ref": "InvariantFilter#06cd",
 "hash": "sema:InvariantFilter#mh:SHA-256:06cd61a5aac3f903998318dd4f8f95b4c76c420a41d127dc32a646cb4c641160",
 "stub": "06cd",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Rule-based message filtering",
 "mechanism": "A strict communication firewall that intercepts Message#bf6ds (incoming or outgoing) and evaluates them against an explicit set of RuleSet#7ebf (Invariants). If a Message#bf6d satisfies all predicates, it is permitted to pass. If it fails even one, it is blocked, dropped, or flagged for review. This enforces 'Contractual Safety' on the communication channel. It inspects every Message#bf6d via a rigorous Check#6890 against defined predicates before allowing transit.",
 "invariants": [
  "Atomic Blocking: If Predicate(M) is False, M is NOT forwarded.",
  "Fail-Closed: If evaluation errors (e.g. timeout), default to BLOCK.",
  "Isolation: The protected agent state is not mutated by evaluation."
 ],
 "parameters": [
  {
   "name": "action_on_fail",
   "type": "Enum",
   "range": "[DROP, REJECT, FLAG]",
   "description": "What happens when a message violates a predicate"
  }
 ],
 "signature": [],
 "preconditions": [
  "A defined Invariant Set (Predicates)",
  "A Message#bf6d or Stream#ffa6 to evaluate"
 ],
 "postconditions": [
  "Only compliant messages reach the destination",
  "Blocked messages are logged (optional)"
 ],
 "failure_modes": [
  "Incomplete Invariants: If the filter does not catch a specific edge case, bad data leaks through.",
  "False Positives: Overly strict invariants blocking legitimate messages.",
  "Latency: Complex predicate evaluation slowing down high-throughput streams."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "InvariantFilter",
 "builds_on": [
  {
   "alias": "check",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Check",
   "ref": "Check#6890",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Check"
  },
  {
   "alias": "stream",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Stream",
   "ref": "Stream#ffa6",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Stream"
  },
  {
   "alias": "predicates",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "RuleSet",
   "ref": "RuleSet#7ebf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RuleSet"
  },
  {
   "alias": "message",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Message",
   "ref": "Message#bf6d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Message"
  }
 ],
 "related": [],
 "used_by": [],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/InvariantFilter",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/InvariantFilter.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
