{
  "tool_id": "art-296-einvoice-transmission-receipt-builder",
  "note": "golden_hash empty until first `node golden-parity.test.mjs --update`.",
  "vectors": [
    {
      "name": "both-gates-pass-validated",
      "policy_parameters": {
        "document": {
          "document_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "embedded_xml_sha256": null,
          "format": "xrechnung"
        },
        "format_validation": {
          "structural_completeness": true
        },
        "vat_verification": {
          "consistent": true
        },
        "routed_mandate": {
          "regime_country": "FR",
          "applicable_format": "factur-x_or_ubl",
          "mandatory_from": "2026-09-01",
          "phase_status": "mandatory",
          "transmission_channel": "PDP",
          "table_version": "einvoice-mandate-table-2026-07-13"
        }
      },
      "output_payload": {
        "document_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "embedded_xml_sha256": null,
        "format": "xrechnung",
        "validated": true,
        "claim_strength": "format_and_arithmetic_verified",
        "format_gate_passed": true,
        "vat_gate_passed": true,
        "routed_mandate": {
          "regime_country": "FR",
          "applicable_format": "factur-x_or_ubl",
          "mandatory_from": "2026-09-01",
          "phase_status": "mandatory",
          "transmission_channel": "PDP",
          "table_version": "einvoice-mandate-table-2026-07-13"
        },
        "steps": [
          {
            "tool_id": "art-293-einvoice-format-validator",
            "mcp_name": "validate_einvoice_format",
            "gate_passed": true
          },
          {
            "tool_id": "art-294-einvoice-vat-calc-verifier",
            "mcp_name": "verify_einvoice_vat_calc",
            "gate_passed": true
          },
          {
            "tool_id": "art-295-einvoice-jurisdiction-mandate-router",
            "mcp_name": "route_einvoice_jurisdiction_mandate",
            "gate_passed": true
          }
        ],
        "ha_wiring": {
          "release_gate_policy": "review_required",
          "release_gate_role": "reviewer",
          "override_gate_policy": "emergency_override",
          "enforcement": "schema_only_pending_HA-RETRO-1"
        },
        "not_legal_advice": "Proves the transmitted document was format-validated and VAT-arithmetic-checked. Does not certify tax compliance, legal validity, or clearance-platform acceptance."
      },
      "golden_hash": "96fc6c1695e41969955c9f8c3f05b58689606f305620ce0debc41448bd652a5a"
    },
    {
      "name": "vat-gate-fail-unverified",
      "policy_parameters": {
        "document": {
          "document_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "embedded_xml_sha256": null,
          "format": "xrechnung"
        },
        "format_validation": {
          "structural_completeness": true
        },
        "vat_verification": {
          "consistent": false
        },
        "routed_mandate": {
          "regime_country": "FR",
          "applicable_format": "factur-x_or_ubl",
          "mandatory_from": "2026-09-01",
          "phase_status": "mandatory",
          "transmission_channel": "PDP",
          "table_version": "einvoice-mandate-table-2026-07-13"
        }
      },
      "output_payload": {
        "document_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "embedded_xml_sha256": null,
        "format": "xrechnung",
        "validated": false,
        "claim_strength": "unverified",
        "format_gate_passed": true,
        "vat_gate_passed": false,
        "routed_mandate": {
          "regime_country": "FR",
          "applicable_format": "factur-x_or_ubl",
          "mandatory_from": "2026-09-01",
          "phase_status": "mandatory",
          "transmission_channel": "PDP",
          "table_version": "einvoice-mandate-table-2026-07-13"
        },
        "steps": [
          {
            "tool_id": "art-293-einvoice-format-validator",
            "mcp_name": "validate_einvoice_format",
            "gate_passed": true
          },
          {
            "tool_id": "art-294-einvoice-vat-calc-verifier",
            "mcp_name": "verify_einvoice_vat_calc",
            "gate_passed": false
          },
          {
            "tool_id": "art-295-einvoice-jurisdiction-mandate-router",
            "mcp_name": "route_einvoice_jurisdiction_mandate",
            "gate_passed": true
          }
        ],
        "ha_wiring": {
          "release_gate_policy": "review_required",
          "release_gate_role": "reviewer",
          "override_gate_policy": "emergency_override",
          "enforcement": "schema_only_pending_HA-RETRO-1"
        },
        "not_legal_advice": "Proves the transmitted document was format-validated and VAT-arithmetic-checked. Does not certify tax compliance, legal validity, or clearance-platform acceptance."
      },
      "golden_hash": "38d4464b05ab89b4904f09dc3b94760d8d0c592f0ff9149de0db73551286f8be"
    },
    {
      "name": "empty-input-finite-gate",
      "policy_parameters": {},
      "output_payload": {
        "document_sha256": null,
        "embedded_xml_sha256": null,
        "format": null,
        "validated": false,
        "claim_strength": "unverified",
        "format_gate_passed": false,
        "vat_gate_passed": false,
        "routed_mandate": null,
        "steps": [
          {
            "tool_id": "art-293-einvoice-format-validator",
            "mcp_name": "validate_einvoice_format",
            "gate_passed": false
          },
          {
            "tool_id": "art-294-einvoice-vat-calc-verifier",
            "mcp_name": "verify_einvoice_vat_calc",
            "gate_passed": false
          },
          {
            "tool_id": "art-295-einvoice-jurisdiction-mandate-router",
            "mcp_name": "route_einvoice_jurisdiction_mandate",
            "gate_passed": true
          }
        ],
        "ha_wiring": {
          "release_gate_policy": "review_required",
          "release_gate_role": "reviewer",
          "override_gate_policy": "emergency_override",
          "enforcement": "schema_only_pending_HA-RETRO-1"
        },
        "not_legal_advice": "Proves the transmitted document was format-validated and VAT-arithmetic-checked. Does not certify tax compliance, legal validity, or clearance-platform acceptance."
      },
      "golden_hash": "66b6393e1fd558d118c192195f5e77450d0f4234f91b23d5516478a80d23e856"
    }
  ]
}
