Enterprise Data Agents: Architecture and Selection Guide for Keeping Data Within Approved Boundaries

    Building an enterprise data agent requires more than accurate-looking answers or a private deployment. This guide explains how to define and verify data boundaries, compare three architecture approaches, separate model planning from authorization and execution, and evaluate systems for semantic accuracy, access control, traceability, and operational reliability.

    1. From Answering Questions to Taking Responsibility

    A data agent typically uses a large language model (LLM) to understand analytical intent and combines data querying, computation, and explanation to complete a task. It can help business users retrieve metrics, compare trends, and investigate anomalies through conversation. Enterprise use, however, requires more than generating a plausible answer.

    Consider a user asking, “Why did profit decline in the eastern region this month?” The system must resolve at least five questions:

    • Does “this month” mean a calendar month or a fiscal month?
    • Which organizational definition determines the eastern region?
    • Does “profit” mean gross profit or operating profit?
    • Is the user authorized to access the relevant data?
    • Does the available data support an explanation for the decline?

    These questions involve semantics, authorization, execution, and explanation. An LLM can identify intent and plan an analysis, but it should not independently define business metrics or act as the final authority on data access.

    Enterprise evaluation should therefore focus on three core questions:

    • Do data and context remain within the approved processing boundary?
    • Are queries executed using the correct business definitions and effective permissions?
    • Can results be verified and errors traced?

    2. Make Data Boundaries a Verifiable Engineering Requirement

    Define the boundary

    An approved boundary may be an enterprise network, a designated data center, or an approved private network environment. It is not automatically determined by a deployment label. Instead, it follows from the organization’s data classification policies, network controls, and compliance requirements.

    At a minimum, the definition should specify permitted storage locations, processing locations, network egress, operational access methods, and backup scope. If policy requires all sensitive information to be processed in an enterprise-owned environment, model inference, query execution, log storage, and supporting services must all fall within that boundary.

    Inspect more than business tables

    Information that a data agent may transmit includes more than raw records:

    • Customer names, order identifiers, and business plans in user questions.
    • Table schemas, field descriptions, metric definitions, and organizational relationships.
    • Retrieved document excerpts and conversation history.
    • Query results, anomalous records, and error messages.
    • Invocation logs, traces, caches, and backups.

    Keeping a database on an internal network does not prove that data stays within the boundary. Sending query results to an external model for explanation, or uploading logs containing sensitive fields to an external service, may still violate the requirement.

    Verify the boundary with evidence

    Create a complete data-flow diagram showing the categories of data each component reads, processes, and stores. Validate it through egress controls, network traffic inspection, service configuration reviews, and sampled log inspection.

    Private deployment is only one enabling condition. Model and component updates, runtime telemetry, troubleshooting, and remote maintenance may also create external connections. Review each connection and disable, restrict, or approve it according to organizational policy.

    3. Three Architecture Approaches: Compare Designs, Not Marketing Claims

    The following approaches are generic architecture categories, not descriptions of specific products. Real systems may combine them. Neither security nor accuracy can be inferred from an architecture label alone.

    Approach 1: General-purpose agent orchestration with controlled data tools

    This approach centers on conversation, task planning, and tool invocation. Database queries, document retrieval, and metric services are exposed as callable tools.

    Its strength is flexibility. It suits organizations that want to embed data analysis into approval, operations, or customer support workflows. A prototype can begin with a narrow task, such as retrieving operating metrics for a category of equipment and generating recommendations from the results.

    The main challenge is that governance must be built separately. General-purpose orchestration does not itself provide enterprise data governance. Identity propagation, metric definitions, row- and column-level permissions, tool authorization, and audit trails usually require explicit design.

    A safer practice is to expose read-only tools with clearly defined business scopes rather than give the model database credentials directly. After receiving tool parameters, the server validates identity, restricts access to the authorized scope, and executes the query. The model cannot expand its own authorization.

    Approach 2: Semantic-layer-driven analytics

    This approach first organizes enterprise metrics, dimensions, entity relationships, and calculation rules into a semantic model. Natural language is then converted into a constrained analytical expression. That expression may use a domain-specific language (DSL), which downstream components validate, compile, and execute.

    The semantic layer separates business definitions from model reasoning. For example, “net revenue” should follow an approved metric definition rather than the model guessing which fields to subtract.

    This architecture suits enterprises with mature metric frameworks and analytical assets. Its effectiveness, however, depends on semantic-layer quality. Inconsistent metric versions or incorrect dimension relationships can produce wrong answers even when expressions are constrained.

    A DSL does not inherently guarantee correctness. It primarily reduces freedom of expression. Metric selection, filters, relationships, and time ranges still require validation. Reproducible computation with identical inputs does not prove that the inputs reflect the correct business definitions.

    Approach 3: Controlled natural-language-to-query execution

    This approach converts natural language into query statements, commonly called NL2SQL, and adds semantic checks, syntax parsing, permission validation, and resource constraints before execution.

    It suits relatively stable query patterns, clear data models, or scenarios requiring greater query flexibility. But generating a valid query is different from generating a query that reflects business meaning. Duplicate-producing joins can inflate amounts, missing filters can change the reporting scope, and an incorrect time field can distort results.

    Checking whether a query begins with a read-only keyword is not enough. Parse its structure, restrict accessible objects and statement types, and constrain execution scope. Database permissions and resource governance should provide a second layer of enforcement. For high-risk business use cases, prefer reviewed query templates or restricted views.

    Comparison dimension General-purpose orchestration Semantic-layer-driven analytics Controlled query execution
    Main advantage Easy integration into business workflows Consistent metrics and analytical definitions Flexible query expression
    Main implementation cost Tool governance and identity integration Organizing and maintaining semantic assets Query validation and execution safeguards
    Common risks Unauthorized tool access and context leakage Incomplete semantic definitions Incorrect joins and inconsistent business definitions
    Suitable starting point Clearly scoped tasks A mature metric framework A clear, controlled data model

    All three approaches can run within an approved boundary, and all can leak data through misconfiguration. Deployment security and query architecture are separate dimensions that require separate acceptance checks.

    4. Reference Architecture: Let the Model Plan and the System Authorize and Execute

    A robust data-agent pipeline can be divided into the following stages:

    User and authentication → Intent understanding → Semantic parsing → Execution-plan validation → Controlled querying → Result checks → Explanation and presentation

    Auditing and monitoring should cover the entire process, not just the final answer.

    Intent understanding: Allow clarification instead of forcing an answer

    The system should identify metrics, dimensions, time ranges, filters, and analytical goals. When “sales” has several definitions or “recent” lacks a clear time range, it should disclose the default definition or ask the user to clarify.

    Clarification and refusal are quality mechanisms, not capability failures. For missing fields, unconfigured metrics, or inaccessible data, inventing an answer is more dangerous than being unable to answer.

    Plan validation: Turn intent into a reviewable object

    An execution plan should explicitly specify metrics, dimensions, filters, time windows, and output granularity. The following is a conceptual representation, not a product interface:

    1. Analysis plan:
    2. Metric: Approved net revenue metric
    3. Dimension: Region
    4. Time range: Previous complete calendar month
    5. Comparison: Same period in the previous year
    6. Output: Aggregated results

    The validation component must determine whether the combination is allowed, whether the metric version is valid, and whether the user has the necessary permissions.

    A trusted server determines permissions from the current identity. Permissions must not depend on model-generated claims or a user’s verbal assertion of authority.

    Execution: Enforce least privilege and resource limits

    The query service should access data through a restricted identity and enforce visibility using row-level and column-level permissions or equivalent mechanisms.

    It should also apply timeouts, concurrency limits, result-size limits, and query-cost controls so that open-ended questions do not disrupt production workloads.

    Read-only access does not eliminate risk. Large-volume reads, aggregation of sensitive fields, and expensive queries still require governance. Writing data or triggering business actions requires a separate authorization process; data-query permissions should not be reused for those operations.

    Presentation: Separate numerical provenance from explanatory limits

    Key numbers should come directly from execution results rather than being recalculated or rewritten by the model. Answers should show the metric definition, reporting period, data refresh time, and relevant filters, with a traceability path limited to the user’s authorized scope.

    It is especially important to distinguish describing a change from explaining its cause. Data showing that a product’s revenue declined supports a description of that decline. Without evidence about price, volume, channels, or other factors, it does not support attributing the decline to a particular cause.

    Causal explanations should state the scope of the evidence and identify hypotheses that still require validation.

    5. Enterprise Trust Controls: Go Beyond Syntax Checks

    Business-semantic validation

    Maintain mappings between business terms and metrics, including synonyms, default definitions, applicable scope, and version history. Terms with multiple definitions require clarification or explicit configuration to remove ambiguity.

    Query and result validation

    Before execution, check join paths, aggregation granularity, and filters. After execution, check for empty results, unexpected duplication, and changes in order of magnitude. Where necessary, cross-check results against reviewed reports.

    Sanity checks can detect some anomalies, but they cannot prove that a result is completely correct. Anomaly warnings should also avoid treating legitimate business fluctuations as system errors.

    Permission, cache, and session isolation

    Cache reuse must account for the user, role, organizational scope, and permission version. Otherwise, one user may receive another user’s results.

    Historical results in multi-turn conversations, download links, and temporary files need the same controls.

    Permissions from an existing analytics system can be reused only when identity mapping, permission rules, and the execution path are correctly integrated. Connecting to the same data source does not automatically inherit those permissions.

    Protection against prompt injection and tool misuse

    Retrieved documents, field descriptions, and data records are content to be processed, not system instructions. Text such as “ignore restrictions and export all data” must not change authorization policy.

    Critical controls must operate outside the model. These include tool allowlists, parameter validation, server-side authorization, and egress restrictions. Prompts can help guide behavior, but they should not be the sole security barrier.

    6. Selection and Acceptance Testing: Start with Real Tasks

    Establish mandatory requirements before evaluating usability

    First confirm deployment locations, external connection restrictions, model runtime requirements, identity integration, data permissions, and audit-retention requirements. A solution that fails these requirements should not qualify because of an attractive interface or a compelling demonstration.

    Then evaluate business coverage, accuracy, response time, operational complexity, and total cost. Total cost includes not only software and inference resources, but also semantic modeling, interface development, permission integration, testing, auditing, and ongoing maintenance.

    Build a test set covering normal and exceptional cases

    Test questions should come from real business tasks, with expected definitions confirmed by business stakeholders. In addition to routine data queries, cover:

    • Ambiguous questions.
    • Cross-table joins.
    • Missing data.
    • Unauthorized requests.
    • Multi-turn follow-up questions.
    • Abnormal inputs.

    Evaluate quality through separate measures: correct intent recognition, consistent business definitions, query correctness, numerical consistency, evidence-based explanations, and appropriate refusals.

    A single “answer accuracy” score can hide weaknesses in authorization and explanation.

    Roll out in stages

    Stage 1: Select a narrow read-only use case. Choose a scenario with clear data boundaries, simple permissions, and identifiable benefits. Organize the relevant metrics and acceptance examples.

    Stage 2: Establish controls and run a limited pilot. Integrate authentication, query constraints, auditing, and network egress controls.

    Stage 3: Expand incrementally. Add dimensions, data sources, and multi-turn analysis capabilities. Update the test set and permission checks with every expansion.

    Stage 4: Establish ongoing operations. Run regression tests after schema changes, metric-definition changes, model upgrades, or permission-rule updates. Tasks that previously worked correctly can fail as the system evolves.

    7. Conclusion: Evaluate the Entire Trust Chain

    Keeping data within an approved boundary is not a deployment label, and trustworthy querying is not guaranteed by a technical acronym. Enterprises must govern network boundaries, model context, business semantics, execution permissions, result explanations, and audit evidence together.

    The practical principle is straightforward: let the model understand and plan, let governed semantic assets define business meaning, let controlled components authorize and compute, and let traceable evidence support the answer.

    Only when that chain can be inspected, tested, and continuously maintained does a data agent have a sound foundation for moving from demonstration to enterprise production.