A lot of mid-sized manufacturers did the hard part already. The ERP is piped into Databricks. Retailer POS lands there weekly. Someone built the Power BI dashboards. The data lead is proud of it, and should be.
Then Monday comes, and a planner opens the ERP, exports Time Phase to Excel, and decides 500 parts by hand. The lakehouse knows everything and changes nothing, because nobody built the step between "here is what's true" and "here is what we're doing about it."
That step is the decision layer. This post is about how we put one on top of a Databricks stack without moving the data out of it.
The gap is a decision, not a dashboard
Take a farm-products manufacturer selling gates, feeders and panels through four farm and home retailers. (It's fictional. The demo below runs on synthetic data, and the company and retailers are made up.)
The question supply chain needs answered every week is simple to say: which items are about to stock out on the shelf, and where are we shipping ahead of what's actually selling?
Answering it means joining five things that live in different places:
- ERP shipments: what we sold in
- Retailer POS: what sold through
- Retailer on-hand, store and DC
- A cross-reference from the retailer's item number to our part (one part can sell under our label and a private label)
- The part master
In the lakehouse, every one of those is a Unity Catalog table. A dashboard can show them side by side. What a dashboard can't do is say "ship 400 more of the 16 ft gate to this retailer this week, and protect the tube steel," and then remember that someone said it.
Three lanes, and only one of them is ours
When a company already runs Databricks, there's a clean way to split the work. Their Databricks keeps the data. myai runs the operations layer on top.
Reads go to Unity Catalog, through a SQL warehouse. The app sends plain SELECTs to the customer's warehouse using a service principal they create and grant. In our demo that principal can read one catalog and nothing else. Every query shows up in their audit log under that identity. We enforce read-only on our side too: only SELECT-shaped statements, one at a time.
Decisions get written to Lakebase, Databricks' managed Postgres, in a schema the customer owns. The role we're given can insert and read. It can't update or delete, so the decision log is append-only by construction, not by policy. Their data team can join it back into Unity Catalog and Power BI like any other table.
The operations layer is ours: the agents, the rules each person works by, the apps, sharing, versioning and audit. That's the part that turns a join into a call someone acts on.
There's a third lane people ask about: running the model calls on the customer's own Databricks model serving, so inference lands on their bill. We haven't built that yet, and we'll say so when it ships.
What it looks like
The demo app is called Sell-Through. When it opens, it runs five queries against the warehouse and blends them in the browser into one row per item and retailer:
- Weeks of supply = store plus DC on hand, divided by the last four weeks of POS
- Shipped ÷ sold over eight weeks, which catches sell-in running ahead of sell-through
- Sales at risk per week if the shelf goes empty
Out of 56 item and retailer pairs, it flags three stockout risks, one item where we're shipping well ahead of demand, and one overstock. The worst one is a private-label 16 ft gate at the biggest retailer: 1.6 weeks of supply, POS up 30%, and we've shipped only 82% of what sold over eight weeks.
Open that row and the decision is right there: ship ahead, hold, offer a markdown, or watch. Pick one, add a quantity and a note, and save. That writes one row to Lakebase. The row shows "Decided" from then on, and a Decisions tab keeps the full log, newest first, including what weeks of supply looked like when the call was made.
A Sources tab lists the five Unity Catalog tables by their real names with row counts. No mystery about where a number came from.
What this doesn't solve (yet)
We'd rather say these plainly than have a data lead find them:
- One identity, not per-user grants. Everyone using the app reads as the service principal. "Governed by your grants" means that principal's grants. Per-user Unity Catalog permissions would need on-behalf-of-user tokens, which we don't do yet.
- Your data doesn't stay entirely in your lakehouse. Reads happen under your grants and decisions land in your store, but the rows an agent or app works with pass through our platform, and conversations persist in our work history. The precise line: reads under your grants, writes to your store, our platform holds the working context.
- Compute is real money on your bill. Warehouse time and Lakebase compute show up on your Databricks invoice. Use a serverless warehouse with auto-stop, let Lakebase scale to zero, and don't build apps that poll.
- Live multiplayer features live in our store. Things like row-level visibility and live updates between users work on tables in our platform, not on a Lakebase table. For a pilot, keep working state with us and append the committed decisions to your Lakebase.
Why bother
Because the expensive part of the lakehouse is already paid for, and right now it ends at a dashboard. The people who make 500 decisions a week don't need another view. They need the next step in front of them, with the reason, and somewhere to record what they chose.
If your ERP is already in Databricks, a pilot is mostly a service principal, one catalog, and a Lakebase schema. You keep the data where it is. We build the decision on top.
If that sounds like your stack, talk to us.