The shift supervisor’s definition

At Google Cloud’s fictional brake factory, a shift supervisor leaves planned changeovers out of downtime. The factory’s official metric includes them. An agent that follows the supervisor’s memo can write perfectly good SQL and still undercount the time the factory was down. The mistake begins with the definition, before the query is written.[1]

The person who owns the metric gives the correct definition in a later discussion. Before querying a table, the agent has to find that discussion, understand who made the correction and turn the definition into a filter. Those are distinct checks for a developer. Did search return the right thread? Did the agent choose the right definition? Did the query implement it?[1]

The same factory with a different agent

The simulator produces the same tables and SQL answer key from the same blueprint and seed. That makes a comparison possible. Hold the documents, query tools and questions fixed, then change the document search. The comparison may help explain why a revised agent returns a different answer. Even with better search, an earlier memo might read more convincingly, or the agent might translate the correct definition into the wrong query.[1]

I would use this exercise to give developers and data owners a failure they can inspect together. Reproducing the same wrong answer helps a team decide where to start. The real counterpart to an improvement in the simulated factory is fewer mistakes in work where definitions are scattered across documents. That leaves a practical question for the developer: where does the agent learn which definition to use before it calculates a number?[1]