Duplicate Vendor Charge Detector & Approval-Gated Refund Guard
Detects duplicate card/ACH charges, ghost renewals, and unit-rate overbillings across AP feeds, staging an approval-gated dispute or refund reversal.
Governed Workflow Steps (5)
- 1. Ingest Card & ACH Feed
Ingest Posted Card & ACH Settlement Feed: consume [postedTransactions] via ingest.local_treasury_feed_parser to emit [canonicalTxns]. Verify invariant: canonicalTxns.length > 0.
- 2. Detect Duplicate Collisions
Fingerprint Merchant, Exact Cents & Time-Window Collisions: consume [canonicalTxns] via vault.vault-three-statement-reconciliation-lab to emit [duplicateFlags, recoverableCents]. Verify invariant: recoverableCents >= 0.
- 3. Verify Caps & Prior Credits
Verify Contracted Cap & Prior Reversal Ledger: consume [duplicateFlags] via oracle.duplicate_billing_guard_oracle to emit [verifiedDisputes]. Verify invariant: Array.isArray(verifiedDisputes).
- 4. Approval Gate: Human Review
Pause for explicit human review and signed approval token before executing external write "Approval-Gated Payment Reversal / Vendor Dispute Filing" (webhook.billing_gateway_dispute_submitter).
- 5. File Payment Reversal Dispute · [Airlock Approval Required]
Approval-Gated Payment Reversal / Vendor Dispute Filing: consume [verifiedDisputes] via webhook.billing_gateway_dispute_submitter to emit [disputeTicketIds]. Verify invariant: approvalTokenVerified === true && disputeTicketIds.length >= 0.