Real-Time Double-Entry Ledger Watchdog
Continuously audits zero-sum debit/credit balance and clearing account staleness.
Matches connected merchant bank payouts to individual invoice settlements and fees.
When Stripe Connect deposits a single $184,920.50 net payout into your operating bank account, it bundles 37 invoices, 150 bps Connect application fees, two partial refunds, and an ACH fee adjustment.
Binds SET LOCAL app.current_tenant_id, validates tenant ownership, confirms Stripe Connect rail readiness, and evaluates achSettlementHold=true.
Dispatches validated payloads across connect.payouts.fetch, ledger.merchant_cash.match, erp.bank_feed.post with Zod runtime schemas and zero raw SQL leakage.
Posts balanced DEBIT accounts_receivable / CREDIT revenue in integer cents and enqueues canonical payloads for netsuite + openteq_canonical.
Continuously audits zero-sum debit/credit balance and clearing account staleness.
Extracts line items from PDF/email remittances and fuzzy-matches open invoices.
Identifies remitters on unapplied wires/ACH credits and reclassifies suspense rows.
Start with a single Wave 1 agent or equip a complete role blueprint. Every tenant runs on forced PostgreSQL RLS and zero-sum double-entry accounting.