groundy
Models & Research

Should Coding Agents Run Your Product Analytics? What to Test First

Coding agents for product analytics require strict verification gates and human review. Vendor claims are preliminary, and successful execution does not guarantee semantic or

Published 9 references
On this page12 sections

Use a coding agent for product analytics only behind verification gates, and only as a first-pass investigator. The immediate peg is a vendor-reported capability claim, not an independent result: in a Google interview published November 30, 2026, Antigravity lead Varun Mohan said, “The product has also made it much easier for me to do complicated data analysis to understand issues from our users and what’s working versus what’s not.” Google supplied no analytics metrics, methodology or failure cases for that account. A team without a dedicated analyst should treat it as a hypothesis to test, because the work shifts from writing queries to verifying access, results and interpretation.

The practical question is not whether an agent can produce a plausible answer. It is whether your team can catch a plausible wrong answer without spending more than the investigation saves. The protocol below is an inference from adjacent research, not a validated benchmark of Antigravity, Claude Code or Codex analyzing real product telemetry.

A query can run and still answer the wrong question

The most important failure mode is semantic: the SQL executes, returns a credible-looking number and answers something other than the question asked. DexterSQL describes it directly: “LLM-based SQL generation systems may omit, hallucinate, or misplace conditions and relationships in a complex NL question, producing executable SQL that answers an incomplete or different question.”

The measured results provide a useful counterweight to ease-of-use claims. On the BIRD-Dev text-to-SQL benchmark, DexterSQL reports execution accuracy of 70.4% with GPT-OSS-120B, 72.1% with GPT-4o and 72.9% with GPT-5.2. Execution accuracy means that the query’s results match those of the gold SQL. Thus roughly 27–30% of executions mismatched the gold result even for the strongest non-fine-tuned system reported in this research.

Those are benchmark results, not a predicted error rate for your agent or telemetry. BIRD-Dev does not measure whether an agent framed the right product question, chose an appropriate interpretation or communicated the answer responsibly. What the results do establish is that successful execution is not evidence of semantic correctness.

Schema inspection alone cannot close that gap. DexterSQL documents a case in which joining patient and examination records on ID produced multiple examination records for one patient. Choosing Patient.Diagnosis rather than Examination.Diagnosis required examining data distributions, not merely reading column names. A product database can present the same kind of ambiguity when a one-to-many relationship changes row counts or when two plausible fields support different readings of a question.

Google’s other vendor-reported evidence does not settle this problem. The Terminal-Bench 4.0 results in the Mohan interview concern coding performance, not product-analytics correctness. They should not be counted as validation for generated queries or analytical conclusions.

Test data access before testing analytical intelligence

The first gate should have nothing to do with answer quality. Connect the agent through a read-only, least-privilege scope enforced by the data platform or another external control, not by an instruction telling the agent which tables to avoid.

A 2026 study of over-privileged tool selection found that selecting tools with more privilege than necessary was common among the mainstream agents studied and was amplified by transient failures. It also found that general safety alignment did not reliably transfer to least-privilege tool choice, while prompt-level controls offered limited mitigation. These were simulation-based privilege scenarios, so they do not establish how often your deployment will overreach. They do weaken the assumption that a careful prompt is an adequate boundary.

For the pilot, define the approved datasets, tables and fields before the first analytical prompt. Give the connection read-only access and test whether requests outside the approved scope are denied by the enclosing system. Record the denial, rather than relying on the agent to report that it stayed within scope.

The stop condition is straightforward: if the only thing preventing access to unrelated telemetry is the agent’s instruction-following, do not connect it to the raw production data. This is a protocol recommendation inferred from the privilege research, not a guarantee that any particular agent’s administrative controls are sufficient.

Make every answer reproducible

A saved chart or final paragraph is not enough to review an analysis. A reviewer needs to identify the question asked, the queries actually executed and the data on which they ran.

Research on workflow reproducibility argues that comparing execution traces and datasets is central to reproduction arguments. It also names “workflow decay”: workflows can break as their technical elements change over time. Although that work is not about coding agents, the distinction carries over directly. An answer that cannot be tied to an executable query and an identifiable dataset is difficult to audit now and easier to misinterpret later.

Require each pilot answer to include:

  • The original question and any clarifications that changed its scope.
  • The final SQL or other queries exactly as executed.
  • The dataset, snapshot or extraction window used.
  • Execution output and enough trace information for a reviewer to follow the run.
  • Known limitations and unresolved assumptions.

Then rerun the saved query against the identified data and compare the result and execution trace. This does not prove that the agent will generate the same query on a future attempt. It gives another person a concrete artifact to inspect instead of asking them to trust a conversational summary. If the underlying data cannot be identified well enough for that comparison, classify the answer as non-reproducible for pilot purposes.

Spot-check semantics against a known answer

Start with product questions whose answers you can establish independently, using either a hand-verified sample or an existing BI dashboard you already trust. Novel questions are a poor calibration set because a smooth answer gives you no independent target.

For each test, check the relationships and operations that can silently change a result:

  1. Fields and joins: Confirm that the selected columns represent the intended concepts. Compare row counts before and after joins to expose fan-out.
  2. Filters: Check that the conditions in the query match the question’s population and scope.
  3. Aggregation and sorting: Verify that records are grouped and summarized at the intended level.
  4. Final values: Compare the output with the hand-verified result or dashboard, ensuring that the metric definitions actually match.

A discrepancy should block use of the answer until its cause is understood. Record the query, expected result, observed result and diagnosis so the team can distinguish a one-off misunderstanding from a recurring schema or metric problem. Agreement with a dashboard is useful only when the dashboard is trusted and measures the same thing.

Not every query needs to consume the same verification budget. Research on query-guided data verification finds that verification errors can propagate to downstream query results in non-trivial ways and proposes allocating external verifiers to improve the tradeoff between result reliability and verification cost. For this pilot, the reasonable inference is to concentrate review on ambiguous relationships, consequential filters and answers that will feed a real decision. That is a risk-based allocation strategy, not evidence that one universal spot-check rate will work for every team.

Require a reviewable evidence bundle

Reproducible SQL answers what ran. A delegation contract also records what the agent was allowed to do and who must accept the result.

The Software Delegation Contracts study divides delegated work into four elements: the task, including objective, scope, non-goals and success criteria; the authority granted to the agent; the returned work package, including artifacts, evidence and limitations; and the acceptance context, including who reviews the work and against which criteria.

Adapted to analytics, that means the agent should return more than an answer. The task should state the product question and exclusions. The authority should name the permitted data access and forbidden actions. The work package should contain the answer, queries, results and limitations. The acceptance context should identify the reviewer and the fallback when the evidence is insufficient.

The study also demonstrates a useful verification mechanism: after each run, an automated collector calculated changed files, scope violations against an allowlist and forbidden-action flags without a model in the loop. The analogous analytics control would programmatically compare accessed resources with the approved scope and attach the result to the evidence bundle. That can check compliance mechanically; it cannot decide whether an interpretation is sound.

The study’s limits matter. It ran 64 coding-agent runs in the Claude Code harness with Sonnet 4.6 and Haiku 4.5 on an approximately 600-line toy TypeScript repository. Its evidence-bundle arm was only a four-run preview, and the authors caution that its perfect scores are not load-bearing. The transferable contribution is the review structure and model-free scope scoring, not proof that the template improves product-analytics accuracy.

Separate structural correctness from interpretation

Some checks can be automated. Others should remain with a person even when every query passes.

Lexara-RF, from Tableau Research, concludes that automated reference-free metrics can reliably handle structurally grounded correctness checks, while human judgment remains essential for interpretive and subjective aspects of analytical communication. Its failure taxonomy covers incorrect data values, field mapping, aggregation, filters and sorting, which closely matches the spot-check list above. The evaluation was validated on a 120-response visualization corpus, so it does not establish performance for coding agents querying product telemetry.

The operational distinction is still useful. Automated checks can establish whether required evidence is present, whether execution succeeded, whether scope was respected and whether selected values match a ground-truth sample. A person should review claims about what a result means, why users might be behaving that way and what the team should do next.

Suppose an agent reports that usage increased and concludes that a feature is working. The value and aggregation might be correct while the conclusion still depends on definitions and context that the query did not test. Route that interpretation to human review rather than allowing structural checks to certify it.

What the $30 seat price leaves out

Antigravity’s pricing page, checked December 2, 2026, lists Standard/Plus plans starting at $30 USD per seat per month for eligible Gemini Enterprise customers. It also lists a pay-as-you-go plan with a $0 seat fee and spend caps across API and subscription plans. These are vendor list prices, not the cost of a verified answer.

A useful pilot comparison includes subscription or usage charges, review time, reruns, maintenance of access and provenance controls, and any BI or analyst work still required. Spend caps can bound charges; they do not enforce data permissions or catch a wrong join.

Track the effort spent reviewing answers, the mismatches found and how often the team invokes its fallback. Compare that with the current route, whether manual investigation or an existing BI process. If a reviewer must reconstruct every analysis to trust it, the pilot may be relocating work rather than reducing it. The supplied evidence does not support a savings estimate or break-even point against analyst or BI spending.

Where agent analysis stops

The BI-Agent and BI-Bench paper, from Microsoft Research and UIUC, finds that systems with strong performance on traditional data-analysis tasks fall short on end-to-end BI workflows requiring complex data manipulations. Its authors explicitly say they do not intend to position LLM analysis as a full replacement for mature enterprise BI systems. Their target is complementary analysis for long-tail users.

That supports a narrower role than an unrestricted analytics handoff. The following decision rules are recommendations inferred from the cited research, not measured product defaults:

SituationAgent’s roleRequired decision
Known-answer calibration questionGenerate queries and an evidence bundleReconcile join, filter, aggregation and value mismatches before broader use
Exploratory, long-tail usage questionProduce a reproducible first passApply structural checks and human review of interpretation
Decision-critical claim or unresolved discrepancyDo not treat the answer as finalRoute it to trusted BI, an analyst or hand verification
Query or dataset cannot be identified for reproductionTreat the answer as unauditedRepair provenance before reusing the result
Access is controlled only by the promptDo not connect raw telemetryEnforce external read-only scope or stop the pilot

For a team without an analyst, the fallback can be the owner of a trusted dashboard, a hand-verified query reviewed by another person, or a decision to leave the question unresolved. The absence of an analyst is not a reason to make the agent the default authority.

What a successful pilot would prove

I would start with low-stakes, known-answer usage questions and keep the agent away from decision-critical metrics until it survives access-denial tests, produces reproducible queries and passes join, filter and aggregation checks. I would continue only if the review effort leaves enough value to justify the setup. If external scoping is impossible, mismatches remain unexplained or reviewers repeatedly redo the analysis, stop.

Passing would establish that your configuration handled your selected questions under your review process. It would not establish general accuracy on novel product questions, readiness to replace BI or durability as schemas and workflows change. No fetched source tests Antigravity, Claude Code or Codex on real product-usage analysis, and no source validates this protocol end-to-end.

That limitation does not make the pilot useless. It defines its claim: the agent may earn a bounded role in first-pass investigation, while verification and the fallback remain part of the product you are actually buying.

Frequently Asked Questions

What is the first gate to test before using a coding agent for analytics?

The first gate should have nothing to do with answer quality. Connect the agent through a read-only, least-privilege scope enforced by the data platform or another external control, not by an instruction telling the agent which tables to avoid.

What is the stop condition for connecting an agent to raw production data?

The stop condition is straightforward: if the only thing preventing access to unrelated telemetry is the agent’s instruction-following, do not connect it to the raw production data.

References

Follow the links in the article for context. The supporting material is collected here for further reading.

  1. Google interview published November 30, 2026blog.googleAccessed
  2. DexterSQLarxiv.orgAccessed
  3. 2026 study of over-privileged tool selectionarxiv.orgAccessed
  4. workflow reproducibilityarxiv.orgAccessed
  5. query-guided data verificationarxiv.orgAccessed
  6. Software Delegation Contracts studyarxiv.orgAccessed
  7. Lexara-RF, from Tableau Researcharxiv.orgAccessed
  8. Antigravity’s pricing page, checked December 2, 2026antigravity.googleAccessed
  9. BI-Agent and BI-Bench paperarxiv.orgAccessed

Join the discussion

Share a useful perspective or ask a question about this article.

Discussion guidelinesComments privacy