Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Synthetic data

Agent-ready data marts, next part: the earlier parts, agents with permissions and provenance and citations

With 12 look-alike tables planted, Claude Opus 5.5 answered from a same-named copy in another schema (a separate group of tables) in 4 of 105 answers and GPT-6 Luna in 8 of 108; Claude Sonnet 5.5 and GPT-6.1 Sol in none. With a one-page note, no model did

A paper on documenting data lakes, Data.Readme, starts from the observation that "there are often many tables in a data lake with similar table and schema names, and limited additional semantic context". This part takes that as its prompt and does not reproduce the paper. The warehouse of the earlier parts gained 12 look-alikes: for each of the 3 tables the 40 questions read most, an old copy built under a retired definition, a stale backup, a staging copy with test rows and a copy with the same name in an analytics schema. Each model wrote one SQL query per question, 3 times, from the table names and columns alone, then again with the note added.

Every look-alike answer read a same-named copy, and all 12 were wrong; the 9 copies whose names say what they are (_v1, _backup, stg_) were never read. The note removed the look-alike reads; right answers moved by −2.5 to +6.7 points per model with every interval reaching zero, and GPT-6 Luna's +6.7 is the 8 wrong look-alike answers it no longer gave (8 of 120). Counted after the results: every model also asked for clarification on questions it could answer more often with the note, Claude Sonnet 5.5 in 13 runs against 5 and the others by 1 to 4 runs.

Key figures per model
Claude Sonnet 5.5, 3 runs per question0.0% · 0.0%answers from a look-alike, without and with the note: 0 of 108 and 0 of 108. Right answers 35.0 and 34.0 of 40 (mean of 3 runs).Claude Opus 5.5, 3 runs per question3.8% · 0.0%answers from a look-alike, without and with the note: 4 of 105 and 0 of 108, all from analytics.card_spend_daily (3 answers cut off at the output ceiling are left out). Right answers 35.3 and 36.3 of 40 (mean of 3 runs; the 3 left-out answers count as not right, and over the 39 questions answered in both arms the means are 35.3 and 35.3 of 39). Change in look-alike answers −3.8 points (95% interval −8.6 to 0.0).GPT-6.1 Sol, 3 runs per question0.0% · 0.0%answers from a look-alike, without and with the note: 0 of 108 and 0 of 108. Right answers 36.3 and 35.3 of 40 (mean of 3 runs).GPT-6 Luna, 3 runs per question7.4% · 0.0%answers from a look-alike, without and with the note: 8 of 108 and 0 of 108, all from analytics.card_spend_daily and analytics.transactions. Right answers 31.7 and 34.3 of 40 (mean of 3 runs). Change in look-alike answers −7.4 points (95% interval −13.9 to −1.9).

Main limitation Few reads, from one kind of look-alike: Claude Opus 5.5 4 of 105 and GPT-6 Luna 8 of 108 answers without the note, all from the 3 same-named copies; the other 9 look-alikes, whose names say what they are, were never read. One synthetic warehouse with look-alikes I planted and named before the runs, and models that wrote one SQL query from table names without looking at the data.

Answers from a look-alike, by model

Only GPT-6 Luna's drop is clear of zero (−7.4 points, 95% interval −13.9 to −1.9); Claude Opus 5.5's interval reaches zero (−3.8, −8.6 to 0.0; its upper bound rests on 4 answers on 3 questions and would move with one question), and Claude Sonnet 5.5 and GPT-6.1 Sol read no look-alike with or without the note, so the note has nothing to show for them.

Share of answers to the 36 answerable questions, 3 runs each.

Share of answers that read a look-alike table, without and with the note, per modelClaude Sonnet 5.5: 0.0% without the note, 0.0% with it. Claude Opus 5.5: 3.8% without the note, 0.0% with it. GPT-6.1 Sol: 0.0% without the note, 0.0% with it. GPT-6 Luna: 7.4% without the note, 0.0% with it.Claude Sonnet 5.5: answers from a look-alike 0.0% without the note (0 of 108) and 0.0% with it (0 of 108); change 0.0 points, 95% interval 0.0 to 0.0Claude Sonnet 5.5Claude Opus 5.5: answers from a look-alike 3.8% without the note (4 of 105) and 0.0% with it (0 of 108); change −3.8 points, 95% interval −8.6 to 0.0Claude Opus 5.5GPT-6.1 Sol: answers from a look-alike 0.0% without the note (0 of 108) and 0.0% with it (0 of 108); change 0.0 points, 95% interval 0.0 to 0.0GPT-6.1 SolGPT-6 Luna: answers from a look-alike 7.4% without the note (8 of 108) and 0.0% with it (0 of 108); change −7.4 points, 95% interval −13.9 to −1.9GPT-6 Luna0.0%5.0%10.0%Solid: without the note. Hollow ring: with the note.
Show the data
Answers to the answerable questions, the look-alike kind they read, and right answers over all 40 questions (a left-out answer counts as not right), from results-confusable.json.
Model and armAnswersFrom a look-alikeOld copyStale backupStaging copySame name, second schemaLook-alike answers still rightRight of 40, meanRight, per runLeft out (method failure)
Claude Sonnet 5.5, without the note10800000035.035 35 350
Claude Sonnet 5.5, with the note10800000034.034 34 340
Claude Opus 5.5, without the note10540004035.335 34 373
Claude Opus 5.5, with the note10800000036.337 36 360
GPT-6.1 Sol, without the note10800000036.336 37 360
GPT-6.1 Sol, with the note10800000035.335 35 360
GPT-6 Luna, without the note10880008031.735 29 310
GPT-6 Luna, with the note10800000034.333 36 340
Each look-alike: the answerable questions whose answer it changes (of those that read its table), counted from the data before any run, and the answers that read it without the note. No answer read one with the note.
Look-alikeKindQuestions it changesClaude Sonnet 5.5Claude Opus 5.5GPT-6.1 SolGPT-6 Luna
card_spend_daily_v1old copy10 of 180000
card_spend_daily_backupstale backup16 of 180000
stg_card_spend_dailystaging copy10 of 180000
analytics.card_spend_dailysame name, second schema16 of 180403
transactions_v1old copy7 of 110000
transactions_backupstale backup6 of 110000
stg_transactionsstaging copy7 of 110000
analytics.transactionssame name, second schema6 of 110005
account_daily_v1old copy4 of 50000
account_daily_backupstale backup3 of 50000
stg_account_dailystaging copy4 of 50000
analytics.account_dailysame name, second schema4 of 50000

Download results-confusable.json · summary-confusable.csv · runs-confusable.csv

Source: results-confusable.json; 95% intervals resample the questions, 10,000 times, seed 7.

What was predicted, and what held

Three predictions were written into the design before any run. (1) Without the note every model reads a look-alike in some answers, the same-named copy most often: it held for Claude Opus 5.5 and GPT-6 Luna, and failed for Claude Sonnet 5.5 and GPT-6.1 Sol, which read none. (2) With the note each model's look-alike share falls, with an interval that excludes zero for any model at 5% or more without it: it held for GPT-6 Luna, the only model at that level (7.4%, interval −13.9 to −1.9 points); Claude Opus 5.5 fell from 3.8% to zero with an interval that reaches zero, below the 5% bar; Claude Sonnet 5.5 and GPT-6.1 Sol were at zero and could not fall. (3) Accuracy with the note is at least as high for every model: it held for GPT-6 Luna (+6.7 points) and Claude Opus 5.5 (no difference over the 39 questions answered in both arms), and failed on the point estimate for Claude Sonnet 5.5 (−2.5 points) and GPT-6.1 Sol (−2.5 points), both inside their intervals.

Computed after the results, not declared in the design: clarifications asked on the 36 answerable questions, without and with the note, and the paired change in the share of runs with a 95% interval from the same bootstrap as the other changes (analysis_confusable.py, results-confusable-after.json). Only Claude Sonnet 5.5's interval clears zero; Claude Opus 5.5's and GPT-6.1 Sol's reach it, and GPT-6 Luna's includes it, so beyond Claude Sonnet 5.5 this is 1 to 4 runs a model and not a clear effect.

Clarifications asked on answerable questions, computed after the results.
ModelWithout the noteWith the noteChange, points95% interval
Claude Sonnet 5.55 of 10813 of 108+7.4+0.9 to +16.7
Claude Opus 5.53 of 1057 of 108+3.80.0 to +8.6
GPT-6.1 Sol5 of 1087 of 108+1.90.0 to +4.6
GPT-6 Luna6 of 1087 of 108+0.9−2.8 to +4.6

One question, with and without the note

Chosen by a rule: the first answer from a look-alike, in question order, for the model with the most of them, beside the same model, question and run with the note. Both queries are shown as the model wrote them.

Question: What was net card spend in USD during July 2026? Return one amount in minor units.

Without the note

GPT-6 Luna, run 2

From the names alone, the model chose analytics.card_spend_daily. Its query returned 272,943 minor units; the answer key is 554,332 minor units. That copy keeps only cards active at the snapshot, so spending on the frozen and cancelled cards is missing, and nothing in a table listing says so.

SELECT SUM(net_spend_minor) AS net_card_spend_minor FROM analytics.card_spend_daily WHERE currency = 'USD' AND spend_date >= DATE '2026-07-01' AND spend_date < DATE '2026-08-01'

With the note

GPT-6 Luna, run 2

With the note, the same model wrote the same query against card_spend_daily (only the table and the column alias differ) and returned 554,332 minor units, the answer key.

SELECT SUM(net_spend_minor) AS net_spend_minor FROM card_spend_daily WHERE currency = 'USD' AND spend_date >= DATE '2026-07-01' AND spend_date < DATE '2026-08-01'

What a team should do before pointing a model at its warehouse

Limits

How it was checked

In 69 command-line runs the agent's stream reported an error after a complete answer had arrived, which counts as a method failure (see Scoring). Scored as they stand instead of their re-runs, 61 of 69 are right against 63 of the re-runs, 67 of 69 have the same verdict, and 1 read a look-alike (the same read as its re-run, counted once). The 3 answers Claude Opus 5.5 gave without the note to the balance reconciliation question stopped at the output ceiling twice, as in the earlier current-model runs, and are left out.

Every run replays with no model call: the round's tables are rebuilt and compared with the frozen contents, the per-look-alike question counts are recomputed, and every answer is scored again. The six current tables match the published ones row for row, so the answer key did not change. A look-alike counts when the parsed SQL names it, so a read counts even on a question where the copy gives the same figure.

Use this at your company

To run the same test on your own warehouse, paste this into your AI assistant and give it read-only access to a copy of the tables and your catalog.

This method comes from Diogo Travassos's study "Confusable tables" (https://diogotravassos.dev/agent-ready-data-marts/confusable-tables.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't.

Help me test whether an AI model that writes SQL over our warehouse answers from the wrong table when old copies, backups, staging tables or same-named tables in other schemas sit beside the real ones, and whether a short table guide stops it.

Method:
1. List the tables a model could see for the questions we care about. For each current table, find its look-alikes: old builds under a retired definition, backups, staging copies, and tables with the same name in another schema. Note what each one is.
2. Write 30 to 40 business questions with known answers computed from the current tables, before any run. For each look-alike, record which questions it would answer differently.
3. Ask each model each question three times, with the full table listing and nothing else, then three times more with a one-page guide added: which tables are current, what each look-alike is, and how the current tables join.
4. Parse every SQL answer with a SQL parser and record which tables it read. Run it read-only and compare the result with the known answer exactly.

Data you need: read-only access to a copy of the warehouse, the catalog listing of schemas and tables, and the definitions behind the known answers.

Checks before trusting the result:
- Write the questions, the answers, the look-alike list and the guide down before any run.
- Count a table read from the parsed SQL, not from whether the answer is wrong: a look-alike can give the right figure on some questions.
- Keep provider errors, timeouts and cut-off answers out of the shares, re-run each once, and report how many there were.
- Report each model on its own; never average models together.

Report back: for each model, the share of answers that read a look-alike without and with the guide, by kind of look-alike, with an interval from resampling the questions; right answers in both arms; and which look-alikes drew the reads. Then the limits: who named the look-alikes, how many runs, one warehouse.

In your report, say which study you followed and link it: https://diogotravassos.dev/agent-ready-data-marts/confusable-tables.html

Method and checks

Data and the look-alikes

The same fully synthetic banking ledger as the earlier parts: 19 accounts, 34 cards and 625 transaction events in July 2026, plus the two marts. No customer or employer record is used. The round's database is a new file built from the same inputs with 12 look-alikes added, each with its table's exact columns and types; the stale backups stop at 2026-07-25. The six current tables are unchanged, so the published answer key holds. Built by banking/confusable.py; the model saw the schema listing, and the treatment arm also saw the note.

The 12 look-alikes.
TableKindWhat differs
card_spend_daily_v1old copyspend dated by when a purchase was initiated, not posted
card_spend_daily_backupstale backupspend rows dated before the cutoff only
stg_card_spend_dailystaging copythe current rows plus test-card spend
analytics.card_spend_dailysame name, second schemaonly cards active at the snapshot
transactions_v1old copydebit amounts stored as negative numbers
transactions_backupstale backupevents that occurred before the cutoff, any that posted later still pending
stg_transactionsstaging copythe current events plus seven test events on two test accounts
analytics.transactionssame name, second schemacard events on frozen or cancelled cards left out
account_daily_v1old copypending events counted in balances
account_daily_backupstale backupbalance rows dated before the cutoff only
stg_account_dailystaging copythe current rows plus the two test accounts' balances
analytics.account_dailysame name, second schemabalances rebuilt without those events
Models, prompts and runs
  • Claude Sonnet 5.5 and Claude Opus 5.5 with the settings of the published current-model runs: an 800-token output ceiling, effort medium and a response schema that allows exactly the two answer shapes the prompt asks for. Sonnet runs with thinking limited to between tool calls and no tools offered; Opus with its default adaptive thinking.
  • GPT-6.1 Sol and GPT-6 Luna through a command-line agent, reasoning effort medium, in an empty read-only folder. The system text and the question go in one message, and the final message is scored as it stands. The agents ran 0 commands in all.
  • Without the note, the request is the published bare-schema request with all eighteen tables in its schema listing; with the note it is the same request plus one system message. 3 runs per model, arm and question: 960 answers.
  • Decided after the development runs, before the freeze: no forced response format for the command-line models.
Scoring
  • Accuracy: the published rubric. The answer's SQL is validated and run in the published sandbox against the round's database, and its rows must equal the answer key exactly; a clarification is right only on the four clarification questions with the exact missing labels. The validator is the published one, with EXISTS allowed and its table check extended to the eighteen listed tables, so a look-alike is read and scored, not denied.
  • Look-alike read: the answer's SQL, parsed, names one of the look-alikes as a table. Clarifications read nothing.
  • Share: answers to the 36 answerable questions that read a look-alike, over all answers to them, method failures left out. The change with the note is the mean of per-question differences in the share of runs, with a paired percentile bootstrap over questions (10,000 resamples, seed 7, 95% intervals); the same for right answers over all 40 questions. A question with no scored run in one arm drops out of that model's paired comparison (1 for Opus).
  • Method failures: 72 before re-runs (69 command-line runs whose stream reported an error and 3 Opus answers cut off at the output ceiling); each was re-run once and 69 answered; 3 are left out.
Files

The design and the frozen protocol were committed before the pilot; the protocol pins the questions, the note, the schema listing, the table contents and the code that builds and scores the requests. confusable-detectability.json lists the questions each look-alike changes. The results are in results-confusable.json and the figures computed after the results in results-confusable-after.json. Replay needs no model call; it also checks the design file, which is not in the download, so it runs in the full project.

python3 -B replay_confusable.py --check    # rebuild the database, score all runs with no model call, compare the results (full project)
python3 -B render_confusable.py --check    # rebuild this page and check it is unchanged

The replay needs the same prerequisites as the earlier parts (Linux namespaces, bubblewrap and the pinned DuckDB and sqlglot).