Customer story · Homegrown

Homegrown lends on spreads it can trust

Homegrown sends borrower packets as they arrive. Cortex runs each spread as a program in which a business cannot be counted twice, and hands back the questions the documents leave open, ranked by what they decide.

Figure 1 Cortex sorts a borrower's files into its ownership tree and uses the combined statement as a check. Illustration with invented figures.

Homegrown finances restaurant groups and other multi-location operators opening their next location, including through a partnership with a major payments platform. Their files are among the hardest in lending to read.

Homegrown is a sophisticated lender. Its team built its own underwriting platform and the agentic workflows behind it, which take each packet section by section, lay out the spread, tie each figure to the page it came from, and hold the owner's books against the tax returns and the bank within set tolerances. No adjustment is saved without a reason. Homegrown also brought in the leading spreading vendors. They handled the clean cases and fell short on the nuance and complexity of real multi-location groups.

What Tapan Patel, Homegrown's CTO, wanted next was harder: a tool that hands his team only the questions to ask the borrower, with everything else already right, and knows which parts are still open. On Homegrown's own deals, Cortex got far more right than the vendors had, and earned the underwriters' trust within weeks. Homegrown is now moving its spreading onto Cortex.

Neither a playbook nor a model in charge

There have been two ways to automate this work. A fixed workflow mines the business process, writes every rule down and follows it rigidly. The playbook never covers every case, and it breaks on the first packet nobody planned for. That is how a group's combined statement ends up added on top of its own locations.

The other way puts a frontier model in the center and lets it drive. You get a fluent spread back, lose control over which path the model took to get there, and cannot tell which cell is wrong without checking all of them. You beg and plead with the model to follow the rules, and fix one deal only to break another. Tapan has put each new model through this himself and knows the pattern well.

We switched to the newest models. It got a little better each time, but the fundamental problem doesn't go away. You run it five times and it's different five times.
Tapan PatelCTO, Homegrown

We are not sure which is worse, a model blathering that it will get it right or thousands of rules nobody can reconcile. The second is where expert systems ended up, and the first is where most agents are today. Frontier models can fly on work like this once you stop asking them to run the show. Take what can be codified and formalized, enforce it, and give the model the parts that need fluid judgment.

What goes wrong between the pages

The documents arrive however the owner's bookkeeper exported them. A packet holds statements for each location and often a combined one for the group, returns filed under each LLC, months of bank statements, a debt schedule and the owner's own spreadsheets. Nobody says which file belongs to which company. One group can run to dozens of companies under two layers of holding companies, with an outside investor in one location, a chef who owns half of another, a management company billing every location, and a landlord company the owner holds personally.

There's no standard format for how you produce a P&L. Everyone produces it differently.
Tapan PatelCTO, Homegrown

Tax returns use legal names, statements use trade names, and what the owner says about the group may not match the documents. A combined statement already includes its locations, fees one business pays another cancel out for the group, and money moving between the borrower's own accounts is not revenue. Fiscal years, year to date and partial years have to line up before anything is compared or annualized, a statement printed in thousands looks like a business a thousandth the size, and only the debts owed on the day of the offer count toward debt service. Get any of these wrong and the spread still looks fine.

Who is in charge

Figure 2 The same packet run three ways. Invented group.

Models read these pages well, but a spread has to stay true across dozens of documents and hundreds of figures. Held in a model's head, that structure drifts across a transcript where nobody can check it.

In Cortex a reasoning engine runs the work and calls a model when it needs judgment. The spread is a program in a small language for spreading, with words for what an underwriter works with: a group, its businesses, who owns what share, which statement covers which businesses, which fees cancel inside the group. A business counted twice cannot be written in it. The engine calls a model to read a page, to recognize what a statement is, or to decide whether two names are one company, and records each judgment with the evidence for it so it can be checked and overturned. Everything else, the arithmetic included, runs as code.

A prompt is a suggestion. Where we know how to enforce a property, we should enforce it, which is the argument of Reasoning as a systems problem. Here the property is that no business is counted twice, and the language has no way to say otherwise. Checks are for what cannot be enforced, such as whether the owner's books agree with the bank. And you do not need a Lean proof for everything. You need the right level of abstraction for the domain.

We write these languages with frontier models, and our aim is for each new domain's language to be synthesized rather than built by hand. Better models will not make this layer obsolete, any more than faster processors made compilers obsolete. When a better model ships, Cortex reads better, and the rules and the reviewer's decisions stay in the program, whichever provider the model comes from.

When two documents disagree

Figure 3 One figure, every route that reaches it, and the question raised when one route disagrees. Invented figures.

Plenty of document tools now link a figure to the page it came from. Homegrown's platform already did, and Cortex does too, with every reading held to the page's own totals, to the cent. The hard parts are calculated figures, which have no single page to point to, and documents that disagree.

Each figure in the spread is a claim, and Cortex keeps every route that reaches it, from the business's own statement to the combined statement, a sum of months or the tax return. Agreement with a source the owner did not write corroborates the figure. A disagreement becomes an open question that says which figures its answer would settle. Every number is marked solid, a range, or blocked until something is answered.

If a number has no source behind it, no record of how it was calculated and how confident you are in it, I might as well not look at it.
Tapan PatelCTO, Homegrown

A check has to do something

I compare labor, rent and cost of goods as a share of revenue on the tax return with the same shares on the financials. They move a little year to year. If rent went from ten percent of revenue to two, that would raise the hair on my neck. If they line up, I can trust the financials.
Ian GloerCOO, Homegrown
Figure 4 The owner's books against sources the owner did not write. Each check fixes, blocks or asks. Invented figures.

A profit and loss statement is the owner's account of the business, so Cortex holds it up against the bank and the tax returns. A check that only raises a flag hands the work back to the underwriter, so every check in Cortex has to say what happens when it fails. When independent evidence agrees, it fixes the figure, and two comparisons showing a statement was printed in thousands are enough to correct its scale. When it cannot fix it, it blocks the figures that rest on it, and they show no value rather than a wrong one. Otherwise it asks the borrower for the specific document that would settle it, and says which figures in the deal will move.

Each check needs its own tolerance.

Tips go into the bank account but never show up on the P&L, so deposits won't line up perfectly. Payroll should be close. Rent should be spot on.
Ian GloerCOO, Homegrown

Homegrown's underwriters had already built that judgment into their platform's flags. In Cortex it is written into each check, along with the innocent explanations that keep coming up, so a business that keeps its books on a cash basis is not flagged on every deal for carrying little that customers owe it.

Asks before it guesses

Every adjustment needs a reason, and the reason is very human. Then everything downstream has to change with it.
Tapan PatelCTO, Homegrown
Figure 5 Cortex raises a question it cannot settle from the documents, and the answer moves every figure that depends on it. Invented figures.

Underwriters make judgment calls all the time, such as which costs were one-offs to add back or which loans the new financing pays off. In most tools that judgment is an edit in a spreadsheet cell, lost the next time someone rebuilds the file.

Cortex does not wait to be corrected. When the documents leave a real choice open, such as whether a catering arm with its own bank account is a separate business, it flags the choice and asks before it guesses, and says which figures the answer will move. The answer becomes a line in the program. A reviewer inspecting a decision can also step in and redirect it in plain words, and sees exactly what changed. Correct a model in a chat and the rest of its context shifts too. Here a correction changes what depends on it and nothing else, because every figure knows what it was derived from.

Each decision is recorded against the version of the deal it was made on, and it can be undone. A rebuild replays the decisions without calling a model and matches the published deal byte for byte, and a fresh reading of the same pages is held to the same totals and checks, so a figure read differently on a second run does not slip through.

What changed

Typical spreading With Cortex
Documents Assigned to entities by hand first Sent as they arrive
Combined statements Added to the locations Used to check the locations
Two documents disagree Two numbers on screen One question, with the figures it moves
Bank and tax checks A separate exercise Part of every spread, each with a consequence
A reviewer's call An edit in a cell A line in the program, with what it moved

Homegrown's underwriters reviewed the spreads on live deals and chose to move their spreading onto Cortex, with spreads, checks and open questions delivered into Homegrown's own platform. The rules and tolerances Homegrown's underwriters worked out deal by deal are now written into Cortex, where they apply to every packet. Tapan described where this ends up.

Just upload documents and make an offer. If that existed, it's a real easy yes for us.
Tapan PatelCTO, Homegrown

Our thanks to Tapan, Ian and Homegrown's underwriters, whose questions shaped much of what Cortex does on a deal.

SQL does not care whether it runs for a hospital or a retailer, and the core of Cortex does not care about lending. The rows of a spread, the checks and Homegrown's rules sit on top as vocabulary. Next we are taking it to healthcare billing, legal review and banking, wherever someone signs their name under the answer. Our first public result in another domain is Cortex on τ³-bench.

Cortex is in early access. If your team makes decisions from documents you do not control, talk to us.