: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.8 flash (#93835)
Tue Haulund30e7f826fe4a
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 1b7dc5021670..703e8203b0e6 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -8233,9 +8233,9 @@ snapshots:scenes-app-replay-vision--scanner-alerts-empty--light:hash: v1.k794b7964.0ef826b7658d0bd8ccaa3089d76cea2a4410b4124c3c81b957af439d5f9f549d.lEAwMkjqNuZhxqmK2y8cKPkc1lC8wUIQUJHmY9-04UYscenes-app-replay-vision--scanner-calibration--dark:- hash: v1.k794b7964.a26243a987e2b4895534fbeac048c77cc74fb9d58868784d82290e0c996cf565.n4HkfbUGlqGqgpy--Qo849HfSM-EZkm204m2dgcVRF0+ hash: v1.k794b7964.5e0f861f7937065a33c6b68973fe2b5f853d0a2ce9660aaf41f53d1c7cfef4e0.p3b3ZO--YxEqmZWSi9DT8ndq3ZP2J2dU7WuRMhOhOd4scenes-app-replay-vision--scanner-calibration--light:- hash: v1.k794b7964.cdf91ec4504fccf3ccfae307f7e22fadcc244b5a6ac23f3e87c2b0ed5eeb06f5.wsou90F9Zx4JAQtKBZ7hW7bqb6rkNC8NHLTUwfZg7M0+ hash: v1.k794b7964.43b310ff18e050913e41203405a1c07bc828efb546578e719db5fe304db986ec.bIxzTXCnMK2zCCr-iNlrImXP0hCopvBQTqpcyc_sIawscenes-app-replay-vision--scanner-configuration--dark:hash: v1.k794b7964.4596bbf4c6a43f0c735477d4a63b40aab754676d777ee5a4e93aaf480cd96bfe.J9MGM9riSXhFjfBTCC8UbnT5e323clk16BfpggM2Tykscenes-app-replay-vision--scanner-configuration--light:diff --git a/posthog/tasks/test/test_usage_report.py b/posthog/tasks/test/test_usage_report.pyindex 56fc605a2b86..7a0d29c1cc33 100644--- a/posthog/tasks/test/test_usage_report.py+++ b/posthog/tasks/test/test_usage_report.py@@ -303,14 +303,14 @@ class TestUsageReport(APIBaseTest, ClickhouseTestMixin, ClickhouseDestroyTablesMteam=self.org_1_team_1,name="Enabled scanner",scanner_type=ScannerType.MONITOR,- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,enabled=True,)ReplayScanner.objects.create(team=self.org_1_team_1,name="Disabled scanner",scanner_type=ScannerType.MONITOR,- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,enabled=False,)diff --git a/products/access_control/backend/tests/test_user_access_control_pbt.py b/products/access_control/backend/tests/test_user_access_control_pbt.pyindex 3353e2cda227..0b129d975575 100644--- a/products/access_control/backend/tests/test_user_access_control_pbt.py+++ b/products/access_control/backend/tests/test_user_access_control_pbt.py@@ -166,7 +166,7 @@ def _build_vision_alert(team: Team, user: User, model_cls: type[models.Model]) -name=f"pbt-scanner-{next(_unique_counter)}",scanner_type="monitor",scanner_config={},- model="gemini-3.7-flash",+ model="gemini-3.8-flash",)manager: Any = model_cls._default_managerif hasattr(manager, "for_team"):diff --git a/products/replay_vision/backend/billing.py b/products/replay_vision/backend/billing.pyindex 1e8ebc3167f7..68bc7b819d4b 100644--- a/products/replay_vision/backend/billing.py+++ b/products/replay_vision/backend/billing.py@@ -37,17 +37,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.7-flash`. `gemini-3-flash-preview` is a preview id, so watch for Google retiring it and+# `gemini-3.8-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+# Prices are Google's standard rates; 3.8 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.7-flash | flash | 1.50 | 7.50 | 15 |+# | gemini-3.8-flash | flash | 1.50 | 7.50 | 15 |+# | gemini-3.7-flash | (retired) | 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 |@@ -62,9 +63,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_7_FLASH: GeminiModelPricing(+ ScannerModel.GEMINI_3_8_FLASH: GeminiModelPricing(tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=7.50, credits_per_observation=15),+ "gemini-3.7-flash": GeminiModelPricing(+ tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=7.50, credits_per_observation=15, retired=True+ ),"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),diff --git a/products/replay_vision/backend/migrations/0088_remap_scanner_models_gemini_3_8.py b/products/replay_vision/backend/migrations/0088_remap_scanner_models_gemini_3_8.pynew file mode 100644index 000000000000..30bd21c1bddf--- /dev/null+++ b/products/replay_vision/backend/migrations/0088_remap_scanner_models_gemini_3_8.py@@ -0,0 +1,19 @@+from django.db import migrations+++# 3.8 Flash supersedes 3.7 Flash at identical list prices (same 15-credit charge), so existing+# premium scanners move over. Frozen observation snapshots keep the old id, and `update()` leaves+# `scanner_version` alone on purpose: an equal-price swap should not invalidate pinned estimates.+def remap_scanner_models(apps, schema_editor):+ ReplayScanner = apps.get_model("replay_vision", "ReplayScanner")+ ReplayScanner.objects.filter(model="gemini-3.7-flash").update(model="gemini-3.8-flash")+++class Migration(migrations.Migration):+ dependencies = [+ ("replay_vision", "0087_replayscanner_estimate_attempted_at"),+ ]++ 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 d9e2a23a7d0e..a6cc18f44ef3 100644--- a/products/replay_vision/backend/migrations/max_migration.txt+++ b/products/replay_vision/backend/migrations/max_migration.txt@@ -1 +1 @@-0087_replayscanner_estimate_attempted_at+0088_remap_scanner_models_gemini_3_8diff --git a/products/replay_vision/backend/models/replay_scanner.py b/products/replay_vision/backend/models/replay_scanner.pyindex 9b169e5eaacf..1af793c8d07e 100644--- a/products/replay_vision/backend/models/replay_scanner.py+++ b/products/replay_vision/backend/models/replay_scanner.py@@ -67,7 +67,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_7_FLASH = "gemini-3.7-flash", "Gemini 3.7 Flash"+ GEMINI_3_8_FLASH = "gemini-3.8-flash", "Gemini 3.8 Flash"def scanner_model_choices() -> list[tuple[str, str | Promise]]:diff --git a/products/replay_vision/backend/prompt_suggestions.py b/products/replay_vision/backend/prompt_suggestions.pyindex 3991343f6cc0..19a9013605e4 100644--- a/products/replay_vision/backend/prompt_suggestions.py+++ b/products/replay_vision/backend/prompt_suggestions.py@@ -44,7 +44,7 @@ logger = structlog.get_logger(__name__)_SUGGESTION_MODEL = "gemini-3.5-flash-lite"_MODEL_CALL_TIMEOUT_MS = 90_000# The agentic path digs through sessions before rewriting, so give it the stronger model.-_AGENT_MODEL = "gemini-3.6-flash"+_AGENT_MODEL = "gemini-3.8-flash"_MAX_RATED_SESSIONS = 20_MAX_REASONING_CHARS = 280_MAX_DISMISSED_EXAMPLES = 3diff --git a/products/replay_vision/backend/scanner_draft.py b/products/replay_vision/backend/scanner_draft.pyindex 9fa64c594639..e3080bca939e 100644--- a/products/replay_vision/backend/scanner_draft.py+++ b/products/replay_vision/backend/scanner_draft.py@@ -56,8 +56,7 @@ from ee.hogai.utils.untrusted import as_untrusted_datalogger = structlog.get_logger(__name__)# Interactive request path, but drafting a whole scanner well needs more model than the tag helper.-# The stable flash tier: gemini-3.6-flash is retired in billing.py's lineup.-_DRAFT_MODEL = "gemini-3.7-flash"+_DRAFT_MODEL = "gemini-3.8-flash"_MODEL_CALL_TIMEOUT_MS = 90_000_MAX_NAME_LENGTH = 255 # ReplayScanner.name column length_MAX_DESCRIPTION_LENGTH = 1_000@@ -729,11 +728,11 @@ class _LlmDraftV2(BaseModel):default="comprehensive",description="Which sessions deserve the budget when it cannot cover everything; see the drafting rules.",)- model: Literal["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-flash"] = Field(+ model: Literal["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.8-flash"] = Field(default="gemini-3-flash-preview",description="The model that watches each recording. Pick by how much judgment the goal needs: ""'gemini-3.5-flash-lite' (cheapest, 2 credits) for a simple yes/no check, 'gemini-3-flash-preview' "- "(balanced, 5 credits) for an everyday scanner, 'gemini-3.7-flash' (most capable, 15 credits) for "+ "(balanced, 5 credits) for an everyday scanner, 'gemini-3.8-flash' (most capable, 15 credits) for ""nuanced scoring, summarizing, or subtle judgment. A pricier model watches fewer recordings for the ""same budget, so only step up when the goal truly needs the extra judgment.",)@@ -814,7 +813,7 @@ Pick the single type that best fits the goal, then draft the scanner:from the recording ("did the user reach the confirmation page?").- gemini-3-flash-preview (balanced): the default. Most everyday monitors and classifiers, where thejudgment is moderate.- - gemini-3.7-flash (most capable): scoring intensity, summarizing, or any goal needing subtle reading+ - gemini-3.8-flash (most capable): scoring intensity, summarizing, or any goal needing subtle readingof intent, emotion, or a hard multi-step judgment.- rationale: one or two sentences, addressed to the user, explaining why the chosen type, model, andsettings fit their goal (e.g. why a scorer on the capable model, or which pages the filter covers anddiff --git a/products/replay_vision/backend/tests/test_access_control.py b/products/replay_vision/backend/tests/test_access_control.pyindex 1f1c188d37f6..a255da9b9cb1 100644--- a/products/replay_vision/backend/tests/test_access_control.py+++ b/products/replay_vision/backend/tests/test_access_control.py@@ -209,7 +209,7 @@ class TestReplayScannerAccessControl(_AccessControlTestCase):"name": "targeting-denied","scanner_type": "monitor","scanner_config": {"prompt": "p"},- "model": "gemini-3.7-flash",+ "model": "gemini-3.8-flash","experiment_targeting": {"experiment_id": experiment.id,},diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.pyindex 13e7ea935f2b..b6669d4dbe3f 100644--- a/products/replay_vision/backend/tests/test_api.py+++ b/products/replay_vision/backend/tests/test_api.py@@ -85,7 +85,7 @@ class _VisionAPITestCase(APIBaseTest):"name": "my-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -99,7 +99,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "checkout-monitor","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -119,7 +119,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "watermark-seed","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -133,7 +133,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"missing-{missing_field}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}del payload[missing_field]resp = self.client.post(self.scanners_url, data=payload, format="json")@@ -147,7 +147,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "explicit-provider","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"provider": ScannerProvider.GOOGLE,},format="json",@@ -163,7 +163,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"rate-{value}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"sampling_rate": value,},format="json",@@ -179,7 +179,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"rate-ok-{value}","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"sampling_rate": value,},format="json",@@ -198,7 +198,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "needs-consent","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -213,7 +213,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "dup","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -228,7 +228,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)resp = self.client.get(self.scanners_url)self.assertEqual(resp.status_code, 200)@@ -280,7 +280,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"valid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -304,7 +304,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"invalid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -414,7 +414,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": f"invalid-{label}","scanner_type": scanner_type,"scanner_config": scanner_config,- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -483,7 +483,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "with-query","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"query": {"filter_test_accounts": True},},format="json",@@ -499,7 +499,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "stripped","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"query": {"date_from": "-7d", "date_to": "-1d", "filter_test_accounts": True},},format="json",@@ -524,7 +524,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "bad-query","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"query": query,},format="json",@@ -718,7 +718,7 @@ class TestReplayScannerViewSet(_VisionAPITestCase):"name": "needs-recording-read","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,},format="json",)@@ -758,7 +758,7 @@ class TestReplayScannerTags(_VisionAPITestCase):"name": name,"scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,**extra,}@@ -897,7 +897,7 @@ class TestScannerExperimentTargeting(_VisionAPITestCase):"name": name,"scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,**extra,}@@ -993,7 +993,7 @@ class TestScannerLifecycleTelemetry(_VisionAPITestCase):"name": "telemetry-create","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did checkout complete?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"sampling_rate": 0.25,"query": {"kind": "RecordingsQuery", "events": [{"id": "$pageview"}]},},@@ -1007,7 +1007,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_7_FLASH)+ self.assertEqual(properties["model"], ScannerModel.GEMINI_3_8_FLASH)self.assertEqual(properties["credits_per_observation"], 15)self.assertEqual(properties["sampling_rate"], 0.25)self.assertTrue(properties["has_filters"])@@ -1208,7 +1208,7 @@ class TestScannerEstimatePersistence(_VisionAPITestCase):"name": "estimate-persistence","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}payload.update(overrides)return payload@@ -1313,7 +1313,7 @@ class TestScannerSignalSourceEnablement(_VisionAPITestCase):"name": "signal-enablement","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}payload.update(overrides)return payload@@ -1456,7 +1456,7 @@ class TestReplayObservationViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)resp = self.client.get(self.observations_url(str(other_scanner.id)))self.assertEqual(resp.status_code, 404)@@ -3025,7 +3025,7 @@ class TestSessionReplayObservationViewSet(_VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)ReplayObservation.objects.create(scanner=other_scanner,@@ -3417,7 +3417,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name=name,scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,enabled=enabled,estimated_monthly_observations=estimate,)@@ -3442,7 +3442,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name="backfilled",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)ReplayScannerBackfill.objects.for_team(self.team.id).create(scanner=scanner,@@ -3471,7 +3471,7 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 a7c2450e64e7..91b8a6fff496 100644--- a/products/replay_vision/backend/tests/test_backfills.py+++ b/products/replay_vision/backend/tests/test_backfills.py@@ -84,7 +84,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "t","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -137,7 +137,7 @@ class TestBackfillQuotaCommitment:name="c",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)_make_backfill(cancelled_scanner, status=BackfillStatus.CANCELLED, total_count=100, credits_per_observation=5)@@ -201,7 +201,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_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH.value)scanner = _make_scanner(credit_limit=credits)backfill = _make_backfill(scanner)failed = ReplayObservation.objects.create(@@ -606,7 +606,7 @@ class TestBackfillsApi(APIBaseTest):name="backfill-api-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 cf4ed53650a7..95a95ab5e4e7 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_7_FLASH,+ model: str = ScannerModel.GEMINI_3_8_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_7_FLASH)+ self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_8_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_7_FLASH)+ self._receipt(team_id=self.team.id + 1, created_at=now, model=ScannerModel.GEMINI_3_8_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_7_FLASH)+ self._receipt(team_id=self.team.id, created_at=now, model=ScannerModel.GEMINI_3_8_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_7_FLASH])[email protected]("model", [ScannerModel.GEMINI_3_FLASH_PREVIEW, ScannerModel.GEMINI_3_8_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 d4727f91430d..f563108d77a5 100644--- a/products/replay_vision/backend/tests/test_estimate_refresh.py+++ b/products/replay_vision/backend/tests/test_estimate_refresh.py@@ -67,7 +67,7 @@ def _make_scanner(**overrides: Any) -> ReplayScanner:"name": "estimate-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_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 46e3d1cceee3..bc4d1a88a37a 100644--- a/products/replay_vision/backend/tests/test_facade.py+++ b/products/replay_vision/backend/tests/test_facade.py@@ -24,7 +24,7 @@ class TestFetchPageSessionObservations(APIBaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "summarize the session"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 7b8cf7698fa5..581888118470 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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 1aeac6f35289..9a28139c071a 100644--- a/products/replay_vision/backend/tests/test_max_tools.py+++ b/products/replay_vision/backend/tests/test_max_tools.py@@ -108,7 +108,7 @@ class TestSearchReplayVisionObservationsTool(BaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "rate frustration"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def _create_observation(self, scanner: ReplayScanner, session_id: str, model_output: dict) -> ReplayObservation:@@ -539,7 +539,7 @@ class TestScanReplayVisionSessionsScannerLimit(BaseTest):name="capped",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)cost = observation_credits_for_model(scanner.model)seed_scanner_spend(scanner, cost)@@ -569,7 +569,7 @@ class TestScanReplayVisionSessionsScannerLimit(BaseTest):name="uncapped",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)start = MagicMock(return_value=MagicMock())with (@@ -677,7 +677,7 @@ class TestReplayVisionToolAuthorization(BaseTest):name="secret-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)@pytest.mark.django_db@@ -718,7 +718,7 @@ class TestReplayVisionToolAuthorization(BaseTest):name="theirs",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)_, artifact = await self._tool(ScanReplayVisionSessionsTool)._arun_impl(@@ -756,7 +756,7 @@ class TestReplayVisionApprovalFlowEndToEnd(BaseTest):name="checkout",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)@staticmethod@@ -848,7 +848,7 @@ class TestUpdateReplayVisionScannerTool(BaseTest):"name": "checkout","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,"enabled": False,"estimated_monthly_observations": 400,# The model always stamps this alongside the count; the preview treats a missing one as stale.@@ -1026,7 +1026,7 @@ class TestReplayVisionLifecycleTools(BaseTest):"name": "checkout","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "did the user check out?"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -1056,7 +1056,7 @@ class TestReplayVisionLifecycleTools(BaseTest):inline_key="k",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "one-off"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,enabled=False,sampling_rate=0.0,)@@ -1147,7 +1147,7 @@ class TestReplayVisionLifecycleTools(BaseTest):name="themes",scanner_type=ScannerType.CLASSIFIER,scanner_config={"prompt": "what went wrong?", "tags": ["checkout"]},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)_, artifact = await self._tool(AnalyzeReplayVisionImpactTool)._arun_impl(scanner_id=str(scanner.id))diff --git a/products/replay_vision/backend/tests/test_models.py b/products/replay_vision/backend/tests/test_models.pyindex d8637688f1c2..03fcf32d251a 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_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def test_str_includes_name_and_type(self) -> None:@@ -228,7 +228,7 @@ class TestReplayObservation(BaseTest):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "test"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)self._create_observation(scanner_a, session_id="shared-session")self._create_observation(scanner_b, session_id="shared-session")@@ -295,7 +295,7 @@ class TestReplayObservation(BaseTest):name="doomed",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "test"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)self._create_observation(scanner, session_id="doomed-session")scanner_id = scanner.id@@ -337,7 +337,7 @@ class TestScannerCreditLimit(APIBaseTest):name=f"limit-scanner-{ReplayScanner.objects.count()}",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,**kwargs,)@@ -351,7 +351,7 @@ class TestScannerCreditLimit(APIBaseTest):name="limit-validator-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 d3e1564d1553..7fd3f8812295 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_7_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITE+ expensive, cheap = ScannerModel.GEMINI_3_8_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_7_FLASH, ScannerModel.GEMINI_3_5_FLASH_LITE+ expensive, cheap = ScannerModel.GEMINI_3_8_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 2de861edcf88..899aeb998cc6 100644--- a/products/replay_vision/backend/tests/test_quota.py+++ b/products/replay_vision/backend/tests/test_quota.py@@ -46,7 +46,7 @@ class _VisionQuotaTestCase(APIBaseTest):name="quota-test-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def _make_observation(@@ -115,11 +115,11 @@ class TestComputeQuotaSnapshot(_VisionQuotaTestCase):@parameterized.expand([(ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_5_FLASH_LITE, 2),- (ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_7_FLASH, 15),+ (ObservationStatus.SUCCEEDED, ScannerModel.GEMINI_3_8_FLASH, 15),(ObservationStatus.PENDING, ScannerModel.GEMINI_3_5_FLASH_LITE, 2),- (ObservationStatus.RUNNING, ScannerModel.GEMINI_3_7_FLASH, 15),- (ObservationStatus.FAILED, ScannerModel.GEMINI_3_7_FLASH, 0),- (ObservationStatus.INELIGIBLE, ScannerModel.GEMINI_3_7_FLASH, 0),+ (ObservationStatus.RUNNING, ScannerModel.GEMINI_3_8_FLASH, 15),+ (ObservationStatus.FAILED, ScannerModel.GEMINI_3_8_FLASH, 0),+ (ObservationStatus.INELIGIBLE, ScannerModel.GEMINI_3_8_FLASH, 0),])def test_credits_priced_by_model_for_succeeded_and_in_flight(@@ -174,7 +174,7 @@ class TestComputeQuotaSnapshot(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)other_obs = ReplayObservation.objects.create(scanner=other_scanner,@@ -261,7 +261,7 @@ class TestComputeScannerBudget(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,credit_limit=1_000_000,)@@ -560,7 +560,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="unspent-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)self._make_observation(status=ObservationStatus.SUCCEEDED, completed_at=timezone.now())result = compute_scanner_budgets(self.organization.id, [self.scanner.id, unspent.id])@@ -573,7 +573,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="capped-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,credit_limit=300,)ReplayScanner.objects.filter(pk=self.scanner.pk).update(credit_limit=None)@@ -589,7 +589,7 @@ class TestComputeScannerBudgets(_VisionQuotaTestCase):name="other-scanner",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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.@@ -784,7 +784,7 @@ class TestProjectedMonthlyObservations(_VisionQuotaTestCase):name: str,enabled: bool = True,estimate: int | None = None,- model: ScannerModel = ScannerModel.GEMINI_3_7_FLASH,+ model: ScannerModel = ScannerModel.GEMINI_3_8_FLASH,credit_limit: int | None = None,) -> None:scanner = ReplayScanner.objects.create(@@ -880,7 +880,7 @@ class TestVisionSpendSeriesEndpoint(_VisionQuotaTestCase):organization_id=organization_id or self.organization.id,team_id=self.team.id,observation_created_at=datetime.fromisoformat(created_at),- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,credits=credits,)diff --git a/products/replay_vision/backend/tests/test_reconciler.py b/products/replay_vision/backend/tests/test_reconciler.pyindex b90d9f0abe0e..0d2b9ba6e70e 100644--- a/products/replay_vision/backend/tests/test_reconciler.py+++ b/products/replay_vision/backend/tests/test_reconciler.py@@ -81,7 +81,7 @@ def _make_scanner(team: Team, **overrides: Any) -> ReplayScanner:"name": "reconciler-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -622,7 +622,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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,enabled=False,sampling_rate=0.0,)diff --git a/products/replay_vision/backend/tests/test_scanner_draft.py b/products/replay_vision/backend/tests/test_scanner_draft.pyindex 8775b991f865..f597f45a80d5 100644--- a/products/replay_vision/backend/tests/test_scanner_draft.py+++ b/products/replay_vision/backend/tests/test_scanner_draft.py@@ -1109,9 +1109,9 @@ class TestDraftV2(_VisionAPITestCase):assert draft.estimated_monthly_observations == 300def test_the_model_and_credit_cap_reach_the_draft(self):- draft = self._run(pages=("/billing",), generate=_draft_v2(model="gemini-3.7-flash"))+ draft = self._run(pages=("/billing",), generate=_draft_v2(model="gemini-3.8-flash"))- assert draft.model == "gemini-3.7-flash"+ assert draft.model == "gemini-3.8-flash"assert draft.credit_limit == 10_000@@ -1136,7 +1136,7 @@ class TestDraftEndpointGoalFlow(_VisionAPITestCase):sampling_mode="comprehensive",sampling_rate=0.25,estimated_monthly_observations=1_000,- model="gemini-3.7-flash",+ model="gemini-3.8-flash",credit_limit=5_000,)@@ -1156,7 +1156,7 @@ class TestDraftEndpointGoalFlow(_VisionAPITestCase):body = resp.json()assert body["sampling_mode"] == "comprehensive"assert body["sampling_rate"] == 0.25- assert body["model"] == "gemini-3.7-flash"+ assert body["model"] == "gemini-3.8-flash"assert body["credit_limit"] == 5000assert body["estimated_monthly_observations"] == 1000diff --git a/products/replay_vision/backend/tests/test_scanners.py b/products/replay_vision/backend/tests/test_scanners.pyindex 18ac26aad15b..7003da75542e 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_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_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 6d9938eb7af3..89aba7e98953 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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_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 ebf12a4bd4b8..6f5d5c7054ef 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_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)diff --git a/products/replay_vision/backend/tests/test_search.py b/products/replay_vision/backend/tests/test_search.pyindex ebe628f5093e..344c35ea3b2f 100644--- a/products/replay_vision/backend/tests/test_search.py+++ b/products/replay_vision/backend/tests/test_search.py@@ -154,7 +154,7 @@ class TestFetchRankedObservations(APIBaseTest):name=scanner_name,scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,origin=origin,# A check constraint pairs the two: an inline scanner owes a key, a configured one owes none.inline_key=scanner_name if origin == ScannerOrigin.INLINE else "",diff --git a/products/replay_vision/backend/tests/test_signals_onboarding.py b/products/replay_vision/backend/tests/test_signals_onboarding.pyindex 18eec05a108e..f6f5a2bb3a18 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_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_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 c31b84fc555c..e16ca0607fd9 100644--- a/products/replay_vision/backend/tests/test_sweep.py+++ b/products/replay_vision/backend/tests/test_sweep.py@@ -76,7 +76,7 @@ from products.replay_vision.backend.temporal.sweep_types import (from 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_7_FLASH)+_OBSERVATION_CREDITS = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH)_ACTIVITY = "products.replay_vision.backend.temporal.activities.find_scanner_candidates"@@ -122,7 +122,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "sweep-scanner","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,# Primed by default so only the priming-specific tests exercise the one-off pass."primed_at": timezone.now(),}diff --git a/products/replay_vision/backend/tests/test_temporal.py b/products/replay_vision/backend/tests/test_temporal.pyindex 4b0153f79958..2c338a824c88 100644--- a/products/replay_vision/backend/tests/test_temporal.py+++ b/products/replay_vision/backend/tests/test_temporal.py@@ -172,7 +172,7 @@ def _make_scanner(**overrides) -> ReplayScanner:"name": "t","scanner_type": ScannerType.MONITOR,"scanner_config": {"prompt": "p"},- "model": ScannerModel.GEMINI_3_7_FLASH,+ "model": ScannerModel.GEMINI_3_8_FLASH,}defaults.update(overrides)return ReplayScanner.objects.create(**defaults)@@ -199,7 +199,7 @@ class TestCountInFlightAppliesActivity:name="sibling",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "p"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)other_team_scanner = _make_scanner() # fresh org+team_make_observation(scanner, session_id="s1", status=ObservationStatus.PENDING)@@ -563,7 +563,7 @@ class TestCreateObservationActivity:def test_warm_cache_admission_still_refuses_at_the_limit(self) -> None:# The cold path refuses via fresh aggregates (covered above); this pins the warm path: the# first admission's cached spend must refuse the second, not just the next refresh.- credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH.value)scanner = _make_scanner(credit_limit=credits)with patch("products.replay_vision.backend.quota.MONTHLY_CREDIT_QUOTA", 1_000_000):assert self._admit(scanner, "sess-warm-a").was_created@@ -586,7 +586,7 @@ class TestCreateObservationActivity:def test_failed_insert_refunds_its_cached_admission(self) -> None:# The cached counter must stay transactional with the insert: an increment that survived a# rolled-back insert would make a cap that fits one observation refuse the retry forever.- credits = observation_credits_for_model(ScannerModel.GEMINI_3_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH.value)scanner = _make_scanner(credit_limit=credits)with patch("products.replay_vision.backend.quota.MONTHLY_CREDIT_QUOTA", 1_000_000):with (@@ -599,7 +599,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_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH.value)scanner = _make_scanner(credit_limit=credits)barrier = threading.Barrier(2)created: dict[str, bool] = {}@@ -748,14 +748,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_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_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_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,credit_limit=credits,)barrier = threading.Barrier(2)@@ -793,7 +793,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_7_FLASH.value)+ credits = observation_credits_for_model(ScannerModel.GEMINI_3_8_FLASH.value)scanner = _make_scanner(credit_limit=credits)first_attempt = create_observation_activity(CreateObservationInputs(@@ -913,7 +913,7 @@ class TestKnownFreeformTags:name="sibling",scanner_type=ScannerType.CLASSIFIER,scanner_config={"prompt": "categorize", "tags": ["checkout"], "allow_freeform_tags": True},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)self._succeeded(sibling, "s1", ["sibling_tag"])stale = self._succeeded(scanner, "s2", ["stale_tag"])diff --git a/products/replay_vision/backend/tests/test_vision_alerts_api.py b/products/replay_vision/backend/tests/test_vision_alerts_api.pyindex 061f57cb0cde..39c8222fbeb9 100644--- a/products/replay_vision/backend/tests/test_vision_alerts_api.py+++ b/products/replay_vision/backend/tests/test_vision_alerts_api.py@@ -38,7 +38,7 @@ class _VisionAlertAPITestCase(APIBaseTest):name=name,scanner_type=scanner_type,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def _metric_payload(self, **overrides: Any) -> dict[str, Any]:diff --git a/products/replay_vision/backend/tests/test_vision_alerts_engine.py b/products/replay_vision/backend/tests/test_vision_alerts_engine.pyindex bfde5e7bd038..db2f6c580280 100644--- a/products/replay_vision/backend/tests/test_vision_alerts_engine.py+++ b/products/replay_vision/backend/tests/test_vision_alerts_engine.py@@ -43,7 +43,7 @@ class TestVisionAlertEngine(BaseTest):name="Checkout monitor",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def _make_alert(self, **overrides: Any) -> VisionAlertConfiguration:diff --git a/products/replay_vision/backend/tests/test_vision_alerts_match_outbox.py b/products/replay_vision/backend/tests/test_vision_alerts_match_outbox.pyindex 130b15af2860..f5424ec9502d 100644--- a/products/replay_vision/backend/tests/test_vision_alerts_match_outbox.py+++ b/products/replay_vision/backend/tests/test_vision_alerts_match_outbox.py@@ -54,7 +54,7 @@ class TestVisionAlertMatchOutbox(BaseTest):name="Checkout monitor",scanner_type=ScannerType.MONITOR,scanner_config={"prompt": "did the user check out?"},- model=ScannerModel.GEMINI_3_7_FLASH,+ model=ScannerModel.GEMINI_3_8_FLASH,)def _make_match_alert(self, **overrides: Any) -> VisionAlertConfiguration:diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.tsindex 4786d9c692da..ecf30636e726 100644--- a/products/replay_vision/frontend/generated/api.schemas.ts+++ b/products/replay_vision/frontend/generated/api.schemas.ts@@ -756,14 +756,14 @@ export const ScannerProviderEnumApi = {/*** * `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+ * * `gemini-3.8-flash` - Gemini 3.8 Flash*/export type ScannerModelEnumApi = (typeof ScannerModelEnumApi)[keyof typeof ScannerModelEnumApi]export const ScannerModelEnumApi = {Gemini35FlashLite: 'gemini-3.5-flash-lite',Gemini3FlashPreview: 'gemini-3-flash-preview',- Gemini37Flash: 'gemini-3.7-flash',+ Gemini38Flash: 'gemini-3.8-flash',} as const/**@@ -871,7 +871,7 @@ export interface ReplayScannerApi {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model: ScannerModelEnumApi/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean@@ -989,7 +989,7 @@ export interface PatchedReplayScannerApi {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model?: ScannerModelEnumApi/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean@@ -2026,7 +2026,7 @@ export interface DraftScannerResponseApi {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model: ScannerModelEnumApi | null/*** Goal-based flow only: the monthly credit cap, set to `monthly_credit_budget` so a mis-estimate stops the scanner at the credits the user agreed to. Null on the legacy flow.@@ -2067,7 +2067,7 @@ export interface EstimateRequestApi {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model?: ScannerModelEnumApi/** Proposed experiment targeting, merged into the query as its exposure filter the same way a saved scanner derives it. The estimate then runs as the requesting user. */experiment_targeting?: ScannerExperimentTargetingApi | null@@ -2123,7 +2123,7 @@ export interface InlineScanRequestApi {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model?: ScannerModelEnumApi}diff --git a/products/replay_vision/frontend/generated/api.zod.ts b/products/replay_vision/frontend/generated/api.zod.tsindex 1654c337e123..3a5f0ce25709 100644--- a/products/replay_vision/frontend/generated/api.zod.ts+++ b/products/replay_vision/frontend/generated/api.zod.ts@@ -569,12 +569,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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),enabled: zod.boolean()@@ -701,13 +701,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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),enabled: zod.boolean()@@ -1164,13 +1164,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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),experiment_targeting: zod.union([@@ -1243,13 +1243,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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 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 a4f353dcd3ec..35957eec1e12 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx@@ -53,7 +53,7 @@ const scanner = (overrides: Partial<ReplayScannerApi> = {}): ReplayScannerApi =>// would render the editor's form default instead of the scanner's own coverage.sampling_mode: 'comprehensive',provider: 'google',- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',enabled: true,emits_signals: false,scanner_version: 1,@@ -215,7 +215,7 @@ const observation = (overrides: Partial<ReplayObservationApi> = {}): ReplayObsername: summarizerScanner.name,scanner_type: 'summarizer',scanner_version: 1,- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',provider: 'google',emits_signals: false,scanner_config: { prompt: 'Summarize this session.', length: 'medium' },@@ -311,7 +311,7 @@ const monitorObservationDetail = observation({name: 'Confused checkout',scanner_type: 'monitor',scanner_version: 3,- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',provider: 'google',emits_signals: true,scanner_config: {@@ -559,7 +559,7 @@ export const ScannerScanDrought: StoryObj = {prompt: 'Did the user struggle?',scanner_config: { prompt: 'Did the user struggle?' },scanner_type: 'monitor',- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',provider: 'google',emits_signals: false,query: null,diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsxindex 2293d4309ecb..2396063600f0 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsx@@ -23,7 +23,7 @@ function modelRoleLabel(model: string): string {if (model === 'gemini-3.5-flash-lite') {return 'Cheapest tier. Best for simple yes/no checks.'}- if (model === 'gemini-3.7-flash') {+ if (model === 'gemini-3.8-flash') {return 'Most capable tier. Best for nuanced scoring or summaries.'}if (model === 'gemini-3-flash-preview') {diff --git a/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.ts b/products/replay_vision/frontend/replay_scanners/components/versionChanges.test.tsindex 6d187b0cd937..dfd3efd64ced 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.7-flash',+ model: 'gemini-3.8-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 7a6cfad752c1..a50e69b3ee65 100644--- a/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.ts+++ b/products/replay_vision/frontend/replay_scanners/replayScannersLogic.test.ts@@ -48,7 +48,7 @@ function makeScanner(overrides: Partial<ReplayScanner> = {}): ReplayScanner {sampling_rate: 0.1,query: null,provider: 'google',- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',emits_signals: false,scanner_version: 1,last_swept_at: '2026-05-12T00:00:00Z',diff --git a/products/replay_vision/frontend/replay_scanners/scanDrought.test.ts b/products/replay_vision/frontend/replay_scanners/scanDrought.test.tsindex 052f0525ade1..b5259dbe9d71 100644--- a/products/replay_vision/frontend/replay_scanners/scanDrought.test.ts+++ b/products/replay_vision/frontend/replay_scanners/scanDrought.test.ts@@ -22,7 +22,7 @@ function marker(version: number): ObservationVersionMarkerApi {prompt: 'Did the user struggle?',scanner_config: { prompt: 'Did the user struggle?' },scanner_type: 'monitor',- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',provider: 'google',emits_signals: false,query: null,diff --git a/products/replay_vision/frontend/replay_scanners/types.test.ts b/products/replay_vision/frontend/replay_scanners/types.test.tsindex 04c3bcbd28d4..fb5df3b9e8a9 100644--- a/products/replay_vision/frontend/replay_scanners/types.test.ts+++ b/products/replay_vision/frontend/replay_scanners/types.test.ts@@ -4,6 +4,7 @@ import {failureRetryGuidance,getModelOptions,modelLabel,+ modelName,modelNamingVariant,observationRetryOffer,} from './types'@@ -79,7 +80,7 @@ describe('scanner type helpers', () => {['Gemini 3.5 Flash Lite · 2 credits/observation','Gemini 3 Flash · 5 credits/observation',- 'Gemini 3.7 Flash · 15 credits/observation',+ 'Gemini 3.8 Flash · 15 credits/observation',],],[@@ -112,5 +113,11 @@ describe('scanner type helpers', () => {expect(modelLabel('gemini-1.5-retired', 'test')).toBe('gemini-1.5-retired')expect(modelLabel('gemini-1.5-retired', null)).toBe('gemini-1.5-retired')})++ // A model leaving the lineup must not turn every past observation's label into a raw slug.+ it.each(['gemini-3.7-flash', 'gemini-3.6-flash'])('still names retired model %s', (model) => {+ expect(modelLabel(model, null)).toContain('Flash')+ expect(modelName(model, 'test')).toContain('Flash')+ })})})diff --git a/products/replay_vision/frontend/replay_scanners/types.ts b/products/replay_vision/frontend/replay_scanners/types.tsindex 29dab61cecdf..8ce34a8aa401 100644--- a/products/replay_vision/frontend/replay_scanners/types.ts+++ b/products/replay_vision/frontend/replay_scanners/types.ts@@ -241,13 +241,20 @@ export const ENABLED_OPTIONS: { value: EnabledFilter; label: string }[] = [export const OBSERVATION_CREDITS_BY_MODEL: Record<ScannerModelEnumApi, number> = {[ScannerModelEnumApi.Gemini35FlashLite]: 2,[ScannerModelEnumApi.Gemini3FlashPreview]: 5,- [ScannerModelEnumApi.Gemini37Flash]: 15,+ [ScannerModelEnumApi.Gemini38Flash]: 15,}const MODEL_NAMES: Record<ScannerModelEnumApi, string> = {[ScannerModelEnumApi.Gemini35FlashLite]: 'Gemini 3.5 Flash Lite',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Gemini 3 Flash',- [ScannerModelEnumApi.Gemini37Flash]: 'Gemini 3.7 Flash',+ [ScannerModelEnumApi.Gemini38Flash]: 'Gemini 3.8 Flash',+}++// Names for models dropped from the lineup, so an observation frozen against one still reads as a+// product name instead of a raw id. Tier arms keep provider names here: no tier claim survives retirement.+const RETIRED_MODEL_NAMES: Record<string, string> = {+ 'gemini-3.7-flash': 'Gemini 3.7 Flash',+ 'gemini-3.6-flash': 'Gemini 3.6 Flash',}// Tier-name arms of the replay-vision-model-tier-naming-experiment flag: capability tiers instead@@ -259,12 +266,12 @@ const MODEL_TIER_NAMES: Record<ModelNamingVariant, Record<ScannerModelEnumApi, stest: {[ScannerModelEnumApi.Gemini35FlashLite]: 'Basic',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Pro',- [ScannerModelEnumApi.Gemini37Flash]: 'Ultra',+ [ScannerModelEnumApi.Gemini38Flash]: 'Ultra',},'lite-standard-pro': {[ScannerModelEnumApi.Gemini35FlashLite]: 'Lite',[ScannerModelEnumApi.Gemini3FlashPreview]: 'Standard',- [ScannerModelEnumApi.Gemini37Flash]: 'Pro',+ [ScannerModelEnumApi.Gemini38Flash]: 'Pro',},}@@ -284,12 +291,14 @@ export function getModelOptions(}))}-// Falls back to the raw id for retired models frozen in old observation snapshots.+// Falls back to the raw id for models retired before they were named here.export function modelLabel(model: string | null | undefined, namingVariant: ModelNamingVariant | null = null): string {if (!model) {return '—'}- return getModelOptions(namingVariant).find((opt) => opt.value === model)?.label ?? model+ return (+ getModelOptions(namingVariant).find((opt) => opt.value === model)?.label ?? RETIRED_MODEL_NAMES[model] ?? model+ )}/** Plain model name without the price suffix, for surfaces that show the price separately. */@@ -298,7 +307,7 @@ export function modelName(model: string | null | undefined, namingVariant: Modelreturn '—'}const names = namingVariant ? MODEL_TIER_NAMES[namingVariant] : MODEL_NAMES- return names[model as ScannerModelEnumApi] ?? model+ return names[model as ScannerModelEnumApi] ?? RETIRED_MODEL_NAMES[model] ?? model}/** Fallback name for a scanner the user never named, e.g. "Hedgebox classifier". */diff --git a/products/replay_vision/frontend/replay_scanners/visionUsageLogic.test.ts b/products/replay_vision/frontend/replay_scanners/visionUsageLogic.test.tsindex e2da88ae6286..f544f0c65a11 100644--- a/products/replay_vision/frontend/replay_scanners/visionUsageLogic.test.ts+++ b/products/replay_vision/frontend/replay_scanners/visionUsageLogic.test.ts@@ -23,7 +23,7 @@ function makeScanner(overrides: Partial<ReplayScanner> = {}): ReplayScanner {sampling_rate: 0.1,query: null,provider: 'google',- model: 'gemini-3.7-flash',+ model: 'gemini-3.8-flash',emits_signals: false,scanner_version: 1,last_swept_at: '2026-05-12T00:00:00Z',diff --git a/products/replay_vision/frontend/utils/labelStats.test.ts b/products/replay_vision/frontend/utils/labelStats.test.tsindex 5c8ae2fafcc7..22050c15494a 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.7-flash',+ model: 'gemini-3.8-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 48ad139f48fb..25f35ed31ad4 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.7-flash`-(15 credits). Start at the default and only reach for `gemini-3.7-flash` when the cheaper tiers demonstrably+`gemini-3.5-flash-lite` (2 credits), `gemini-3-flash-preview` (5 credits, the default) and `gemini-3.8-flash`+(15 credits). Start at the default and only reach for `gemini-3.8-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 085080f2bfbb..9e0355119530 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -29267,7 +29267,7 @@ export namespace Schemas {/*** * `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+ * * `gemini-3.8-flash` - Gemini 3.8 Flash*/export type ScannerModelEnum = typeof ScannerModelEnum[keyof typeof ScannerModelEnum];@@ -29275,7 +29275,7 @@ export namespace Schemas {export const ScannerModelEnum = {Gemini35FlashLite: 'gemini-3.5-flash-lite',Gemini3FlashPreview: 'gemini-3-flash-preview',- Gemini37Flash: 'gemini-3.7-flash',+ Gemini38Flash: 'gemini-3.8-flash',} as const;/**@@ -29314,7 +29314,7 @@ export namespace Schemas {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model: ScannerModelEnum | null;/*** Goal-based flow only: the monthly credit cap, set to `monthly_credit_budget` so a mis-estimate stops the scanner at the credits the user agreed to. Null on the legacy flow.@@ -32539,7 +32539,7 @@ export namespace Schemas {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model?: ScannerModelEnum;/** Proposed experiment targeting, merged into the query as its exposure filter the same way a saved scanner derives it. The estimate then runs as the requesting user. */experiment_targeting?: ScannerExperimentTargeting | null;@@ -46173,7 +46173,7 @@ export namespace Schemas {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model?: ScannerModelEnum;}@@ -55718,7 +55718,7 @@ export namespace Schemas {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 Flash */model: ScannerModelEnum;/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */enabled?: boolean;@@ -65591,7 +65591,7 @@ export namespace Schemas {** * `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 */+ * * `gemini-3.8-flash` - Gemini 3.8 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 48e39a8f74ba..36e11525d820 100644--- a/services/mcp/src/generated/replay_vision/api.ts+++ b/services/mcp/src/generated/replay_vision/api.ts@@ -339,12 +339,12 @@ export const VisionScannersCreateBody = () => 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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),enabled: zod.boolean()@@ -492,13 +492,13 @@ export const VisionScannersPartialUpdateBody = () => 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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),enabled: zod.boolean()@@ -998,13 +998,13 @@ export const VisionScannersEstimateCreateBody = () => 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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 Flash'),experiment_targeting: zod.union([@@ -1085,13 +1085,13 @@ export const VisionScannersInlineScanCreateBody = () => 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.7-flash'])+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.8-flash']).describe(- '\* `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'+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash\n\* `gemini-3.8-flash` - Gemini 3.8 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.7-flash` - Gemini 3.7 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.8-flash` - Gemini 3.8 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 e90b938159bf..e7543555d665 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@@ -64,8 +64,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.7-flash` - Gemini 3.7 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-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.8-flash` - Gemini 3.8 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.8-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 fdeaceda4b1b..3fd1da89da5d 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@@ -39,8 +39,8 @@},"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.7-flash` - Gemini 3.7 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-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.8-flash` - Gemini 3.8 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.8-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 f1a57433dd69..0d9558a4c1e7 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.7-flash` - Gemini 3.7 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-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.8-flash` - Gemini 3.8 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.8-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 c37cda9239e6..3d038eb0abd6 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@@ -67,8 +67,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.7-flash` - Gemini 3.7 Flash",- "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.7-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.8-flash` - Gemini 3.8 Flash",+ "enum": ["gemini-3.5-flash-lite", "gemini-3-flash-preview", "gemini-3.8-flash"],"type": "string"},"name": {