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

dbt PR review: precision, coverage and AI verifier stack

Open RaghwendraSingh opened this issue 2 weeks ago • 0 comments

Tracking issue for a stack of pull requests that improve altimate review (the dbt PR review) on three fronts:

  • Precision: review only the PR's own changes (real base, merge-base diff, project scope), fewer and better-placed comments, no false blocks from engine errors or noise rules.
  • Coverage: incremental/snapshot semantics, contracts and dialect-aware checks, data-test adequacy, deterministic rules for macro, test and yml defects, and reviewing every dbt project a PR touches.
  • AI lane: a verifier that confirms or refutes each AI comment from dbt evidence, wider AI input coverage, focused batches, repo conventions and rule-noise filtering. The AI lane runs only when a model is configured; with no model, the review makes no model calls. When it runs, its measured configuration (wider input, focused batches, context cards, other and Python files, the verifier, conventions and rule-noise filtering) is on by default, and each part can be turned off under ai: in .altimate/review.yml or with its env variable set to 0; ai: false or --no-ai turns the lane off. The test-gap check stays opt-in.
    • #1769, #1771 and #1772 add the verifier, wider input and focused batches as opt-in switches; #1836 makes the measured set the default, and #1837 and #1838 add conventions and rule-noise filtering, also on by default. On 46 public dbt PRs that configuration raised 526 real bugs against CodeRabbit's 437, with 10% wrong comments against 14%. Cost with a model configured: about 3 finder calls per PR instead of 1 (about 62k input and 8k output tokens), plus about 17k/2k for the verifier, bounded by per-kind quotas and the verifier's budgets.

The PRs are stacked; each is based on the previous one and should be merged in order:

  1. #1719 review the PR's own changes
  2. #1720 an honest PR comment
  3. #1721 a readable PR comment
  4. #1722 verdict trust
  5. #1723 failures are never clean
  6. #1724 consumers outside dbt, engine-aware integer division, contract checks
  7. #1725 incremental and snapshot semantics
  8. #1726 remaining review gaps
  9. #1739 precision and new rules from a replay of public dbt PRs
  10. #1758 posting policy
  11. #1769 opt-in AI verifier
  12. #1770 deterministic rules for macro, test and yml defects
  13. #1771 opt-in AI input coverage
  14. #1772 opt-in test-gap check and focused AI batches
  15. #1773 --all-projects
  16. #1836 wider AI lane input, ai: switches in config, and the measured lane configuration on by default
  17. #1837 the repo's review instructions for the AI finder, from the base branch
  18. #1838 fewer wrong rule comments when the AI lane runs: rule types off, rule verifier, rule-post policy

Side draft: #1774 (AI evidence line, suggestions, base-branch repo instructions).

Related: #1240, #864, #894.

RaghwendraSingh avatar Nov 20 '26 06:11 RaghwendraSingh