{"ok":true,"engine":"aicost.msp-margin-leak","inputs":{"seatsManaged":900,"avgPerSeatUsd":28,"clients":22,"syncMethod":1,"invoiceReviewPct":40,"seatChangesPerMonth":25,"unusedSeatPct":12,"premiumSeatUsd":30,"premiumSeats":120,"cloudSpendUsd":18000,"cloudReviewPct":30,"aiServicesUsd":2500,"aiMetered":0},"result":{"ok":true,"verdict":"LEAKING","verdictReason":"Estimated leak ≈ 5.0% of managed revenue across 5 areas (score 55/100).","decision":"FIX THE TOP TWO AREAS THIS QUARTER","decisionDetail":"The top two areas below carry most of the loss. The free audit quantifies them precisely from your actual data.","leakScore":55,"estMonthlyLeakUsd":2282,"leakPctOfMrr":5,"recoverableYearLowUsd":13695,"recoverableYearHighUsd":38346,"topArea":"Cloud cost leakage (unreviewed spend)","rankedAreas":[{"label":"Cloud cost leakage (unreviewed spend)","estMonthlyUsd":756,"fix":"Monthly cloud cost review: idle resources, right-sizing, unbilled pass-through."},{"label":"License billing sync (distributor ↔ PSA ↔ invoice)","estMonthlyUsd":463,"fix":"Pre-close reconciliation: compare distributor lines to PSA agreements before invoices post."},{"label":"Unmetered flat-fee AI services","estMonthlyUsd":450,"fix":"Meter usage, set per-client budgets, reprice with governance floors."},{"label":"Licensed-but-inactive premium seats","estMonthlyUsd":432,"fix":"Monthly active-vs-licensed report; reclaim or coach before renewal."},{"label":"Unreviewed distributor invoice lines","estMonthlyUsd":181,"fix":"Line-level review of 100% of distributor charges: duplicates, credits kept, price uplifts."}],"workflow":["1. Snapshot: pull distributor invoices + PSA agreements (3 months).","2. Reconcile line-level: quantities, proration, duplicates, credits, price uplifts.","3. Rank findings by dollar impact; assign owners.","4. Fix before next close: correct PSA quantities and prices, reclaim dormant seats.","5. Prove it: recovered-margin ledger; re-run monthly before invoices ship."],"memo":"Score 55/100. Estimated leak $2,282/mo (5.0% of $45,700 managed revenue/mo). Top area: Cloud cost leakage (unreviewed spend) ≈ $756/mo. Recoverable range $13,695–$38,346/yr*.","questions":["Which distributor lines were reviewed last month, and by whom?","When a client adds seats mid-month, what updates the PSA agreement, and when?","Which flat-fee AI services have usage you cannot see?"],"assumptions":["Leak coefficients are analyst estimates* from 2026 MSP reconciliation patterns; distributor/PSA sync commonly consumes 10–40 hrs/mo of admin labor and frequent product/rate changes are a recognized source of unbilled services.","The free Historical Margin Audit replaces these estimates with deterministic findings from your actual data, each with evidence.","Range shown is conservative-to-aggressive (0.5×–1.4× of point estimate)."],"inputs":{"seatsManaged":900,"avgPerSeatUsd":28,"clients":22,"syncMethod":1,"invoiceReviewPct":40,"seatChangesPerMonth":25,"unusedSeatPct":12,"premiumSeatUsd":30,"premiumSeats":120,"cloudSpendUsd":18000,"cloudReviewPct":30,"aiServicesUsd":2500,"aiMetered":0}}}