Architecture Note · Finance & Legal
Corporate Spend & Expense Controls: Deterministic Card Policy, VAT Reclaim, and Exception Gates
Why LLM receipt reviewers miss split transactions and invalid tax IDs—and how deterministic card velocity limits, VAT/JCT reclaim rules, and human sign-off protect budgets.
The Operational Problem: Split Swipes, Invalid Tax IDs, and Out-of-Policy Leakage
Distributed teams spending across NYC, London, Tokyo, Frankfurt, Sydney, Toronto, and Zurich create policy blind spots that post-hoc expense reports catch too late. Employees split a charge into two swipes fifteen minutes apart to stay under a single-transaction cap, book unapproved cabin upgrades, submit duplicate receipts across corporate cards and personal reimbursements, or claim input VAT without a valid UK VAT invoice above £250, German Steuer-Nr, or Japanese Qualified Invoice T-Number. Without automated pre-authorization rules and strict tax-reclaim checks, finance teams either overpay non-compliant claims or fail indirect tax audits.
Why Naive AI Expense Reviewers Fail
Using a prompt wrapper to inspect receipts and approve expense reports breaks down under real finance controls:
- No stateful temporal or hash checks: A single-receipt prompt cannot detect two swipes at the same merchant within a 30-minute split-transaction window, nor match a SHA-256 receipt digest against a prior reimbursement claim.
- Hallucinated VAT/GST/JCT eligibility: Language models frequently treat non-recoverable client entertainment as reclaimable input tax, or fail to apply zero-decimal rounding on
JPYversus two-decimalGBP,EUR,AUD,CAD, andUSDjournals. - Unsafe spreadsheet exports and PII exposure: Uploading employee receipts to external endpoints leaks card metadata and itineraries, while unescaped CSV exports risk spreadsheet formula injection (
=,+,-,@) when opened by payroll teams.
The Deterministic Architecture That Fixes It
Parabolic Dapps Corporate Spend Controls pairs deterministic policy and tax engines with role-gated human overrides and balanced GL export generation.
- Virtual card policy engine and auto-freeze thresholds:
POST /api/cards/rulesenforces MCC allowlists/blocklists (auto-allowing, pre-approving, or blocking categories like luxury retail and cash advances), city-specific nightly lodging and daily meal caps anchored in USD equivalent across all seven hubs, weekend spend policies (allow,travel_only,block), single-transaction velocity caps (default$2,500), and automatic card freezes when cumulative flagged spend breaches the configured threshold ($4,000). - Deterministic exception, split, and duplicate detection:
POST /api/expenses/submitruns deterministic offline extraction by default (or optionalSPEND_LLM_MODE=openaiwith strict JSON validation), evaluates 30-minute split-transaction evasion windows, flags duplicate claims by SHA-256 receipt digest or(merchant, date, amount, currency)tuple, and wipes raw uploaded receipt files after 3,600 seconds via background reaper. - Jurisdictional VAT/GST/JCT reclaim and GL coding: Using exact
Decimalarithmetic (app/currency.py,app/tax_gl.py), transactions normalize acrossUSD,EUR,GBP,AUD,CAD,CHF, and zero-decimalJPY, mapping cleanly to GL codes (6110Air/Rail,6120Lodging,6140Client Dining,6210Cloud/SaaS, and1420Recoverable VAT) while blocking client-dining VAT reclaim or missing tax IDs unless explicitly justified. - Mandatory human sign-off, department burn tracking, and balanced GL export:
POST /api/expenses/{id}/approverestricts approvals to scopedmanagerandfinance_admintokens (rate-limited with HTTP429+Retry-After) and rejects out-of-policy or VAT overrides without explicithuman_signoff: true,vat_override_justified: truewhere applicable, and an audit rationale (minimum 8 characters in the workbench).GET /api/reimbursements/exportemits balanced debits/credits (Credit 2110) with CSV formula-injection neutralization across departments.
Operational Takeaway
Expense governance relies on deterministic boundaries: velocity caps, split-window detection, statutory tax-ID validation, and balanced journal math. By reserving AI strictly for receipt field extraction inside an isolated perimeter—and gating every policy or VAT override behind human rationale and immutable audit_log entries—finance teams stop leakage before funds settle.