Query editor
-- =====================================================================-- Robinhood Chain — Discovery v2B-R2-QA1-v3-- Full-Population Classifier Parity — COMPLETE REPLACEMENT-- =====================================================================---- CUSTODY-- * Structural basis: QA1-v2 replacement SQL, SHA-256-- beba3ba48d298874c101763aa2979e32fb42917b8d06a09051ec7ab8bc7a0dbb.-- * That basis did NOT generate the orphaned 12-August failed CSV.-- * Frozen R2 CSV SHA-256:-- 2187cd53c61a3b180b3e7a4086431d8d279a5c06a9f4d9fd4be62181a3b7853.-- * Frozen R2 and failed QA1 artifacts remain unchanged.-- * data_version = qa1v3-r2parity-20260814-001.---- PURPOSE-- Full-population current-side classifier parity at exact action identity-- (trader, tx_hash), with the frozen 5,290 loose-gate wallets embedded.-- The historical frozen 0x686a... 4 > 3 anomaly is only identified here;-- it is not adjudicated or rewritten by this current re-execution.---- STRICT RECEIPT SURFACE-- * Uses raw robinhood.logs, not tokens.transfers, downstream of R2 mirror.-- * ERC20 guard: Transfer topic0; topic1/topic2 present; topic3 NULL.-- * Positive raw value only; SELF removed before token/direction counts.-- * Installed live bases only: WETH and USDG. Every other ERC20 is target.-- * Top-level native OUT is exact only for trader -> SwapRouter02 value.-- * Potential native IN requires SwapRouter02 calldata/recipient replay plus-- the WETH burn and is never counted as an exact strict survivor here.---- TERMINAL PARTITION-- Every current R2 mirrored key receives exactly one terminal_status.-- Missing raw observer rows and missing transaction context are explicit.-- Invariant failures are emitted as exact BREACH rows with tx_hash.---- REQUIRED ZEROES BEFORE PASS-- action_invariant_breach_rows = 0-- wallet_strict_gate_gain_count = 0-- mirrored_without_one_terminal_assignment = 0---- OUTPUT GRAINS-- SUMMARY: one row per metric.-- BREACH: exact action/wallet identity for every failed invariant.-- WALLET: one row per current mirrored candidate wallet.-- =====================================================================WITHparams AS (SELECTDATE '2026-08-12' AS cutoff_date,DATE '2026-07-13' AS recent_start_date,DATE '2026-08-05' AS fresh_start_date,3 AS loose_min_mirrored_buys_30d,2 AS loose_min_mirrored_buy_days_30d,2 AS loose_min_mirrored_targets_30d,1 AS loose_min_mirrored_buys_7d),contracts AS (SELECT