Skip to content

: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.

feat(replay-vision): provision a built-in daily digest for new scanners (#69051)

Kim Svatos Dugan6fc7f28a539b
diff --git a/products/replay_vision/backend/api/scanners.py b/products/replay_vision/backend/api/scanners.py
index 1700e22b97cf..74b7d55e06c5 100644
--- a/products/replay_vision/backend/api/scanners.py
+++ b/products/replay_vision/backend/api/scanners.py
@@ -34,7 +34,8 @@ from products.replay_vision.backend.api.trigger import (
check_observation_quota,
start_apply_scanner_workflow,
)
-from products.replay_vision.backend.feature_flag import ReplayVisionEnabledPermission
+from products.replay_vision.backend.digest import provision_scanner_digest
+from products.replay_vision.backend.feature_flag import ReplayVisionEnabledPermission, is_replay_vision_actions_enabled
from products.replay_vision.backend.models.replay_scanner import (
ReplayScanner,
SamplingMode,
@@ -310,6 +311,10 @@ class ReplayScannerSerializer(serializers.ModelSerializer):
except IntegrityError as e:
self._reraise_unique_name_violation(e)
_refresh_estimate_fail_soft(scanner)
+ # Every scanner starts with a built-in daily digest so the overview has a summary to show.
+ # Flag-gated so teams without the actions feature don't accrue synthesis runs they can't see.
+ if is_replay_vision_actions_enabled(user, team):
+ provision_scanner_digest(scanner, user)
return scanner
def update(self, instance: ReplayScanner, validated_data: dict[str, Any]) -> ReplayScanner:
diff --git a/products/replay_vision/backend/api/vision_actions.py b/products/replay_vision/backend/api/vision_actions.py
index f53339d6a4bc..3768e579f313 100644
--- a/products/replay_vision/backend/api/vision_actions.py
+++ b/products/replay_vision/backend/api/vision_actions.py
@@ -128,6 +128,13 @@ class VisionActionSerializer(serializers.ModelSerializer):
required=False,
help_text="When false, the scheduler skips this action.",
)
+ is_scanner_digest = serializers.BooleanField(
+ required=False,
+ help_text=(
+ "Marks this action as the scanner's built-in daily digest, the one summary surfaced on the "
+ "scanner overview. At most one digest per scanner."
+ ),
+ )
trigger_type = serializers.ChoiceField(
choices=TriggerType.choices,
required=False,
@@ -184,6 +191,7 @@ class VisionActionSerializer(serializers.ModelSerializer):
"name",
"scanner",
"enabled",
+ "is_scanner_digest",
"trigger_type",
"mode",
"trigger_config",
@@ -233,6 +241,7 @@ class VisionActionSerializer(serializers.ModelSerializer):
def validate(self, attrs: dict[str, Any]) -> dict[str, Any]:
self._validate_schedule(attrs)
self._validate_unique_name(attrs)
+ self._validate_unique_digest(attrs)
return attrs
def _validate_schedule(self, attrs: dict[str, Any]) -> None:
@@ -264,6 +273,20 @@ class VisionActionSerializer(serializers.ModelSerializer):
if duplicates.exists():
raise serializers.ValidationError({"name": "An action with this name already exists in this team."})
+ def _validate_unique_digest(self, attrs: dict[str, Any]) -> None:
+ # Surface the one-digest-per-scanner constraint as a 400 instead of letting the DB raise 500.
+ if not attrs.get("is_scanner_digest"):
+ return
+ scanner = attrs.get("scanner") or getattr(self.instance, "scanner", None)
+ if scanner is None:
+ return
+ team = self.context["get_team"]()
+ duplicates = VisionAction.objects.for_team(team.id).filter(scanner=scanner, is_scanner_digest=True)
+ if self.instance is not None:
+ duplicates = duplicates.exclude(pk=self.instance.pk)
+ if duplicates.exists():
+ raise serializers.ValidationError({"is_scanner_digest": "This scanner already has a daily digest."})
+
def create(self, validated_data: dict[str, Any]) -> VisionAction:
team = self.context["get_team"]()
user = cast(User, self.context["request"].user)
@@ -271,18 +294,20 @@ class VisionActionSerializer(serializers.ModelSerializer):
# for_team()'s filter doesn't propagate into create(), so team is still passed explicitly.
return VisionAction.objects.for_team(team.id).create(team=team, created_by=user, **validated_data)
except IntegrityError as e:
- self._reraise_unique_name_violation(e)
+ self._reraise_unique_violation(e)
def update(self, instance: VisionAction, validated_data: dict[str, Any]) -> VisionAction:
try:
return super().update(instance, validated_data)
except IntegrityError as e:
- self._reraise_unique_name_violation(e)
+ self._reraise_unique_violation(e)
@staticmethod
- def _reraise_unique_name_violation(error: IntegrityError) -> NoReturn:
+ def _reraise_unique_violation(error: IntegrityError) -> NoReturn:
if "vision_action_unique_team_name" in str(error):
raise serializers.ValidationError({"name": "An action with this name already exists in this team."})
+ if "vision_action_unique_scanner_digest" in str(error):
+ raise serializers.ValidationError({"is_scanner_digest": "This scanner already has a daily digest."})
raise error
@@ -374,8 +399,9 @@ class VisionActionViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):
_RUN_REASON_LABELS = {
"skipped_empty": "No new observations in this window to summarize.",
"skipped_over_budget": "The team is over its AI-credit budget.",
+ # Legacy: the engine no longer skips actions with no delivery_config (digest runs are in-app only).
+ # Keep both keys so historical run rows still display a readable reason rather than the raw enum.
"no_delivery": "No delivery destination is configured for this action.",
- # Alias: runs recorded before #66892 stored the old "no_delivery_flow" enum; map it to the same copy.
"no_delivery_flow": "No delivery destination is configured for this action.",
"disabled": "The action was disabled when this run was due.",
"not_found": "The action no longer exists.",
diff --git a/products/replay_vision/backend/digest.py b/products/replay_vision/backend/digest.py
new file mode 100644
index 000000000000..75616247714c
--- /dev/null
+++ b/products/replay_vision/backend/digest.py
@@ -0,0 +1,47 @@
+from typing import TYPE_CHECKING
+
+import structlog
+
+from products.replay_vision.backend.models.vision_action import VisionAction
+
+if TYPE_CHECKING:
+ from posthog.models.user import User
+
+ from products.replay_vision.backend.models.replay_scanner import ReplayScanner
+
+logger = structlog.get_logger(__name__)
+
+# Every morning at 8:00 in the team's timezone; the sweep skips days with no new observations.
+SCANNER_DIGEST_RRULE = "FREQ=DAILY;BYHOUR=8;BYMINUTE=0"
+
+
+def digest_name_for_scanner(scanner: "ReplayScanner") -> str:
+ # VisionAction names are unique per team, so the scanner name (itself team-unique) is baked in.
+ return f"Daily digest: {scanner.name}"[:255]
+
+
+def provision_scanner_digest(scanner: "ReplayScanner", user: "User") -> VisionAction | None:
+ """Create the scanner's built-in daily digest: a summary action with no delivery targets whose
+ runs surface on the scanner overview. Fail-soft; scanner creation must never fail because digest
+ provisioning did."""
+ try:
+ # for_team()'s filter doesn't propagate into create(), so team is still passed explicitly.
+ return VisionAction.objects.for_team(scanner.team_id).create(
+ team_id=scanner.team_id,
+ scanner=scanner,
+ name=digest_name_for_scanner(scanner),
+ created_by=user,
+ is_scanner_digest=True,
+ trigger_config={
+ "rrule": SCANNER_DIGEST_RRULE,
+ "timezone": scanner.team.timezone or "UTC",
+ },
+ delivery_config=[],
+ )
+ except Exception:
+ logger.exception(
+ "replay_vision.digest.provision_failed",
+ scanner_id=str(scanner.id),
+ team_id=scanner.team_id,
+ )
+ return None
diff --git a/products/replay_vision/backend/migrations/0029_visionaction_is_scanner_digest.py b/products/replay_vision/backend/migrations/0029_visionaction_is_scanner_digest.py
new file mode 100644
index 000000000000..1e73dd11904e
--- /dev/null
+++ b/products/replay_vision/backend/migrations/0029_visionaction_is_scanner_digest.py
@@ -0,0 +1,24 @@
+# Generated by Django 5.2.14 on 2026-07-07 19:18
+
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("posthog", "1247_oauthaccesstoken_token_idx"),
+ ("replay_vision", "0028_replayscannerpromptsuggestion"),
+ ("workflows", "0008_teamworkflowsconfig"),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="visionaction",
+ name="is_scanner_digest",
+ field=models.BooleanField(
+ default=False,
+ help_text="Marks the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one per scanner.",
+ ),
+ ),
+ ]
diff --git a/products/replay_vision/backend/migrations/0030_vision_action_unique_scanner_digest.py b/products/replay_vision/backend/migrations/0030_vision_action_unique_scanner_digest.py
new file mode 100644
index 000000000000..e84f2778efbf
--- /dev/null
+++ b/products/replay_vision/backend/migrations/0030_vision_action_unique_scanner_digest.py
@@ -0,0 +1,39 @@
+from django.db import migrations, models
+
+from posthog.migration_helpers import CreateIndexConcurrently
+
+
+class Migration(migrations.Migration):
+ # CREATE INDEX CONCURRENTLY cannot run inside a transaction.
+ atomic = False
+
+ dependencies = [
+ ("replay_vision", "0029_visionaction_is_scanner_digest"),
+ ]
+
+ operations = [
+ # A conditional UniqueConstraint is a partial unique index in Postgres, which has no
+ # NOT VALID form — so build the index concurrently (lock-free) and record the constraint
+ # state-only. The helper is idempotent under bin/migrate retries.
+ migrations.SeparateDatabaseAndState(
+ state_operations=[
+ migrations.AddConstraint(
+ model_name="visionaction",
+ constraint=models.UniqueConstraint(
+ condition=models.Q(("is_scanner_digest", True)),
+ fields=("scanner",),
+ name="vision_action_unique_scanner_digest",
+ ),
+ ),
+ ],
+ database_operations=[
+ CreateIndexConcurrently(
+ index_name="vision_action_unique_scanner_digest",
+ table_name="replay_vision_visionaction",
+ columns='("scanner_id")',
+ unique=True,
+ where='WHERE "is_scanner_digest"',
+ ),
+ ],
+ ),
+ ]
diff --git a/products/replay_vision/backend/migrations/max_migration.txt b/products/replay_vision/backend/migrations/max_migration.txt
index 822ec14b7737..6351d13da9bc 100644
--- a/products/replay_vision/backend/migrations/max_migration.txt
+++ b/products/replay_vision/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0028_replayscannerpromptsuggestion
+0030_vision_action_unique_scanner_digest
diff --git a/products/replay_vision/backend/models/vision_action.py b/products/replay_vision/backend/models/vision_action.py
index 9161bb0b1c62..e677f464bf0c 100644
--- a/products/replay_vision/backend/models/vision_action.py
+++ b/products/replay_vision/backend/models/vision_action.py
@@ -43,6 +43,10 @@ class VisionAction(TeamScopedRootMixin, UUIDModel):
)
name = models.CharField(max_length=255)
enabled = models.BooleanField(default=True)
+ is_scanner_digest = models.BooleanField(
+ default=False,
+ help_text="Marks the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one per scanner.",
+ )
trigger_type = models.CharField(
max_length=20,
@@ -106,6 +110,11 @@ class VisionAction(TeamScopedRootMixin, UUIDModel):
default_manager_name = "all_teams"
constraints = [
models.UniqueConstraint(fields=["team", "name"], name="vision_action_unique_team_name"),
+ models.UniqueConstraint(
+ fields=["scanner"],
+ condition=models.Q(is_scanner_digest=True),
+ name="vision_action_unique_scanner_digest",
+ ),
]
indexes = [
models.Index(
diff --git a/products/replay_vision/backend/temporal/vision_actions/activities.py b/products/replay_vision/backend/temporal/vision_actions/activities.py
index 2398d553de90..f4781a3932c0 100644
--- a/products/replay_vision/backend/temporal/vision_actions/activities.py
+++ b/products/replay_vision/backend/temporal/vision_actions/activities.py
@@ -111,8 +111,8 @@ def _validate(inputs: ValidateVisionActionInputs) -> str | None:
return "not_found"
if not action.enabled:
return "disabled"
- if not action.delivery_config:
- return "no_delivery"
+ # No delivery_config is fine: the persisted run is the in-app artifact (scanner digest, run
+ # history); _emit no-ops when there's nowhere to deliver.
return None
@@ -140,6 +140,10 @@ def _emit(inputs: EmitActionReadyInputs) -> None:
action = run.vision_action
team = run.team
+ if not action.delivery_config:
+ # Nothing to deliver to; the run row (synthesized_markdown) is the in-app artifact.
+ return
+
action_url = f"{settings.SITE_URL}/project/{team.id}/replay/vision-actions/{action.id}"
# Private internal event (cdp_internal_events topic), NOT the public capture pipeline — an
# internal_destination HogFunction filtered on vision_action_id delivers it. This is non-forgeable
diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.py
index d29f9c0fad67..7c5192f1ba0c 100644
--- a/products/replay_vision/backend/tests/test_api.py
+++ b/products/replay_vision/backend/tests/test_api.py
@@ -14,6 +14,7 @@ from posthog.models import Organization, PersonalAPIKey, Team, User
from posthog.models.utils import generate_random_token_personal, hash_key_value, uuid7
from posthog.session_recordings.queries.test.session_replay_sql import produce_replay_summary
+from products.replay_vision.backend.digest import SCANNER_DIGEST_RRULE
from products.replay_vision.backend.models.replay_observation import (
ObservationStatus,
ObservationTrigger,
@@ -25,6 +26,7 @@ from products.replay_vision.backend.models.replay_scanner import (
ScannerProvider,
ScannerType,
)
+from products.replay_vision.backend.models.vision_action import VisionAction
from products.replay_vision.backend.queries.scanner_candidate_query import SETTLE_INTERVAL
from products.replay_vision.backend.temporal.constants import (
APPLY_SCANNER_WORKFLOW_NAME,
@@ -653,6 +655,43 @@ class TestReplayScannerViewSet(_VisionAPITestCase):
self.assertEqual(resp.status_code, 403, resp.json())
+class TestScannerDigestProvisioning(_VisionAPITestCase):
+ _CREATE_BODY = {
+ "name": "checkout-monitor",
+ "scanner_type": ScannerType.MONITOR,
+ "scanner_config": {"prompt": "did checkout complete?"},
+ "model": ScannerModel.GEMINI_3_FLASH,
+ }
+
+ def test_create_provisions_daily_digest(self) -> None:
+ resp = self.client.post(self.scanners_url, data=self._CREATE_BODY, format="json")
+ self.assertEqual(resp.status_code, 201, resp.json())
+ digest = VisionAction.objects.for_team(self.team.id).get(scanner_id=resp.json()["id"], is_scanner_digest=True)
+ self.assertEqual(digest.name, "Daily digest: checkout-monitor")
+ self.assertEqual(digest.trigger_config["rrule"], SCANNER_DIGEST_RRULE)
+ self.assertEqual(digest.trigger_config["timezone"], self.team.timezone)
+ self.assertEqual(digest.delivery_config, [])
+ # Synthesis aborts on a null creator, so the digest must carry the scanner's creator.
+ self.assertEqual(digest.created_by_id, self.user.id)
+ self.assertTrue(digest.enabled)
+
+ def test_no_digest_when_actions_flag_off(self) -> None:
+ # Teams without the actions feature must not accrue billable synthesis runs they can't see.
+ with patch(
+ "products.replay_vision.backend.feature_flag.posthoganalytics.feature_enabled",
+ side_effect=lambda key, *args, **kwargs: key != "replay-vision-actions",
+ ):
+ resp = self.client.post(self.scanners_url, data=self._CREATE_BODY, format="json")
+ self.assertEqual(resp.status_code, 201, resp.json())
+ self.assertFalse(VisionAction.objects.for_team(self.team.id).filter(scanner_id=resp.json()["id"]).exists())
+
+ def test_scanner_creation_survives_digest_failure(self) -> None:
+ with patch("products.replay_vision.backend.digest.digest_name_for_scanner", side_effect=RuntimeError("boom")):
+ resp = self.client.post(self.scanners_url, data=self._CREATE_BODY, format="json")
+ self.assertEqual(resp.status_code, 201, resp.json())
+ self.assertFalse(VisionAction.objects.for_team(self.team.id).filter(scanner_id=resp.json()["id"]).exists())
+
+
class TestScannerEstimatePersistence(_VisionAPITestCase):
def _create_payload(self, **overrides: Any) -> dict[str, Any]:
payload: dict[str, Any] = {
diff --git a/products/replay_vision/backend/tests/test_vision_action_engine.py b/products/replay_vision/backend/tests/test_vision_action_engine.py
index 877abcee47b8..86ab975772ca 100644
--- a/products/replay_vision/backend/tests/test_vision_action_engine.py
+++ b/products/replay_vision/backend/tests/test_vision_action_engine.py
@@ -131,28 +131,31 @@ class TestEngineActivities(BaseTest):
[
("not_found",),
("disabled",),
- ("no_delivery",),
]
)
def test_validate_reasons(self, case: str) -> None:
if case == "not_found":
action_id = uuid.uuid4()
- elif case == "disabled":
- action_id = _action(self.team, name="off", enabled=False).id
else:
- # No delivery_config → nothing to deliver to → skip.
- action_id = _action(self.team, name="nodelivery").id
+ action_id = _action(self.team, name="off", enabled=False).id
self.assertEqual(
act._validate(ValidateVisionActionInputs(vision_action_id=action_id, team_id=self.team.id)), case
)
- def test_validate_passes_when_delivery_configured(self) -> None:
- # Regression: the gate used to check the now-vestigial hog_flow_id (always null after the
- # internal_destination rework), which skipped every action. It must pass when delivery_config is set.
+ @parameterized.expand(
+ [
+ ("with_delivery", True),
+ ("without_delivery", False),
+ ]
+ )
+ def test_validate_passes(self, _label: str, with_delivery: bool) -> None:
+ # Delivery is optional: the persisted run is the in-app artifact (scanner digest, run history),
+ # so an action without delivery_config must still synthesize. The gate also once checked the
+ # vestigial hog_flow_id (always null after the internal_destination rework), skipping everything.
action = _action(
self.team,
- name="delivers",
- delivery_config=[{"type": "slack", "integration_id": 1, "channel": "#general"}],
+ name=f"validates-{_label}",
+ delivery_config=[{"type": "slack", "integration_id": 1, "channel": "#general"}] if with_delivery else [],
)
self.assertIsNone(act._validate(ValidateVisionActionInputs(vision_action_id=action.id, team_id=self.team.id)))
@@ -170,7 +173,7 @@ class TestEngineActivities(BaseTest):
self.assertEqual(run.error, {"message": "x"})
def test_emit_produces_internal_event(self) -> None:
- action = _action(self.team)
+ action = _action(self.team, delivery_config=[{"type": "slack", "integration_id": 1, "channel": "#general"}])
run = VisionActionRun(
vision_action=action, team=self.team, idempotency_key="k", output={"slack": "hello *world*"}
)
@@ -190,6 +193,17 @@ class TestEngineActivities(BaseTest):
self.assertEqual(event.properties["vision_action_id"], str(action.id))
self.assertEqual(event.properties["slack_text"], "hello *world*")
+ def test_emit_noops_without_delivery(self) -> None:
+ # No destinations configured → nothing to emit; the run row itself is the in-app artifact.
+ action = _action(self.team)
+ run = VisionActionRun(vision_action=action, team=self.team, idempotency_key="k2", output={"slack": "x"})
+ run.save()
+
+ with patch.object(act, "produce_internal_event") as mock_emit:
+ act._emit(EmitActionReadyInputs(run_id=run.id, team_id=self.team.id))
+
+ mock_emit.assert_not_called()
+
# --- workflow orchestration (activities mocked at the temporalio.workflow boundary) ---
diff --git a/products/replay_vision/backend/tests/test_vision_actions_api.py b/products/replay_vision/backend/tests/test_vision_actions_api.py
index 35c824d36dc2..27adc82fe031 100644
--- a/products/replay_vision/backend/tests/test_vision_actions_api.py
+++ b/products/replay_vision/backend/tests/test_vision_actions_api.py
@@ -97,6 +97,18 @@ class TestVisionActionViewSet(_VisionActionAPITestCase):
self.assertEqual(action.delivery_config[0]["integration_id"], self.integration.id)
self.assertIsNotNone(action.next_run_at)
+ def test_second_digest_for_scanner_rejected(self) -> None:
+ first = self.client.post(
+ self.actions_url, data=self._create_payload(name="digest-1", is_scanner_digest=True), format="json"
+ )
+ self.assertEqual(first.status_code, 201, first.content)
+ self.assertTrue(first.json()["is_scanner_digest"])
+ second = self.client.post(
+ self.actions_url, data=self._create_payload(name="digest-2", is_scanner_digest=True), format="json"
+ )
+ self.assertEqual(second.status_code, 400, second.content)
+ self.assertIn("daily digest", second.json()["detail"].lower())
+
def test_list(self) -> None:
self.client.post(self.actions_url, data=self._create_payload(), format="json")
resp = self.client.get(self.actions_url)
diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.ts
index d080c93c6861..30abc88c7060 100644
--- a/products/replay_vision/frontend/generated/api.schemas.ts
+++ b/products/replay_vision/frontend/generated/api.schemas.ts
@@ -169,6 +169,8 @@ export interface VisionActionApi {
scanner: string
/** When false, the scheduler skips this action. */
enabled?: boolean
+ /** Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner. */
+ is_scanner_digest?: boolean
/** What fires the action. MVP supports 'schedule' only.
*
* * `schedule` - Schedule
@@ -228,6 +230,8 @@ export interface PatchedVisionActionApi {
scanner?: string
/** When false, the scheduler skips this action. */
enabled?: boolean
+ /** Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner. */
+ is_scanner_digest?: boolean
/** What fires the action. MVP supports 'schedule' only.
*
* * `schedule` - Schedule
diff --git a/products/replay_vision/frontend/generated/api.zod.ts b/products/replay_vision/frontend/generated/api.zod.ts
index 6758ad61560f..b2441715415f 100644
--- a/products/replay_vision/frontend/generated/api.zod.ts
+++ b/products/replay_vision/frontend/generated/api.zod.ts
@@ -24,6 +24,12 @@ export const VisionActionsCreateBody = /* @__PURE__ */ zod.object({
.describe('Human-readable action name. Unique within the team.'),
scanner: zod.uuid().describe('Scanner whose observations this action operates on. Must belong to the same team.'),
enabled: zod.boolean().optional().describe('When false, the scheduler skips this action.'),
+ is_scanner_digest: zod
+ .boolean()
+ .optional()
+ .describe(
+ "Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner."
+ ),
trigger_type: zod
.enum(['schedule', 'threshold'])
.describe('\* `schedule` - Schedule\n\* `threshold` - Threshold')
@@ -135,6 +141,12 @@ export const VisionActionsPartialUpdateBody = /* @__PURE__ */ zod.object({
.optional()
.describe('Scanner whose observations this action operates on. Must belong to the same team.'),
enabled: zod.boolean().optional().describe('When false, the scheduler skips this action.'),
+ is_scanner_digest: zod
+ .boolean()
+ .optional()
+ .describe(
+ "Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner."
+ ),
trigger_type: zod
.enum(['schedule', 'threshold'])
.describe('\* `schedule` - Schedule\n\* `threshold` - Threshold')
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index c216558601d8..88763cae698a 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -37149,6 +37149,8 @@ export namespace Schemas {
scanner: string;
/** When false, the scheduler skips this action. */
enabled?: boolean;
+ /** Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner. */
+ is_scanner_digest?: boolean;
/** What fires the action. MVP supports 'schedule' only.
*
* * `schedule` - Schedule
@@ -44285,6 +44287,8 @@ export namespace Schemas {
scanner?: string;
/** When false, the scheduler skips this action. */
enabled?: boolean;
+ /** Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner. */
+ is_scanner_digest?: boolean;
/** What fires the action. MVP supports 'schedule' only.
*
* * `schedule` - Schedule