APRON
Procurement teams negotiate supplier quotes by hand, and an AI alone can't be trusted with money.
- My part
- Engineer for Ledgercross: 221 of 644 commits and 67 merged PRs, 2026-09-09 to 2026-10-13 (auth, tenant isolation, AI layer, deploy).
- When
- 2026
- Merged PRs
- 39
- Weeks
- 3
- My commits
- 60
- Autonomy levels
- 4
The problem
Buyers compare supplier quotes and negotiate by hand, and letting an AI decide prices, dates or savings directly is too risky for a procurement team.
What I built
An AI procurement negotiator built around an evidence-backed Procurement Ledger: buyers upload quotes, the AI returns typed candidate facts, deterministic rules verify and compare them, policy decides and a human approves. Money, dates and savings never come from the model.
How
- 01
Auth and tenant isolation
Moved auth from Clerk to a self-hosted Better Auth service with organizations and JWTs, and added Postgres row-level security for every tenant.
- 02
Reading supplier email
Buyer mailboxes through Nylas with a connect flow and folder picker, and quote line extraction (tax, units, tiers, currency, incoterms, freight, terms) with evidence spans.
- 03
AI under control
An AI provider layer with structured outputs, retries and cost logging, autonomy levels 0 to 2 with level 3 behind a production gate, and a tool permission matrix.
- 04
Deploy and recovery
A Dokploy pipeline on Postgres 18 with pgvector and pgbouncer, Doppler secrets, the full e2e suite in CI, and a backup and restore drill with a runbook.
Stack
- Python
- FastAPI
- PostgreSQL
- pgvector
- React
- Better Auth
- Nylas
- Dokploy
More case studies
ScholarHub12,000+ scholarships indexed daily- Keptcash56 merged PRs in 9 days
- OnlistlyExactly-once QR redemption
TTT Autos3D Spline vehicle showcases
Indian Claypit50,000+ customers served- Ledgercross Blog Studio15 MCP tools and 12 commands
- LedgerScanResponsive from 280px to 4K
Student Management System⭐ 17 Stars, 8 Forks
Mario's Multiverse Adventure3 unique game levels
BD News Scraper & Analytics95+ newspaper spiders
Hotel Management System⭐ 15 Stars, 1 Fork
Have something in mind?
My inbox is open.