Press "Enter" to skip to content

The Engineer Trying to Make AI Safe Enough to Run a General Ledger

Enterprise artificial intelligence has a credibility problem, and the problem lives in the back office. The keynote demos for the new wave of generative copilots are easy to film. Putting one in charge of a company’s general ledger is not. A language model that is wrong about a marketing slogan is a nuisance. A language model that is wrong about a journal entry is a restatement, possibly a regulatory event, and sometimes a fired controller. That is the unspoken reason most of the AI features bolted onto enterprise software over the last two years still sit politely on top of the system, suggesting actions to a human who clicks the button.

The harder question, the one most vendors have quietly avoided, is what it would take to let an AI agent actually run the system without breaking the rules that make the system trustworthy in the first place. Nikhil Jathar has spent a decade earning the right to ask it.

Jathar is the CTO of AvanSaber, the Texas-based software company he co-founded with Varun Borawake, with engineering teams in San Antonio, Pune, and Los Angeles. Over the last decade, his engineering portfolio has produced three IP acquisitions of different shapes: ZapERP, an early SaaS automation platform whose intellectual property was acquired in 2023; ZapInventory, a multi-channel inventory management platform acquired in 2024 by InvenSync Inc. in a transaction that combined cash, an equity stake in the acquirer, and a seat on the InvenSync board for Jathar; and Super Snail, a mobile gaming application whose IP was acquired in 2024 by Hong Kong-based QCPlay Digital Co., Ltd. and which has since passed one million downloads on Google Play under QCPlay’s ownership. He is an IEEE Senior Member. Yet, in his own framing, his true legacy sits at the United States Patent and Trademark Office. This spring, Jathar filed five patent applications as sole inventor on a structural answer to the back-office AI problem.

The lead application, USPTO Application Number 19/650,218, is a non-provisional under 35 USC 111(a) titled “Constitution-Governed Autonomous Software Module Generation with Domain Integrity Guarantees.” Stripped of patent prose, the central claim is straightforward. He designed a system in which one AI agent can write or modify code inside a live financial application, while a second agent, adversarial by design and operating with independent authority, watches the first and refuses anything that would violate the integrity rules of the business below. The first agent is the worker. The second is the auditor. The rules they argue about are written in a form that is mathematically checkable, not stylistically requested.

The architecture of trust

The conventional approach in enterprise software is a chatbot pinned to the side of a traditional application. The agent observes the system. The system itself does not change. Jathar’s view is that this design is a dead end. As long as the AI is a guest of the application, it can never be more than a faster way to look things up.

The product that flows from his thesis is ERPClaw (https://www.erpclaw.ai), an open-source enterprise resource planning system released by AvanSaber under an MIT license. ERPClaw inverts the relationship. The agent is the runtime. Forty-eight modules covering the general ledger, journals, tax, payments, inventory, manufacturing, payroll, and customer relationship management expose roughly three thousand addressable actions to the agent. Fourteen industry verticals layer on top, with regional compliance modules for India, the United Kingdom, the European Union, and Canada. The user issues an instruction in plain language. The agent decides what to do.

ERPClaw is built on OpenClaw, the open-source autonomous AI agent framework whose sponsors include OpenAI, GitHub, and NVIDIA, and which received TechCrunch coverage of Red Hat’s enterprise security work earlier this year. Architecturally, ERPClaw also consolidates AvanSaber’s earlier CraftAgent and EntAgent agent-orchestration products into a single patent-protected platform; CraftAgent contributed agent-generation patterns, EntAgent contributed enterprise-deployment patterns, and the two now sit as the agent layer of ERPClaw rather than as separately maintained products.

Inverting the relationship is the easy part. Making it safe enough that a finance team will let it touch the books is what the patents are for.

Adversarial audits and a constitution for code

Jathar’s lead patent encodes financial invariants, like balanced books and immutable ledgers, into a machine-readable constitution. When a generation agent proposes code changes, an independent adversarial audit agent evaluates them using abstract syntax tree static analysis. The audit agent does not advise. It blocks anything violating the constitution.

This structural distinction matters. Prior AI safety work attempts to make models safer by changing their initial instructions. Those interventions are probabilistic and bypassable. Jathar’s architecture validates the output after generation using deterministic algorithms that do not depend on the model’s cooperation. Advisory guardrails work in marketing copy. They fail in accounting, where one bad write haunts a company for years.

Two companion provisional applications, USPTO Numbers 64/014,862 and 64/014,869, fill in the surrounding architecture. The first describes risk-based tiered autonomy, classifying any proposed change into one of five tiers from fully autonomous to mandatory human review, with content-based escalation that overrides the classifier when a change matches a dangerous pattern. The second describes natural-language module discovery, allowing a business to install ERPClaw by describing itself in conversational text rather than a multi-screen wizard. It is the piece, in Jathar’s framing, that makes the system usable without a consultant on the payroll.

Testing things that are not deterministic

Two further patent applications cover a companion product called TailTest (https://www.tailtest.com). AI agents do not return exactly anything. They return distributions, and a test framework has to evaluate ranges of acceptable behavior cheaply enough to run on every commit. USPTO Application Number 64/026,926 describes a system that watches a development team building an agent and turns the implicit specifications that emerge during development into runnable behavioral tests. USPTO Application Number 64/029,364 covers a tiered assertion architecture that runs cheap deterministic checks on every change and reserves expensive non-deterministic ones for cases where a regression is suspected.

Jathar built TailTest first to maintain ERPClaw’s own behavioral test suite, now past nine thousand tests. Releasing it as a standalone product followed from a recognition he reaches in conversation with striking calm: every team shipping AI agents into revenue-touching workflows runs into the same testing problem within months of going to production, and the problem is not theirs to solve alone.

The underlying research is in front of peer review. Jathar has submitted four papers to IEEE conferences this year, covering Information Reuse and Integration, Computer Software and Applications, and Software Reliability Engineering. Three of the submissions are sole-authored.

A third-party signal the architecture works in production

The ERPClaw integrity architecture is not only a paper claim. ERPClaw Accounting is live on the Stripe Marketplace. Stripe’s marketplace review is one of the more rigorous in payments technology, examining the way an application handles money movement, reporting integrity, and customer data before approval. For an AI-native accounting product whose central architectural promise is that an AI agent can be trusted inside a general ledger, clearing that review is a third-party signal, issued by a payments infrastructure company with no commercial incentive to validate Jathar’s design, that the integrity guarantees hold up in the conditions they were built for.

Why an engineer chose this fight

Asked why he picked the integrity-layer problem, the unglamorous part of the AI stack, instead of the user-facing copilot work most of the industry is racing to ship, Jathar gives an answer that runs against the grain of the standard founder pitch.

“The mid-market has been priced out of serious enterprise software for twenty years, and the AI wave was about to repeat that pattern at a larger scale,” he says. “If the only companies that can safely run AI inside their accounting systems are the ones that can afford a six-figure consulting engagement to babysit it, we have built nothing new. The integrity layer is the part that has to be right, and it is also the part nobody can sell credibly if every vendor keeps it proprietary. I wanted that layer to be the thing the industry can share, not the thing each vendor sells back to its customers. Open sourcing ERPClaw under MIT, and writing the constitution architecture into the patents so the design is documented in the public record, is how we keep the architecture honest.”

The choice to file the integrity claim as a non-provisional first, ahead of the four provisional siblings, signals where Jathar himself thinks the weight sits. Provisionals reserve a date. Non-provisionals start the examination clock.

Whether the architecture survives contact with real customers will be visible over the next two to five years, in whether mid-market businesses, regulated firms, and cross-border operators actually deploy an AI-native ERP for production accounting workloads. Either way, the patents are filed, the framework is in the open, and an engineer with a decade of enterprise software behind him has put his name, as sole inventor, on a structural answer to the question the rest of the industry is still avoiding.

ERPClaw is available under the MIT license at ERPClaw.AI. TailTest documentation is at TailTest.com. AudEng, a compliance-automation application announced publicly in January 2026 as “auditengine,” is at AuditClaw.AI.

Share this article:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *