:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(replay-vision): bump the premium scanner model to gemini 3.7 flash (#83010)
Tue Haulunde0a4c34ce874
diff --git a/posthog/tasks/test/test_usage_report.py b/posthog/tasks/test/test_usage_report.pyindex c967821ae6aa..32838f624bda 100644--- a/posthog/tasks/test/test_usage_report.py+++ b/posthog/tasks/test/test_usage_report.py@@ -299,14 +299,14 @@ class TestUsageReport(APIBaseTest, ClickhouseTestMixin, ClickhouseDestroyTablesMteam=self.org_1_team_1,name="Enabled scanner",scanner_type=ScannerType.MONITOR,- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=True,)ReplayScanner.objects.create(team=self.org_1_team_1,name="Disabled scanner",scanner_type=ScannerType.MONITOR,- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=False,)diff --git a/products/replay_vision/backend/billing.py b/products/replay_vision/backend/billing.pyindex 1bce53f8c133..7896d955eebd 100644--- a/products/replay_vision/backend/billing.py+++ b/products/replay_vision/backend/billing.py@@ -40,14 +40,18 @@ class GeminiModelPricing:# Per-model source of truth. Non-retired rows are the selectable lineup and must mirror `ScannerModel`.# The flash tier has two options: the cheaper `gemini-3-flash-preview` (the default) and the stable-# `gemini-3.6-flash`. `gemini-3-flash-preview` is a preview id, so watch for Google retiring it and+# `gemini-3.7-flash`. `gemini-3-flash-preview` is a preview id, so watch for Google retiring it and# remap it like migration 0052 did if that happens. No pro option: Google's only pro model is a preview id.#+# Prices are Google's standard rates; 3.7 Flash bills at half these rates until 2027-01-01+# (launch promo), which we keep as extra headroom rather than repricing credits.+## | model | tier | $/1M in | $/1M out | credits/observation |# |------------------------------|------------|---------|----------|---------------------|# | gemini-3.5-flash-lite | flash lite | 0.30 | 2.50 | 2 |# | gemini-3-flash-preview | flash | 0.50 | 3.00 | 5 |-# | gemini-3.6-flash | flash | 1.50 | 7.50 | 15 |+# | gemini-3.7-flash | flash | 1.50 | 7.50 | 15 |+# | gemini-3.6-flash | (retired) | 1.50 | 7.50 | 15 |# | gemini-2.5-flash | (retired) | 0.30 | 2.50 | 2 |# | gemini-3.5-flash | (retired) | 1.50 | 9.00 | 15 |# | gemini-3.1-flash-lite-preview| (retired) | 0.25 | 1.50 | 2 |@@ -61,9 +65,12 @@ GEMINI_MODELS: dict[str, GeminiModelPricing] = {ScannerModel.GEMINI_3_FLASH_PREVIEW: GeminiModelPricing(tier="flash", input_usd_per_1m=0.50, output_usd_per_1m=3.00, credits_per_observation=5),- ScannerModel.GEMINI_3_6_FLASH: GeminiModelPricing(+ ScannerModel.GEMINI_3_7_FLASH: GeminiModelPricing(tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=7.50, credits_per_observation=15),+ "gemini-3.6-flash": GeminiModelPricing(+ tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=7.50, credits_per_observation=15, retired=True+ ),"gemini-2.5-flash": GeminiModelPricing(tier="flash", input_usd_per_1m=0.30, output_usd_per_1m=2.50, credits_per_observation=2, retired=True),diff --git a/products/replay_vision/backend/migrations/0075_alter_replayscanner_model.py b/products/replay_vision/backend/migrations/0075_alter_replayscanner_model.pynew file mode 100644index 000000000000..ac93212ecb18--- /dev/null+++ b/products/replay_vision/backend/migrations/0075_alter_replayscanner_model.py@@ -0,0 +1,24 @@+# Generated by Django 5.2.17 on 2026-08-14 06:32++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("replay_vision", "0074_observation_session_group_keys"),+ ]++ operations = [+ migrations.AlterField(+ model_name="replayscanner",+ name="model",+ field=models.CharField(+ choices=[+ ("gemini-3.5-flash-lite", "Gemini 3.5 Flash Lite"),+ ("gemini-3-flash-preview", "Gemini 3 Flash"),+ ("gemini-3.7-flash", "Gemini 3.7 Flash"),+ ],+ max_length=64,+ ),+ ),+ ]diff --git a/products/replay_vision/backend/migrations/0076_remap_scanner_models_gemini_3_7.py b/products/replay_vision/backend/migrations/0076_remap_scanner_models_gemini_3_7.pynew file mode 100644index 000000000000..1c85fe719452--- /dev/null+++ b/products/replay_vision/backend/migrations/0076_remap_scanner_models_gemini_3_7.py@@ -0,0 +1,18 @@+from django.db import migrations+++# 3.7 Flash supersedes 3.6 Flash at identical list prices (same 15-credit charge), so existing+# premium scanners move over. Frozen observation snapshots keep the old id.+def remap_scanner_models(apps, schema_editor):+ ReplayScanner = apps.get_model("replay_vision", "ReplayScanner")+ ReplayScanner.objects.filter(model="gemini-3.6-flash").update(model="gemini-3.7-flash")+++class Migration(migrations.Migration):+ dependencies = [+ ("replay_vision", "0075_alter_replayscanner_model"),+ ]++ operations = [+ migrations.RunPython(remap_scanner_models, migrations.RunPython.noop, elidable=True),+ ]diff --git a/products/replay_vision/backend/migrations/max_migration.txt b/products/replay_vision/backend/migrations/max_migration.txtindex e80166d12b45..58f8f8bcc8e5 100644--- a/products/replay_vision/backend/migrations/max_migration.txt+++ b/products/replay_vision/backend/migrations/max_migration.txt@@ -1 +1 @@-0074_observation_session_group_keys+0076_remap_scanner_models_gemini_3_7diff --git a/products/replay_vision/backend/models/replay_scanner.py b/products/replay_vision/backend/models/replay_scanner.pyindex 8d1eeb1bd984..7657a1b3c70c 100644--- a/products/replay_vision/backend/models/replay_scanner.py+++ b/products/replay_vision/backend/models/replay_scanner.py@@ -44,7 +44,7 @@ class ScannerModel(models.TextChoices):GEMINI_3_5_FLASH_LITE = "gemini-3.5-flash-lite", "Gemini 3.5 Flash Lite"GEMINI_3_FLASH_PREVIEW = "gemini-3-flash-preview", "Gemini 3 Flash"- GEMINI_3_6_FLASH = "gemini-3.6-flash", "Gemini 3.6 Flash"+ GEMINI_3_7_FLASH = "gemini-3.7-flash", "Gemini 3.7 Flash"class ScannerOrigin(models.TextChoices):diff --git a/products/replay_vision/backend/tests/test_access_control.py b/products/replay_vision/backend/tests/test_access_control.pyindex 0407b383d30c..29ae64004eac 100644--- a/products/replay_vision/backend/tests/test_access_control.py+++ b/products/replay_vision/backend/tests/test_access_control.py@@ -212,7 +212,7 @@ class TestReplayScannerAccessControl(_AccessControlTestCase):"name": "targeting-denied","scanner_type": "monitor","scanner_config": {"prompt": "p"},- "model": "gemini-3.6-flash",+ "model": "gemini-3.7-flash","experiment_targeting": {"experiment_id": experiment.id,"variant_keys": [],diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.pyindex 55c402841cee..d4af3c474648 100644--- a/products/replay_vision/backend/tests/test_api.py+++ b/products/replay_vision/backend/tests/test_api.py@@ -80,7 +80,7 @@ class _VisionAPITestCase(APIBaseTest):"name": "my-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -94,7 +94,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "checkout-monitor","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -114,7 +114,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "watermark-seed","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -128,7 +128,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"missing-{missing_field}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}del payload[missing_field]resp = self.client.post(self.scanners_url, data=payload, format="json")@@ -142,7 +142,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "explicit-provider","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"provider": ScannerProvider.GOOGLE,},format="json",@@ -158,7 +158,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"rate-{value}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"sampling_rate": value,},format="json",@@ -174,7 +174,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"rate-ok-{value}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"sampling_rate": value,},format="json",@@ -190,7 +190,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "dup","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -205,7 +205,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)resp = self.client.get(self.scanners_url)self.assertEqual(resp.status_code, 200)@@ -257,7 +257,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"valid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -281,7 +281,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"invalid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -391,7 +391,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"invalid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -460,7 +460,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "with-query","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"query": {"filter_test_accounts": True},},format="json",@@ -476,7 +476,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "stripped","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"query": {"date_from": "-7d", "date_to": "-1d", "filter_test_accounts": True},},format="json",@@ -501,7 +501,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "bad-query","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"query": query,},format="json",@@ -695,7 +695,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "needs-recording-read","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,},format="json",)@@ -735,7 +735,7 @@ class TestReplayScannerTags(_VisionAPITestCase):"name": name,"scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,**extra,}@@ -875,7 +875,7 @@ class TestScannerExperimentTargeting(_VisionAPITestCase):"name": name,"scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,**extra,}@@ -979,7 +979,7 @@ class TestScannerLifecycleTelemetry(_VisionAPITestCase):"name": "telemetry-create","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"sampling_rate": 0.25,"query": {"kind": "RecordingsQuery", "events": [{"id": "$pageview"}]},},@@ -993,7 +993,7 @@ class TestScannerLifecycleTelemetry(_VisionAPITestCase):self.assertEqual(len(created), 1)properties = created[0].kwargs["properties"]self.assertEqual(properties["scanner_type"], ScannerType.MONITOR)- self.assertEqual(properties["model"], ScannerModel.GEMINI_3_6_FLASH)+ self.assertEqual(properties["model"], ScannerModel.GEMINI_3_7_FLASH)self.assertEqual(properties["credits_per_observation"], 15)self.assertEqual(properties["sampling_rate"], 0.25)self.assertTrue(properties["has_filters"])@@ -1052,7 +1052,7 @@ class TestScannerDigestProvisioning(_VisionAPITestCase):"name": "checkout-monitor","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}def test_create_provisions_daily_digest(self) -> None:@@ -1080,7 +1080,7 @@ class TestScannerEstimatePersistence(_VisionAPITestCase):"name": "estimate-persistence","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}payload.update(overrides)return payload@@ -1167,7 +1167,7 @@ class TestScannerSignalSourceEnablement(_VisionAPITestCase):"name": "signal-enablement","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}payload.update(overrides)return payload@@ -1310,7 +1310,7 @@ class TestReplayObservationViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)resp = self.client.get(self.observations_url(str(other_scanner.id)))self.assertEqual(resp.status_code, 404)@@ -2867,7 +2867,7 @@ class TestSessionReplayObservationViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)ReplayObservation.objects.create(scanner=other_scanner,@@ -3081,7 +3081,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name=name,scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=enabled,estimated_monthly_observations=estimate,)@@ -3106,7 +3106,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name="backfilled",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)ReplayScannerBackfill.objects.for_team(self.team.id).create(scanner=scanner,@@ -3135,7 +3135,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=True,estimated_monthly_observations=500,)diff --git a/products/replay_vision/backend/tests/test_backfills.py b/products/replay_vision/backend/tests/test_backfills.pyindex 12f3e56d1495..3bb011ad50ae 100644--- a/products/replay_vision/backend/tests/test_backfills.py+++ b/products/replay_vision/backend/tests/test_backfills.py@@ -74,7 +74,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "t","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -126,7 +126,7 @@ class TestBackfillQuotaCommitment:name="c",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)_make_backfill(cancelled_scanner, status=BackfillStatus.CANCELLED, total_count=100, credits_per_observation=5)@@ -190,7 +190,7 @@ class TestCreateObservationForBackfill:def test_capped_retake_counts_as_in_flight_spend_for_the_next_admission(self) -> None:# The retake reserves fresh budget under the admission lock, so the next admission's budget# read must see it and refuse; missing it would overshoot the cap by the retaken row.- credits = observation_credits_for_model(ScannerModel.GEMINI_3_6_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)scanner = _make_scanner(credit_limit=credits)backfill = _make_backfill(scanner)failed = ReplayObservation.objects.create(@@ -513,7 +513,7 @@ class TestBackfillsApi(APIBaseTest):name="backfill-api-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self.base_url = f"/api/projects/{self.team.id}/vision/scanners/{self.scanner.id}/backfills"diff --git a/products/replay_vision/backend/tests/test_billing.py b/products/replay_vision/backend/tests/test_billing.pyindex a74deb5fcc20..cf4ed53650a7 100644--- a/products/replay_vision/backend/tests/test_billing.py+++ b/products/replay_vision/backend/tests/test_billing.py@@ -25,7 +25,7 @@ class TestReplayVisionBillingUsage(APIBaseTest):*,team_id: int | None,created_at: datetime,- model: str = ScannerModel.GEMINI_3_6_FLASH,+ model: str = ScannerModel.GEMINI_3_7_FLASH,credits: int | None = None,) -> None:receipt = ReplayObservationUsage.objects.create(@@ -44,10 +44,10 @@ class TestReplayVisionBillingUsage(APIBaseTest):begin = now - timedelta(days=1)end = now + timedelta(days=1)# Two in-window at different model prices, one out-of-window, one for another team.- self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_6_FLASH)+ self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_7_FLASH)self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_5_FLASH_LITE)self._receipt(team_id=self.team.id, created_at=now - timedelta(days=3))- self._receipt(team_id=self.team.id + 1, created_at=now, model=ScannerModel.GEMINI_3_6_FLASH)+ self._receipt(team_id=self.team.id + 1, created_at=now, model=ScannerModel.GEMINI_3_7_FLASH)result = dict(get_replay_vision_credits_by_team(begin, end))assert result == {self.team.id: 15 + 2, self.team.id + 1: 15}@@ -57,7 +57,7 @@ class TestReplayVisionBillingUsage(APIBaseTest):begin = now - timedelta(days=1)end = now + timedelta(days=1)# Mixed prices so a count can't be mistaken for the credit sum (15 + 2 credits, but 2 observations).- self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_6_FLASH)+ self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_7_FLASH)self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_5_FLASH_LITE)self._receipt(team_id=self.team.id, created_at=now - timedelta(days=3))self._receipt(team_id=self.team.id + 1, created_at=now)@@ -100,7 +100,7 @@ def test_gemini_models_config_mirrors_scanner_model_enum() -> None:)[email protected]("model", [ScannerModel.GEMINI_3_FLASH_PREVIEW, ScannerModel.GEMINI_3_6_FLASH])[email protected]("model", [ScannerModel.GEMINI_3_FLASH_PREVIEW, ScannerModel.GEMINI_3_7_FLASH])def test_flash_credit_price_tracks_the_margin_formula(model: str) -> None:# Both flash-tier prices are contractually the formula output (the budget tier is pinned below it), so a# token price or margin change must come with a conscious repricing, not silently stale credits.diff --git a/products/replay_vision/backend/tests/test_estimate_refresh.py b/products/replay_vision/backend/tests/test_estimate_refresh.pyindex baa7b151a88b..b64a508b62b1 100644--- a/products/replay_vision/backend/tests/test_estimate_refresh.py+++ b/products/replay_vision/backend/tests/test_estimate_refresh.py@@ -60,7 +60,7 @@ def _make_scanner(**overrides: Any) -> ReplayScanner:"name": "estimate-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)diff --git a/products/replay_vision/backend/tests/test_facade.py b/products/replay_vision/backend/tests/test_facade.pyindex 816bb874779b..a49d2c81f489 100644--- a/products/replay_vision/backend/tests/test_facade.py+++ b/products/replay_vision/backend/tests/test_facade.py@@ -28,7 +28,7 @@ class TestFetchPageSessionObservations(APIBaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "summarize the session"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _observation(self, scanner: ReplayScanner, session_id: str, model_output: dict) -> ReplayObservation:diff --git a/products/replay_vision/backend/tests/test_impact.py b/products/replay_vision/backend/tests/test_impact.pyindex 4ec6994aa391..7b8cf7698fa5 100644--- a/products/replay_vision/backend/tests/test_impact.py+++ b/products/replay_vision/backend/tests/test_impact.py@@ -27,7 +27,7 @@ class _ImpactTestCase(APIBaseTest):name=f"impact-{scanner_type}-{ReplayScanner.objects.count()}",scanner_type=scanner_type,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _make_observation(diff --git a/products/replay_vision/backend/tests/test_max_tools.py b/products/replay_vision/backend/tests/test_max_tools.pyindex db53ab7e69ba..ca1d86b01441 100644--- a/products/replay_vision/backend/tests/test_max_tools.py+++ b/products/replay_vision/backend/tests/test_max_tools.py@@ -119,7 +119,7 @@ class TestSearchReplayVisionObservationsTool(BaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "rate frustration"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _create_observation(self, scanner: ReplayScanner, session_id: str, model_output: dict) -> ReplayObservation:@@ -574,7 +574,7 @@ class TestScanReplayVisionSessionsScannerLimit(BaseTest):name="capped",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)cost = observation_credits_for_model(scanner.model)seed_scanner_spend(scanner, cost)@@ -604,7 +604,7 @@ class TestScanReplayVisionSessionsScannerLimit(BaseTest):name="uncapped",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)start = MagicMock(return_value=MagicMock())with (@@ -710,7 +710,7 @@ class TestCreateReplayVisionActionTool(BaseTest):name="my-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)@parameterized.expand([("daily",), ("weekly",)])@@ -742,7 +742,7 @@ class TestCreateReplayVisionActionTool(BaseTest):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)_, artifact = await self._tool()._arun_impl(scanner_id=str(scanner.id), name="cross-team")@@ -781,7 +781,7 @@ class TestReplayVisionToolAuthorization(BaseTest):name="secret-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)@pytest.mark.django_db@@ -822,7 +822,7 @@ class TestReplayVisionToolAuthorization(BaseTest):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)_, artifact = await self._tool(ScanReplayVisionSessionsTool)._arun_impl(@@ -860,7 +860,7 @@ class TestReplayVisionApprovalFlowEndToEnd(BaseTest):name="checkout",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)@staticmethod@@ -952,7 +952,7 @@ class TestUpdateReplayVisionScannerTool(BaseTest):"name": "checkout","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"enabled": False,"estimated_monthly_observations": 400,# The model always stamps this alongside the count; the preview treats a missing one as stale.@@ -1136,7 +1136,7 @@ class TestReplayVisionLifecycleTools(BaseTest):"name": "checkout","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -1166,7 +1166,7 @@ class TestReplayVisionLifecycleTools(BaseTest):inline_key="k",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "one-off"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=False,sampling_rate=0.0,)@@ -1267,7 +1267,7 @@ class TestReplayVisionActionScannerAccess(BaseTest):name="private",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did they check out?"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)return VisionAction.all_teams.create(team=self.team,@@ -1332,7 +1332,7 @@ class TestReplayVisionActionScannerAccess(BaseTest):name="themes",scanner_type=ScannerType.CLASSIFIER,scanner_config={"prompt": "what went wrong?", "tags": ["checkout"]},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)_, artifact = await self._tool(AnalyzeReplayVisionImpactTool)._arun_impl(scanner_id=str(scanner.id))diff --git a/products/replay_vision/backend/tests/test_migration_backfill.py b/products/replay_vision/backend/tests/test_migration_backfill.pyindex 49140fd246e9..80ee900c1309 100644--- a/products/replay_vision/backend/tests/test_migration_backfill.py+++ b/products/replay_vision/backend/tests/test_migration_backfill.py@@ -34,7 +34,7 @@ class TestReceiptBackfillMigrations(APIBaseTest):name="s",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)obs = ReplayObservation.objects.create(scanner=scanner,@@ -87,21 +87,21 @@ class TestClosedBetaLaunchReset(APIBaseTest):name="internal",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)beta_scanner = ReplayScanner.objects.create(team=beta_team,name="beta",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)receipt = ReplayObservationUsage.objects.create(observation_id=uuid.uuid4(),organization_id=self.organization.id,team_id=beta_team.id,observation_created_at=timezone.now(),- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credits=15,)@@ -133,14 +133,14 @@ class TestClosedBetaLaunchReset(APIBaseTest):name="s",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)receipt = ReplayObservationUsage.objects.create(observation_id=uuid.uuid4(),organization_id=self.organization.id,team_id=team_2.id,observation_created_at=timezone.now(),- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credits=15,)diff --git a/products/replay_vision/backend/tests/test_models.py b/products/replay_vision/backend/tests/test_models.pyindex 484c512b69fd..a4112913a5b9 100644--- a/products/replay_vision/backend/tests/test_models.py+++ b/products/replay_vision/backend/tests/test_models.py@@ -20,7 +20,7 @@ def _make_scanner(team, **overrides) -> ReplayScanner:"name": "my-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "test"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -53,7 +53,7 @@ class TestReplayScanner(BaseTest):name="shared",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "test"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def test_str_includes_name_and_type(self) -> None:@@ -225,7 +225,7 @@ class TestReplayObservation(BaseTest):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "test"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self._create_observation(scanner_a, session_id="shared-session")self._create_observation(scanner_b, session_id="shared-session")@@ -292,7 +292,7 @@ class TestReplayObservation(BaseTest):name="doomed",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "test"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self._create_observation(scanner, session_id="doomed-session")scanner_id = scanner.id@@ -334,7 +334,7 @@ class TestScannerCreditLimit(APIBaseTest):name=f"limit-scanner-{ReplayScanner.objects.count()}",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,**kwargs,)@@ -348,7 +348,7 @@ class TestScannerCreditLimit(APIBaseTest):name="limit-validator-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credit_limit=limit,)with self.assertRaises(ValidationError) as ctx:diff --git a/products/replay_vision/backend/tests/test_prompt_evaluation.py b/products/replay_vision/backend/tests/test_prompt_evaluation.pyindex 8415d9f28fd9..e3034e23905a 100644--- a/products/replay_vision/backend/tests/test_prompt_evaluation.py+++ b/products/replay_vision/backend/tests/test_prompt_evaluation.py@@ -605,7 +605,7 @@ class TestPromptEvaluationApi(_VisionAPITestCase):def test_in_flight_reservation_prices_from_the_frozen_model(self) -> None:# Receipts bill the model frozen at workflow start. Pricing the reservation from the scanner's# current model instead lets an edit mid-run silently re-price committed spend.- expensive, cheap = ScannerModel.GEMINI_3_6_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITE+ expensive, cheap = ScannerModel.GEMINI_3_7_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITEscanner = self._create_scanner(name="frozen-model", model=expensive)ReplayScannerPromptSuggestion.objects.create(scanner=scanner,@@ -624,7 +624,7 @@ class TestPromptEvaluationApi(_VisionAPITestCase):def test_per_scanner_reservation_prices_from_the_frozen_model(self) -> None:# The per-scanner split must price like the org total: from the model frozen at workflow start.- expensive, cheap = ScannerModel.GEMINI_3_6_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITE+ expensive, cheap = ScannerModel.GEMINI_3_7_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITEscanner = self._create_scanner(name="frozen-model-per-scanner", model=expensive)ReplayScannerPromptSuggestion.objects.create(scanner=scanner,diff --git a/products/replay_vision/backend/tests/test_quota.py b/products/replay_vision/backend/tests/test_quota.pyindex 3aa38e661e23..494b04ee883f 100644--- a/products/replay_vision/backend/tests/test_quota.py+++ b/products/replay_vision/backend/tests/test_quota.py@@ -44,7 +44,7 @@ class _VisionQuotaTestCase(APIBaseTest):name="quota-test-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _make_observation(@@ -113,11 +113,11 @@ class TestComputeQuotaSnapshot(_VisionQuotaTestCase):@parameterized.expand([(ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_5_FLASH_LITE, 2),- (ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_6_FLASH, 15),+ (ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_7_FLASH, 15),(ObservationStatus.PENDING, ScannerModel.GEMINI_3_5_FLASH_LITE, 2),- (ObservationStatus.RUNNING, ScannerModel.GEMINI_3_6_FLASH, 15),- (ObservationStatus.FAILED, ScannerModel.GEMINI_3_6_FLASH, 0),- (ObservationStatus.INELIGIBLE, ScannerModel.GEMINI_3_6_FLASH, 0),+ (ObservationStatus.RUNNING, ScannerModel.GEMINI_3_7_FLASH, 15),+ (ObservationStatus.FAILED, ScannerModel.GEMINI_3_7_FLASH, 0),+ (ObservationStatus.INELIGIBLE, ScannerModel.GEMINI_3_7_FLASH, 0),])def test_credits_priced_by_model_for_succeeded_and_in_flight(@@ -172,7 +172,7 @@ class TestComputeQuotaSnapshot(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)other_obs = ReplayObservation.objects.create(scanner=other_scanner,@@ -259,7 +259,7 @@ class TestComputeScannerBudget(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credit_limit=1_000_000,)@@ -558,7 +558,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="unspent-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self._make_observation(status=ObservationStatus.SUCCEEDED, completed_at=timezone.now())result = compute_scanner_budgets(self.organization.id, [self.scanner.id, unspent.id])@@ -571,7 +571,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="capped-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credit_limit=300,)ReplayScanner.objects.filter(pk=self.scanner.pk).update(credit_limit=None)@@ -587,7 +587,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)ReplayScanner.objects.filter(pk=other_scanner.pk).update(credit_limit=1000)# One of each spend source, so dropping the org filter from any single query fails this.@@ -752,7 +752,7 @@ class TestProjectedMonthlyObservations(_VisionQuotaTestCase):name: str,enabled: bool = True,estimate: int | None = None,- model: ScannerModel = ScannerModel.GEMINI_3_6_FLASH,+ model: ScannerModel = ScannerModel.GEMINI_3_7_FLASH,) -> None:scanner = ReplayScanner.objects.create(team=team,diff --git a/products/replay_vision/backend/tests/test_reconciler.py b/products/replay_vision/backend/tests/test_reconciler.pyindex d609a6ecfd32..3f56ce4b37bf 100644--- a/products/replay_vision/backend/tests/test_reconciler.py+++ b/products/replay_vision/backend/tests/test_reconciler.py@@ -83,7 +83,7 @@ def _make_scanner(team: Team, **overrides: Any) -> ReplayScanner:"name": "reconciler-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -675,7 +675,7 @@ def _make_inline_scanner(team: Team, *, key: str, age: dt.timedelta) -> ReplayScinline_key=key,scanner_type=ScannerType.MONITOR,scanner_config={"prompt": f"p-{key}"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=False,sampling_rate=0.0,)diff --git a/products/replay_vision/backend/tests/test_scanners.py b/products/replay_vision/backend/tests/test_scanners.pyindex faa17023ab24..18ac26aad15b 100644--- a/products/replay_vision/backend/tests/test_scanners.py+++ b/products/replay_vision/backend/tests/test_scanners.py@@ -28,7 +28,7 @@ def _build_replay_scanner(**overrides) -> ReplayScanner:"name": "test-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user export?"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"emits_signals": False,}defaults.update(overrides)diff --git a/products/replay_vision/backend/tests/test_scanning.py b/products/replay_vision/backend/tests/test_scanning.pyindex 15f5a1012ba2..6d9938eb7af3 100644--- a/products/replay_vision/backend/tests/test_scanning.py+++ b/products/replay_vision/backend/tests/test_scanning.py@@ -26,7 +26,7 @@ class TestInlineScanServiceBounds(BaseTest):session_ids=["s1"],scanner_type=ScannerType.CLASSIFIER,scanner_config=self._config(),- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)assert not ReplayScanner.all_origins.filter(team=self.team).exists()@@ -40,6 +40,6 @@ class TestInlineScanServiceBounds(BaseTest):session_ids=[f"s{i}" for i in range(MAX_SESSIONS_PER_SCAN + 1)],scanner_type=ScannerType.MONITOR,scanner_config=self._config(),- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)assert not ReplayScanner.all_origins.filter(team=self.team).exists()diff --git a/products/replay_vision/backend/tests/test_schedule.py b/products/replay_vision/backend/tests/test_schedule.pyindex 333ca013d35c..ebf12a4bd4b8 100644--- a/products/replay_vision/backend/tests/test_schedule.py+++ b/products/replay_vision/backend/tests/test_schedule.py@@ -46,7 +46,7 @@ def _make_scanner(team: Team, **overrides: Any) -> ReplayScanner:"name": "schedule-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)diff --git a/products/replay_vision/backend/tests/test_signals_onboarding.py b/products/replay_vision/backend/tests/test_signals_onboarding.pyindex 089a64d0dbfb..05adb2e3742a 100644--- a/products/replay_vision/backend/tests/test_signals_onboarding.py+++ b/products/replay_vision/backend/tests/test_signals_onboarding.py@@ -12,7 +12,7 @@ class TestOnboardingSources(BaseTest):"name": "my-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "test"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,"enabled": True,"emits_signals": True,}diff --git a/products/replay_vision/backend/tests/test_sweep.py b/products/replay_vision/backend/tests/test_sweep.pyindex 6077e62214de..b87cbd439669 100644--- a/products/replay_vision/backend/tests/test_sweep.py+++ b/products/replay_vision/backend/tests/test_sweep.py@@ -60,7 +60,7 @@ from products.replay_vision.backend.temporal.vision_actions.types import DueVisifrom products.replay_vision.backend.tests.helpers import seed_scanner_spend, snapshot_for# Every scanner built below runs on this model, so its price sets what one observation draws.-_OBSERVATION_CREDITS = observation_credits_for_model(ScannerModel.GEMINI_3_6_FLASH)+_OBSERVATION_CREDITS = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH)def _make_scanner(**overrides) -> ReplayScanner:@@ -71,7 +71,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "sweep-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)diff --git a/products/replay_vision/backend/tests/test_temporal.py b/products/replay_vision/backend/tests/test_temporal.pyindex e7058014df9b..e5cc8d22f4b8 100644--- a/products/replay_vision/backend/tests/test_temporal.py+++ b/products/replay_vision/backend/tests/test_temporal.py@@ -171,7 +171,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "t","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_6_FLASH,+ "model": ScannerModel.GEMINI_3_7_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -198,7 +198,7 @@ class TestCountInFlightAppliesActivity:name="sibling",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)other_team_scanner = _make_scanner() # fresh org+team_make_observation(scanner, session_id="s1", status=ObservationStatus.PENDING)@@ -538,7 +538,7 @@ class TestCreateObservationActivity:def test_concurrent_admissions_cannot_exceed_scanner_credit_limit(self) -> None:# Two applies for different sessions race with a cap that fits exactly one observation. Without the# per-scanner lock both read a used=0 budget, both pass, and both reserve a PENDING row (overshoot).- credits = observation_credits_for_model(ScannerModel.GEMINI_3_6_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)scanner = _make_scanner(credit_limit=credits)barrier = threading.Barrier(2)created: dict[str, bool] = {}@@ -606,14 +606,14 @@ class TestCreateObservationActivity:def test_concurrent_admissions_for_two_capped_scanners_do_not_serialize_each_other(self) -> None:# The admission lock is per scanner row: two different capped scanners on one team must both# admit their own observation, with no cross-scanner budget bleed or lock coupling.- credits = observation_credits_for_model(ScannerModel.GEMINI_3_6_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)scanner_a = _make_scanner(credit_limit=credits)scanner_b = ReplayScanner.objects.create(team=scanner_a.team,name="capped-sibling",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,credit_limit=credits,)barrier = threading.Barrier(2)@@ -651,7 +651,7 @@ class TestCreateObservationActivity:# A Temporal retry whose first attempt committed the insert but lost the result must get its# row back: that row's own reservation fills the budget, so a plain refusal would strand it# PENDING forever while the workflow gives up.- credits = observation_credits_for_model(ScannerModel.GEMINI_3_6_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)scanner = _make_scanner(credit_limit=credits)first_attempt = create_observation_activity(CreateObservationInputs(@@ -771,7 +771,7 @@ class TestKnownFreeformTags:name="sibling",scanner_type=ScannerType.CLASSIFIER,scanner_config={"prompt": "categorize", "tags": ["checkout"], "allow_freeform_tags": True},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self._succeeded(sibling, "s1", ["sibling_tag"])stale = self._succeeded(scanner, "s2", ["stale_tag"])diff --git a/products/replay_vision/backend/tests/test_vision_action_alerts.py b/products/replay_vision/backend/tests/test_vision_action_alerts.pyindex 5b0cad90687c..db1e5e417df9 100644--- a/products/replay_vision/backend/tests/test_vision_action_alerts.py+++ b/products/replay_vision/backend/tests/test_vision_action_alerts.py@@ -33,7 +33,7 @@ class TestVisionActionAlerts(BaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "watch"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _observation(diff --git a/products/replay_vision/backend/tests/test_vision_action_delivery.py b/products/replay_vision/backend/tests/test_vision_action_delivery.pyindex 6a3d1e391c82..7332c0e7ab3d 100644--- a/products/replay_vision/backend/tests/test_vision_action_delivery.py+++ b/products/replay_vision/backend/tests/test_vision_action_delivery.py@@ -65,7 +65,7 @@ class TestVisionActionDelivery(APIBaseTest):name="my-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _create_slack_integration(self) -> Integration:diff --git a/products/replay_vision/backend/tests/test_vision_action_engine.py b/products/replay_vision/backend/tests/test_vision_action_engine.pyindex 2447de024dd8..762e33292256 100644--- a/products/replay_vision/backend/tests/test_vision_action_engine.py+++ b/products/replay_vision/backend/tests/test_vision_action_engine.py@@ -45,7 +45,7 @@ def _action(team, **overrides) -> VisionAction:name=f"scanner-{uuid.uuid4().hex[:8]}",scanner_type=ScannerType.SUMMARIZER,scanner_config={"prompt": "x"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)defaults: dict = {"team": team, "name": "a", "trigger_config": {"rrule": DAILY, "timezone": "UTC"}}defaults.update(overrides)@@ -60,7 +60,7 @@ def _scanner(team) -> ReplayScanner:name=f"scanner-{uuid.uuid4().hex[:8]}",scanner_type=ScannerType.SUMMARIZER,scanner_config={"prompt": "x"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)diff --git a/products/replay_vision/backend/tests/test_vision_action_models.py b/products/replay_vision/backend/tests/test_vision_action_models.pyindex d54375e6d3c9..5109e296a234 100644--- a/products/replay_vision/backend/tests/test_vision_action_models.py+++ b/products/replay_vision/backend/tests/test_vision_action_models.py@@ -31,7 +31,7 @@ def _make_action(team, **overrides) -> VisionAction:name=f"scanner-{uuid.uuid4().hex[:8]}",scanner_type=ScannerType.SUMMARIZER,scanner_config={"prompt": "x"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)defaults: dict = {"team": team,@@ -151,7 +151,7 @@ class TestVisionActionModel(BaseTest):name="scanner",scanner_type=ScannerType.SUMMARIZER,scanner_config={"prompt": "x"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)action = self._create_action(scanner=scanner)scanner.delete()diff --git a/products/replay_vision/backend/tests/test_vision_action_synthesis.py b/products/replay_vision/backend/tests/test_vision_action_synthesis.pyindex e4f1e53faea2..fded15984dac 100644--- a/products/replay_vision/backend/tests/test_vision_action_synthesis.py+++ b/products/replay_vision/backend/tests/test_vision_action_synthesis.py@@ -54,7 +54,7 @@ class TestVisionActionSynthesis(BaseTest):name="summarizer",scanner_type=ScannerType.SUMMARIZER,scanner_config={"prompt": "summarize"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _observation(self, summary: str, title: str | None = None, session_id: str = "s1") -> ReplayObservation:@@ -456,7 +456,7 @@ class TestVisionActionSynthesis(BaseTest):name="hidden",scanner_type=ScannerType.CLASSIFIER,scanner_config={"prompt": "classify"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)self._observation("visible scanner output", session_id="visible")ReplayObservation.objects.create(diff --git a/products/replay_vision/backend/tests/test_vision_actions_api.py b/products/replay_vision/backend/tests/test_vision_actions_api.pyindex 0be1c1ee2fbd..a8b27bac6f74 100644--- a/products/replay_vision/backend/tests/test_vision_actions_api.py+++ b/products/replay_vision/backend/tests/test_vision_actions_api.py@@ -72,7 +72,7 @@ class _VisionActionAPITestCase(APIBaseTest):name=name,scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,)def _create_slack_integration(self, team: Team | None = None) -> Integration:@@ -111,7 +111,7 @@ class TestVisionActionViewSet(_VisionActionAPITestCase):inline_key="k",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "one-off"},- model=ScannerModel.GEMINI_3_6_FLASH,+ model=ScannerModel.GEMINI_3_7_FLASH,enabled=False,sampling_rate=0.0,)diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.tsindex 45632fd2f567..c3cf531b655f 100644--- a/products/replay_vision/frontend/generated/api.schemas.ts+++ b/products/replay_vision/frontend/generated/api.schemas.ts@@ -751,14 +751,14 @@ export const ScannerProviderEnumApi = {/*** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash+ * * `gemini-3.7-flash` - Gemini 3.7 Flash*/export type ScannerModelEnumApi = (typeof ScannerModelEnumApi)[keyof typeof ScannerModelEnumApi]export const ScannerModelEnumApi = {Gemini35FlashLite: 'gemini-3.5-flash-lite',Gemini3FlashPreview: 'gemini-3-flash-preview',- Gemini36Flash: 'gemini-3.6-flash',+ Gemini37Flash: 'gemini-3.7-flash',} as const/**@@ -866,7 +866,7 @@ export interface ReplayScannerApi {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model: ScannerModelEnumApi/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean@@ -979,7 +979,7 @@ export interface PatchedReplayScannerApi {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnumApi/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean@@ -1658,7 +1658,7 @@ export interface EstimateRequestApi {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnumApi}@@ -1712,7 +1712,7 @@ export interface InlineScanRequestApi {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnumApi}diff --git a/products/replay_vision/frontend/generated/api.zod.ts b/products/replay_vision/frontend/generated/api.zod.tsindex d95bd6d5fe36..2ee82a6cfa3a 100644--- a/products/replay_vision/frontend/generated/api.zod.ts+++ b/products/replay_vision/frontend/generated/api.zod.ts@@ -488,12 +488,12 @@ export const VisionScannersCreateBody = /* @__PURE__ */ zod.optional().describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').describe(- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),enabled: zod.boolean()@@ -622,13 +622,13 @@ export const VisionScannersPartialUpdateBody = /* @__PURE__ */ zod.optional().describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').optional().describe(- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),enabled: zod.boolean()@@ -885,13 +885,13 @@ export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod"The scanner being edited, excluded from `other_enabled_scanners_monthly_credits` so its stored estimate isn't double-counted in the forecast. Omit (or null) when estimating a brand-new scanner."),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').default(visionScannersEstimateCreateBodyModelDefault).describe(- 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),}).describe('Body of POST \/vision\/scanners\/estimate\/ — a proposed, unsaved scanner config.')@@ -941,13 +941,13 @@ export const VisionScannersInlineScanCreateBody = /* @__PURE__ */ zod'Type-specific configuration beyond the prompt: `tags` for a classifier, `scale` for a scorer, optional `length` for a summarizer. Omit it for a monitor. `prompt` belongs in the `prompt` field and is rejected here.'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').default(visionScannersInlineScanCreateBodyModelDefault).describe(- 'Model to scan with. Determines what each observation costs in credits.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Model to scan with. Determines what each observation costs in credits.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),}).describe('Body of POST \/vision\/scanners\/inline_scan\/ - a prompt plus the sessions to point it at.')diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsxindex 0c77557df139..0482c1238fc9 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx@@ -47,7 +47,7 @@ const scanner = (overrides: Partial<ReplayScannerApi> = {}): ReplayScannerApi =>query: null,sampling_rate: 1,provider: 'google',- model: 'gemini-3.6-flash',+ model: 'gemini-3.7-flash',enabled: true,emits_signals: false,scanner_version: 1,@@ -185,7 +185,7 @@ const observation = (overrides: Partial<ReplayObservationApi> = {}): ReplayObsername: summarizerScanner.name,scanner_type: 'summarizer',scanner_version: 1,- model: 'gemini-3.6-flash',+ model: 'gemini-3.7-flash',provider: 'google',emits_signals: false,scanner_config: { prompt: 'Summarize this session.', length: 'medium' },diff --git a/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.ts b/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.tsindex 8684146f4bbc..826ff9e9975b 100644--- a/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.ts+++ b/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.ts@@ -5,7 +5,7 @@ describe('versionChanges', () => {const version = (overrides: Partial<VersionConfig> = {}): VersionConfig => ({version: 1,scannerType: 'classifier',- model: 'gemini-3.6-flash',+ model: 'gemini-3.7-flash',provider: 'google',emitsSignals: true,samplingRate: 1,diff --git a/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.ts b/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.tsindex 4ce3a84c859b..22bbfdba0208 100644--- a/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.ts+++ b/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.ts@@ -46,7 +46,7 @@ function makeScanner(overrides: Partial<ReplayScanner> = {}): ReplayScanner {sampling_rate: 0.1,query: null,provider: 'google',- model: 'gemini-3.6-flash',+ model: 'gemini-3.7-flash',emits_signals: false,scanner_version: 1,last_swept_at: '2026-05-12T00:00:00Z',diff --git a/products/replay_vision/frontend/replay_scanners/types.test.ts b/products/replay_vision/frontend/replay_scanners/types.test.tsindex b0e316b7f3ea..04c3bcbd28d4 100644--- a/products/replay_vision/frontend/replay_scanners/types.test.ts+++ b/products/replay_vision/frontend/replay_scanners/types.test.ts@@ -79,7 +79,7 @@ describe('scanner type helpers', () => {['Gemini 3.5 Flash Lite · 2 credits/observation','Gemini 3 Flash · 5 credits/observation',- 'Gemini 3.6 Flash · 15 credits/observation',+ 'Gemini 3.7 Flash · 15 credits/observation',],],[diff --git a/products/replay_vision/frontend/replay_scanners/types.ts b/products/replay_vision/frontend/replay_scanners/types.tsindex 810e35bed211..0ef7d6b64c76 100644--- a/products/replay_vision/frontend/replay_scanners/types.ts+++ b/products/replay_vision/frontend/replay_scanners/types.ts@@ -236,13 +236,13 @@ export const ENABLED_OPTIONS: { value: EnabledFilter; label: string }[] = [export const OBSERVATION_CREDITS_BY_MODEL: Record<ScannerModelEnumApi, number> = {[ScannerModelEnumApi.Gemini35FlashLite]: 2,[ScannerModelEnumApi.Gemini3FlashPreview]: 5,- [ScannerModelEnumApi.Gemini36Flash]: 15,+ [ScannerModelEnumApi.Gemini37Flash]: 15,}const MODEL_NAMES: Record<ScannerModelEnumApi, string> = {[ScannerModelEnumApi.Gemini35FlashLite]: 'Gemini 3.5 Flash Lite',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Gemini 3 Flash',- [ScannerModelEnumApi.Gemini36Flash]: 'Gemini 3.6 Flash',+ [ScannerModelEnumApi.Gemini37Flash]: 'Gemini 3.7 Flash',}// Tier-name arms of the replay-vision-model-tier-naming-experiment flag: capability tiers instead@@ -254,12 +254,12 @@ const MODEL_TIER_NAMES: Record<ModelNamingVariant, Record<ScannerModelEnumApi, stest: {[ScannerModelEnumApi.Gemini35FlashLite]: 'Basic',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Pro',- [ScannerModelEnumApi.Gemini36Flash]: 'Ultra',+ [ScannerModelEnumApi.Gemini37Flash]: 'Ultra',},'lite-standard-pro': {[ScannerModelEnumApi.Gemini35FlashLite]: 'Lite',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Standard',- [ScannerModelEnumApi.Gemini36Flash]: 'Pro',+ [ScannerModelEnumApi.Gemini37Flash]: 'Pro',},}diff --git a/products/replay_vision/frontend/utils/labelStats.test.ts b/products/replay_vision/frontend/utils/labelStats.test.tsindex f692c7bf77c4..5c8ae2fafcc7 100644--- a/products/replay_vision/frontend/utils/labelStats.test.ts+++ b/products/replay_vision/frontend/utils/labelStats.test.ts@@ -50,7 +50,7 @@ describe('labelStats', () => {prompt: '',scanner_config: {},scanner_type: 'monitor',- model: 'gemini-3.6-flash',+ model: 'gemini-3.7-flash',provider: 'google',emits_signals: false,query: {},diff --git a/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.md b/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.mdindex 692d0c2acf3e..48ad139f48fb 100644--- a/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.md+++ b/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.md@@ -79,8 +79,8 @@ Two levers narrow it further, applied in this order:#### Which model?`model` sets the price of every observation the scanner makes, so it's a cost lever as much as a quality one:-`gemini-3.5-flash-lite` (2 credits), `gemini-3-flash-preview` (5 credits, the default) and `gemini-3.6-flash`-(15 credits). Start at the default and only reach for `gemini-3.6-flash` when the cheaper tiers demonstrably+`gemini-3.5-flash-lite` (2 credits), `gemini-3-flash-preview` (5 credits, the default) and `gemini-3.7-flash`+(15 credits). Start at the default and only reach for `gemini-3.7-flash` when the cheaper tiers demonstrablymiss what the scanner is looking for.### Step 3: Size it — the gut-check (do not skip)diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex be4b130e28bf..427cb8cfd067 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -28963,7 +28963,7 @@ export namespace Schemas {/*** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash+ * * `gemini-3.7-flash` - Gemini 3.7 Flash*/export type ScannerModelEnum = typeof ScannerModelEnum[keyof typeof ScannerModelEnum];@@ -28971,7 +28971,7 @@ export namespace Schemas {export const ScannerModelEnum = {Gemini35FlashLite: 'gemini-3.5-flash-lite',Gemini3FlashPreview: 'gemini-3-flash-preview',- Gemini36Flash: 'gemini-3.6-flash',+ Gemini37Flash: 'gemini-3.7-flash',} as const;/**@@ -29001,7 +29001,7 @@ export namespace Schemas {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnum;}@@ -41091,7 +41091,7 @@ export namespace Schemas {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnum;}@@ -49751,7 +49751,7 @@ export namespace Schemas {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model: ScannerModelEnum;/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean;@@ -58966,7 +58966,7 @@ export namespace Schemas {** * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite* * `gemini-3-flash-preview` - Gemini 3 Flash- * * `gemini-3.6-flash` - Gemini 3.6 Flash */+ * * `gemini-3.7-flash` - Gemini 3.7 Flash */model?: ScannerModelEnum;/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean;diff --git a/services/mcp/src/generated/replay_vision/api.ts b/services/mcp/src/generated/replay_vision/api.tsindex af213651b7a9..cb87385744dc 100644--- a/services/mcp/src/generated/replay_vision/api.ts+++ b/services/mcp/src/generated/replay_vision/api.ts@@ -753,12 +753,12 @@ export const VisionScannersCreateBody = /* @__PURE__ */ zod.optional().describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').describe(- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),enabled: zod.boolean()@@ -908,13 +908,13 @@ export const VisionScannersPartialUpdateBody = /* @__PURE__ */ zod.optional().describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').optional().describe(- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),enabled: zod.boolean()@@ -1417,13 +1417,13 @@ export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod"The scanner being edited, excluded from `other_enabled_scanners_monthly_credits` so its stored estimate isn't double-counted in the forecast. Omit (or null) when estimating a brand-new scanner."),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').default(visionScannersEstimateCreateBodyModelDefault).describe(- 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),}).describe('Body of POST \/vision\/scanners\/estimate\/ — a proposed, unsaved scanner config.')@@ -1481,13 +1481,13 @@ export const VisionScannersInlineScanCreateBody = /* @__PURE__ */ zod'Type-specific configuration beyond the prompt: `tags` for a classifier, `scale` for a scorer, optional `length` for a summarizer. Omit it for a monitor. `prompt` belongs in the `prompt` field and is rejected here.'),model: zod- .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.7-flash']).describe(- '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash').default(visionScannersInlineScanCreateBodyModelDefault).describe(- 'Model to scan with. Determines what each observation costs in credits.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'+ 'Model to scan with. Determines what each observation costs in credits.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.7-flash` - Gemini 3.7 Flash'),}).describe('Body of POST \/vision\/scanners\/inline_scan\/ - a prompt plus the sessions to point it at.')diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-create.jsonindex b9d41742bcc4..6e584d1e3cd7 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-create.json@@ -65,8 +65,8 @@"description": "The experiment this scanner's targeting watches, if any. Set null when the experiment targeting is removed."},"model": {- "description": "Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.6-flash` - Gemini 3.6 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.6-flash"],+ "description": "Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.7-flash` - Gemini 3.7 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-flash"],"type": "string"},"name": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-estimate-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-estimate-create.jsonindex 8a6a3778ed74..c6cb25bdb587 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-estimate-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-estimate-create.json@@ -4,8 +4,8 @@"properties": {"model": {"default": "gemini-3-flash-preview",- "description": "Proposed model; determines `credits_per_observation` in the response.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.6-flash` - Gemini 3.6 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.6-flash"],+ "description": "Proposed model; determines `credits_per_observation` in the response.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.7-flash` - Gemini 3.7 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-flash"],"type": "string"},"query": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-inline-scan-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-inline-scan-create.jsonindex e5b03c577a11..f1a57433dd69 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-inline-scan-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-inline-scan-create.json@@ -4,8 +4,8 @@"properties": {"model": {"default": "gemini-3-flash-preview",- "description": "Model to scan with. Determines what each observation costs in credits.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.6-flash` - Gemini 3.6 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.6-flash"],+ "description": "Model to scan with. Determines what each observation costs in credits.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.7-flash` - Gemini 3.7 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-flash"],"type": "string"},"prompt": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-update.jsonindex a5a0030a35bc..6f30a585dfa9 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/vision-scanners-update.json@@ -68,8 +68,8 @@"type": "string"},"model": {- "description": "Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.6-flash` - Gemini 3.6 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.6-flash"],+ "description": "Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash\n* `gemini-3.7-flash` - Gemini 3.7 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-flash"],"type": "string"},"name": {