Root-cause fixes
Fix the cause, not just the answer
When your agent keeps getting a number wrong, Vuon Autofix finds out why, in your semantic layer, docs or data, and writes the fix as a pull request your team approves.
- Root causeApproved by Jia
- PlanApproved by Jia
- ChangesReady for review
Root causeSemantic gap
Agents sum invoices.amount for revenue, which adds every currency as if it were dollars. The revenue measure in dbt never says which column is in US dollars.
Changes · fernway/dbt-analyticsdbt
99semantic_models:1010 - name: invoices1111 measures:1212 - name: revenue1313 agg: sum14− expr: amount14+ expr: amount_usd15+ description: Paid revenue in USD.16+ - name: revenue_local17+ agg: sum18+ expr: amount
From a wrong answerto a merged fix
Monitoring groups your agents’ wrong queries into issues. On any issue, Autofix works in three stages and stops for a person after each one, then ships the fix the way your team works.
- 1
Find the root cause
Vuon reads the failing queries, your definitions and the data, then reproduces the failure.
- 2
Plan the fix
It decides where the fix belongs, in the semantic layer, the docs or the data, and lists the steps.
- 3
Write the changes
A diff against the file the definition lives in, checked by replaying the queries that failed.
- 4
Ship it your way
Once you approve the changes: a pull request, a ticket, or a hand-off to your coding agent.
The root cause,with the evidence
Autofix doesn’t guess from the error. It checks the definitions, counts the rows and reruns the query, then tells you which kind of problem it found.
invoices.revenue is defined as SUM(amount), with no currency. amount is in each invoice's own currency; amount_usd is converted at the invoice day's rate. Finance reports from amount_usd, but only in the board dashboard's SQL, so agents had no way to know.
Evidence
- The revenue measure in models/billing/invoices.yml is SUM(amount), with no currency.
- 31% of 2026 paid invoices are billed in EUR or GBP.
- The board dashboard sums amount_usd; agent answers ran about 4% lower.
- Reproduced the block, then summed amount_usd and the query passed.
- 01
Semantic gap
A definition is missing, wrong or unclear, so agents write the query wrong.
- 02
Schema drift
A column was renamed, dropped or retyped, and the docs still describe the old shape.
- 03
Agent behaviour
The definition was right and the agent didn’t use it: a fix for your prompts or skills.
- 04
A check that was wrong
The SQL was right for this case. Vuon says so, and tunes the check instead of your data.
The fix lands wherethe definition lives
If revenue is defined in dbt, the fix is a dbt pull request. LookML, Cube, Snowflake semantic views and Metabase get theirs. Before it merges, Vuon replays every query that failed against the change.
Semantic layers we supportCount revenue in US dollars #1482
Openvuon-bot wants to merge into main from vuon/revenue-in-usdAgents breaking revenue down by month summed invoices.amount, adding euro and pound invoices as if they were dollars (31% of 2026 paid invoices). This sums amount_usd for revenue and keeps billed-currency revenue as revenue_local.
99semantic_models:1010 - name: invoices1111 measures:1212 - name: revenue1313 agg: sum14− expr: amount14+ expr: amount_usd15+ description: Paid revenue in USD.16+ - name: revenue_local17+ agg: sum18+ expr: amount
- Vuon · replayed 41 blocked queries41 pass
- Vuon evals · finance questions120 of 120
- dbt buildpassed
Ship ityour way
Connect GitHub and Vuon opens the pull request for you. Or file the plan in Linear or Jira, or hand it to Cursor, Claude Code, Codex or your own coding agent by webhook.
Hand fixes to your agent- Open pull request as VuonGitHub
- Create a Linear issuewith the plan
- Create a Jira ticketwith the plan
- Send to a coding agentCursor, Claude Code, Codex
- Send to your webhookquery_check.autofix
Your team approvesevery step
Autofix never merges on its own. Approve each stage, or send it back with a note and Vuon redoes it. The team that owns the definitions stays the team that changes them.
- 1Sum amount_usd for revenue in dbtChange the revenue measure in models/billing/invoices.yml from SUM(amount) to SUM(amount_usd).
- 2Keep billed-currency revenue by nameAdd revenue_local on amount, for breakdowns grouped by currency.
- 3Tell agents nowDescribe the revenue measure for agents so they sum amount_usd before the dbt change deploys.
Call it revenue_billed_currency, like our other models.
Accuracy goes up,and stays up
Once the fix merges, the issue’s queries stop failing, for every agent that reads the definition. If the problem comes back, the issue reopens and you hear about it.
Blocked queries a day
Ship data agentsthat get better every week


