{
      "name": "traiga-safe-harbor",
      "domain": "AI & Agent Governance",
      "title": "TRAIGA Safe Harbor",
      "spec_version": "0.8.0",
      "wave": 55,
      "description": "Gated three-step chain for the Texas Responsible AI Governance Act affirmative defense. Step 1 flags TRAIGA applicability and intentional prohibited-use assertions (gate: a prohibited use exits immediately, no defense evidence assembled). Step 2 (shipped map_nist_ai_rmf_functions) maps supplied controls to NIST AI RMF coverage (gate: Minimal or Partial coverage band exits, Substantial or Comprehensive continues). Step 3 assembles the affirmative-defense evidence pack. Evidence toward the Tex. Bus. & Com. Code §553.106 statutory defense, never a guarantee the defense succeeds.",
      "composer_url": "https://ainumbers.co/chaingraph/chains/traiga-safe-harbor.html",
      "regulatory_refs": [
        "Tex. Bus. & Com. Code Ch. 552-553 (TRAIGA, HB 149), eff. 2026-01-01",
        "Tex. Bus. & Com. Code §553.106 (NIST AI RMF affirmative defense)",
        "NIST AI RMF 1.0 (2023) + Generative AI Profile (NIST-AI-600-1)"
      ],
      "steps": [
        {
          "tool_id": "art-313-traiga-exposure-assessor",
          "handoff": "prohibited_use_detected feeds the gate -- a detected prohibited use exits the chain, otherwise the RMF mapping stage runs",
          "gate": {
            "input": "/prohibited_use_detected",
            "rules": [
              {
                "op": "eq",
                "value": true,
                "next": "end"
              }
            ],
            "default": "art-174-nist-ai-rmf-function-mapper"
          }
        },
        {
          "tool_id": "art-174-nist-ai-rmf-function-mapper",
          "handoff": "coverage_band feeds the gate -- Minimal or Partial coverage exits (does not meet the substantial-compliance bar), Substantial or Comprehensive continues to the pack builder",
          "gate": {
            "input": "/coverage_band",
            "rules": [
              {
                "op": "in",
                "value": [
                  "Minimal",
                  "Partial"
                ],
                "next": "end"
              }
            ],
            "default": "art-314-traiga-safe-harbor-pack-builder"
          }
        },
        {
          "tool_id": "art-314-traiga-safe-harbor-pack-builder",
          "handoff": "Assembles the affirmative-defense evidence pack from the exposure and RMF-mapping results -- final stage"
        }
      ]
    }
