3PL Cost Leakage Digital Twin

A fulfillment-cost reconstruction connecting rate cards, transactions, fee stacks, evidence, and modeled margin leakage.

Runnable synthetic work sample

Task: Turn synthetic invoice and rate tables into a row-linked exception report.

Contribution: Project direction by Kamal; AI-assisted implementation and verification. The original case and its separate audit-priority scenario are retained.

Inputs → processing → output: Invoice + dated-rate CSVs → strict validation, unique-rate selection and fixed-point arithmetic → linked discrepancies, review states and JSON/display-CSV reports.

Technology: React · JavaScript ES modules · BigInt fixed-point arithmetic · CSV validation · Node test runner

What the reviewer can do: Load the fixture or two synthetic CSV files, change an amount, inspect excluded rows and export the report.

Limits: Bounded USD flat-rate comparison. No live logistics connection, real invoices, audited overcharges, recovered savings, client adoption or commercial freight-audit capability is claimed.

Try the inputs · Inspect implementation · View full case

What changes when you change an input?

Changing a record’s actual or baseline cost recalculates its difference and the total. Audit-coverage switches change conditional invoice priority. Missing evidence, approval or preserved-service support moves a record into human review instead of treating its difference as an avoidable-cost finding.

Computed: Per-record actual-minus-baseline differences, modeled total, conditional invoice priority and review explanations.

Published baseline: The original evidence stages, reconstruction flow, modeled-delta waterfall and baseline figures above remain prepublished evidence. This scenario and the separate runnable CSV sample do not replace them.

Synthetic records only. A modeled difference is not an audited loss, recovered cash or realized saving. No live logistics connection or universal freight ranking is claimed.

From invoice rows to an exception report

USD only; five supported units; inclusive dated rates; no credit memos or FX. Up to 1 MB per CSV, 5,000 invoices and 2,000 rates; browser table shows at most 200 rows.

Interactive comparison controls require JavaScript. The model, fixture and CLI remain independently reproducible without a browser.

Download code, fixtures and tests

Current portfolio résumé · Contact · Implementation evidence