{
  "tool_id": "art-148-mcp-authorization-metadata-validator",
  "note": "golden_hash empty until first `node golden-parity.test.mjs --update`.",
  "vectors": [
    {
      "name": "valid-rfc9728-metadata",
      "policy_parameters": {
        "metadata": {
          "resource": "https://api.example.com/mcp",
          "authorization_servers": [
            "https://auth.example.com"
          ],
          "scopes_supported": [
            "tools:read",
            "tools:call"
          ],
          "bearer_methods_supported": [
            "header"
          ]
        }
      },
      "output_payload": {
        "metadata_valid": true,
        "resource_ok": true,
        "auth_server_count": 1,
        "scope_count": 2,
        "bearer_ok": true,
        "missing": []
      },
      "golden_hash": "58e8d7dfcf040ded5fddd10f654ab12f959fd01f3395477d4f5f7c660819a06f"
    },
    {
      "name": "invalid-missing-resource-and-scopes",
      "policy_parameters": {
        "metadata": {
          "authorization_servers": [
            "https://auth.example.com"
          ],
          "bearer_methods_supported": [
            "header"
          ]
        }
      },
      "output_payload": {
        "metadata_valid": false,
        "resource_ok": false,
        "auth_server_count": 1,
        "scope_count": 0,
        "bearer_ok": true,
        "missing": [
          "RESOURCE",
          "SCOPES_SUPPORTED"
        ]
      },
      "golden_hash": "0e177cb6ae1431823e9e9fd1575a2c8019a33344cfbe9d6a02cc53dfe693cf5d"
    },
    {
      "name": "invalid-unrecognized-bearer-method",
      "policy_parameters": {
        "metadata": {
          "resource": "https://api.example.com/mcp",
          "authorization_servers": [
            "https://auth.example.com"
          ],
          "scopes_supported": [
            "tools:call"
          ],
          "bearer_methods_supported": [
            "cookie"
          ]
        }
      },
      "output_payload": {
        "metadata_valid": false,
        "resource_ok": true,
        "auth_server_count": 1,
        "scope_count": 1,
        "bearer_ok": false,
        "missing": [
          "BEARER_METHODS_UNRECOGNIZED"
        ]
      },
      "golden_hash": "dd1ea2539026295d9116ba3f782b03969541183e1415c5fcdae6126c3abef093"
    }
  ]
}
