An advisor payout engine
The situation
The firm pays its advisors from what their clients' accounts actually paid, after fees, splits between advisors, expenses and outside manager fees. The rules are specific to the firm, often down to the individual advisor, and a mistake lands in an advisor's pay.
The firm's billing platform calculates client fees. Everything after that needed its own system:
- what custodians actually collected
- what each advisor and team is owed
- the statements and the payments
Before that system existed, the payout process took weeks.
What I did
Since 2023, I've designed and built the firm's advisor fee, compensation and payout engine, and I still maintain it. The work started with the firm's CEO, and I worked closely with its COO on it. I'm the only developer on the application code, and every change to that code goes through me.
The engine doesn't bill clients. It starts from what was billed and what custodians actually collected. The build took the payout process from weeks to two days.
How it works today. Each pay period, the firm's compensation team:
- loads the billing exports, fee-collection status, expenses and custodian fee files, which arrive in many formats
- reconciles three ways, checking custodian files against two separate reports from the billing platform
- runs the engine
- publishes statements for each advisor and team, and builds the ACH payment file
Safeguards:
- Payment files are built in a single step, after the operator confirms the count, total and date.
- Payouts that can't be paid cleanly are held, and the reason is shown.
- Several imports load completely or not at all.
- Deploys check themselves, and a release that doesn't start cleanly rolls back on its own.
How AI helped
The review in 2026, and the changes that followed it, were AI-assisted. The original build came before that work.
Over time, the code had grown in more than one direction at once, so in 2026 I reviewed all of it using AI tools:
- About 30 AI reviewers swept the code, by area and by type of bug.
- Three AI skeptics then re-checked each serious finding independently. A serious finding counted only if two of them agreed it was real.
My rule: nothing that changes what gets paid is changed automatically. Each such item becomes a written question with a recommended answer. I decide it, or the client does where it's the firm's policy.
Then I shipped the changes in small numbered releases, each with its own tests and a way back. Eleven releases reached production within two weeks of the review starting. Before the final deploys, I proved the new version's payment files were byte-identical to the old version's.
AI tools did much of the reading, checking and building. Decisions about money stayed with people: me, or the client where it's firm policy. In those two weeks, every merge to production went through me.
Results
- The original build took the firm's advisor payout process from weeks to two days.
- In 2026, an AI-assisted review of the whole codebase led to 11 production releases in two weeks.
- Before the final deploys, I proved the new version's payment files were byte-identical to the old version's.
- Deploys check themselves, and a release that doesn't start cleanly rolls back on its own.
What the team kept
The compensation team runs each pay cycle themselves, from imports to the payment file. I handle exceptions and changes. When the team added a new fee tag in their billing platform, I confirmed it needed no code change and gave them three checks to run on their side.