{
  "tool_id": "art-302-401k-adp-acp-test",
  "note": "golden_hash filled via `node golden-parity.test.mjs --update`. output_payload values captured from live compute() before commit.",
  "vectors": [
    {
      "name": "adp-and-acp-both-pass",
      "policy_parameters": {
        "method": "current_year",
        "adp_hce_pct": 0.06,
        "adp_nhce_pct": 0.05,
        "acp_hce_pct": 0.04,
        "acp_nhce_pct": 0.035
      },
      "output_payload": {
        "method": "current_year",
        "adp": {
          "computed": true,
          "hce_pct": 0.06,
          "nhce_pct": 0.05,
          "allowed_max_pct": 0.07,
          "pass": true,
          "excess_pct": 0
        },
        "acp": {
          "computed": true,
          "hce_pct": 0.04,
          "nhce_pct": 0.035,
          "allowed_max_pct": 0.05500000000000001,
          "pass": true,
          "excess_pct": 0
        },
        "all_tests_pass": true,
        "error": null
      },
      "golden_hash": "13c3c389079d009041de031e63c4fe7727f91b86f543ef9d867ef9ff1b6ffe79"
    },
    {
      "name": "adp-fail-with-corrective-magnitude",
      "policy_parameters": {
        "method": "current_year",
        "adp_hce_pct": 0.09,
        "adp_nhce_pct": 0.03,
        "acp_hce_pct": 0.04,
        "acp_nhce_pct": 0.035
      },
      "output_payload": {
        "method": "current_year",
        "adp": {
          "computed": true,
          "hce_pct": 0.09,
          "nhce_pct": 0.03,
          "allowed_max_pct": 0.05,
          "pass": false,
          "excess_pct": 0.039999999999999994
        },
        "acp": {
          "computed": true,
          "hce_pct": 0.04,
          "nhce_pct": 0.035,
          "allowed_max_pct": 0.05500000000000001,
          "pass": true,
          "excess_pct": 0
        },
        "all_tests_pass": false,
        "error": null
      },
      "golden_hash": "40e32e0389c40bdc4c3acaca1c8e1cf7d7b2da6e4aa92dd2fc3c106a187ccd11"
    },
    {
      "name": "acp-not-supplied-adp-only",
      "policy_parameters": {
        "method": "prior_year",
        "adp_hce_pct": 0.06,
        "adp_nhce_pct": 0.05
      },
      "output_payload": {
        "method": "prior_year",
        "adp": {
          "computed": true,
          "hce_pct": 0.06,
          "nhce_pct": 0.05,
          "allowed_max_pct": 0.07,
          "pass": true,
          "excess_pct": 0
        },
        "acp": {
          "computed": false,
          "hce_pct": null,
          "nhce_pct": null,
          "allowed_max_pct": null,
          "pass": null,
          "excess_pct": null
        },
        "all_tests_pass": true,
        "error": null
      },
      "golden_hash": "2b74facbeb56af3865fd26308ebc80c4acc57df35f2a7e01cb16edbd281fac40"
    },
    {
      "name": "missing-parameter-not-supplied",
      "policy_parameters": {
        "method": "current_year"
      },
      "output_payload": {
        "method": "current_year",
        "adp": {
          "computed": false,
          "hce_pct": null,
          "nhce_pct": null,
          "allowed_max_pct": null,
          "pass": null,
          "excess_pct": null
        },
        "acp": {
          "computed": false,
          "hce_pct": null,
          "nhce_pct": null,
          "allowed_max_pct": null,
          "pass": null,
          "excess_pct": null
        },
        "all_tests_pass": null,
        "error": "missing_required_adp_percentage"
      },
      "golden_hash": "deb44bedc03093709140b784534b99133d140ddf8683c22ac6a48f0ba593ac65"
    },
    {
      "name": "empty-input-finite-gate",
      "policy_parameters": {},
      "output_payload": {
        "method": null,
        "adp": {
          "computed": false,
          "hce_pct": null,
          "nhce_pct": null,
          "allowed_max_pct": null,
          "pass": null,
          "excess_pct": null
        },
        "acp": {
          "computed": false,
          "hce_pct": null,
          "nhce_pct": null,
          "allowed_max_pct": null,
          "pass": null,
          "excess_pct": null
        },
        "all_tests_pass": null,
        "error": "unsupported_or_missing_method"
      },
      "golden_hash": "819ae52009e060255a2e0337031383baf235eb99fee2c0b010acf27588f411cf"
    }
  ]
}
