{
  "tool_id": "art-204-license-compatibility-checker",
  "note": "golden_hash filled by `node golden-parity.test.mjs --update`.",
  "vectors": [
    {
      "name": "empty_input",
      "policy_parameters": {},
      "output_payload": {
        "compatible": null,
        "reason_codes": [],
        "required_child_license": null,
        "parent_license": null,
        "child_license": null,
        "spdx_satisfies": null,
        "checks": [
          {
            "check": "input_present",
            "pass": false,
            "detail": "parent_license and child_license are required"
          }
        ],
        "disclaimer": "Not legal advice. Selection only. The published license terms govern. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "ff5af11f7928760faf7be4629d27333a45b1b4da29f11e902ed284d0d4f0bdb6"
    },
    {
      "name": "cc_by_to_cc_by_sa_compatible",
      "policy_parameters": {
        "parent_license": "CC-BY-4.0",
        "child_license": "CC-BY-SA-4.0"
      },
      "output_payload": {
        "compatible": true,
        "reason_codes": [],
        "required_child_license": null,
        "parent_license": "CC-BY-4.0",
        "child_license": "CC-BY-SA-4.0",
        "spdx_satisfies": true,
        "checks": [
          {
            "check": "parent_license_known",
            "pass": true,
            "detail": "parent: CC-BY-4.0 (cc)"
          },
          {
            "check": "child_license_known",
            "pass": true,
            "detail": "child: CC-BY-SA-4.0 (cc)"
          },
          {
            "check": "nd_allows_derivative",
            "pass": true,
            "detail": "parent allows derivatives"
          },
          {
            "check": "sa_same_license",
            "pass": true,
            "detail": "No ShareAlike/reciprocal constraint on parent"
          },
          {
            "check": "nc_commercial_allowed",
            "pass": true,
            "detail": "No NC/commercial conflict"
          },
          {
            "check": "cbe_personal_derivative",
            "pass": true,
            "detail": "No CBE PERSONAL derivative block"
          }
        ],
        "parent_source": "https://creativecommons.org/licenses/by/4.0/",
        "child_source": "https://creativecommons.org/licenses/by-sa/4.0/",
        "disclaimer": "Not legal advice. Selection only. The published license terms govern. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "53a8fa6b0dfd8ad88b8a4601c88998efbcf68d634b35c1bc6a7982e52dada1fc"
    },
    {
      "name": "nd_blocks_derivative",
      "policy_parameters": {
        "parent_license": "CC-BY-ND-4.0",
        "child_license": "CC-BY-4.0"
      },
      "output_payload": {
        "compatible": false,
        "reason_codes": [
          "ND_BLOCKS_DERIVATIVE"
        ],
        "required_child_license": null,
        "parent_license": "CC-BY-ND-4.0",
        "child_license": "CC-BY-4.0",
        "spdx_satisfies": false,
        "checks": [
          {
            "check": "parent_license_known",
            "pass": true,
            "detail": "parent: CC-BY-ND-4.0 (cc)"
          },
          {
            "check": "child_license_known",
            "pass": true,
            "detail": "child: CC-BY-4.0 (cc)"
          },
          {
            "check": "nd_allows_derivative",
            "pass": false,
            "detail": "ND_BLOCKS_DERIVATIVE: parent CC-BY-ND-4.0 has NoDerivatives; no derivative works allowed"
          },
          {
            "check": "sa_same_license",
            "pass": true,
            "detail": "No ShareAlike/reciprocal constraint on parent"
          },
          {
            "check": "nc_commercial_allowed",
            "pass": true,
            "detail": "No NC/commercial conflict"
          },
          {
            "check": "cbe_personal_derivative",
            "pass": true,
            "detail": "No CBE PERSONAL derivative block"
          }
        ],
        "parent_source": "https://creativecommons.org/licenses/by-nd/4.0/",
        "child_source": "https://creativecommons.org/licenses/by/4.0/",
        "disclaimer": "Not legal advice. Selection only. The published license terms govern. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "ec833edbe63a8839a57b514ffc6a8d0c091a685856b0a867ff7d0f6acd4c9e2a"
    },
    {
      "name": "sa_requires_same_license",
      "policy_parameters": {
        "parent_license": "CC-BY-SA-4.0",
        "child_license": "CC-BY-4.0"
      },
      "output_payload": {
        "compatible": false,
        "reason_codes": [
          "SA_REQUIRES_SAME_LICENSE"
        ],
        "required_child_license": "CC-BY-SA-4.0",
        "parent_license": "CC-BY-SA-4.0",
        "child_license": "CC-BY-4.0",
        "spdx_satisfies": false,
        "checks": [
          {
            "check": "parent_license_known",
            "pass": true,
            "detail": "parent: CC-BY-SA-4.0 (cc)"
          },
          {
            "check": "child_license_known",
            "pass": true,
            "detail": "child: CC-BY-4.0 (cc)"
          },
          {
            "check": "nd_allows_derivative",
            "pass": true,
            "detail": "parent allows derivatives"
          },
          {
            "check": "sa_same_license",
            "pass": false,
            "detail": "SA_REQUIRES_SAME_LICENSE: parent is ShareAlike; child must use CC-BY-SA-4.0, got CC-BY-4.0"
          },
          {
            "check": "nc_commercial_allowed",
            "pass": true,
            "detail": "No NC/commercial conflict"
          },
          {
            "check": "cbe_personal_derivative",
            "pass": true,
            "detail": "No CBE PERSONAL derivative block"
          }
        ],
        "parent_source": "https://creativecommons.org/licenses/by-sa/4.0/",
        "child_source": "https://creativecommons.org/licenses/by/4.0/",
        "disclaimer": "Not legal advice. Selection only. The published license terms govern. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "3af03c004e8c2ecc56e862ca530fadc5641e5f026012e2cf87cae2bdce35b34d"
    }
  ]
}
