<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 🧪 MAD DATA LAB: Wonderful. Something Is Wrong. in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/mad-data-lab-wonderful-something-is-wrong/m-p/167016#M1503</link>
    <description>&lt;P&gt;Hi, I’m Ángel. I build data systems, break them more often than I would like to admit, and write about what I learn at &lt;STRONG&gt;Angelic Articles&lt;/STRONG&gt; (my new own website for articles, previously on &lt;A href="https://medium.com/@angel.alvarez.pascua" target="_self"&gt;Medium&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;What I enjoy most is usually not getting the answer. It is figuring out &lt;STRONG&gt;why the answer is true&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;That is why the &lt;A href="https://community.databricks.com/t5/learning-events/databricks-community-contest-genie-powered-app-challenge/ec-p/165825" target="_self"&gt;&lt;STRONG&gt;Databricks Genie-Powered App Challenge&lt;/STRONG&gt;&lt;/A&gt; caught my attention — especially &lt;STRONG&gt;"Track B: Creative Thinking"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Most AI/BI experiences follow a familiar pattern:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ask a question ➔ get an answer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Useful? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; Absolutely. But for a creative challenge, I wanted to turn that interaction around.&lt;/P&gt;&lt;P&gt;What if Genie did not simply wait for me to ask the right question?&lt;BR /&gt;What if the &lt;STRONG&gt;unexpected number itself became the problem to solve&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;That question became &lt;STRONG&gt;MAD DATA LAB&lt;/STRONG&gt;: a small analytics game where Dr. Genie forms hypotheses, chooses analytical experiments, follows the evidence and only reaches a conclusion when the numbers actually support it.&lt;/P&gt;&lt;P&gt;I decided to submit it because it combines two things I care about: making data exploration more approachable, and treating analytical answers as something to &lt;EM&gt;prove&lt;/EM&gt;, not merely generate.&lt;/P&gt;&lt;P&gt;Because sometimes the interesting part is not the answer. &lt;STRONG&gt;It's proving it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":microscope:"&gt;🔬&lt;/span&gt; Welcome to MAD DATA LAB&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;MAD DATA LAB is built around one simple idea:&amp;nbsp;&lt;EM&gt;Something in the data is wrong, and you have to prove why.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It's designed for analysts, data engineers, data scientists, BI users — and, more generally, anyone who has ever stared at a KPI and thought: &lt;EM&gt;that cannot be right.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Each investigation is a &lt;STRONG&gt;Case&lt;/STRONG&gt;. A Case starts with an unexpected result, several plausible explanations and no conclusion that the player is expected to accept on faith.&lt;/P&gt;&lt;P&gt;The challenge demo is "&lt;STRONG&gt;Case #042 — The Missing €6.8M"&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Expected €125.0M
Observed €118.2M
Deviation -€6.8M&lt;/LI-CODE&gt;&lt;P&gt;The data is synthetic and deterministic, so the mystery is reproducible. The analytical evidence, however, is not just story text: the investigation is built around queryable evidence in Databricks.&lt;/P&gt;&lt;P&gt;Dr. Genie begins with competing hypotheses. Perhaps the source values changed. Perhaps the formula changed. Perhaps a suspicious data-quality signal is responsible.&lt;/P&gt;&lt;P&gt;The player predicts, inspects evidence and can ask for help. But the player does not manually choose the analytical route.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The app asks Genie what should be investigated next.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Genie might first decompose the deviation and find that one component, V2, contributes &lt;STRONG&gt;-€5.9M&lt;/STRONG&gt;&amp;nbsp;— roughly &lt;STRONG&gt;87%&lt;/STRONG&gt;&amp;nbsp;of the total anomaly. The next Experiment can compare V2 across source snapshots and find:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;23 modified records -€5.2M
2 removed records -€0.8M
5 added records +€0.1M
--------------------------------
Net source impact -€5.9M&lt;/LI-CODE&gt;&lt;P&gt;From there, the investigation can move down to individual records, lineage, formula validation, data-quality materiality and final reconciliation.&lt;/P&gt;&lt;P&gt;The loop is deliberately simple:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case ➔ Hypotheses ➔ Experiment ➔ Evidence ➔ Update ➔ Repeat ➔ Scientific Verdict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And there is no game-over screen for guessing wrong.&lt;/P&gt;&lt;P&gt;The whole point is to watch your first theory collide with the evidence. Because that is usually where analytics gets interesting.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧞 Genie Is Not the Hint Button&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One thing I wanted to avoid was building a normal application and then attaching an AI assistant to the side.&lt;/P&gt;&lt;P&gt;In MAD DATA LAB, Genie is not there to explain a chart after the interesting work is finished.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Genie is part of the investigation loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At each step, the application gives the Genie Agent the current visible evidence and a server-controlled set of Experiments that are valid at that point. Genie evaluates the evidence, updates the hypotheses and chooses the next analytical move.&lt;/P&gt;&lt;P&gt;The distinction matters:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The application controls what is possible. Genie decides what makes sense next.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The same rule applies to visualisation. Genie can select from approved analytical &lt;STRONG&gt;Instruments&lt;/STRONG&gt;&amp;nbsp;— a deviation decomposer, snapshot comparison, evidence table, DQ panel, lineage view, reconciliation view and others — but it cannot invent arbitrary UI or executable code at runtime.&lt;/P&gt;&lt;P&gt;Users can also ask Dr. Genie questions such as:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Which component explains most of the deviation?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;What changed between these two snapshots?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Is this data-quality warning actually large enough to explain the anomaly?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Which records contributed most?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where did this value come from?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Under the hood, the data flow is intentionally small:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAD DATA LAB
  ↓
Investigation / state orchestration
  ↓
Genie Agent
  ↓
Curated Unity Catalog evidence
  ↓
Databricks SQL&lt;/LI-CODE&gt;&lt;P&gt;The application owns state, validation, scoring and safe rendering. Genie works against a curated analytical surface rather than unrestricted data.&lt;/P&gt;&lt;P&gt;There is also one boundary I care about a lot: &lt;STRONG&gt;Genie does not get the answer key&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The project has a private &lt;EM&gt;CASE_TRUTH&lt;/EM&gt;&amp;nbsp;oracle used for generation and automated validation. It's deliberately excluded from the Genie-facing data model. Dr. Genie has to reach the conclusion from the same visible evidence the investigation exposes.&lt;/P&gt;&lt;P&gt;Remove Genie, and MAD DATA LAB does not become the same game without a chatbot.&lt;/P&gt;&lt;P&gt;It becomes a scripted dashboard wearing a laboratory coat.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;&lt;span class="lia-unicode-emoji" title=":collision:"&gt;💥&lt;/span&gt; Then Reality Entered the Laboratory&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Of course, the first version of the idea was not the final one.&lt;/P&gt;&lt;P&gt;A few things looked excellent on paper and considerably less excellent five minutes later.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The beautiful board that was not actually useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My first game-board concept looked wonderfully mad-scientist-ish. It also spent far too much of the screen being decorative.&lt;/P&gt;&lt;P&gt;Very pretty. Very atmospheric. Not particularly useful for investigating data.&lt;/P&gt;&lt;P&gt;So I killed it. The laboratory stayed, but the evidence had to become the protagonist.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apparently, naming things is hard&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At one point I was calling the whole investigation an &lt;STRONG&gt;Experiment&lt;/STRONG&gt;… while also calling each individual analytical test an &lt;STRONG&gt;Experiment&lt;/STRONG&gt;. That survived until I tried explaining the game out loud.&lt;/P&gt;&lt;P&gt;The vocabulary became:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case ➔ Investigation ➔ Experiment ➔ Evidence ➔ Verdict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Much better.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The scary warning that explained almost nothing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Case #042 contains a genuine data-quality signal inside the synthetic Case data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5 overlapping business keys. Estimated overlapping impact: -€0.3M.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The anomaly is &lt;EM&gt;-€6.8M&lt;/EM&gt;. It's exactly the kind of thing humans — and AI — can jump on because it &lt;EM&gt;looks&lt;/EM&gt;&amp;nbsp;suspicious. But suspicious is not the same as material. And because that -€0.3M overlaps evidence already represented elsewhere, it must not be counted twice.&lt;/P&gt;&lt;P&gt;That became one of the central rules of the game: &lt;EM&gt;A warning is evidence. It is not automatically a cause.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Giving Genie freedom… but not a chainsaw&amp;nbsp;🪚&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My first instinct was basically: &lt;EM&gt;let the AI decide everything.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;That sounds elegant until the AI decides it would quite like an analytical instrument your application has never heard of.&lt;/P&gt;&lt;P&gt;The correction was simple: give Genie freedom &lt;EM&gt;inside explicit boundaries&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Enough freedom to investigate. Not enough freedom to invent a Quantum Revenue Microscope at runtime.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧯 What Worked, What Didn’t, and What Surprised Me&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A few design decisions made the project much stronger.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deterministic Cases worked.&lt;/STRONG&gt;&amp;nbsp;If the underlying mystery changes every time, it becomes difficult to tell whether Genie improved or the crime scene simply moved.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Curated evidence worked better than “give it everything.”&lt;/STRONG&gt;&amp;nbsp;The more clearly the tables, fields, semantics and examples described the analytical world, the less I needed to compensate with instructions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reconciliation became non-negotiable.&lt;/STRONG&gt;&amp;nbsp;If an explanation claims to account for a €6.8M anomaly, the evidence eventually needs to add up to €6.8M. If it does not, the investigation is not finished.&lt;/P&gt;&lt;P&gt;What I moved away from was equally useful: giant instruction prompts trying to anticipate every situation, free-form chat as the primary game mechanic, arbitrary AI-generated UI, and adding more Cases before Case #042 was trustworthy.&lt;/P&gt;&lt;P&gt;There is also a deliberately boring reliability layer. Model output is validated before it can control the game, and the design includes a deterministic SQL fallback for evidence retrieval when Genie has already selected a valid Experiment but the normal query-result path fails. Offline fixtures are for development or a genuine platform outage — not the normal challenge experience.&lt;/P&gt;&lt;P&gt;The biggest surprise, though, was that the interesting moments were not when Genie instantly found the correct answer. They were when new evidence forced the investigation to change direction.&lt;/P&gt;&lt;P&gt;That felt much closer to real analysis than I expected.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧠 What Genie Taught Me About Genie&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Building MAD DATA LAB changed a few of my assumptions about analytical AI.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Better context beats bigger prompts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this project, clearer semantics, curated data and tested examples were more valuable than increasingly heroic prompt engineering.&lt;/P&gt;&lt;P&gt;That matches the way Genie is designed to be curated: good metadata, business context, example SQL and realistic benchmark questions matter.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Freedom needs boundaries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Genie is most useful here when it can decide &lt;EM&gt;what to investigate&lt;/EM&gt;, while the application defines &lt;EM&gt;what is legal and renderable&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;A fully scripted flow is not very intelligent. An unconstrained AI application is not very predictable. The useful space is in between.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test the evidence, not the prose&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I stopped caring whether Genie says "&lt;EM&gt;Aha!"&amp;nbsp;&lt;/EM&gt;or&amp;nbsp;&lt;EM&gt;“Interesting.”&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What matters is whether it chose a sensible Experiment, retrieved the correct evidence, respected the numbers and reached a conclusion that reconciles.&lt;/P&gt;&lt;P&gt;The wording can vary.&amp;nbsp;&lt;STRONG&gt;The facts cannot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is also why the test strategy focuses on numeric results, valid Experiment choices, hypothesis status and reconciliation rather than exact sentences.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;“I don’t know yet” is a perfectly good answer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One of the easiest mistakes with AI is expecting a confident conclusion every time. But sometimes the evidence is simply not sufficient yet.&lt;/P&gt;&lt;P&gt;MAD DATA LAB uses explicit states such as &lt;EM&gt;POSSIBLE&lt;/EM&gt;, &lt;EM&gt;SUPPORTED&lt;/EM&gt;, &lt;EM&gt;CONFIRMED&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;RULED OUT&lt;/EM&gt;&amp;nbsp;so that “&lt;EM&gt;plausible&lt;/EM&gt;” does not quietly turn into “&lt;EM&gt;proven&lt;/EM&gt;.”&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The interesting part is changing your mind&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The moment that made the concept click for me was not Genie finding the right answer.&lt;/P&gt;&lt;P&gt;It was the investigation updating a hypothesis because new evidence contradicted the previous direction.&lt;/P&gt;&lt;P&gt;That is much closer to useful analysis: &lt;EM&gt;observe, hypothesize, test, revise.&lt;BR /&gt;&lt;/EM&gt;Not: &lt;EM&gt;ask once, sound confident, move on.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧪 The Scientific Verdict&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I joined this challenge wondering whether Genie could do something more interesting than wait for a question.&lt;/P&gt;&lt;P&gt;MAD DATA LAB became my answer. It's playful on the surface, but underneath it is built around a serious analytical idea:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do not trust the first explanation just because it sounds plausible. Test it. Quantify it. Reconcile it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That is also what I ended up learning about Genie. The best experience did not come from asking it to sound smarter. It came from giving it better evidence, clearer boundaries and enough freedom to revise the investigation when the data changed the story.&lt;/P&gt;&lt;P&gt;So, after all the hypotheses, experiments, false leads and suspicious numbers, the final verdict is probably the simplest one: &lt;EM&gt;We did not ask for an answer. We ran an investigation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;&lt;span class="lia-unicode-emoji" title=":wrench:"&gt;🔧&lt;/span&gt; Want the Technical Deep Dive?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This article intentionally focused on the idea, the experience, the mistakes and what I learned while building MAD DATA LAB.&lt;/P&gt;&lt;P&gt;For the less sensible amount of technical detail — architecture, Genie conversation orchestration, the closed Experiment/Instrument protocol, deterministic Case generation, curated evidence, hidden ground truth, SQL reconciliation, testing strategy, Genie benchmarks, security boundaries and failure handling — And someday, when I feel like documenting the less sensible amount of technical detail behind all this, I’ll probably turn it into a companion engineering deep dive on Angelic Articles.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Links&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":laptop_computer:"&gt;💻&lt;/span&gt; Source:&lt;/STRONG&gt; &lt;A href="https://github.com/SauronShepherd/mad-data-lab" target="_blank"&gt;https://github.com/SauronShepherd/mad-data-lab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":movie_camera:"&gt;🎥&lt;/span&gt; Video:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://youtu.be/RzGWBMzAXVc" target="_blank"&gt;https://youtu.be/RzGWBMzAXVc&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2026 02:15:14 GMT</pubDate>
    <dc:creator>___angel___</dc:creator>
    <dc:date>2026-09-01T02:15:14Z</dc:date>
    <item>
      <title>🧪 MAD DATA LAB: Wonderful. Something Is Wrong.</title>
      <link>https://community.databricks.com/t5/community-articles/mad-data-lab-wonderful-something-is-wrong/m-p/167016#M1503</link>
      <description>&lt;P&gt;Hi, I’m Ángel. I build data systems, break them more often than I would like to admit, and write about what I learn at &lt;STRONG&gt;Angelic Articles&lt;/STRONG&gt; (my new own website for articles, previously on &lt;A href="https://medium.com/@angel.alvarez.pascua" target="_self"&gt;Medium&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;What I enjoy most is usually not getting the answer. It is figuring out &lt;STRONG&gt;why the answer is true&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;That is why the &lt;A href="https://community.databricks.com/t5/learning-events/databricks-community-contest-genie-powered-app-challenge/ec-p/165825" target="_self"&gt;&lt;STRONG&gt;Databricks Genie-Powered App Challenge&lt;/STRONG&gt;&lt;/A&gt; caught my attention — especially &lt;STRONG&gt;"Track B: Creative Thinking"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Most AI/BI experiences follow a familiar pattern:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ask a question ➔ get an answer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Useful? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; Absolutely. But for a creative challenge, I wanted to turn that interaction around.&lt;/P&gt;&lt;P&gt;What if Genie did not simply wait for me to ask the right question?&lt;BR /&gt;What if the &lt;STRONG&gt;unexpected number itself became the problem to solve&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;That question became &lt;STRONG&gt;MAD DATA LAB&lt;/STRONG&gt;: a small analytics game where Dr. Genie forms hypotheses, chooses analytical experiments, follows the evidence and only reaches a conclusion when the numbers actually support it.&lt;/P&gt;&lt;P&gt;I decided to submit it because it combines two things I care about: making data exploration more approachable, and treating analytical answers as something to &lt;EM&gt;prove&lt;/EM&gt;, not merely generate.&lt;/P&gt;&lt;P&gt;Because sometimes the interesting part is not the answer. &lt;STRONG&gt;It's proving it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":microscope:"&gt;🔬&lt;/span&gt; Welcome to MAD DATA LAB&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;MAD DATA LAB is built around one simple idea:&amp;nbsp;&lt;EM&gt;Something in the data is wrong, and you have to prove why.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It's designed for analysts, data engineers, data scientists, BI users — and, more generally, anyone who has ever stared at a KPI and thought: &lt;EM&gt;that cannot be right.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Each investigation is a &lt;STRONG&gt;Case&lt;/STRONG&gt;. A Case starts with an unexpected result, several plausible explanations and no conclusion that the player is expected to accept on faith.&lt;/P&gt;&lt;P&gt;The challenge demo is "&lt;STRONG&gt;Case #042 — The Missing €6.8M"&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Expected €125.0M
Observed €118.2M
Deviation -€6.8M&lt;/LI-CODE&gt;&lt;P&gt;The data is synthetic and deterministic, so the mystery is reproducible. The analytical evidence, however, is not just story text: the investigation is built around queryable evidence in Databricks.&lt;/P&gt;&lt;P&gt;Dr. Genie begins with competing hypotheses. Perhaps the source values changed. Perhaps the formula changed. Perhaps a suspicious data-quality signal is responsible.&lt;/P&gt;&lt;P&gt;The player predicts, inspects evidence and can ask for help. But the player does not manually choose the analytical route.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The app asks Genie what should be investigated next.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Genie might first decompose the deviation and find that one component, V2, contributes &lt;STRONG&gt;-€5.9M&lt;/STRONG&gt;&amp;nbsp;— roughly &lt;STRONG&gt;87%&lt;/STRONG&gt;&amp;nbsp;of the total anomaly. The next Experiment can compare V2 across source snapshots and find:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;23 modified records -€5.2M
2 removed records -€0.8M
5 added records +€0.1M
--------------------------------
Net source impact -€5.9M&lt;/LI-CODE&gt;&lt;P&gt;From there, the investigation can move down to individual records, lineage, formula validation, data-quality materiality and final reconciliation.&lt;/P&gt;&lt;P&gt;The loop is deliberately simple:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case ➔ Hypotheses ➔ Experiment ➔ Evidence ➔ Update ➔ Repeat ➔ Scientific Verdict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And there is no game-over screen for guessing wrong.&lt;/P&gt;&lt;P&gt;The whole point is to watch your first theory collide with the evidence. Because that is usually where analytics gets interesting.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧞 Genie Is Not the Hint Button&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One thing I wanted to avoid was building a normal application and then attaching an AI assistant to the side.&lt;/P&gt;&lt;P&gt;In MAD DATA LAB, Genie is not there to explain a chart after the interesting work is finished.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Genie is part of the investigation loop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At each step, the application gives the Genie Agent the current visible evidence and a server-controlled set of Experiments that are valid at that point. Genie evaluates the evidence, updates the hypotheses and chooses the next analytical move.&lt;/P&gt;&lt;P&gt;The distinction matters:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The application controls what is possible. Genie decides what makes sense next.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The same rule applies to visualisation. Genie can select from approved analytical &lt;STRONG&gt;Instruments&lt;/STRONG&gt;&amp;nbsp;— a deviation decomposer, snapshot comparison, evidence table, DQ panel, lineage view, reconciliation view and others — but it cannot invent arbitrary UI or executable code at runtime.&lt;/P&gt;&lt;P&gt;Users can also ask Dr. Genie questions such as:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Which component explains most of the deviation?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;What changed between these two snapshots?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Is this data-quality warning actually large enough to explain the anomaly?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Which records contributed most?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Where did this value come from?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Under the hood, the data flow is intentionally small:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAD DATA LAB
  ↓
Investigation / state orchestration
  ↓
Genie Agent
  ↓
Curated Unity Catalog evidence
  ↓
Databricks SQL&lt;/LI-CODE&gt;&lt;P&gt;The application owns state, validation, scoring and safe rendering. Genie works against a curated analytical surface rather than unrestricted data.&lt;/P&gt;&lt;P&gt;There is also one boundary I care about a lot: &lt;STRONG&gt;Genie does not get the answer key&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The project has a private &lt;EM&gt;CASE_TRUTH&lt;/EM&gt;&amp;nbsp;oracle used for generation and automated validation. It's deliberately excluded from the Genie-facing data model. Dr. Genie has to reach the conclusion from the same visible evidence the investigation exposes.&lt;/P&gt;&lt;P&gt;Remove Genie, and MAD DATA LAB does not become the same game without a chatbot.&lt;/P&gt;&lt;P&gt;It becomes a scripted dashboard wearing a laboratory coat.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;&lt;span class="lia-unicode-emoji" title=":collision:"&gt;💥&lt;/span&gt; Then Reality Entered the Laboratory&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Of course, the first version of the idea was not the final one.&lt;/P&gt;&lt;P&gt;A few things looked excellent on paper and considerably less excellent five minutes later.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The beautiful board that was not actually useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My first game-board concept looked wonderfully mad-scientist-ish. It also spent far too much of the screen being decorative.&lt;/P&gt;&lt;P&gt;Very pretty. Very atmospheric. Not particularly useful for investigating data.&lt;/P&gt;&lt;P&gt;So I killed it. The laboratory stayed, but the evidence had to become the protagonist.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apparently, naming things is hard&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At one point I was calling the whole investigation an &lt;STRONG&gt;Experiment&lt;/STRONG&gt;… while also calling each individual analytical test an &lt;STRONG&gt;Experiment&lt;/STRONG&gt;. That survived until I tried explaining the game out loud.&lt;/P&gt;&lt;P&gt;The vocabulary became:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case ➔ Investigation ➔ Experiment ➔ Evidence ➔ Verdict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Much better.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The scary warning that explained almost nothing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Case #042 contains a genuine data-quality signal inside the synthetic Case data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5 overlapping business keys. Estimated overlapping impact: -€0.3M.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The anomaly is &lt;EM&gt;-€6.8M&lt;/EM&gt;. It's exactly the kind of thing humans — and AI — can jump on because it &lt;EM&gt;looks&lt;/EM&gt;&amp;nbsp;suspicious. But suspicious is not the same as material. And because that -€0.3M overlaps evidence already represented elsewhere, it must not be counted twice.&lt;/P&gt;&lt;P&gt;That became one of the central rules of the game: &lt;EM&gt;A warning is evidence. It is not automatically a cause.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Giving Genie freedom… but not a chainsaw&amp;nbsp;🪚&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My first instinct was basically: &lt;EM&gt;let the AI decide everything.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;That sounds elegant until the AI decides it would quite like an analytical instrument your application has never heard of.&lt;/P&gt;&lt;P&gt;The correction was simple: give Genie freedom &lt;EM&gt;inside explicit boundaries&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Enough freedom to investigate. Not enough freedom to invent a Quantum Revenue Microscope at runtime.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧯 What Worked, What Didn’t, and What Surprised Me&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A few design decisions made the project much stronger.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deterministic Cases worked.&lt;/STRONG&gt;&amp;nbsp;If the underlying mystery changes every time, it becomes difficult to tell whether Genie improved or the crime scene simply moved.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Curated evidence worked better than “give it everything.”&lt;/STRONG&gt;&amp;nbsp;The more clearly the tables, fields, semantics and examples described the analytical world, the less I needed to compensate with instructions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reconciliation became non-negotiable.&lt;/STRONG&gt;&amp;nbsp;If an explanation claims to account for a €6.8M anomaly, the evidence eventually needs to add up to €6.8M. If it does not, the investigation is not finished.&lt;/P&gt;&lt;P&gt;What I moved away from was equally useful: giant instruction prompts trying to anticipate every situation, free-form chat as the primary game mechanic, arbitrary AI-generated UI, and adding more Cases before Case #042 was trustworthy.&lt;/P&gt;&lt;P&gt;There is also a deliberately boring reliability layer. Model output is validated before it can control the game, and the design includes a deterministic SQL fallback for evidence retrieval when Genie has already selected a valid Experiment but the normal query-result path fails. Offline fixtures are for development or a genuine platform outage — not the normal challenge experience.&lt;/P&gt;&lt;P&gt;The biggest surprise, though, was that the interesting moments were not when Genie instantly found the correct answer. They were when new evidence forced the investigation to change direction.&lt;/P&gt;&lt;P&gt;That felt much closer to real analysis than I expected.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧠 What Genie Taught Me About Genie&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Building MAD DATA LAB changed a few of my assumptions about analytical AI.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Better context beats bigger prompts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this project, clearer semantics, curated data and tested examples were more valuable than increasingly heroic prompt engineering.&lt;/P&gt;&lt;P&gt;That matches the way Genie is designed to be curated: good metadata, business context, example SQL and realistic benchmark questions matter.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Freedom needs boundaries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Genie is most useful here when it can decide &lt;EM&gt;what to investigate&lt;/EM&gt;, while the application defines &lt;EM&gt;what is legal and renderable&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;A fully scripted flow is not very intelligent. An unconstrained AI application is not very predictable. The useful space is in between.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test the evidence, not the prose&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I stopped caring whether Genie says "&lt;EM&gt;Aha!"&amp;nbsp;&lt;/EM&gt;or&amp;nbsp;&lt;EM&gt;“Interesting.”&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What matters is whether it chose a sensible Experiment, retrieved the correct evidence, respected the numbers and reached a conclusion that reconciles.&lt;/P&gt;&lt;P&gt;The wording can vary.&amp;nbsp;&lt;STRONG&gt;The facts cannot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is also why the test strategy focuses on numeric results, valid Experiment choices, hypothesis status and reconciliation rather than exact sentences.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;“I don’t know yet” is a perfectly good answer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;One of the easiest mistakes with AI is expecting a confident conclusion every time. But sometimes the evidence is simply not sufficient yet.&lt;/P&gt;&lt;P&gt;MAD DATA LAB uses explicit states such as &lt;EM&gt;POSSIBLE&lt;/EM&gt;, &lt;EM&gt;SUPPORTED&lt;/EM&gt;, &lt;EM&gt;CONFIRMED&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;RULED OUT&lt;/EM&gt;&amp;nbsp;so that “&lt;EM&gt;plausible&lt;/EM&gt;” does not quietly turn into “&lt;EM&gt;proven&lt;/EM&gt;.”&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The interesting part is changing your mind&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The moment that made the concept click for me was not Genie finding the right answer.&lt;/P&gt;&lt;P&gt;It was the investigation updating a hypothesis because new evidence contradicted the previous direction.&lt;/P&gt;&lt;P&gt;That is much closer to useful analysis: &lt;EM&gt;observe, hypothesize, test, revise.&lt;BR /&gt;&lt;/EM&gt;Not: &lt;EM&gt;ask once, sound confident, move on.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;🧪 The Scientific Verdict&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I joined this challenge wondering whether Genie could do something more interesting than wait for a question.&lt;/P&gt;&lt;P&gt;MAD DATA LAB became my answer. It's playful on the surface, but underneath it is built around a serious analytical idea:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do not trust the first explanation just because it sounds plausible. Test it. Quantify it. Reconcile it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That is also what I ended up learning about Genie. The best experience did not come from asking it to sound smarter. It came from giving it better evidence, clearer boundaries and enough freedom to revise the investigation when the data changed the story.&lt;/P&gt;&lt;P&gt;So, after all the hypotheses, experiments, false leads and suspicious numbers, the final verdict is probably the simplest one: &lt;EM&gt;We did not ask for an answer. We ran an investigation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;&lt;span class="lia-unicode-emoji" title=":wrench:"&gt;🔧&lt;/span&gt; Want the Technical Deep Dive?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This article intentionally focused on the idea, the experience, the mistakes and what I learned while building MAD DATA LAB.&lt;/P&gt;&lt;P&gt;For the less sensible amount of technical detail — architecture, Genie conversation orchestration, the closed Experiment/Instrument protocol, deterministic Case generation, curated evidence, hidden ground truth, SQL reconciliation, testing strategy, Genie benchmarks, security boundaries and failure handling — And someday, when I feel like documenting the less sensible amount of technical detail behind all this, I’ll probably turn it into a companion engineering deep dive on Angelic Articles.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Links&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":laptop_computer:"&gt;💻&lt;/span&gt; Source:&lt;/STRONG&gt; &lt;A href="https://github.com/SauronShepherd/mad-data-lab" target="_blank"&gt;https://github.com/SauronShepherd/mad-data-lab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":movie_camera:"&gt;🎥&lt;/span&gt; Video:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://youtu.be/RzGWBMzAXVc" target="_blank"&gt;https://youtu.be/RzGWBMzAXVc&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 02:15:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/mad-data-lab-wonderful-something-is-wrong/m-p/167016#M1503</guid>
      <dc:creator>___angel___</dc:creator>
      <dc:date>2026-09-01T02:15:14Z</dc:date>
    </item>
  </channel>
</rss>

