{
  "protocolDate": "2026-11-03",
  "runAtUtc": "2026-11-03T14:29:48.464Z",
  "asOf": "2026-11-03",
  "validatorVersion": "1.0.0",
  "environment": {
    "node": "v26.3.0",
    "platform": "darwin",
    "arch": "arm64"
  },
  "scope": "Lokalny walidator na syntetycznym JSON; bez modelu AI i bez integracji produktu.",
  "cases": 13,
  "matched": 13,
  "formalPass": 3,
  "rejected": 9,
  "inputError": 1,
  "results": [
    {
      "file": "examples/01-valid.json",
      "label": "Poprawna oferta płatna",
      "expectedStatus": "formal-pass",
      "expectedExit": 0,
      "expectedCodes": [],
      "actualExit": 0,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "formal-pass",
        "errors": []
      },
      "actualCodes": [],
      "inputSha256": "8ab033019df4045dca5a70e5c04df2bb4ed7dc50f7a27158455c893728205496",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/02-valid-zero.json",
      "label": "Poprawna oferta bezpłatna",
      "expectedStatus": "formal-pass",
      "expectedExit": 0,
      "expectedCodes": [],
      "actualExit": 0,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "formal-pass",
        "errors": []
      },
      "actualCodes": [],
      "inputSha256": "d30764184b887c3a1025c1f05c4e3622e5d1f009bde5773cbd36da2fb2af1a5c",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/03-missing-client.json",
      "label": "Brak odbiorcy",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "REQUIRED"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "REQUIRED",
            "path": "clientName",
            "message": "Wymagane jest niepuste pole tekstowe."
          }
        ]
      },
      "actualCodes": [
        "REQUIRED"
      ],
      "inputSha256": "f62975acb166ab2c42559471544e88b9e5f88d459e863dc9acd35c51d76a5c94",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/04-missing-acceptance.json",
      "label": "Brak kryterium odbioru",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "REQUIRED"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "REQUIRED",
            "path": "acceptanceCriteria",
            "message": "Wymagane jest niepuste pole tekstowe."
          }
        ]
      },
      "actualCodes": [
        "REQUIRED"
      ],
      "inputSha256": "21b867f76ccb213d8ad769a8c1a622d5857839f0250bee1c7027b28cba00d89d",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/05-missing-start.json",
      "label": "Brak warunku rozpoczęcia",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "REQUIRED"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "REQUIRED",
            "path": "startCondition",
            "message": "Wymagane jest niepuste pole tekstowe."
          }
        ]
      },
      "actualCodes": [
        "REQUIRED"
      ],
      "inputSha256": "437f919140092eda46ea3a4ed53cd97ad3e0a8cc580461891e97e2e09e424425",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/06-wrong-net.json",
      "label": "Błędna suma netto",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "NET_TOTAL"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "NET_TOTAL",
            "path": "netGrosz",
            "message": "Suma pozycji wynosi 240000 groszy netto."
          }
        ]
      },
      "actualCodes": [
        "NET_TOTAL"
      ],
      "inputSha256": "967becf4a2528f6e071f4411b5379a9a68cf3d5667074c60a8cbeef3030130ab",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/07-wrong-gross.json",
      "label": "Błędna suma brutto",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "GROSS_TOTAL"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "GROSS_TOTAL",
            "path": "grossGrosz",
            "message": "Suma brutto według reguły pakietu wynosi 295200 groszy."
          }
        ]
      },
      "actualCodes": [
        "GROSS_TOTAL"
      ],
      "inputSha256": "50ec081a620a66508c14af614b5afad599e2cffb6622f1fb539b32bc6f494833",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/08-fractional-price.json",
      "label": "Cena z ułamkiem grosza",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "MONEY"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "MONEY",
            "path": "items[0].unitNetGrosz",
            "message": "Cena netto musi być nieujemną, bezpieczną liczbą całkowitą groszy."
          }
        ]
      },
      "actualCodes": [
        "MONEY"
      ],
      "inputSha256": "d9d59609fa9a591d15c8e4ff046aab85209d8427cab240036c6632f5f3bdab53",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/09-invalid-date.json",
      "label": "Nieistniejąca data",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "DATE"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "DATE",
            "path": "issuedAt",
            "message": "Podaj istniejącą datę w formacie RRRR-MM-DD."
          }
        ]
      },
      "actualCodes": [
        "DATE"
      ],
      "inputSha256": "4acff1f48b4e8c90c1d1e71c6f83a1af7d40f15c7d2174327702de31a60f2bad",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/10-expired.json",
      "label": "Termin ważności minął",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "EXPIRED"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "EXPIRED",
            "path": "validUntil",
            "message": "Termin ważności minął przed datą kontroli."
          }
        ]
      },
      "actualCodes": [
        "EXPIRED"
      ],
      "inputSha256": "eaebc5e3d4a897a1badcd3353b885adcd1be9defc2753338f822dea3aa19e389",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/11-unsupported-currency.json",
      "label": "Waluta poza zakresem pakietu",
      "expectedStatus": "rejected",
      "expectedExit": 1,
      "expectedCodes": [
        "CURRENCY"
      ],
      "actualExit": 1,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "rejected",
        "errors": [
          {
            "code": "CURRENCY",
            "path": "currency",
            "message": "Ten przykład obsługuje wyłącznie PLN."
          }
        ]
      },
      "actualCodes": [
        "CURRENCY"
      ],
      "inputSha256": "cb10fa855c7dc3bdb0cffde002e5bf14ca99f52ab355646d926511fdee0d43a8",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/12-invalid-json.json",
      "label": "Niepoprawny JSON",
      "expectedStatus": "input-error",
      "expectedExit": 2,
      "expectedCodes": [
        "INPUT_JSON"
      ],
      "actualExit": 2,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "input-error",
        "errors": [
          {
            "code": "INPUT_JSON",
            "path": "",
            "message": "Plik nie jest poprawnym JSON."
          }
        ]
      },
      "actualCodes": [
        "INPUT_JSON"
      ],
      "inputSha256": "3d99f6413886d01405fd276b78c97d201dbf91e9c3cc849914e94e9d7178416c",
      "inputUnchanged": true,
      "matchesExpectation": true
    },
    {
      "file": "examples/13-vague-acceptance.json",
      "label": "Granica metody: ogólnikowe kryterium",
      "expectedStatus": "formal-pass",
      "expectedExit": 0,
      "expectedCodes": [],
      "actualExit": 0,
      "report": {
        "validatorVersion": "1.0.0",
        "asOf": "2026-11-03",
        "status": "formal-pass",
        "errors": []
      },
      "actualCodes": [],
      "inputSha256": "92e490307ba618d88880179b3884b390ab9541a90dcff173713348be6aa641c5",
      "inputUnchanged": true,
      "matchesExpectation": true
    }
  ]
}
