AI Principles

At DeakTech we always find it helpful to define first principles when discussing a given topic. What follows is how we view AI, how we use it in our development and in our software, and why trust and security are part of those principles rather than an afterthought. AI is only useful in an ERP system if you can trust what it sees, what it does and what it costs.

Our First Definitions

Our first definitions decide when to use AI and when to use traditional code:

Deterministic

Computing outcomes with fixed logic, so identical inputs always produce identical outputs.

Probabilistic

Generating results from learned statistical patterns rather than guaranteed rules. This is the foundation of modern generative AI.

Writing an explanation or writing software code is a great use of AI, because the result does not need to be exact and it can be reviewed before it is used.

Software that controls a nuclear reactor must make a guaranteed safe decision every time, not merely a statistically likely one, so the control software must run deterministically, even if AI helped write it.

DeakTech follows the same rule. When you ask a report a question, AI chooses the dates and filters, and the system reads the data itself. When AI writes a calculation, a human reviews it and then the system runs it exactly as written, the same way every time.

Consistency and Simplicity

AI is very good at working out what people mean, but only when the meaning is common knowledge. It knows "it's raining cats and dogs" means heavy rain because it has seen the phrase used that way countless times.

An ERP system's vocabulary is not common knowledge. Nothing outside our system tells the AI that a "tax region" is a record with its own tax rates, or that a "lot" is one batch of stock with its own expiry date. Everything it knows about our terms comes from our own documentation. If we call the same thing by two names, or two things by nearly the same name, the AI cannot tell which is which, so it guesses and repeats our loose wording back to the user.

In an ERP system a near-name often means something different, such as a bill to and a ship to, or quantity ordered and quantity shipped, so a guess becomes a wrong answer. That is why we name every page, record and field one way, in full, every time.

Consistency is not a limit on the AI. It is what is required for the AI to be right.

Obfuscation

Obfuscation replaces personal, sensitive or confidential data with placeholder codes before anything is sent to AI. When the answer returns, un-obfuscation puts the real values back, so you read a complete answer and the AI never sees what it should not.

For this to work, the system must build its own prompts and know what to hide and what can be sent as plain text. DeakTech builds every prompt itself, so every record it sends is obfuscated before it leaves your system. What a user types or uploads is sent as they gave it, so what they choose to share stays under their control.

Levels of AI Use

Our second definition set lays out the levels of AI use:

Prompting->Ask a question RAG*->Give it data Orchestration->Make it think in steps Structured Output->Make output predictable Tool Use->Let it act Fine-Tuning->Make it consistent Evolution->Make it learn

*Retrieval-Augmented Generation (RAG) was coined in a 2020 Meta AI paper to describe combining search with language generation. It became the standard way to connect AI to real, up-to-date data.

Prompting

Prompting is the basic use of AI: you enter a question in a tool such as a chat assistant and receive an answer.

RAG

RAG is the single most important factor in using AI well. The system retrieves the data that matters and packages it into a precise prompt. For example, it can send a work center's production statistics and ask for a summary of its performance.

Sending exactly the right context, and nothing more, is what keeps answers accurate and data safe. Obfuscation is part of every such prompt.

Orchestration

Orchestration asks AI questions in a series of steps. Each answer becomes part of the next prompt, and the process can repeat as the work requires. Orchestration combined with tool use is what the industry now calls agentic AI.

Structured Output

Structured Output tells the AI exactly how to shape its answer, so the system can use it reliably.

Tool Use

Tool Use lets AI perform a task. The key question is whether a probabilistic result is good enough on its own, or whether a person must review it.

In DeakTech, AI reads and proposes; it does not change your data, and a person commits the work. Because AI cannot act on your records, instructions hidden in data or uploaded files have nothing to act on. Even with a person in the loop, the gain in productivity is dramatic.

Fine-Tuning

Fine-Tuning trains an existing model further on specialized data. It should be the last frontier you explore. It helps in specific situations but is often not needed.

Evolution

AI tools must learn from their use. DeakTech records when an answer is corrected or acted upon and learns your company's own terms, so answers improve over time.

Trust and Security

Model Agnostic by Design

Every AI request passes through one gateway, so the model can change as the world of AI evolves without changing any feature built on it.

Your Account, Your Terms

AI requests run on your company's own AI account, under that provider's commercial terms. Models that do not train on your data are readily available, and the choice of provider and its retention terms is yours.

AI Is a Permission

AI is turned on role by role, and taking it away applies at once.

Foundational Security is Enforced

Requests to AI go through our system access rules so users are only able to see data they have permission to see in the base system. This enforces limits to different sections such as Accounting. It also enforces data restrictions such as a facility, a sales representative or restricted General Ledger accounts.

Summaries, Not Rows

When AI answers a question about a report, it receives a summary of each column, never the rows themselves.

Everything Is Saved

Every request, exactly what was sent, and its cost are kept for administrators to review.

Stays on Topic

Questions unrelated to your business are refused.

Drill Into the Data

When AI provides you an answer you can generally drill into the underlying data that the answer was built upon so you can audit the accuracy of the process.

Development Constraints

DeakTech uses AI coding agents extensively, and they write code at speeds no human developer can approach. Speed without discipline produces duplicated code, shortcuts and forgotten guidelines, so we govern AI-written code the way we govern our product.

Our development principles are written down, automated rule checks run on every change, and a person reviews every change before it ships.

Vibe coding is a style of development that relies on AI tools, rapid iteration and intuition instead of careful design. THIS IS NOT HOW WE DEVELOP SOFTWARE AT DEAKTECH!

Architecture still decides performance, how fast we can improve, and how predictably and reliably the system runs. AI gives us a dramatic boost in speed; it does not replace thoughtful design and engineering.

Foundational Design

With these definitions in mind, we have exposed every element of the DeakTech foundation (edit objects, data dictionary, reports and more) to our RAG engine, so it can build meaningful prompts for AI. For any system to use AI properly, its foundation MUST be rebuilt so its core definitions are available, obfuscated where necessary, to build those prompts.

AI Primitives are foundational tools built as reusable components throughout the system, so new AI uses can be defined and deployed quickly with tools that are already proven and thoroughly tested.