{
  "tool_id": "art-285-acdc-delegation-chain-verifier",
  "note": "golden_hash empty until first `node golden-parity.test.mjs --update`.",
  "vectors": [
    {
      "name": "happy-path-three-credential-chain",
      "policy_parameters": {
        "credentials": [
          {
            "v": "ACDC10JSON",
            "i": "EAleaf000000000000000000000000000000000000000",
            "ri": "ERegistryLeaf00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "agent-alpha",
              "dt": "2026-01-10T00:00:00Z",
              "scopes": [
                "execute:trade"
              ]
            },
            "e": {
              "d": "EEdgeBlockLeaf00000000000000000000000000000000",
              "auth": {
                "n": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "233755f557351c47dfbfed014dcbcecb4ec8108a096536665976d5f56d09a6c3"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAmid00000000000000000000000000000000000000000",
            "ri": "ERegistryMid00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAleaf000000000000000000000000000000000000000",
              "dt": "2026-01-05T00:00:00Z",
              "role": "delegate"
            },
            "e": {
              "d": "EEdgeBlockMid000000000000000000000000000000000",
              "auth": {
                "n": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAroot0000000000000000000000000000000000000000",
            "ri": "ERegistryRoot0000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAmid00000000000000000000000000000000000000000",
              "dt": "2026-01-01T00:00:00Z",
              "role": "delegate-authority"
            },
            "d": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4"
          }
        ],
        "expected_root_aid": "EAroot0000000000000000000000000000000000000000"
      },
      "output_payload": {
        "valid": true,
        "chain_depth": 3,
        "root_aid_matched": true,
        "said_failures": [],
        "edge_failures": [],
        "revocation_status_reported": []
      },
      "golden_hash": "1e703ce7d6ceaea7edd6f3c72e2df9293172f3a293de5dad5aaf560acb417170"
    },
    {
      "name": "broken-said-tampered-leaf",
      "policy_parameters": {
        "credentials": [
          {
            "v": "ACDC10JSON",
            "i": "EAleaf000000000000000000000000000000000000000",
            "ri": "ERegistryLeaf00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "agent-alpha",
              "dt": "2026-01-10T00:00:00Z",
              "scopes": [
                "admin:revoke"
              ]
            },
            "e": {
              "d": "EEdgeBlockLeaf00000000000000000000000000000000",
              "auth": {
                "n": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "233755f557351c47dfbfed014dcbcecb4ec8108a096536665976d5f56d09a6c3"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAmid00000000000000000000000000000000000000000",
            "ri": "ERegistryMid00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAleaf000000000000000000000000000000000000000",
              "dt": "2026-01-05T00:00:00Z",
              "role": "delegate"
            },
            "e": {
              "d": "EEdgeBlockMid000000000000000000000000000000000",
              "auth": {
                "n": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAroot0000000000000000000000000000000000000000",
            "ri": "ERegistryRoot0000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAmid00000000000000000000000000000000000000000",
              "dt": "2026-01-01T00:00:00Z",
              "role": "delegate-authority"
            },
            "d": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4"
          }
        ],
        "expected_root_aid": "EAroot0000000000000000000000000000000000000000"
      },
      "output_payload": {
        "valid": false,
        "chain_depth": 3,
        "root_aid_matched": true,
        "said_failures": [
          {
            "index": 0,
            "code": "SAID_MISMATCH",
            "detail": "computed e1a3fb0e5699bb92040e775d0514d69924989ecb01d93509f5e28de2b66812d8"
          }
        ],
        "edge_failures": [],
        "revocation_status_reported": []
      },
      "golden_hash": "acdaa269196571800fc864c5b0c0824ef5359192717cc37ef5d45d90245ad586"
    },
    {
      "name": "broken-edge-link",
      "policy_parameters": {
        "credentials": [
          {
            "v": "ACDC10JSON",
            "i": "EAleaf000000000000000000000000000000000000000",
            "ri": "ERegistryLeaf00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "agent-alpha",
              "dt": "2026-01-10T00:00:00Z",
              "scopes": [
                "execute:trade"
              ]
            },
            "e": {
              "d": "EEdgeBlockLeaf00000000000000000000000000000000",
              "auth": {
                "n": "ENotTheMidCredentialSaid0000000000000000000000",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "551e3af91a850285ef8199640b4139a049acb7fe1f20ecb6ae98d3d7df8fe90d"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAmid00000000000000000000000000000000000000000",
            "ri": "ERegistryMid00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAleaf000000000000000000000000000000000000000",
              "dt": "2026-01-05T00:00:00Z",
              "role": "delegate"
            },
            "e": {
              "d": "EEdgeBlockMid000000000000000000000000000000000",
              "auth": {
                "n": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAroot0000000000000000000000000000000000000000",
            "ri": "ERegistryRoot0000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAmid00000000000000000000000000000000000000000",
              "dt": "2026-01-01T00:00:00Z",
              "role": "delegate-authority"
            },
            "d": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4"
          }
        ],
        "expected_root_aid": "EAroot0000000000000000000000000000000000000000"
      },
      "output_payload": {
        "valid": false,
        "chain_depth": 3,
        "root_aid_matched": true,
        "said_failures": [],
        "edge_failures": [
          {
            "index": 0,
            "code": "EDGE_BROKEN",
            "detail": "no edge in credential[0] references credential[1].d"
          }
        ],
        "revocation_status_reported": []
      },
      "golden_hash": "55e5362d7f11381fd2bae3995dd3ee2fb76b7e3b76889e29287ac1d9adad52e9"
    },
    {
      "name": "revocation-status-reported",
      "policy_parameters": {
        "credentials": [
          {
            "v": "ACDC10JSON",
            "i": "EAleaf000000000000000000000000000000000000000",
            "ri": "ERegistryLeaf00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "agent-alpha",
              "dt": "2026-01-10T00:00:00Z",
              "scopes": [
                "execute:trade"
              ]
            },
            "e": {
              "d": "EEdgeBlockLeaf00000000000000000000000000000000",
              "auth": {
                "n": "92cd613a743b9404175c281b83aeb36f43dc73df0644cc180c72f6dd11bf0194",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "d4da96910d655442a32943f9a7dcbc6cc596b9d9e9bbc9a7076006cac1135321"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAmid00000000000000000000000000000000000000000",
            "ri": "ERegistryMid00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAleaf000000000000000000000000000000000000000",
              "dt": "2026-01-05T00:00:00Z",
              "role": "delegate"
            },
            "e": {
              "d": "EEdgeBlockMid000000000000000000000000000000000",
              "auth": {
                "n": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "revocation_status": "revoked",
            "d": "92cd613a743b9404175c281b83aeb36f43dc73df0644cc180c72f6dd11bf0194"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAroot0000000000000000000000000000000000000000",
            "ri": "ERegistryRoot0000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAmid00000000000000000000000000000000000000000",
              "dt": "2026-01-01T00:00:00Z",
              "role": "delegate-authority"
            },
            "d": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4"
          }
        ],
        "expected_root_aid": "EAroot0000000000000000000000000000000000000000"
      },
      "output_payload": {
        "valid": true,
        "chain_depth": 3,
        "root_aid_matched": true,
        "said_failures": [],
        "edge_failures": [],
        "revocation_status_reported": [
          {
            "index": 1,
            "status": "revoked"
          }
        ]
      },
      "golden_hash": "2e831c9207fdd6ab55b28ef1e9082a0a5d61ce8e95473d1598f916b59040470a"
    },
    {
      "name": "chain-depth-bound-hit",
      "policy_parameters": {
        "credentials": [
          {
            "v": "ACDC10JSON",
            "i": "EAleaf000000000000000000000000000000000000000",
            "ri": "ERegistryLeaf00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "agent-alpha",
              "dt": "2026-01-10T00:00:00Z",
              "scopes": [
                "execute:trade"
              ]
            },
            "e": {
              "d": "EEdgeBlockLeaf00000000000000000000000000000000",
              "auth": {
                "n": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "233755f557351c47dfbfed014dcbcecb4ec8108a096536665976d5f56d09a6c3"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAmid00000000000000000000000000000000000000000",
            "ri": "ERegistryMid00000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAleaf000000000000000000000000000000000000000",
              "dt": "2026-01-05T00:00:00Z",
              "role": "delegate"
            },
            "e": {
              "d": "EEdgeBlockMid000000000000000000000000000000000",
              "auth": {
                "n": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4",
                "s": "ESchemaKYAAgentDelegation000000000000000000000"
              }
            },
            "d": "4e73ab65b5464c273bf2cdd23c3f779900d8c165f7ce7770aba8d478364cfdef"
          },
          {
            "v": "ACDC10JSON",
            "i": "EAroot0000000000000000000000000000000000000000",
            "ri": "ERegistryRoot0000000000000000000000000000000",
            "s": "ESchemaKYAAgentDelegation000000000000000000000",
            "a": {
              "i": "EAmid00000000000000000000000000000000000000000",
              "dt": "2026-01-01T00:00:00Z",
              "role": "delegate-authority"
            },
            "d": "dc87883132b9e2b6ba1938ff72d561ebbf5b514fb11a442dbf07b2fad36438e4"
          }
        ],
        "expected_root_aid": "EAroot0000000000000000000000000000000000000000",
        "max_chain_depth": 2
      },
      "output_payload": {
        "valid": false,
        "chain_depth": 2,
        "root_aid_matched": false,
        "said_failures": [
          {
            "index": 2,
            "code": "CHAIN_DEPTH_EXCEEDED",
            "detail": "chain has 3 credentials, bound is 2"
          }
        ],
        "edge_failures": [
          {
            "index": 1,
            "code": "ROOT_AID_MISMATCH",
            "detail": "root credential issuer EAmid00000000000000000000000000000000000000000 != expected_root_aid EAroot0000000000000000000000000000000000000000"
          }
        ],
        "revocation_status_reported": []
      },
      "golden_hash": "4d9b2794740eac19a2947788e10ecefdb188b960c025fc26a711fe4dad6abd76"
    }
  ]
}
