altimate-code
altimate-code copied to clipboard
dbt PR review: precision, coverage and AI verifier stack
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.ymlor with its env variable set to0;ai: falseor--no-aiturns 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:
- #1719 review the PR's own changes
- #1720 an honest PR comment
- #1721 a readable PR comment
- #1722 verdict trust
- #1723 failures are never clean
- #1724 consumers outside dbt, engine-aware integer division, contract checks
- #1725 incremental and snapshot semantics
- #1726 remaining review gaps
- #1739 precision and new rules from a replay of public dbt PRs
- #1758 posting policy
- #1769 opt-in AI verifier
- #1770 deterministic rules for macro, test and yml defects
- #1771 opt-in AI input coverage
- #1772 opt-in test-gap check and focused AI batches
- #1773
--all-projects - #1836 wider AI lane input,
ai:switches in config, and the measured lane configuration on by default - #1837 the repo's review instructions for the AI finder, from the base branch
- #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.