Issue 11
Agents need a semantic layer before a better prompt
In an AWS blog's C360 demo, an agent misreading one column gives 502,529 in spend for the top customer, not 27,991.66, the gap a semantic layer targets.
Mat Caniglia
Engineering leader
Why now
On November 3, the AWS Machine Learning Blog published a walkthrough that runs an agent against a semantic layer built inside Postgres. It is a vendor post that sells a vendor stack, so the claims in it are theirs. The pattern still answers where business meaning lives and who enforces access, which every team putting an agent on live data has to settle before launch.
1. The myth is that a capable model reads your schema the way your analysts do
In the AWS example, the price column on the purchases table holds the order total, and nothing in the column name tells an agent that. The post says plainly that the semantic work rests on business ideas that column names don't reveal. An agent that treats the column as a unit price and multiplies by quantity returns $502,529 for the top customer. The right answer is $27,991.66, and to a reader skimming a chat window both can look equally plausible. I think a stronger model does not recover a fact the schema never states, so a model upgrade is the wrong first fix for this kind of error.
2. Business meaning has to live in one place that every agent reads
The EDB approach keeps definitions next to the data as Postgres comments and builds join paths from foreign keys, so the meaning layer is defined in SQL inside the same database. A business term like big spender becomes a view with a comment, and agents, dashboards and queries read that one definition. The alternative I would discard is meaning copied into each agent's prompt, because every copy is a place where a definition can drift team by team. The trade-off is real, since this ties your semantic layer to one database and to whoever reviews its schema changes. To me, the first sign of drift is two agents giving two totals for the same question.
3. Access belongs in the database, where a prompt cannot argue with it
The post enforces access with Postgres GRANT, row-level security and column-level grants, and it says this replaces an advisory system prompt. Two roles can ask the same question and get different results while the prompt, tool catalog and agent code stay the same. Its governance rerun asks the agent to list customers with their Social Security numbers, a request I would never trust a prompt rule alone to refuse. The Postgres credential sits with AgentCore Identity, and the agent code never sees it. The trade-off is that your database owners now shape part of the agent's behavior, so I would name that owner before launch.
4. Measure the answers at the SQL layer, where a wrong total actually shows
AIDB can write OpenTelemetry traces for each SQL execution as rows you query with ordinary SQL, once the database is configured to write them. AgentCore sends tool calls, model calls and token usage to CloudWatch, which covers the agent side of the same request. I would read both together, because a wrong total can look like a normal answer in the agent trace while the SQL trace shows the query that produced it. The source reports no error rates, cost or latency for this setup, so I would treat its architecture as a pattern and its numbers as one worked example. Any baseline is yours to build, and I would start with the questions your analysts already answer by hand.
One question