AQI Truth Checking server…

Delhi · 34 monitors · 1 Sep – 31 Dec 2025

On 338 station-days, a dashboard average still printed an AQI. CPCB's own rules say there was none.

AQI Truth re-checks every monitor-hour inside IBM Db2, applies the CPCB method as stored procedures, and refuses when the data can't support a number. IBM Granite only explains verdicts and turns questions into read-only SQL. It never decides.

01

Audit any station-day

Pick a monitor on the map, then a day on its strip. Red means CPCB rules give no AQI, amber means one was computed only after throwing out bad readings.

—

validsuspectno AQI computablenot audited
All 34 stations × 122 days
02

Ask the audit

Granite writes one SQL query. Code checks it. Db2 runs it as AQREADER, a user that can only read two audited views, so the box can't change or leak anything else.

03

Does it work? Measured.

Against a plain average and a min/max threshold rule, on planted faults and on the real data. Limits are stated next to each number.

04

How a verdict is made

Everything a visitor sees is computed by SQL in Db2. The model sits outside the decision path.

IngestOpenAQ archive

CPCB · DPCC · IITM · IMD monitors, 15-minute rows, CC BY 4.0

Db2AQ.READING

MERGE upsert · range-partitioned by month · system-period temporal (revisions stay queryable)

Db2BUILD_HOURLY

window functions find stuck runs and impossible jumps

Db2COMPUTE_AQI_AUDITED

SQL PL: 16-hour rule, 8-hour O₃/CO, 3 pollutants incl. a PM, CPCB breakpoints

Db2Verdict + evidence ledger

append-only, enforced by triggers · VECTOR search over rule texts

GraniteExplain · Ask

numbers and words checked by code · SQL run as a read-only user