A generated query can run perfectly and still encode an unapproved definition.
Imagine asking an analytical assistant for net sales this quarter. It generates syntactically correct SQL, selects appropriate-looking columns and returns a result without an error.
Does net sales include refunds? Does it exclude taxes? Do discounts count when ordered or when recognised? Which calendar defines the quarter? Are we discussing sales orders, invoiced value or recognised revenue?
These questions do not disappear because a query engine executes successfully. They precede the query.
That is why I don't see natural-language-to-SQL as the finish line for governed self-service. It can be an excellent implementation technique. But the business problem is larger than translating words into executable syntax.
Query generation solves a real problem
Natural-language interfaces can remove one formidable barrier: the need to know a database's tables, fields, query language and analytical tools before exploring information.
For a bounded domain with a carefully designed semantic layer, appropriate permissions and testable metric definitions, an agent capable of producing or delegating the right query can make existing data materially easier to use.
There is no reason to reject that progress.
The trouble begins when a successful transformation from question to SQL is treated as evidence that the system has resolved every decision necessary for an appropriate business answer.
A query generator may choose a table, infer a join, select an aggregation and interpret ambiguous business words. Each choice can have consequences that belong outside the SQL generator itself.
In a well-governed native environment, those decisions may already be constrained by the platform's semantic model and permissions. In a more diverse environment, the same phrase may correspond to several legitimate measures across different domains. Making that distinction explicit is more useful than framing every implementation as either “AI-driven” or “legacy”.
The schema is not the business contract
A database schema describes where and how information is represented. It can supply valuable discovery clues. But a physical object name does not automatically establish the authoritative meaning of the business.
A field labelled status does not explain which states count as active for every department. A table named customer does not settle whether the subject is a purchaser, subscriber or account holder. A field named revenue does not define every accounting recognition rule.
Semantic models can be a far stronger starting point because they intentionally define business-facing metrics, dimensions and relationships. Even then, a model belongs to a context, has an owner and supports a bounded set of questions.
The framework I am exploring treats governed business definitions and contextual relationships as separate from the provider-specific instructions needed to execute them. A Semantic Capability identifies the approved business function that can fulfil a class of requests. A Service Binding connects that capability to a suitable native or custom implementation. The adapter understands the selected provider's mechanics and limitations.
That abstraction does not eliminate the provider, invent common semantics between unrelated models or guarantee portability without testing. It makes the shared intent and decision boundaries inspectable.
From words to meaning, then to capability
A more complete request path can be expressed in ordinary language:
First, understand the question. What business result is needed? Which time period, grain and context matter? What can be reliably resolved without further interpretation?
Next, consult governed knowledge. Which approved definitions, owners, synonyms and capability relationships apply? Are there several plausible meanings, and would choosing incorrectly matter?
Then, evaluate the permitted action. Does the requester have the necessary authority? Is the candidate capability current and supported for the output requested?
Finally, invoke the capability. The selected service decides how to use the provider's native interface or, where necessary and explicitly supported, an allowlisted or generated query within the provider's constraints.
The distinction is not simply adding more boxes to a flowchart. It is assigning accountable ownership to decisions that a system might otherwise take silently.
A model may assist in interpreting language; it should not approve a metric definition. A search index may retrieve candidate knowledge; it cannot become the policy authority. An adapter may translate semantics into provider operations; it should not invent a different business question because the original one is inconvenient.
Technical view: Why natural language to sql is not the finish line
A reusable knowledge base changes the economics of interpretation
The architectural proposition extends beyond selecting a target model.
Suppose a recurring business question has already been resolved against an approved contextual definition and a governed capability. That relationship, its owner and policy references should be available for future eligible requests. The system should not require an expensive fresh interpretation every time if reliable context is already known.
A localised knowledge base can also retain experiential evidence: synonyms users apply, intent patterns, validated routing observations and evidence of recurring gaps. Its governance lifecycle matters. Low-impact patterns may be automatically eligible after policy thresholds, tenant checks and contradiction validation. Material semantic changes require human review.
The separation between observation, activation assessment, approved meaning and execution protects the organisation from letting repeated guesses accumulate into false certainty.
Contracts between the four framework responsibilities help carry those distinctions even when native platforms or model providers change.
The potential effect is more direct routing and fewer unnecessary model invocations. But the benefit must be evaluated with controlled comparisons: equivalent first-time and repeated requests, similar infrastructure and model configuration, and measures of latency, invocation frequency, cost and correctness. The MVP fixed-catalogue demonstration cannot show live-LLM savings, because those deterministic test requests do not need a live LLM call in the first place.
Discovering several capabilities is not authorising their combination
A business user might ask a question that involves customer behaviour, shipment performance and product categories.
The framework may need to discover relevant knowledge across those areas. But retrieving three candidate capabilities does not authorise the agent to create a new metric by joining their results.
Different models may have different grains, periods, populations and policy restrictions. An automatic combination can produce an apparently plausible result that nobody has actually defined or approved.
In the initial framework design, each request resolves to one governed Semantic Capability. A cross-domain question with no suitable capability becomes a visible gap. That unmet demand can be collected as evidence for a new, separately governed composite capability, with clear semantic scope, source lineage, ownership, approval and service binding.
The reference test harness makes this boundary concrete: its fixture scenario asking for customer lifetime value by shipment carrier and product category returns CAPABILITY_GAP, rather than silently joining independent test domains.
That is an intentional limit of the reference design, not a claim that enterprise analysis should never cross model boundaries.
The adapter is a boundary for limitations, not a hiding place for SQL
A provider-neutral semantic request does not make providers interchangeable by declaration.
Some capabilities support particular measures or groupings. Others offer native analytical responses or charting experiences. Authentication, query APIs, execution limits and the way results are described can differ considerably.
The service-binding and adapter layer must validate whether the provider can perform the selected action and represent the outcome accurately. If a capability is unavailable, partially supported or produces a data-quality failure, the result should state that.
Generated SQL may be entirely appropriate behind a controlled capability boundary, when it respects authorised semantics, policy, execution limits and provider-specific validation. The problem is not the presence of SQL; it is using SQL generation as an unreviewed substitute for business meaning and permission.
Technical diagrams and source notes
The original technical diagrams remain available here, including their source relationships, stated purpose and scope. They provide technical depth beyond the business-first narrative.
When not to add another framework
There is a cost to these boundaries. Semantic definitions and mappings require stewardship. Contract changes need conformance testing. Provider limitations need maintenance. Governance must operate at the pace of real business questions.
If one team already uses a well-governed, clearly scoped native semantic capability, an additional control plane may create more work than value. The right starting point is the existing experience and its demonstrated gaps.
The case for contractual separation becomes stronger where organisational questions must be understood independently of platform selection, trusted knowledge should be reused across requests, or multiple capabilities and ownership domains need consistent decision rules.
Natural-language-to-SQL can be an excellent way to execute a resolved question. It should not be mistaken for the process that decides which question the organisation is entitled to answer.