{
  "tool_id": "art-264-validate-commission-hierarchy",
  "note": "Commission hierarchy validation: split sums, orphan detection, circular-ref detection, override stacking per ASC 606.",
  "vectors": [
    {
      "name": "valid_3_level_hierarchy",
      "description": "NP1 root -> ManagerA (60% split) -> AgentX (50% split): 3-level valid hierarchy, no violations.",
      "policy_parameters": {
        "hierarchy": [
          {
            "agent_id": "NP1",
            "parent_id": null,
            "split_pct": null
          },
          {
            "agent_id": "ManagerA",
            "parent_id": "NP1",
            "split_pct": 60
          },
          {
            "agent_id": "AgentX",
            "parent_id": "ManagerA",
            "split_pct": 50
          }
        ]
      },
      "output_payload": {
        "is_valid": true,
        "total_levels": 3,
        "agent_count": 3,
        "orphan_count": 0,
        "override_stacking_detected": false,
        "violations": [],
        "by_level": [
          {
            "level": 0,
            "agent_count": 1,
            "agents": [
              "NP1"
            ],
            "total_split_pct": 0
          },
          {
            "level": 1,
            "agent_count": 1,
            "agents": [
              "ManagerA"
            ],
            "total_split_pct": 60
          },
          {
            "level": 2,
            "agent_count": 1,
            "agents": [
              "AgentX"
            ],
            "total_split_pct": 50
          }
        ],
        "table_version": "ASC606-COMMISSION-HIERARCHY-V2024",
        "table_source": "ASC 606 (revenue recognition) + ASC 340-40 (incremental costs of obtaining a contract); hierarchy split logic per carrier commission agreement structural norms; ICM Commission Management best practices 2024",
        "regulatory_basis": "ASC 340-40-05-1: incremental costs of obtaining a contract must be recognized as assets if expected recovery is probable; hierarchy splits determine which agent cost layers are incremental. ZERO PII: synthetic agent-id graphs and split percentages only.",
        "pii_note": "ZERO PII: synthetic agent identifiers and numeric split percentages only. No agent name, SSN, NPN, address, or personal data enters this kernel.",
        "not_legal_advice": "Not legal or accounting advice. Commission hierarchy validation is for structural compliance review only; consult your carrier agreements and accountants for binding interpretation."
      },
      "golden_hash": "ff4884e53be65ceb4e91282fb595d1d9858cf3e22d35112fc9b3bae9282aa7cb"
    },
    {
      "name": "exceeds_100pct_split_violation",
      "description": "NP1 distributes 70%+50%=120% to two children ManagerA and ManagerB: EXCEEDS_100_PCT violation, is_valid=false.",
      "policy_parameters": {
        "hierarchy": [
          {
            "agent_id": "NP1",
            "parent_id": null,
            "split_pct": null
          },
          {
            "agent_id": "ManagerA",
            "parent_id": "NP1",
            "split_pct": 70
          },
          {
            "agent_id": "ManagerB",
            "parent_id": "NP1",
            "split_pct": 50
          }
        ]
      },
      "output_payload": {
        "is_valid": false,
        "total_levels": 2,
        "agent_count": 3,
        "orphan_count": 0,
        "override_stacking_detected": false,
        "violations": [
          {
            "type": "EXCEEDS_100_PCT",
            "agent_id": "NP1",
            "message": "Children splits sum to 120% (exceeds 100%) under parent NP1"
          }
        ],
        "by_level": [
          {
            "level": 0,
            "agent_count": 1,
            "agents": [
              "NP1"
            ],
            "total_split_pct": 0
          },
          {
            "level": 1,
            "agent_count": 2,
            "agents": [
              "ManagerA",
              "ManagerB"
            ],
            "total_split_pct": 120
          }
        ],
        "table_version": "ASC606-COMMISSION-HIERARCHY-V2024",
        "table_source": "ASC 606 (revenue recognition) + ASC 340-40 (incremental costs of obtaining a contract); hierarchy split logic per carrier commission agreement structural norms; ICM Commission Management best practices 2024",
        "regulatory_basis": "ASC 340-40-05-1: incremental costs of obtaining a contract must be recognized as assets if expected recovery is probable; hierarchy splits determine which agent cost layers are incremental. ZERO PII: synthetic agent-id graphs and split percentages only.",
        "pii_note": "ZERO PII: synthetic agent identifiers and numeric split percentages only. No agent name, SSN, NPN, address, or personal data enters this kernel.",
        "not_legal_advice": "Not legal or accounting advice. Commission hierarchy validation is for structural compliance review only; consult your carrier agreements and accountants for binding interpretation."
      },
      "golden_hash": "6f3789b340b216ebdbe5540589d6e6eb28dbe929cb7a21d64c36e18e3116edc6"
    }
  ]
}
