An Architecture
For Governance
For Governance
You can't govern code paths.
Rules are the governance —
declared once, reused on every path
declared once, reused on every path
This prompt creates a complex charge allocation system that previously took 4 developers 2 years.
See the Allocation Case Study.
Full API, governed from the first commit
Business logic declared once, enforced on every path
Auditable by design — requirement → rule → execution log
AI readable — rules, not generated spaghetti
This result requires infrastructure AI alone cannot provide...
Allocate Charges to Departments,
and to their General Ledger Accounts
See the Reference Implementation
AI alone can create a system from the same business prompt.
The demo looks great. But, when you analyze it, it breaks down.
Three structural failures that prompt engineering cannot fix:
Path-dependent logic — logic lives in API endpoints, not at the commit point. Update a charge, delete a charge, add a new endpoint — the logic does not fire. Silently wrong data.
Dependency ordering — complex business logic has transitive dependencies AI cannot reliably infer. After our A/B test, the AI diagnosed its own failure: "transitive dependencies cannot be reliably inferred from procedural control flow."
Missing requirements — AI pattern-matches to familiar architectures and silently drops what doesn't fit.
All three were explicit in the prompt. All three were absent from the output.
This is not a prompt problem. It is a structural limitation.
Allocate Charges to Departments,
and to their General Ledger Accounts
AI alone also creates a system. It runs.
But is demo-ware -- serious bugs.
See the Allocation Case Study.
Context Engineering directs AI to generate Rules DSL — not procedural code. Without it, AI pattern-matches to FrankenCode. With it, intent becomes declarations.
The DSL distills path-dependent intent into path-independent rules on data. See them in the diagram — Rule.constraint, Rule.sum. No missed paths. Every path inherits them automatically.
The Rule Engine computes dependency order from the DSL at startup — deterministically. No pattern-matching, no subtle ordering bugs.
The Commit Listener hooks into the ORM commit. Every transaction — API, agent, workflow — passes through one control point. Nothing bypasses it.
Rules express Governance: multi-table derivations and constraints, plus actions like send message.
Intent retained: 5 rules replace 200+ lines of procedural code. 40X more concise.
Executed by non-RETE engine, optimized for scalable performance.
Correct by construction.
For example, here is an AI Rule:
Use AI to Set Item field unit_price by finding the optimal Product Supplier based on cost, lead time, and world conditions
This logic (from GenAI-Logic Context Engineering):
Calls LLM with list of suppliers for a product
LLM chooses optimal
That compute the price
Which is then used - and governed - by other rules
For example, if the Suez Canal is blocked, choose higher-priced suppliers other than Cairo
AI can make mistakes, so governance is mandatory:
Results subjected to deterministic logic, automatically
Results audited to database (see slides
Create Backend directly from existing database
Run created system:
• JSON:API, MCP Discovery
• Admin UI
• ORM Configuration
Declare business logic in NL or Python
Declare underlying services (e.g., send email, honoring opt-out)
Build Apps for Business Users to make MCP requests (send email to overdue orders)
MCP requests are governed (eg, email opt-out)
Business Users Enabled
Use an App to make NL requests:
Read / update the database (e.g. find customers)
Send email
genai-logic create --project_name=basic_demo --db_url=sqlite:///samples/dbs/basic_demo.sqlite
cd basic_demo
sh run.sh
GenAI-Logic creates backends instantly, for data access with governance
Vibe your Apps with your favorite Vibe tools using the standard JSON:API
The API encapsulates the logic, so it's inherited - automatically.
This simplifies Vibe:
App Dev is not delayed waiting for APIs.
Logic is factored out of each app - where it never should have been in the first place. Sharing across apps - and services - is automatic.
Once logic is factored out of the UI, logic and app dev can proceed in parallel.
Logic changes are inherited in all existing apps, automatically.
AI scaffolds full applications that developers can refine using familiar tools, backed by the deterministic rules engine.
Install GenAI-Logic and run any use case above as a 10-minute, start-from-scratch evaluation:
one command → a few Copilot prompts → running system (API + Admin UI + governed rules).
Your AI assistant guides you through creation, rule authoring, and debugging, and can answer evaluator questions like:
“Is this a black box?” “Where do rules execute?” “How do I extend logic?”
Install and Start - Choose a Demo
With declarative business logic, creating a system can finally match the way we think about it.
With backend logic governed and deterministic, WebGenAI can generate UI, API, data, and logic from natural language.
Business users prototype in WebGenAI.
IT receives a standard, extensible backend — not a low-code black box.
AI scaffolds full React applications that developers can refine using familiar tools, powered by a deterministic rules engine.
GenAI Logic allows us to further accelerate the development of innovative software solutions that respond to the growing need for digitalization and process automation. Ontimize Web, our low-code web application framework, allows developers to declaratively implement powerful user interfaces for complex business applications. By integrating Ontimize Web with GenAI Logic, we automatically obtain a robust rules-based backend that fully supports the needs of our frontend and a fully documented API.
Furthermore, the generative capabilities of GenAI Logic allow us to automatically generate 90% of the application from a prompt. That’s really impressive! Most importantly, it means that our developers no longer have to manually declare hundreds of user screens, with their corresponding CRUDs, business logic and API endpoints. They can now focus on understanding the business requirements and designing a user experience that customers will love.
Rowbot is a new breed of data management platform that enables a true Data Mesh architecture. It allows non-technical business users to integrate data from multiple disparate databases and create a unified view of activity across the organization.
We output a unified dataset and pass that to GenAI Logic. In 2 minutes we have a fully functional application, allowing an analyst to see customer activity across all participating systems.
Then we can incrementally introduce business rules. These rules can range from alerts based on the data to propensity flags for marketing. Users cannot believe how quickly a unified view of the data can be presented and then enriched by the GenAI Logic rules engine.
I can’t say enough about ApiLogicServer. I’ve been using ALS for a number of years now having successfully delivered several solutions that started as an ALS app. ALS provides us an advantage when not only starting new projects, but also when gathering requirements. Including ALS as a tool within the SDLC has been instrumental in several migration projects as well. This is our bread and butter, and we use ALS more than any other framework in our projects.
I am excited to see the evolution of ALS into GenAI Logic using AI as the nexus for new project implementations. Thank you Val, Tyler and Thomas for a promising and powerful solution. ALS's iterative capabilities are especially helpful; driving the requirements process live with business stake holders. Getting the requirements right is very important in todays competitive market by helping us keep the costs down and ensuring customers are delighted with the outcome.
*“E-Cometa is a platform designed for the front end, enabling you to generate and maintain your forms on the fly, as well as define and manage processes dynamically. For back-end operations, GenAI allows you to define databases using AI and seamlessly integrate them with ApiLogicServer (ALS). ALS then provides the capability to add simple rules, enabling the creation of complex systems that integrate with your data.
By combining both, you will get a very flexible and powerful solution that allows you to create any web and mobile app easily, making it simple to develop and maintain—even if you are not a technical expert.
We also want to thank ALS for making it possible to migrate from the obsolete Live API Creator (a back-end rules engine with RESTful services), ensuring we could continue innovating with a modern and reliable solution.”*