Query editor
-- Clean business view: verified-production Turbine fill and batch activity.-- Turbine is fixed to Ethereum; timeframe is the only visible control.---- Organic metrics use the evidence-reviewed exclusion dimension persisted in-- turbine_organic_owner_review_queue.csv. The inclusive verified-production-- total is retained only in explicitly labelled diagnostic columns.WITH params AS (SELECTCAST('{{timeframe}}' AS VARCHAR) AS timeframe,'{{timeframe}}' IN ('daily', 'weekly', 'monthly') AS valid_timeframe,TIMESTAMP '2025-01-01 00:00:00' AS window_start,CAST(date_add('day', 1,CAST(at_timezone(CURRENT_TIMESTAMP, 'UTC') AS DATE)) AS TIMESTAMP) AS window_end),-- The daily hot receipt certifies only the fill + batch facts consumed here.-- Weekly-only LP, fee-accrual, selector-wide and sweep freshness remains on-- q7970473 for those separate consumers.adapter_gate_source AS (SELECT*,COUNT(*) OVER () AS receipt_row_countFROM dune.propeller_heads.result_turbine_user_fill_batch_daily_hot_v1_live),current_fill_state AS (SELECT COUNT(*) AS row_count, MAX(block_time) AS max_block_timeFROM dune.propeller_heads.result_turbine_user_fill_fact_v3_live),current_batch_state AS (SELECT COUNT(*) AS row_count, MAX(block_time) AS max_block_timeFROM dune.propeller_heads.result_turbine_batch_fact_v3_live),adapter_gate AS (SELECTCOUNT_IF(COALESCE(a.receipt_status, 'fail') <> 'pass'OR a.pipeline_revision <> 'turbine_user_fill_batch_daily_hot_v2'OR CURRENT_TIMESTAMP > a.checkpoint_expires_atOR a.user_fill_row_count <> f.row_countOR a.user_fill_max_block_time IS DISTINCT FROM f.max_block_timeOR a.batch_row_count <> b.row_countOR a.batch_max_block_time IS DISTINCT FROM b.max_block_time) AS failing_rows,MAX(COALESCE(a.verified_candidate_leakage_count, 0))AS verified_candidate_leakage_count,COUNT_IF(a.receipt_row_count = 1AND a.receipt_status = 'pass'AND a.pipeline_revision = 'turbine_user_fill_batch_daily_hot_v2'AND CURRENT_TIMESTAMP <= a.checkpoint_expires_atAND a.user_fill_row_count = f.row_countAND a.user_fill_max_block_time IS NOT DISTINCT FROM f.max_block_time