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.
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.
—
CPCB needs 16 valid hours for a 24-hour average, and 6 valid hours in the best 8-hour window for O₃ and CO.
Written by the stored procedure AQ.COMPUTE_AQI_AUDITED. Db2 triggers reject any later edit (SQLSTATE 75001).
All 34 stations × 122 days
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.
- Scope guardforecasts, health advice, blame
- Granite writes SQLIBM Granite 4.0 micro, CPU
- SQL checkerone SELECT, two views only
- Db2 runs itas AQREADER, read-only
- Answerrows from the audit
Recent questions on this server
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.
How a verdict is made
Everything a visitor sees is computed by SQL in Db2. The model sits outside the decision path.
CPCB · DPCC · IITM · IMD monitors, 15-minute rows, CC BY 4.0
MERGE upsert · range-partitioned by month · system-period temporal (revisions stay queryable)
window functions find stuck runs and impossible jumps
SQL PL: 16-hour rule, 8-hour O₃/CO, 3 pollutants incl. a PM, CPCB breakpoints
append-only, enforced by triggers · VECTOR search over rule texts
numbers and words checked by code · SQL run as a read-only user
- Verifiable receiptsEvery verdict gets a SHA-256 receipt of the exact readings and rules it judged, chained to the one before.
AQ.VERIFY_RECEIPTreplays the inputsFOR SYSTEM_TIME AS OFthe issue time. - Row access controlA row permission on
AQ.VERDICThides the out-of-scope monitor from every ID without theAQAUDITORrole. - Least privilegeThe app's ID can only
SELECTandINSERT, the question box's ID can read two views, and even the owner getsSQLSTATE 75001on an edit. - Checked by one command
python scripts/db2_evidence.pyruns 25 Db2 claims against the live database and records each answer. See the results