Separate the four duplicate failure modes
Official fact: KSeF acceptance gives an invoice a unique KSeF number; that does not prove the underlying commercial event is unique or unpaid. Distinguish four failures: the same XML is transmitted twice; separate invoices for one event are both accepted; one KSeF invoice is ingested twice; or one liability is paid twice. Integration owns transmission identity, billing owns commercial documents, AP owns postings, and treasury owns payments. Recommended control: classify every alert before remediation and preserve both records. A monthly control should report counts by category, owner, ageing and financial exposure, with 100% of high-value alerts assigned within one business day. The principal risk is treating a KSeF number as an all-purpose duplicate-payment guarantee.