Autofix

Wrong answers become fixes your team approves. When your agents keep writing the same failing query, Autofix finds out why, plans the fix where it belongs, in Vuon or in your semantic layer, and writes the change for you to review.


Overview

Autofix starts from an issue on Query checks. It works in stages, and you decide how far it goes:

StageWhat Autofix does
Find the root causeReads the failing queries and their sessions, runs queries of its own against your warehouse to check its theory, and says whether it reproduced the failure.
Make a planDecides where the fix belongs and what to change, for you to approve.
Write the changesWrites the change to Vuon's documentation, to your upstream repository, or both.
Open a pull requestOpens a pull request on your repository for your team to review and merge.

Each stage shows its evidence. Nothing changes in your repository until someone on your team approves it.


Root causes

CauseWhat it meansTypical fix
Semantic layer gapA metric, join, or column meaning isn't declared, so the agent guessed.Add the definition upstream.
Schema driftThe warehouse changed and the definitions didn't.Update the definition to match.
Agent behaviourThe definitions are right, but the agent ignored them.Change the agent's prompt or tools.
Checker false positiveThe query was right and the check was wrong.Mark the issue expected, and tell us at support@vuon.ai.

Where the fix belongs

The plan says where to make the change:

  • Fix in Vuon: update Vuon's documentation of the table or metric. Takes effect for every agent at once.
  • Fix upstream: change the source of truth your team already maintains: a dbt project or MetricFlow definitions, LookML, a Cube schema, or a Snowflake semantic view.
  • Fix upstream, and patch Vuon meanwhile: open the upstream pull request, and patch Vuon so agents stop failing while it's in review.

Upstream fixes need code context: the repository that holds your semantic layer, connected through GitHub.


Hand it off

You don't have to let Autofix finish the job. From any completed stage:

  • Hand off in Linear: create or link a Linear issue with a brief of the root cause, the plan, and the changes.
  • Send to a coding agent: send the brief to Cursor's cloud agent, or to Claude Code or Codex through your own endpoint.
  • Send to your endpoint: deliver the brief as a signed webhook. See Send Autofix to your coding agent.
  • Copy the PR command: run the change yourself from the command line.

FAQ

Does Autofix change my repository on its own?

No. It writes changes for review. A pull request is opened only when someone on your team chooses to, and merging is up to you.

What data does Autofix read?

The failing queries, their sessions, your definitions, and the results of the queries it runs to check its theory. Handoffs that leave Vuon carry some of that data; see what the payload contains.


Was this page helpful?