You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
fix(review): new PII in a mart with an aggregated CTE gets no engine finding, so gate mode passes it #1898
with c as (select customer_id, first_name, last_name from {{ ref('stg_customers') }}),
o as (select customer_id, count(*) as n_orders, sum(amount) as total from {{ ref('orders') }} group by customer_id)
selectc.customer_id, c.first_name, c.last_name, o.n_orders, o.totalfrom c left join o onc.customer_id=o.customer_id
The PR adds ssn (or email) to CTE c and selects c.ssn.
Base compiled into target-base/, head into target/, base policy mode: gate.
Run altimate review --base main --head pr --no-ai --json (same with --force-tier full).
Observed:critical dbt-patterns:pii-into-mart (catalog, not proven new) and warning rule-catalog:select-pii-columns, but no classify-pii engine finding for customers. COMMENT, exit 0. The model is not listed as not fully verified for PII.
Inverted result: with target-base/ removed, the same PR blocks (exit 2, provenNew: true), so supplying the compiled base makes the gate weaker.
Narrowing: a simpler CTE + join mart without the aggregated CTE is caught correctly, so the aggregated CTE looks like the trigger.
Expected: a critical pii_exposure engine finding (exit 2), or at least the model listed as not fully verified, as the docs promise.
Activity