e3393de3cd
A run's physical table is fixed by its id format, not an org's current runTableV2 flag. An org that was on v2 then flipped the flag off still holds v2 runs (they stay readable, routed by id), so scoping the dedup and hierarchy reads to "legacy" off the per-org flag would miss those v2 runs: it would silently drop a v2 run's children and parent on retrieve, and let a duplicate through idempotency dedup. Gate the scope on whether ANY v2 run can exist in the deployment (the native realtime master switch) instead. While native is off no v2 run exists anywhere, so "legacy" is safe and still skips the empty task_run_v2 query; once native is on, every read covers both tables.