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.

Revenue currencySQL-31F · 41 queries · 2 agents
Autofix
  1. Root causeApproved by Jia
  2. PlanApproved by Jia
  3. 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

models/billing/invoices.yml+5 −1
99semantic_models:
1010 - name: invoices
1111 measures:
1212 - name: revenue
1313 agg: sum
14− expr: amount
14+ expr: amount_usd
15+ description: Paid revenue in USD.
16+ - name: revenue_local
17+ agg: sum
18+ expr: amount
Ask Vuon to redoOpen pull request

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. 1

    Find the root cause

    Vuon reads the failing queries, your definitions and the data, then reproduces the failure.

  2. 2

    Plan the fix

    It decides where the fix belongs, in the semantic layer, the docs or the data, and lists the steps.

  3. 3

    Write the changes

    A diff against the file the definition lives in, checked by replaying the queries that failed.

  4. 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.

Root causeSQL-31F
Reproduced
Semantic gap

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.
Ask Vuon to redoApprove
  • 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 support
fernway/dbt-analytics

Count revenue in US dollars #1482

Openvuon-bot wants to merge into main from vuon/revenue-in-usd

Agents 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.

models/billing/invoices.yml+5 −1
99semantic_models:
1010 - name: invoices
1111 measures:
1212 - name: revenue
1313 agg: sum
14− expr: amount
14+ expr: amount_usd
15+ description: Paid revenue in USD.
16+ - name: revenue_local
17+ agg: sum
18+ expr: amount
  • Vuon · replayed 41 blocked queries41 pass
  • Vuon evals · finance questions120 of 120
  • dbt buildpassed
Review requested from Jia Wen

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
  • 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.

PlanSQL-31F
Waiting for you
Fix indbt · fernway/dbt-analyticsandagent context, until it deploys
  1. 1Sum amount_usd for revenue in dbtChange the revenue measure in models/billing/invoices.yml from SUM(amount) to SUM(amount_usd).
  2. 2Keep billed-currency revenue by nameAdd revenue_local on amount, for breakdowns grouped by currency.
  3. 3Tell agents nowDescribe the revenue measure for agents so they sum amount_usd before the dbt change deploys.
Ask Vuon

Call it revenue_billed_currency, like our other models.

Redo with noteApprove plan

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.

Revenue currencySQL-31F · finance-bot, growth-agent
Resolved

Blocked queries a day

Nov 3Nov 16

Ship data agentsthat get better every week

SOC 2 Certified
SOC 2 Type II
HIPAA Compliant
HIPAA
GDPR Compliant
GDPR