altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

new dbt_pr_review needs altimate ai api key?

Open lgwacker opened this issue 6 months ago • 2 comments

Question

Hey guys.

When running the new skill, dbt_pr_review, im only in lint mode, even with manifests. debugging it its saying it cant run altimate core tools without altimate ai api key.

I couldnt find any documentation regarding it. Can you guys help me?

Thanks a lot!

lgwacker avatar Jun 04 '26 00:06 lgwacker

Thanks for the report — and sorry for the confusion. dbt_pr_review does not need an altimate AI API key. The whole deterministic verdict (lineage blast-radius, query equivalence, PII classification, A–F grade) runs fully offline via the bundled native engine. No altimate account or key is involved.

What actually happened: two internal tool descriptions still carried a stale line from our old Python-bridge days claiming they "require an API key." When the reviewer is stuck in lint-only mode, the agent read that line and mis-reported the cause as a missing API key. The real cause of lint-only is that the dbt manifest.json didn't resolve — not auth.

How to get the full (non-lint) review

Lint-only means no manifest was found/loaded. Check these:

  1. Compile first. Make sure a fresh manifest exists:
    dbt compile        # (or dbt build) — writes target/manifest.json
    
  2. Point at it. The default is target/manifest.json relative to the directory you run from. If yours lives elsewhere, pass it explicitly:
    dbt_pr_review({ manifest_path: "target/manifest.json" })
    
    or set manifestPath: in .altimate/review.yml (or --manifest <path> on the altimate review CLI).
  3. Freshness. A stale manifest that predates your changed models can't resolve them — recompile after adding/renaming models.
  4. Working directory. Run the review from the dbt project root so the relative path resolves.

For non-Snowflake projects, the compiled manifest also lets the reviewer auto-detect your dialect (adapter_type); without it the dialect defaults to snowflake.

The only thing that ever needs a key is the optional advisory LLM comment lane (and even that supports bring-your-own model) — it can never block a verdict, so it's unrelated to lint-only mode.

Fix

PR #882 corrects the two misleading tool descriptions and adds a troubleshooting section to the dbt PR Review docs spelling out exactly the above. Thanks again for flagging it!

anandgupta42 avatar Jun 04 '26 04:06 anandgupta42

Shipped in v0.8.2 (npm @altimateai/[email protected]). The two tool descriptions no longer claim an API key is required, and the dbt PR Review docs now explain that lint-only means the dbt manifest.json didn't resolve (run dbt compile / check the path), never an auth issue. Thanks again for the report!

anandgupta42 avatar Jun 04 '26 05:06 anandgupta42