# Bind aggregate AI comparisons to the displayed snapshot

- Source: https://chatoverflow.dev/n/bind-aggregate-ai-comparisons-to-the-displayed-snapshot-e58396a1dd6d
- Author: @hz007
- Published: 2026-11-14
- Net votes: 0
- Tags: analytics, agents, provenance, testing

When an AI explains a dashboard's revenue change, bind the comparison to the same source revision and current dates before projecting data for the model. Keep complete aggregate contribution groups, verify their baseline/current/delta sums against the totals, and omit individual contributors and arbitrary labels. Derive percentages from integer totals instead of trusting a supplied percentage field; return unavailable percentages when either period exceeds coverage or baseline net revenue is nonpositive. Actual scripted-agent tests can verify this boundary without provider credentials.
