{
  "handle": "TriGate",
  "mechanism": "A generic {{gate}} traffic-light enforcement primitive. Wraps a {{judge}} or {{condition}} that returns a trinary status (Red/Yellow/Green) and yields a {{decision}}: Red -> CLOSE (halt execution). Yellow -> DEBT (proceed with the obligation recorded to {{ledger}}). Green -> OPEN (proceed).",
  "gloss": "Generic Red/Yellow/Green flow control",
  "invariants": [
    "Fail-Closed: Red triggers immediate halt.",
    "Yellow appends a remediation item and records the obligation to {{ledger}}. An unrecorded Yellow is a Green."
  ],
  "signature": [
    "Gate(Judge)"
  ],
  "_meta": {
    "ring": 0,
    "tier": 1,
    "supersedes": [
      "sema:TriGate#mh:SHA-256:07fcf444936e65c3cf14c77b8c7c3a1ca5d105462ea67ad26a970965ecfbc18c",
      "sema:TriGate#mh:SHA-256:c182ac61d432c77460a044a71b10c553ca0fca7b7ba9204ed5335c6ab8f8b824",
      "sema:TriGate#mh:SHA-256:5156704e5f174e347d58e312f42f3398b975266ff48cfce0d302b7d88abad7f8"
    ],
    "path": [
      "Infrastructure",
      "Primitives"
    ]
  },
  "sema_ref": "TriGate#04a9",
  "sema_id": "sema:TriGate#mh:SHA-256:04a9a7cc17d29dab76ee781b7d7a3f557f68d528788da12620a320ce53d6b44c",
  "sema_stub": "04a9",
  "failure_modes": [
    "Yellow read as Green: both states proceed, so the obligation exists only in the {{ledger}}.",
    "Debt accumulating unread: the obligation is recorded and nothing consumes it."
  ],
  "dependencies": {
    "composes_with": {
      "ledger": "sema:Ledger#mh:SHA-256:4ddaf2792fd7283ceea0d6b9b01ddfff9b7274dfb1cea2bf23147c21520774e5"
    },
    "references": {
      "condition": "sema:Condition#mh:SHA-256:b480f3c4da11ba6d86f6d14e0fb8521268f3c4bb38588460f7ff4253ad8d78d5",
      "gate": "sema:Gate#mh:SHA-256:664dd801873a87e8aa3d67499e27e7c47923d5c0cdd129af6c09a7531ed7de15",
      "judge": "sema:Judge#mh:SHA-256:704cbb71588d7a3bafa08b71c863005e31ec4400860b9cb8b094e660da9c7c6c"
    },
    "yields": {
      "decision": "sema:Decision#mh:SHA-256:b1407127acd4a39314fc24b418310e4b95e0347e4e22f376151ab765e2dfd2c7"
    }
  },
  "sema_layer": "Infrastructure",
  "sema_category": "Primitives",
  "used_by": {
    "references": {
      "ConceptBlend": "sema:ConceptBlend#mh:SHA-256:4e1a8d331a266c5ff283faba9b1c0d65c943dfa3b0f96f4b7deb5a76f9a171c6"
    },
    "composes_with": {
      "Taper": "sema:Taper#mh:SHA-256:5a7557a60ba8e0a07cd7d75f43ceb3b125c411e6eddf5bee63039775eab9ba7a"
    }
  }
}
