Sorry, there are currently no results available

Projects

News

Recent Publications

Videos

Offices

CONSULTING

What if your database had a team of experts evaluating every change before it was applied? 

Liney Marcela Barrios Julio
Data engineering | Linkedin

This is how the new intelligent agent architecture for governing database operations works 

Data management is no longer just about storing information and running Structured Query Language (SQL) queries, the standard language used to interact with databases. In increasingly interconnected architectures, seemingly simple modifications to tables, views, or stored procedures, database objects that encapsulate SQL instructions to automate reusable operations, can have ripple effects on other components of the ecosystem. These effects can impact reports, ETL (extract, transform, load) processes, which are responsible for integrating and transforming data across different systems, as well as applications and business processes that depend on that information. 

Think of the mechanism of a clock. Moving a single part, no matter how small it may seem, causes all the others to move in a chain reaction. Data architectures work similarly: a minor change to a single object can affect dozens of connected processes. 

As these architectures become more complex and interconnected, the risks associated with each change increase. These risks include hidden dependencies, difficult-to-anticipate impacts, and errors that affect critical processes. In this scenario, understanding the context and scope of a modification is just as important as the modification itself. 

Artificial intelligence is transforming the way we interact with these environments. Today, it is possible to retrieve information, generate SQL queries, or propose changes to a database using natural language. However, the real challenge is not producing code faster but understanding the context of each change, evaluating its implications, and making informed decisions about increasingly interconnected data systems. 

At this point, artificial intelligence can evolve from being a simple code generator to becoming a layer of knowledge and assistance for database management. 

AI is evolving beyond simply generating code to become an intelligent layer that understands context, assesses impact, and supports safer decision-making across the database.

Artificial Intelligence as a technical assistant

AI represents a great opportunity to transform how data teams work and make decisions. Currently, queries, stored procedures, and entire structures can be generated using natural language.
However, quickly generating code does not guarantee that it is secure, complies with standards, accounts for dependencies, or preserves the stability of the environment. For this reason, this approach does not use AI as a simple SQL generator but rather as a system capable of understanding intent, coordinating specialized knowledge, and applying governance criteria before taking action.

For instance, when prompted to “add an email field to the customers table,” a traditional generator would simply execute the change. In contrast, this system first analyzes the associated dependencies and impacts. Then, based on that context, it proposes a safe modification.
The solution: An intelligent architecture for managing databases

This solution is an intelligent architecture designed to support database operations in a more secure, contextual, and structured manner.

Rather than interacting directly with multiple technical processes or making changes in isolation, users work with a single assistant that can understand the intent behind each request and coordinate the necessary internal workflow to resolve it.

To better understand how this model works, consider the operation of an emergency room. A patient does not choose which specialist to see directly. First, they are seen by a general practitioner—the primary agent—who assesses the case and refers the patient to the correct specialist based on their needs. Similarly, the user does not need to know which technical component will resolve their request. The primary agent interprets the need and directs it to the appropriate subagent.

At the core of this architecture is a Lead Agent, which is an artificial intelligence component that can interpret requests, reason about them, and coordinate actions to achieve a specific goal. In this case, the Lead Agent’s role is to understand the context of the conversation, maintain continuity throughout the interaction, and determine what type of operation needs to be performed on the database.
Based on this interpretation, the system activates specialized subagents, that is, agents designed to solve specific aspects of the problem. Each subagent focuses on a particular type of database object, providing validations and analyses tailored to each scenario. For example:

• table management

• view management

• creating stored procedures

• modifying stored procedures

• architecture, impact, and data governance validations

Each subagent incorporates logic and validations specific to the type of object it manages. This enables more accurate, context-aware decisions and analyses.

Additionally, specialized subagents use reusable skills, which are capabilities that encapsulate technical knowledge, design patterns, validations, and data engineering best practices. This allows for consistency across operations, reuse of common capabilities, and modular evolution of the system’s knowledge.
The result is a unified, conversational experience in which users interact with a single technical assistant while the underlying architecture coordinates the necessary components to consistently analyze, validate, and execute each operation in line with best practices.

How it works internally

The architecture is based on three complementary layers that coordinate to interpret requests, apply validations, and execute database operations.
1. Main Agent

The Main Agent serves as the primary point of interaction with the user.

Its responsibilities include answering questions, carrying out instructions, and understanding what the user is trying to achieve within the current work context.

Its main functions include:

interpreting the intent of the request

maintaining conversational context

coordinating the workflow

determining which functional domain is involved

activating the appropriate sub-agent

consolidating a coherent response for the user

Thanks to this orchestration layer, the experience remains unified, even when multiple specialized components are involved internally.

2. Specialized Subagents

Specialized subagents represent the second level of the architecture. They are responsible for executing the database’s domain-specific logic. This specialization enables each type of object to be managed with criteria, validations, and analyses tailored to its specific characteristics. The result is more accurate responses and a reduced risk of indiscriminately applying changes.

Table Management

This sub-agent oversees operations related to creating and modifying tables. It assesses aspects such as structural integrity, existing dependencies, and the potential impact of changes on other system components.

For instance, when a user requests adding a new column to a sales table, the subagent automatically identifies the reports and ETL processes that use it. This prevents the change from causing a cascade of errors.

View Management

This subagent handles operations on views. It verifies that modifications are compatible with objects and processes that depend on them. It also validates their structural and functional consistency within the data architecture.

For instance, if a view used by several reports or dashboards is modified, the subagent validates that the new definition remains compatible with each consumer before applying the change.

Creation of Stored Procedures
The goal is to support the design of new stored procedures by promoting consistent structures, good development practices, proper error handling, and the efficient use of database resources.

For example, when creating a procedure to calculate monthly indicators, the subagent suggests appropriate error and transaction handling to avoid fragile procedures that fail when faced with unexpected data.

Modification of Stored Procedures

When proposing changes to an existing procedure, the subagent analyzes its current behavior, identifies potential dependencies, and assesses the impact of the modifications to ensure compatibility and stability of the environment.

Therefore, before modifying the logic of a procedure that feeds into a nighttime batch process, the subagent identifies which other processes depend on it and notes whether the change could affect past results.

Governance and Cross-Functional Validations

This subagent complements the work of the others by applying controls related to architecture, technical standards, risk analysis, and overall operational consistency, ensuring that every decision aligns with the defined best practices for the platform.

Thus, if a change exposes sensitive data without the appropriate security validations, the subagent halts the operation and requests adjustments before proceeding.
Together, the subagents enable each operation to be analyzed from the perspective of the involved object, providing a greater level of context, accuracy, and security throughout the decision-making process.

3. Reusable Skills

Skills are reusable capabilities that subagents use to perform specific tasks and apply common criteria. They encapsulate technical knowledge that can be shared across different components, preventing duplication of logic and facilitating the standardization of aspects such as:

generation of standardized SQL structures

nomenclature validations

error-handling patterns

dependency analysis

security validations

application of organizational standards

These skills function as a shared toolbox among specialists. Rather than each subagent “reinventing the wheel” when validating a nomenclature or analyzing a dependency, they all refer to the same set of rules and best practices.

This ensures consistency without duplicating effort. This approach allows knowledge to evolve modularly and be reused in different scenarios without affecting the architecture’s overall behavior.

Key features

Intent-based orchestration

The system doesn’t just execute technical instructions to the letter.

First, it interprets what the user is trying to achieve. Then, it determines the most appropriate workflow to address that need within the context of the database.

This enables more natural conversations and reduces the need for rigid, overly structured interactions.

For example, if a user types, “I need to optimize the sales upload process,” the system understands that this likely involves reviewing related tables, procedures, and indexes without the user having to specify every technical step.

Domain-specific specialization

Different database objects present different risks and requirements.

For example, the validations carried out on a table differ from those applied to a view or stored procedure.

Specialization allows for more in-depth and context-specific analyses.

Impact assessment
Before proposing or implementing any changes to the database, the system performs an analysis to understand the potential impact of the operation within the environment.

To this end, the system assesses dependencies between objects, structural relationships, compatibility with existing users, operational risks, and possible side effects on other related processes or components.

This approach anticipates risk scenarios, significantly reducing the likelihood of unexpected errors or disruptions to critical systems.

Therefore, before modifying a view used in financial reports, the system automatically detects the dependency and issues a warning before applying the change.
Operational security and technical consistency

The architecture incorporates mechanisms designed to maintain the stability and reliability of the data environment. Before proposing or implementing any modification, the architecture analyzes the scope of the change, validates existing dependencies, and assesses the associated risks to minimize any potential impact on other objects or processes. It consistently applies standards and best practices to every operation to ensure that modifications are carried out in a controlled and secure manner in line with the platform’s defined criteria.
Examples of application across different industries
Although the described use case focuses on database management, this type of architecture, based on specialized agents and skills, can add value across multiple sectors.

Financial sector. For example, before modifying a table used in regulatory reports, the system automatically identifies the compliance processes that depend on it, thereby reducing the risk of errors in reports submitted to regulatory bodies.

Retail and consumer goods. When adjusting an inventory view, the system anticipates the impact on product availability dashboards and restocking processes to prevent decisions based on out-of-date information.

Energy and industrial sectors. In environments where multiple monitoring and operational reporting systems rely on the same data sources, the architecture enables the impact of each change to be assessed before implementation, thereby reducing the risk of disruption to critical processes.

Telecommunications. When modifying procedures that calculate service indicators, the system verifies that the changes do not affect billing or existing quality reports.

The common goal in all cases is to transform scattered technical knowledge into a structured system that anticipates risks, reduces errors, and standardizes the management of changes to data.

Benefits of the approach
The solution significantly improves the management of database operations by reducing reliance on individual expertise through automatic validations and contextual analysis before implementing changes.

It makes decisions that take into account dependencies, risks, and potential impacts on other components of the environment. This increases operational security and reduces the likelihood of errors in critical systems. Additionally, all operations adhere to consistent design, validation, and governance criteria, enabling greater technical standardization across teams and processes.

The architecture also facilitates knowledge scalability, as best practices and validations become part of the system through specialized agents and reusable skills, rather than being distributed solely amongst individuals. Thanks to its modular design, new domains or capabilities can be incorporated without affecting the user experience or the solution’s overall functioning. The separation between orchestration, specialization, and reusable knowledge improves the system’s long-term maintainability and evolution.

Conclusion

In increasingly complex data environments, the challenge is not only to implement changes quickly, but also to understand their potential impact before introducing them and to make more informed decisions.

Artificial intelligence’s true value emerges when it can understand context, coordinate specialist knowledge, and apply governance criteria before carrying out an action. However, this does not eliminate the architect’s role. Rather, it transforms and enhances it. The architect continues to define the principles, rules, limits, and decisions that guide the solution while AI assists in applying that knowledge to operations in a more consistent and scalable manner.

The developed architecture represents a step toward this model: a system in which AI interprets intent, coordinates specialized agents, reuses technical knowledge, and applies quality controls while the architect remains responsible for defining the criteria that guide its operation. For IDOM, this approach enables the company to channel the experience and knowledge of its professionals into increasingly intelligent, governed, and reusable solutions. This helps transform best practices in architecture and engineering into capabilities that can be applied consistently across different projects and contexts.