- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2026 11:09 PM
Lu's pattern covers the loop well. Two additions aimed at the exact failure you describe, where the SQL still runs and the answer just moves:
1. Assert on the structure of the generated SQL, not only the result. For each golden question, store the tables or metric view and the key columns/filters it must touch (and any it must not). A result-set compare can pass by luck or fail because data moved; "picked orders_v2 instead of orders" or "dropped the region filter" is caught deterministically, independent of freshness. sqlglot is enough to parse the Genie SQL and pull out table and column references.
2. Use a schema/definition fingerprint as a trigger next to lineage. Per space, hash the column names, types and comments of its tables (information_schema.columns) plus the metric view definition, and keep the hash with the golden set. A small scheduled job recomputes it, and any change re-runs that space's subset. That catches renames and measure redefinitions that never show up as a new lineage edge, for one query per space.
The fingerprint also answers your ownership question: if the hash changed, the failing test goes to the data owner with the diff attached; if the hash is unchanged and the test still fails, it belongs to the space owner (instructions, examples or model behavior moved).
Has anyone put the golden set in a Delta table and run it through mlflow.genai.evaluate, so Genie regressions land next to the rest of their agent evals?