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): emit scanner side-mission findings as posthog signals (#63224)

Tue Haulund000d0abdab8c
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 10d1d674950e..deb42e1c6682 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -37416,6 +37416,63 @@
"required": ["ts_from_s", "active"],
"type": "object"
},
+ "ReplayVisionScannerFindingSignalExtra": {
+ "additionalProperties": false,
+ "properties": {
+ "confidence": {
+ "description": "The model's self-reported confidence in the finding, in [0, 1]. Independent of `weight`.",
+ "type": "number"
+ },
+ "observation_id": {
+ "type": "string"
+ },
+ "scanner_id": {
+ "type": "string"
+ },
+ "scanner_name": {
+ "type": "string"
+ },
+ "scanner_type": {
+ "description": "Replay Vision scanner type, e.g. 'monitor' / 'classifier' / 'scorer' / 'summarizer'. Kept open so new scanner types don't fail signal validation.",
+ "type": "string"
+ },
+ "session_id": {
+ "type": "string"
+ }
+ },
+ "required": ["scanner_id", "scanner_name", "scanner_type", "observation_id", "session_id", "confidence"],
+ "type": "object"
+ },
+ "ReplayVisionScannerFindingSignalInput": {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "extra": {
+ "$ref": "#/definitions/ReplayVisionScannerFindingSignalExtra"
+ },
+ "remediation": {
+ "$ref": "#/definitions/SignalRemediation"
+ },
+ "source_id": {
+ "type": "string"
+ },
+ "source_product": {
+ "const": "replay_vision",
+ "type": "string"
+ },
+ "source_type": {
+ "const": "scanner_finding",
+ "type": "string"
+ },
+ "weight": {
+ "type": "number"
+ }
+ },
+ "required": ["description", "extra", "source_id", "source_product", "source_type", "weight"],
+ "type": "object"
+ },
"ResolvedDateRangeResponse": {
"additionalProperties": false,
"properties": {
@@ -40268,6 +40325,9 @@
},
{
"$ref": "#/definitions/HealthCheckSignalInput"
+ },
+ {
+ "$ref": "#/definitions/ReplayVisionScannerFindingSignalInput"
}
]
},
@@ -40354,7 +40414,8 @@
"pganalyze",
"signals_scout",
"logs",
- "health_checks"
+ "health_checks",
+ "replay_vision"
],
"type": "string"
},
@@ -40373,7 +40434,8 @@
"endpoint_breakdown_limit_exceeded",
"cross_source_issue",
"alert_state_change",
- "health_issue"
+ "health_issue",
+ "scanner_finding"
],
"type": "string"
},
diff --git a/frontend/src/queries/schema/schema-signals.ts b/frontend/src/queries/schema/schema-signals.ts
index b28a93fb2199..9afe31fc2e55 100644
--- a/frontend/src/queries/schema/schema-signals.ts
+++ b/frontend/src/queries/schema/schema-signals.ts
@@ -15,6 +15,7 @@ export enum SignalSourceProduct {
SIGNALS_SCOUT = 'signals_scout',
LOGS = 'logs',
HEALTH_CHECKS = 'health_checks',
+ REPLAY_VISION = 'replay_vision',
}
export enum SignalSourceType {
@@ -32,6 +33,7 @@ export enum SignalSourceType {
CROSS_SOURCE_ISSUE = 'cross_source_issue',
ALERT_STATE_CHANGE = 'alert_state_change',
HEALTH_ISSUE = 'health_issue',
+ SCANNER_FINDING = 'scanner_finding',
}
// ── Shared optional remediation ──────────────────────────────────────────────────
@@ -379,6 +381,26 @@ export interface LogsAlertStateChangeSignalInput extends SignalInputBase {
extra: LogsAlertStateChangeSignalExtra
}
+// Replay Vision scanner finding — the optional "side mission" finding a scanner's LLM pass
+// may attach to an observation when the scanner has `emits_signals` enabled.
+
+export interface ReplayVisionScannerFindingSignalExtra extends SignalExtraBase {
+ scanner_id: string
+ scanner_name: string
+ /** Replay Vision scanner type, e.g. 'monitor' / 'classifier' / 'scorer' / 'summarizer'. Kept open so new scanner types don't fail signal validation. */
+ scanner_type: string
+ observation_id: string
+ session_id: string
+ /** The model's self-reported confidence in the finding, in [0, 1]. Independent of `weight`. */
+ confidence: number
+}
+
+export interface ReplayVisionScannerFindingSignalInput extends SignalInputBase {
+ source_type: 'scanner_finding'
+ source_product: 'replay_vision'
+ extra: ReplayVisionScannerFindingSignalExtra
+}
+
// Health-check issue (instrumentation problem detected by a HealthCheck)
export type HealthCheckSeverity = 'critical' | 'warning' | 'info'
@@ -445,3 +467,4 @@ export type SignalInput =
| SignalsScoutSignalInput
| LogsAlertStateChangeSignalInput
| HealthCheckSignalInput
+ | ReplayVisionScannerFindingSignalInput
diff --git a/posthog/schema.py b/posthog/schema.py
index 09208968450f..a5b159420b97 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -2296,6 +2296,28 @@ class ReplayInactivityPeriod(BaseModel):
ts_to_s: float | None = None
+class ReplayVisionScannerFindingSignalExtra(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ confidence: float = Field(
+ ...,
+ description=("The model's self-reported confidence in the finding, in [0, 1]. Independent of `weight`."),
+ )
+ observation_id: str
+ scanner_id: str
+ scanner_name: str
+ scanner_type: str = Field(
+ ...,
+ description=(
+ "Replay Vision scanner type, e.g. 'monitor' / 'classifier' / 'scorer' /"
+ " 'summarizer'. Kept open so new scanner types don't fail signal"
+ " validation."
+ ),
+ )
+ session_id: str
+
+
class ResolvedDateRangeResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -5904,6 +5926,19 @@ class QueryStatusResponse(BaseModel):
query_status: QueryStatus
+class ReplayVisionScannerFindingSignalInput(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ description: str
+ extra: ReplayVisionScannerFindingSignalExtra
+ remediation: SignalRemediation | None = None
+ source_id: str
+ source_product: Literal["replay_vision"] = "replay_vision"
+ source_type: Literal["scanner_finding"] = "scanner_finding"
+ weight: float
+
+
class ResultCustomization(RootModel[ResultCustomizationByValue | ResultCustomizationByPosition]):
root: ResultCustomizationByValue | ResultCustomizationByPosition
@@ -6696,6 +6731,7 @@ class SignalInput(
| SignalsScoutSignalInput
| LogsAlertStateChangeSignalInput
| HealthCheckSignalInput
+ | ReplayVisionScannerFindingSignalInput
]
):
root: (
@@ -6713,6 +6749,7 @@ class SignalInput(
| SignalsScoutSignalInput
| LogsAlertStateChangeSignalInput
| HealthCheckSignalInput
+ | ReplayVisionScannerFindingSignalInput
)
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index 8290a32281ae..26a6b5d38673 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2948,6 +2948,7 @@ class SignalSourceProduct(StrEnum):
SIGNALS_SCOUT = "signals_scout"
LOGS = "logs"
HEALTH_CHECKS = "health_checks"
+ REPLAY_VISION = "replay_vision"
class SignalSourceType(StrEnum):
@@ -2965,6 +2966,7 @@ class SignalSourceType(StrEnum):
CROSS_SOURCE_ISSUE = "cross_source_issue"
ALERT_STATE_CHANGE = "alert_state_change"
HEALTH_ISSUE = "health_issue"
+ SCANNER_FINDING = "scanner_finding"
class Severity(StrEnum):
diff --git a/products/replay_vision/backend/temporal/__init__.py b/products/replay_vision/backend/temporal/__init__.py
index 66fe326dc607..79172685c227 100644
--- a/products/replay_vision/backend/temporal/__init__.py
+++ b/products/replay_vision/backend/temporal/__init__.py
@@ -12,6 +12,7 @@ from products.replay_vision.backend.temporal.activities import (
embed_summarizer_observation_activity,
emit_classifier_tags_activity,
emit_observation_event_activity,
+ emit_observation_signal_activity,
ensure_session_asset_activity,
fetch_session_events_activity,
find_scanner_candidates_activity,
@@ -56,6 +57,7 @@ ACTIVITIES: list[Callable[..., Any]] = [
embed_summarizer_observation_activity,
emit_classifier_tags_activity,
emit_observation_event_activity,
+ emit_observation_signal_activity,
cleanup_gemini_file_activity,
find_scanner_candidates_activity,
count_in_flight_applies_activity,
@@ -87,6 +89,7 @@ __all__ = [
"embed_summarizer_observation_activity",
"emit_classifier_tags_activity",
"emit_observation_event_activity",
+ "emit_observation_signal_activity",
"ensure_session_asset_activity",
"fetch_session_events_activity",
"find_scanner_candidates_activity",
diff --git a/products/replay_vision/backend/temporal/activities/__init__.py b/products/replay_vision/backend/temporal/activities/__init__.py
index 302db3e7feb5..1200494da8f1 100644
--- a/products/replay_vision/backend/temporal/activities/__init__.py
+++ b/products/replay_vision/backend/temporal/activities/__init__.py
@@ -11,6 +11,7 @@ from products.replay_vision.backend.temporal.activities.embed_observation import
)
from products.replay_vision.backend.temporal.activities.emit_classifier_tags import emit_classifier_tags_activity
from products.replay_vision.backend.temporal.activities.emit_observation_event import emit_observation_event_activity
+from products.replay_vision.backend.temporal.activities.emit_observation_signal import emit_observation_signal_activity
from products.replay_vision.backend.temporal.activities.ensure_session_asset import ensure_session_asset_activity
from products.replay_vision.backend.temporal.activities.fetch_session_events import fetch_session_events_activity
from products.replay_vision.backend.temporal.activities.find_scanner_candidates import find_scanner_candidates_activity
@@ -45,6 +46,7 @@ __all__ = [
"embed_summarizer_observation_activity",
"emit_classifier_tags_activity",
"emit_observation_event_activity",
+ "emit_observation_signal_activity",
"ensure_session_asset_activity",
"fetch_session_events_activity",
"find_scanner_candidates_activity",
diff --git a/products/replay_vision/backend/temporal/activities/call_scanner_provider.py b/products/replay_vision/backend/temporal/activities/call_scanner_provider.py
index acdc84c65023..1e8b6c399c6e 100644
--- a/products/replay_vision/backend/temporal/activities/call_scanner_provider.py
+++ b/products/replay_vision/backend/temporal/activities/call_scanner_provider.py
@@ -21,7 +21,13 @@ from products.replay_vision.backend.temporal.errors import FailureKind, ScannerF
from products.replay_vision.backend.temporal.gemini import gemini_api_key
from products.replay_vision.backend.temporal.metrics import REPLAY_VISION_PROVIDER_CALL
from products.replay_vision.backend.temporal.scanners import scanner_from_snapshot
-from products.replay_vision.backend.temporal.scanners.base import BaseScanner, ChipSegment, Segment, TextSegment
+from products.replay_vision.backend.temporal.scanners.base import (
+ BaseScanner,
+ ChipSegment,
+ Segment,
+ SignalFinding,
+ TextSegment,
+)
from products.replay_vision.backend.temporal.state import (
StateActivitiesEnum,
get_data_class_from_redis,
@@ -67,14 +73,14 @@ async def call_scanner_provider_activity(inputs: CallScannerProviderInputs) -> S
types.Part(text=prompt_text),
]
- finalized = await _call_with_retry(
+ finalized, signal = await _call_with_retry(
scanner=scanner,
snapshot=snapshot,
prompt_parts=prompt_parts,
team_id=inputs.team_id,
)
finalized = _resolve_citations(finalized, scanner, llm_inputs.event_timestamps)
- return ScannerCallOutput(model_output=finalized)
+ return ScannerCallOutput(model_output=finalized, signal=signal)
def _resolve_citations(
@@ -154,10 +160,14 @@ async def _load_llm_inputs(observation_id: UUID) -> ScannerLlmInputs:
async def _call_with_retry(
*, scanner: BaseScanner, snapshot: ScannerSnapshot, prompt_parts: list[types.Part], team_id: int
-) -> BaseModel:
- """One Gemini call, plus at most one retry that appends the validation error to the prompt."""
+) -> tuple[BaseModel, SignalFinding | None]:
+ """One Gemini call, plus at most one retry that appends the validation error to the prompt.
+
+ Returns the finalized output and the side-mission finding, extracted before `finalize` so
+ per-type output mapping can't drop it.
+ """
client = genai.AsyncClient(api_key=gemini_api_key())
- schema_class = scanner.llm_response_schema
+ schema_class = scanner.llm_response_model()
response_schema = schema_class.model_json_schema()
parts = list(prompt_parts)
last_error: str | None = None
@@ -195,13 +205,14 @@ async def _call_with_retry(
last_error = f"Schema validation failed: {e}"
outcome = "validation_failed"
else:
+ signal = getattr(parsed, "signal", None)
finalized = scanner.finalize(parsed)
semantic_error = scanner.validate_semantics(finalized)
if semantic_error is None:
REPLAY_VISION_PROVIDER_CALL.labels(**metric_labels, outcome="ok").observe(
time.monotonic() - started
)
- return finalized
+ return finalized, signal
last_error = f"Semantic validation failed: {semantic_error}"
outcome = "validation_failed"
REPLAY_VISION_PROVIDER_CALL.labels(**metric_labels, outcome=outcome).observe(time.monotonic() - started)
diff --git a/products/replay_vision/backend/temporal/activities/emit_observation_signal.py b/products/replay_vision/backend/temporal/activities/emit_observation_signal.py
new file mode 100644
index 000000000000..6ad7af8f6144
--- /dev/null
+++ b/products/replay_vision/backend/temporal/activities/emit_observation_signal.py
@@ -0,0 +1,59 @@
+import structlog
+from asgiref.sync import async_to_sync
+from temporalio import activity
+
+from products.replay_vision.backend.models.replay_observation import ReplayObservation
+from products.replay_vision.backend.temporal.constants import VISION_SIGNALS_SOURCE_PRODUCT, VISION_SIGNALS_SOURCE_TYPE
+from products.replay_vision.backend.temporal.decorators import track_activity
+from products.replay_vision.backend.temporal.scanners.base import MIN_SIGNAL_CONFIDENCE
+from products.replay_vision.backend.temporal.types import EmitObservationSignalInputs, ScannerSnapshot
+from products.signals.backend.facade.api import emit_signal
+
+logger = structlog.get_logger(__name__)
+
+# Findings accumulate into a report across sessions; promotion (total_weight >= 1.0) needs corroboration.
+SIGNAL_WEIGHT = 0.5
+
+
+@track_activity()
+def emit_observation_signal_activity(inputs: EmitObservationSignalInputs) -> int:
+ """Emit the observation's side-mission finding as a PostHog Signal; fails soft, returns the emitted count."""
+ if inputs.signal.confidence < MIN_SIGNAL_CONFIDENCE:
+ return 0
+ try:
+ observation = (
+ ReplayObservation.objects.filter(pk=inputs.observation_id, team_id=inputs.team_id)
+ .select_related("team")
+ .first()
+ )
+ if observation is None:
+ return 0
+ snapshot = ScannerSnapshot.load_for(inputs.observation_id, observation.scanner_snapshot)
+ # The scanner's `emits_signals` flag is the per-source authorization — there's no separate
+ # SignalSourceConfig to consult (the facade allows replay_vision/scanner_finding unconditionally).
+ if not snapshot.emits_signals:
+ return 0
+ # `scanner_name`/`scanner_type` come from the frozen snapshot (what actually ran);
+ # `scanner_id`/`session_id` are immutable on the row.
+ async_to_sync(emit_signal)(
+ team=observation.team,
+ source_product=VISION_SIGNALS_SOURCE_PRODUCT,
+ source_type=VISION_SIGNALS_SOURCE_TYPE,
+ source_id=f"observation:{observation.id}",
+ description=inputs.signal.description,
+ weight=SIGNAL_WEIGHT,
+ extra={
+ "scanner_id": str(observation.scanner_id),
+ "scanner_name": snapshot.name,
+ "scanner_type": snapshot.scanner_type.value,
+ "observation_id": str(observation.id),
+ "session_id": observation.session_id,
+ "confidence": inputs.signal.confidence,
+ },
+ )
+ return 1
+ except Exception:
+ # Signals are advisory — never fail the observation over emission.
+ logger.exception("replay_vision.signal_emission_failed", observation_id=str(inputs.observation_id))
+ return 0
diff --git a/products/replay_vision/backend/temporal/constants.py b/products/replay_vision/backend/temporal/constants.py
index 5122479879c0..66c32da8c410 100644
--- a/products/replay_vision/backend/temporal/constants.py
+++ b/products/replay_vision/backend/temporal/constants.py
@@ -44,6 +44,12 @@ MIN_ACTIVE_SECONDS_FOR_VIDEO_SCANNER_S = 10
MAX_ACTIVE_SECONDS_FOR_VIDEO_SCANNER_S = 3600
+# Signals source identity — must match the registered (SourceProduct, SourceType) pair and schema variant.
+# Prefixed so it stays unambiguous when imported alongside other products' signal-source constants.
+VISION_SIGNALS_SOURCE_PRODUCT = "replay_vision"
+VISION_SIGNALS_SOURCE_TYPE = "scanner_finding"
+
+
# Hard ceiling on a single scanner's concurrently-running apply-scanner workflows. Bounds one bad config
# (broad filter on a high-volume team) from monopolising the shared rasterizer queue + provider concurrency.
MAX_IN_FLIGHT_APPLIES_PER_SCANNER = 50
diff --git a/products/replay_vision/backend/temporal/scanners/base.py b/products/replay_vision/backend/temporal/scanners/base.py
index 0e460b3c3e30..1ce7d66d1672 100644
--- a/products/replay_vision/backend/temporal/scanners/base.py
+++ b/products/replay_vision/backend/temporal/scanners/base.py
@@ -2,7 +2,7 @@
from typing import TYPE_CHECKING, Annotated, Any, ClassVar, Literal
-from pydantic import BaseModel, Field
+from pydantic import BaseModel, Field, create_model
from products.replay_vision.backend.temporal.scanners.prompt_env import render_prompt
@@ -25,6 +25,45 @@ class ChipSegment(BaseModel, frozen=True):
Segment = Annotated[TextSegment | ChipSegment, Field(discriminator="kind")]
+# The side-mission calibration floor: templated into the prompt and enforced at emission.
+MIN_SIGNAL_CONFIDENCE = 0.4
+
+
+class SignalFinding(BaseModel, frozen=True):
+ """Optional side-mission finding: a product issue worth surfacing as a PostHog Signal."""
+
+ description: str = Field(
+ description=(
+ "Self-contained prose a reader with no session context can act on: what happened, where in the "
+ "product, and the user impact — concrete, per the side-mission instructions. "
+ "Plain prose, no `(event_uuid …)` citation markers."
+ )
+ )
+ confidence: float = Field(
+ ge=0,
+ le=1,
+ description="Calibrated confidence that this is a real, actionable issue. Apply the calibration rules.",
+ )
+
+
+def _with_signal_field(base: type[BaseModel]) -> type[BaseModel]:
+ """Extend an LLM response model with the optional side-mission `signal` field."""
+ return create_model(
+ f"{base.__name__}WithSignal",
+ __base__=base,
+ signal=(
+ SignalFinding | None,
+ Field(
+ default=None,
+ description=(
+ "Only when the session surfaced a clear, actionable product issue per the side mission; "
+ "null otherwise. Most sessions warrant null."
+ ),
+ ),
+ ),
+ )
+
+
class BaseScannerOutput(BaseModel, frozen=True):
"""Final output shape emitted as `$recording_observed` event properties (flattened with `scanner_output_*` keys)."""
@@ -57,6 +96,10 @@ class BaseScanner(BaseModel, frozen=True):
"""Pydantic class the LLM emits, passed to Gemini's `response_json_schema`."""
raise NotImplementedError
+ def llm_response_model(self) -> type[BaseModel]:
+ """The model the LLM must emit: `llm_response_schema`, gaining the side-mission `signal` field when `emits_signals`."""
+ return _with_signal_field(self.llm_response_schema) if self.emits_signals else self.llm_response_schema
+
def prompt_context(self) -> dict[str, Any]:
"""Scanner-type-specific template variables. Subclasses override to inject their per-instance config."""
return {}
@@ -90,5 +133,7 @@ class BaseScanner(BaseModel, frozen=True):
url_mapping=url_mapping or {},
window_mapping=window_mapping or {},
session_metadata=session_metadata or {},
+ emits_signals=self.emits_signals,
+ min_signal_confidence=MIN_SIGNAL_CONFIDENCE,
**self.prompt_context(),
)
diff --git a/products/replay_vision/backend/temporal/scanners/prompts/base.jinja b/products/replay_vision/backend/temporal/scanners/prompts/base.jinja
index 73a98a013340..9647d79880cd 100644
--- a/products/replay_vision/backend/temporal/scanners/prompts/base.jinja
+++ b/products/replay_vision/backend/temporal/scanners/prompts/base.jinja
@@ -3,10 +3,17 @@ You're analyzing a recorded user session from {{ team_name }}. The video plays a
<task>
{% block task required %}{% endblock %}
</task>
+{% if emits_signals %}
+<signal_side_mission>
+Separate from the task above: if, while analyzing this session, you observe a clear and actionable product issue — a bug, a broken or confusing flow, an error the user hit, or significant UX friction — report it in the `signal` field. The description must be self-contained prose for a reader with no session context: what happened, where in the product, and the user impact. A downstream agent with code and PostHog data access investigates from this text alone, so make it concrete: name the specific events and their sequence (e.g. a `$pageview` to the checkout page, then ~5s later a `$exception`), and quote the exact on-screen labels, button text, and URL paths involved so the agent can grep for them in the codebase. Write it as plain prose — don't use `(event_uuid …)` citation markers, which aren't resolved in this field; describe the event instead.
+
+This bar is high: most sessions have nothing signal-worthy, and then `signal` must be null. Do not report the mere presence or absence of the condition the task asks about — that's the task's own output. Apply the same confidence calibration; do not report findings you'd score below {{ min_signal_confidence }}.
+</signal_side_mission>
+{% endif %}
Approach:
- Ground every claim in direct evidence — a specific moment in the video or a specific event in the timeline. When evidence is ambiguous or absent, lower `confidence` and say so.
-- Stay on the task. Don't drift into adjacent observations it didn't ask about.
+- Stay on the task. Don't drift into adjacent observations it didn't ask about.{% if emits_signals %} The signal side mission is the one sanctioned exception.{% endif %}
- Prefer admitting uncertainty over fabricating detail.
- PostHog already emits dedicated events for the common friction signals: `$rageclick` (user clicked the same element multiple times in quick succession) and `$dead_click` (a click that didn't trigger any state change). Treat these as ground truth — only conclude that the user rage-clicked or hit a dead click when the corresponding event is present. Do not infer rage-clicking from interaction bursts on tabs, dropdowns, or other re-clickable controls.
diff --git a/products/replay_vision/backend/temporal/types.py b/products/replay_vision/backend/temporal/types.py
index 2d631728be23..4715cfccbc87 100644
--- a/products/replay_vision/backend/temporal/types.py
+++ b/products/replay_vision/backend/temporal/types.py
@@ -8,6 +8,7 @@ from temporalio.exceptions import ApplicationError
from products.replay_vision.backend.models.replay_observation import ObservationTrigger
from products.replay_vision.backend.models.replay_scanner import ScannerModel, ScannerProvider, ScannerType
from products.replay_vision.backend.temporal.constants import MAX_SESSION_ID_LENGTH
+from products.replay_vision.backend.temporal.scanners.base import SignalFinding
from products.replay_vision.backend.temporal.scanners.classifier import ClassifierOutput
from products.replay_vision.backend.temporal.scanners.monitor import MonitorOutput
from products.replay_vision.backend.temporal.scanners.scorer import ScorerOutput
@@ -203,6 +204,8 @@ class ScannerCallOutput(BaseModel, frozen=True):
"""Result of one `call_scanner_provider` invocation."""
model_output: AnyScannerOutput
+ # Extracted from the LLM response before `finalize` so per-type output mapping can't drop it.
+ signal: SignalFinding | None = None
class CleanupGeminiFileInputs(BaseModel, frozen=True):
@@ -238,6 +241,14 @@ class EmitClassifierTagsInputs(BaseModel, frozen=True):
classifier_output: ClassifierOutput
+class EmitObservationSignalInputs(BaseModel, frozen=True):
+ """Input to the side-effect activity that emits a side-mission finding as a PostHog Signal."""
+
+ team_id: int
+ observation_id: UUID
+ signal: SignalFinding
+
+
class MarkObservationSucceededInputs(BaseModel, frozen=True):
observation_id: UUID
scanner_result: ScannerResult
diff --git a/products/replay_vision/backend/temporal/workflow.py b/products/replay_vision/backend/temporal/workflow.py
index b97f8ae15d77..2b78e9f0eb70 100644
--- a/products/replay_vision/backend/temporal/workflow.py
+++ b/products/replay_vision/backend/temporal/workflow.py
@@ -23,6 +23,7 @@ from products.replay_vision.backend.temporal.activities import (
embed_observation_activity,
emit_classifier_tags_activity,
emit_observation_event_activity,
+ emit_observation_signal_activity,
ensure_session_asset_activity,
fetch_session_events_activity,
mark_observation_failed_activity,
@@ -51,6 +52,7 @@ from products.replay_vision.backend.temporal.types import (
EmbedObservationInputs,
EmitClassifierTagsInputs,
EmitObservationEventInputs,
+ EmitObservationSignalInputs,
EnsureSessionAssetInputs,
EnsureSessionAssetOutput,
FetchSessionEventsInputs,
@@ -228,6 +230,24 @@ class ApplyScannerWorkflow(PostHogWorkflow):
)
self._advance_phase("finalizing")
await self._apply_scanner_side_effects(inputs, observation_id, call_output.model_output)
+ signals_count = 0
+ if call_output.signal is not None:
+ # The activity fails soft (returns 0 on any error), so there's nothing to retry. The local
+ # catch covers Temporal-level failures (timeout, worker loss) — emission is advisory and
+ # must never demote an otherwise-successful observation to FAILED.
+ try:
+ signals_count = await wf.execute_activity(
+ emit_observation_signal_activity,
+ EmitObservationSignalInputs(
+ team_id=inputs.team_id,
+ observation_id=observation_id,
+ signal=call_output.signal,
+ ),
+ start_to_close_timeout=dt.timedelta(seconds=30),
+ retry_policy=common.RetryPolicy(maximum_attempts=1),
+ )
+ except Exception:
+ wf.logger.exception("Signal emission activity failed for observation %s", observation_id)
await wf.execute_activity(
emit_observation_event_activity,
EmitObservationEventInputs(observation_id=observation_id, model_output=call_output.model_output),
@@ -239,7 +259,7 @@ class ApplyScannerWorkflow(PostHogWorkflow):
MarkObservationSucceededInputs(
observation_id=observation_id,
scanner_type=scanner_type,
- scanner_result=ScannerResult(model_output=call_output.model_output),
+ scanner_result=ScannerResult(model_output=call_output.model_output, signals_count=signals_count),
),
start_to_close_timeout=dt.timedelta(seconds=30),
retry_policy=_STATE_ACTIVITY_RETRY,
diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.py
index a4e0f33ba3f1..9fbcb9124297 100644
--- a/products/replay_vision/backend/tests/test_api.py
+++ b/products/replay_vision/backend/tests/test_api.py
@@ -30,6 +30,7 @@ from products.replay_vision.backend.temporal.constants import (
build_apply_scanner_workflow_id,
)
from products.replay_vision.backend.tests.helpers import snapshot_for as _snapshot_for
+from products.signals.backend.models import SignalSourceConfig
class _VisionAPITestCase(APIBaseTest):
@@ -667,6 +668,33 @@ class TestScannerEstimatePersistence(_VisionAPITestCase):
self.mock_refresh_estimate.assert_called_once()
+class TestScannerSignalSourceEnablement(_VisionAPITestCase):
+ def _payload(self, **overrides: Any) -> dict[str, Any]:
+ payload: dict[str, Any] = {
+ "name": "signal-enablement",
+ "scanner_type": ScannerType.MONITOR,
+ "scanner_config": {"prompt": "p"},
+ "model": ScannerModel.GEMINI_3_FLASH,
+ }
+ payload.update(overrides)
+ return payload
+
+ def _has_source_config(self) -> bool:
+ return SignalSourceConfig.objects.filter(team=self.team, source_product="replay_vision").exists()
+
+ def test_creating_with_emits_signals_writes_no_source_config(self) -> None:
+ # Scanner findings are self-authorizing — the scanner is the config, so no SignalSourceConfig row is created.
+ resp = self.client.post(self.scanners_url, data=self._payload(emits_signals=True), format="json")
+ self.assertEqual(resp.status_code, 201, resp.json())
+ assert not self._has_source_config()
+
+ def test_enabling_emits_signals_on_update_writes_no_source_config(self) -> None:
+ scanner = self._create_scanner()
+ resp = self.client.patch(f"{self.scanners_url}{scanner.id}/", data={"emits_signals": True}, format="json")
+ self.assertEqual(resp.status_code, 200, resp.json())
+ assert not self._has_source_config()
+
+
class TestReplayScannerViewSetFeatureFlag(APIBaseTest):
@property
def scanners_url(self) -> str:
diff --git a/products/replay_vision/backend/tests/test_scanners.py b/products/replay_vision/backend/tests/test_scanners.py
index e283c7097ce8..69db3a432022 100644
--- a/products/replay_vision/backend/tests/test_scanners.py
+++ b/products/replay_vision/backend/tests/test_scanners.py
@@ -17,6 +17,7 @@ from products.replay_vision.backend.temporal.scanners import (
SummarizerScanner,
scanner_from_db,
)
+from products.replay_vision.backend.temporal.scanners.base import SignalFinding
from products.replay_vision.backend.temporal.types import EventTable
@@ -609,3 +610,45 @@ class TestToEventProperties:
props = out.to_event_properties()
assert "scanner_output_scanner_type" not in props
assert "scanner_type" not in props
+
+
+class TestSignalSideMission:
+ def test_llm_response_model_excludes_signal_by_default(self) -> None:
+ scanner = scanner_from_db(_build_replay_scanner())
+ assert "signal" not in scanner.llm_response_model().model_json_schema()["properties"]
+
+ def test_llm_response_model_includes_signal_when_emitting(self) -> None:
+ scanner = scanner_from_db(_build_replay_scanner(emits_signals=True))
+ assert "signal" in scanner.llm_response_model().model_json_schema()["properties"]
+
+ @pytest.mark.parametrize(
+ "scanner_type, config, payload",
+ [
+ (ScannerType.MONITOR, {"prompt": "p"}, {"verdict": "yes", "reasoning": "r"}),
+ (ScannerType.CLASSIFIER, {"prompt": "p", "tags": ["a"]}, {"tags": ["a"], "reasoning": "r"}),
+ (ScannerType.SCORER, {"prompt": "p", "scale": {"min": 0, "max": 10}}, {"score": 5, "reasoning": "r"}),
+ (
+ ScannerType.SUMMARIZER,
+ {"prompt": "p"},
+ {"title": "t", "summary": "s", "intent": "i", "outcome": "o", "friction_points": [], "keywords": []},
+ ),
+ ],
+ )
+ def test_signal_parses_for_every_scanner_type(self, scanner_type: ScannerType, config: dict, payload: dict) -> None:
+ scanner = scanner_from_db(
+ _build_replay_scanner(scanner_type=scanner_type, scanner_config=config, emits_signals=True)
+ )
+ parsed = scanner.llm_response_model().model_validate(
+ {**payload, "confidence": 0.9, "signal": {"description": "Broken CTA on /cart", "confidence": 0.8}}
+ )
+ signal = getattr(parsed, "signal", None)
+ assert isinstance(signal, SignalFinding)
+ assert signal.description == "Broken CTA on /cart"
+ # `finalize` must still produce the persisted output; the finding travels separately on ScannerCallOutput.
+ assert scanner.finalize(parsed) is not None
+
+ @pytest.mark.parametrize("emits_signals, expected", [(True, True), (False, False)])
+ def test_prompt_includes_side_mission_only_when_emitting(self, emits_signals: bool, expected: bool) -> None:
+ scanner = scanner_from_db(_build_replay_scanner(emits_signals=emits_signals))
+ rendered = scanner.build_prompt(team_name="Acme", events=EventTable(columns=["event"], rows=[]))
+ assert ("signal_side_mission" in rendered) == expected
diff --git a/products/replay_vision/backend/tests/test_temporal.py b/products/replay_vision/backend/tests/test_temporal.py
index 7c12d70a5cfe..edb34a3a84a3 100644
--- a/products/replay_vision/backend/tests/test_temporal.py
+++ b/products/replay_vision/backend/tests/test_temporal.py
@@ -3,7 +3,7 @@ import datetime as dt
from typing import Any
import pytest
-from unittest.mock import MagicMock, patch
+from unittest.mock import AsyncMock, MagicMock, patch
from django.conf import settings
from django.db import IntegrityError
@@ -45,6 +45,10 @@ from products.replay_vision.backend.temporal.activities.embed_observation import
)
from products.replay_vision.backend.temporal.activities.emit_classifier_tags import emit_classifier_tags_activity
from products.replay_vision.backend.temporal.activities.emit_observation_event import emit_observation_event_activity
+from products.replay_vision.backend.temporal.activities.emit_observation_signal import (
+ SIGNAL_WEIGHT,
+ emit_observation_signal_activity,
+)
from products.replay_vision.backend.temporal.activities.ensure_session_asset import ensure_session_asset_activity
from products.replay_vision.backend.temporal.activities.fetch_session_events import fetch_session_events_activity
from products.replay_vision.backend.temporal.activities.observation_state import (
@@ -66,7 +70,7 @@ from products.replay_vision.backend.temporal.gemini_cleanup_sweep.constants impo
REDIS_INDEX_KEY as _GEMINI_REDIS_INDEX_KEY,
REDIS_KEY_PREFIX as _GEMINI_REDIS_KEY_PREFIX,
)
-from products.replay_vision.backend.temporal.scanners.base import ChipSegment, Segment, TextSegment
+from products.replay_vision.backend.temporal.scanners.base import ChipSegment, Segment, SignalFinding, TextSegment
from products.replay_vision.backend.temporal.scanners.classifier import ClassifierOutput
from products.replay_vision.backend.temporal.scanners.monitor import MonitorOutput, MonitorScanner
from products.replay_vision.backend.temporal.scanners.scorer import ScorerOutput
@@ -85,6 +89,7 @@ from products.replay_vision.backend.temporal.types import (
EmbedObservationInputs,
EmbedSummarizerObservationInputs,
EmitClassifierTagsInputs,
+ EmitObservationSignalInputs,
EnsureSessionAssetInputs,
EnsureSessionAssetOutput,
EventTable,
@@ -101,18 +106,21 @@ from products.replay_vision.backend.temporal.types import (
)
from products.replay_vision.backend.temporal.workflow import _extract_kind_for_type, _root_cause_message
from products.replay_vision.backend.tests.helpers import snapshot_for as _snapshot_for
+from products.signals.backend.models import SignalSourceConfig
-def _make_scanner() -> ReplayScanner:
+def _make_scanner(**overrides) -> ReplayScanner:
org = Organization.objects.create(name="vision-test-org")
team = Team.objects.create(organization=org, name="vision-test-team")
- return ReplayScanner.objects.create(
- team=team,
- name="t",
- scanner_type=ScannerType.MONITOR,
- scanner_config={"prompt": "p"},
- model=ScannerModel.GEMINI_3_FLASH,
- )
+ defaults: dict = {
+ "team": team,
+ "name": "t",
+ "scanner_type": ScannerType.MONITOR,
+ "scanner_config": {"prompt": "p"},
+ "model": ScannerModel.GEMINI_3_FLASH,
+ }
+ defaults.update(overrides)
+ return ReplayScanner.objects.create(**defaults)
def _make_observation(scanner: ReplayScanner, **overrides) -> ReplayObservation:
@@ -1299,6 +1307,8 @@ async def _run_workflow(inputs: ApplyScannerInputs, mocks: _WorkflowMocks, workf
patch("temporalio.workflow.info", return_value=workflow_info),
patch("temporalio.workflow.execute_activity", side_effect=mocks.execute_activity),
patch("temporalio.workflow.execute_child_workflow", side_effect=mocks.execute_child_workflow),
+ # `wf.logger` requires a real workflow event loop, which this direct-call harness skips.
+ patch("temporalio.workflow.logger"),
):
await ApplyScannerWorkflow().run(inputs)
@@ -1342,6 +1352,8 @@ async def test_apply_scanner_workflow_drives_full_success_pipeline() -> None:
assert emit_input.model_output == model_output
cleanup_input = next(arg for fn, arg in mocks.activity_calls if fn is cleanup_gemini_file_activity)
assert cleanup_input.gemini_file_name == "files/x"
+ succeeded = next(arg for fn, arg in mocks.activity_calls if fn is mark_observation_succeeded_activity)
+ assert succeeded.scanner_result.signals_count == 0
@pytest.mark.asyncio
@@ -2063,3 +2075,156 @@ class TestResolveCitations:
assert isinstance(resolved, MonitorOutput)
assert resolved.reasoning == "No citations here."
assert resolved.reasoning_segments == [TextSegment(value="No citations here.")]
+
+
+# emit_observation_signal_activity
+
+_EMIT_SIGNAL_PATCH = "products.replay_vision.backend.temporal.activities.emit_observation_signal.emit_signal"
+
+
[email protected]_db(transaction=True)
+class TestEmitObservationSignalActivity:
+ def _inputs(
+ self, observation: ReplayObservation, confidence: float = 0.8, **overrides
+ ) -> EmitObservationSignalInputs:
+ defaults: dict = {
+ "team_id": observation.team_id,
+ "observation_id": observation.id,
+ "signal": SignalFinding(description="Broken checkout CTA on /cart", confidence=confidence),
+ }
+ defaults.update(overrides)
+ return EmitObservationSignalInputs(**defaults)
+
+ def test_emits_via_the_signals_facade(self) -> None:
+ scanner = _make_scanner(emits_signals=True)
+ observation = _make_observation(scanner)
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock) as mock_emit:
+ assert emit_observation_signal_activity(self._inputs(observation)) == 1
+
+ assert mock_emit.await_args is not None
+ kwargs = mock_emit.await_args.kwargs
+ assert kwargs["source_product"] == "replay_vision"
+ assert kwargs["source_type"] == "scanner_finding"
+ assert kwargs["source_id"] == f"observation:{observation.id}"
+ assert kwargs["description"] == "Broken checkout CTA on /cart"
+ assert kwargs["weight"] == SIGNAL_WEIGHT
+ assert kwargs["extra"]["scanner_id"] == str(scanner.id)
+ assert kwargs["extra"]["scanner_type"] == "monitor"
+ assert kwargs["extra"]["session_id"] == observation.session_id
+ assert kwargs["extra"]["confidence"] == 0.8
+
+ @pytest.mark.parametrize("confidence", [0.0, 0.39])
+ def test_skips_findings_below_the_confidence_floor(self, confidence: float) -> None:
+ scanner = _make_scanner(emits_signals=True)
+ observation = _make_observation(scanner)
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock) as mock_emit:
+ assert emit_observation_signal_activity(self._inputs(observation, confidence=confidence)) == 0
+ mock_emit.assert_not_awaited()
+
+ def test_skips_when_the_snapshot_does_not_emit_signals(self) -> None:
+ scanner = _make_scanner(emits_signals=False)
+ observation = _make_observation(scanner)
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock) as mock_emit:
+ assert emit_observation_signal_activity(self._inputs(observation)) == 0
+ mock_emit.assert_not_awaited()
+
+ def test_skips_when_the_observation_is_missing(self) -> None:
+ scanner = _make_scanner(emits_signals=True)
+ observation = _make_observation(scanner)
+ inputs = self._inputs(observation, observation_id=uuid.uuid4())
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock) as mock_emit:
+ assert emit_observation_signal_activity(inputs) == 0
+ mock_emit.assert_not_awaited()
+
+ @pytest.mark.parametrize(
+ "error",
+ [RuntimeError("signals down"), ValueError("description exceeds the token limit")],
+ ids=["facade_down", "description_over_token_cap"],
+ )
+ def test_fails_soft_when_the_facade_raises(self, error: Exception) -> None:
+ scanner = _make_scanner(emits_signals=True)
+ observation = _make_observation(scanner)
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock, side_effect=error) as mock_emit:
+ assert emit_observation_signal_activity(self._inputs(observation)) == 0
+ mock_emit.assert_awaited_once()
+
+ def test_emits_without_any_source_config(self) -> None:
+ # Scanner findings are self-authorizing via the snapshot flag — no SignalSourceConfig is read or written.
+ scanner = _make_scanner(emits_signals=True)
+ observation = _make_observation(scanner)
+
+ with patch(_EMIT_SIGNAL_PATCH, new_callable=AsyncMock) as mock_emit:
+ assert emit_observation_signal_activity(self._inputs(observation)) == 1
+
+ mock_emit.assert_awaited_once()
+ assert not SignalSourceConfig.objects.filter(team=scanner.team).exists()
+
+
+async def test_apply_scanner_workflow_emits_the_signal_finding() -> None:
+ new_observation_id = uuid.uuid4()
+ model_output = MonitorOutput(verdict="yes", reasoning="user hit the broken CTA", confidence=0.9)
+ mocks = _WorkflowMocks(
+ activity_results={
+ create_observation_activity: CreateObservationOutput(
+ observation_id=new_observation_id, was_created=True, scanner_type=ScannerType.MONITOR
+ ),
+ ensure_session_asset_activity: EnsureSessionAssetOutput(asset_id=42),
+ upload_video_to_gemini_activity: UploadedVideo(
+ file_uri="gemini://files/x", mime_type="video/mp4", gemini_file_name="files/x"
+ ),
+ call_scanner_provider_activity: ScannerCallOutput(
+ model_output=model_output,
+ signal=SignalFinding(description="Checkout CTA is broken on /cart", confidence=0.8),
+ ),
+ emit_observation_signal_activity: 1,
+ },
+ )
+
+ await _run_workflow(_build_inputs(session_id="sess-sig", team_id=99), mocks)
+
+ order = [fn for fn, _ in mocks.activity_calls]
+ assert order.index(call_scanner_provider_activity) < order.index(emit_observation_signal_activity)
+ assert order.index(emit_observation_signal_activity) < order.index(emit_observation_event_activity)
+
+ signal_input = next(arg for fn, arg in mocks.activity_calls if fn is emit_observation_signal_activity)
+ assert signal_input.observation_id == new_observation_id
+ assert signal_input.signal.description == "Checkout CTA is broken on /cart"
+ assert signal_input.signal.confidence == 0.8
+
+ succeeded = next(arg for fn, arg in mocks.activity_calls if fn is mark_observation_succeeded_activity)
+ assert succeeded.scanner_result.signals_count == 1
+
+
+async def test_apply_scanner_workflow_succeeds_when_the_signal_activity_fails() -> None:
+ new_observation_id = uuid.uuid4()
+ model_output = MonitorOutput(verdict="yes", reasoning="user hit the broken CTA", confidence=0.9)
+ mocks = _WorkflowMocks(
+ activity_results={
+ create_observation_activity: CreateObservationOutput(
+ observation_id=new_observation_id, was_created=True, scanner_type=ScannerType.MONITOR
+ ),
+ ensure_session_asset_activity: EnsureSessionAssetOutput(asset_id=42),
+ upload_video_to_gemini_activity: UploadedVideo(
+ file_uri="gemini://files/x", mime_type="video/mp4", gemini_file_name="files/x"
+ ),
+ call_scanner_provider_activity: ScannerCallOutput(
+ model_output=model_output,
+ signal=SignalFinding(description="Checkout CTA is broken on /cart", confidence=0.8),
+ ),
+ },
+ activity_errors={emit_observation_signal_activity: TimeoutError("start-to-close exceeded")},
+ )
+
+ await _run_workflow(_build_inputs(session_id="sess-sig-fail", team_id=99), mocks)
+
+ called = [fn for fn, _ in mocks.activity_calls]
+ assert mark_observation_failed_activity not in called
+ succeeded = next(arg for fn, arg in mocks.activity_calls if fn is mark_observation_succeeded_activity)
+ assert succeeded.scanner_result.signals_count == 0
diff --git a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx
index 7d05d09410f5..396190334439 100644
--- a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx
+++ b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx
@@ -264,9 +264,10 @@ function ConfigureStep(): JSX.Element {
<div className="flex items-center gap-3">
<LemonSwitch checked={!!value} onChange={onChange} />
<div>
- <div className="text-sm font-medium">Emit PostHog Signals</div>
+ <div className="text-sm font-medium">Hand off to Responder agents</div>
<div className="text-xs text-muted">
- Also flags actionable issues as Signals.
+ Adds a side mission to each scan: clear, actionable product issues
+ are handled by PostHog Responder agents.
</div>
</div>
</div>
diff --git a/products/signals/backend/migrations/0040_alter_signalsourceconfig_source_product_and_more.py b/products/signals/backend/migrations/0040_alter_signalsourceconfig_source_product_and_more.py
new file mode 100644
index 000000000000..5959237152d7
--- /dev/null
+++ b/products/signals/backend/migrations/0040_alter_signalsourceconfig_source_product_and_more.py
@@ -0,0 +1,59 @@
+# Generated by Django 5.2.14 on 2026-06-17 17:01
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("signals", "0039_alter_signalsourceconfig_source_product_and_more"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="signalsourceconfig",
+ name="source_product",
+ field=models.CharField(
+ choices=[
+ ("session_replay", "Session replay"),
+ ("llm_analytics", "LLM analytics"),
+ ("github", "GitHub"),
+ ("linear", "Linear"),
+ ("zendesk", "Zendesk"),
+ ("conversations", "Conversations"),
+ ("error_tracking", "Error tracking"),
+ ("pganalyze", "pganalyze"),
+ ("signals_scout", "Signals scout"),
+ ("logs", "Logs"),
+ ("health_checks", "Health checks"),
+ ("endpoints", "Endpoints"),
+ ("replay_vision", "Replay Vision"),
+ ],
+ max_length=100,
+ ),
+ ),
+ migrations.AlterField(
+ model_name="signalsourceconfig",
+ name="source_type",
+ field=models.CharField(
+ choices=[
+ ("session_analysis_cluster", "Session analysis cluster"),
+ ("evaluation", "Evaluation"),
+ ("issue", "Issue"),
+ ("ticket", "Ticket"),
+ ("issue_created", "Issue created"),
+ ("issue_reopened", "Issue reopened"),
+ ("issue_spiking", "Issue spiking"),
+ ("cross_source_issue", "Cross source issue"),
+ ("alert_state_change", "Alert state change"),
+ ("health_issue", "Health issue"),
+ ("endpoint_execution_failed", "Endpoint execution failed"),
+ (
+ "endpoint_breakdown_limit_exceeded",
+ "Endpoint breakdown limit exceeded",
+ ),
+ ("scanner_finding", "Scanner finding"),
+ ],
+ max_length=100,
+ ),
+ ),
+ ]
diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txt
index b0224fdf20d0..631e52639b47 100644
--- a/products/signals/backend/migrations/max_migration.txt
+++ b/products/signals/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0039_alter_signalsourceconfig_source_product_and_more
+0040_alter_signalsourceconfig_source_product_and_more
diff --git a/products/signals/backend/models.py b/products/signals/backend/models.py
index 3ec31c1664aa..35b5e98610b3 100644
--- a/products/signals/backend/models.py
+++ b/products/signals/backend/models.py
@@ -30,6 +30,7 @@ class SignalSourceConfig(UUIDModel):
LOGS = "logs", "Logs"
HEALTH_CHECKS = "health_checks", "Health checks"
ENDPOINTS = "endpoints", "Endpoints"
+ REPLAY_VISION = "replay_vision", "Replay Vision"
class SourceType(models.TextChoices):
SESSION_ANALYSIS_CLUSTER = "session_analysis_cluster", "Session analysis cluster"
@@ -44,6 +45,7 @@ class SignalSourceConfig(UUIDModel):
HEALTH_ISSUE = "health_issue", "Health issue"
ENDPOINT_EXECUTION_FAILED = "endpoint_execution_failed", "Endpoint execution failed"
ENDPOINT_BREAKDOWN_LIMIT_EXCEEDED = "endpoint_breakdown_limit_exceeded", "Endpoint breakdown limit exceeded"
+ SCANNER_FINDING = "scanner_finding", "Scanner finding"
team = models.ForeignKey("posthog.Team", on_delete=models.CASCADE, related_name="signal_source_configs")
source_product = models.CharField(max_length=100, choices=SourceProduct)
@@ -64,6 +66,11 @@ class SignalSourceConfig(UUIDModel):
if source_product == cls.SourceProduct.LLM_ANALYTICS:
return True
+ # Replay Vision scanners are self-authorizing: the scanner's `emits_signals` flag is the
+ # per-source config, so there's no separate SignalSourceConfig row to gate against.
+ if source_product == cls.SourceProduct.REPLAY_VISION and source_type == cls.SourceType.SCANNER_FINDING:
+ return True
+
# Session problem signals are emitted as part of session analysis,
# so they're gated by the pre-existing session_analysis_cluster config
if source_product == cls.SourceProduct.SESSION_REPLAY and source_type == "session_problem":
diff --git a/products/signals/backend/test/test_signal_source_config_api.py b/products/signals/backend/test/test_signal_source_config_api.py
index c594ae43080a..86fa6797c394 100644
--- a/products/signals/backend/test/test_signal_source_config_api.py
+++ b/products/signals/backend/test/test_signal_source_config_api.py
@@ -396,3 +396,7 @@ class TestIsSourceEnabledGating(APIBaseTest):
def test_pganalyze_disabled_when_no_config(self):
assert SignalSourceConfig.is_source_enabled(self.team.id, "pganalyze", "issue") is False
+
+ def test_replay_vision_scanner_finding_is_self_authorizing(self):
+ # The scanner's `emits_signals` flag is the config — no SignalSourceConfig row exists.
+ assert SignalSourceConfig.is_source_enabled(self.team.id, "replay_vision", "scanner_finding") is True
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index 02b9b492e989..1b96732053cc 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -1159,6 +1159,7 @@ export interface ForgetResponseApi {
* * `logs` - Logs
* * `health_checks` - Health checks
* * `endpoints` - Endpoints
+ * * `replay_vision` - Replay Vision
*/
export type SourceProductEnumApi = (typeof SourceProductEnumApi)[keyof typeof SourceProductEnumApi]
@@ -1175,6 +1176,7 @@ export const SourceProductEnumApi = {
Logs: 'logs',
HealthChecks: 'health_checks',
Endpoints: 'endpoints',
+ ReplayVision: 'replay_vision',
} as const
/**
@@ -1190,6 +1192,7 @@ export const SourceProductEnumApi = {
* * `health_issue` - Health issue
* * `endpoint_execution_failed` - Endpoint execution failed
* * `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded
+ * * `scanner_finding` - Scanner finding
*/
export type SignalSourceConfigSourceTypeEnumApi =
(typeof SignalSourceConfigSourceTypeEnumApi)[keyof typeof SignalSourceConfigSourceTypeEnumApi]
@@ -1207,6 +1210,7 @@ export const SignalSourceConfigSourceTypeEnumApi = {
HealthIssue: 'health_issue',
EndpointExecutionFailed: 'endpoint_execution_failed',
EndpointBreakdownLimitExceeded: 'endpoint_breakdown_limit_exceeded',
+ ScannerFinding: 'scanner_finding',
} as const
export interface SignalSourceConfigApi {
diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.ts
index fa6caf0d1dfd..7ef5eec260f2 100644
--- a/products/signals/frontend/generated/api.zod.ts
+++ b/products/signals/frontend/generated/api.zod.ts
@@ -281,9 +281,10 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.describe(
- '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints'
+ '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints\n\* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -299,9 +300,10 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.describe(
- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n\* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
@@ -322,9 +324,10 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.describe(
- '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints'
+ '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints\n\* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -340,9 +343,10 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.describe(
- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n\* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
@@ -363,10 +367,11 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.optional()
.describe(
- '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints'
+ '\* `session_replay` - Session replay\n\* `llm_analytics` - LLM analytics\n\* `github` - GitHub\n\* `linear` - Linear\n\* `zendesk` - Zendesk\n\* `conversations` - Conversations\n\* `error_tracking` - Error tracking\n\* `pganalyze` - pganalyze\n\* `signals_scout` - Signals scout\n\* `logs` - Logs\n\* `health_checks` - Health checks\n\* `endpoints` - Endpoints\n\* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -382,10 +387,11 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.optional()
.describe(
- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `issue` - Issue\n\* `ticket` - Ticket\n\* `issue_created` - Issue created\n\* `issue_reopened` - Issue reopened\n\* `issue_spiking` - Issue spiking\n\* `cross_source_issue` - Cross source issue\n\* `alert_state_change` - Alert state change\n\* `health_issue` - Health issue\n\* `endpoint_execution_failed` - Endpoint execution failed\n\* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n\* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 0ce5dd8669bb..051ab0c2c058 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -30700,6 +30700,7 @@ export namespace Schemas {
* * `logs` - Logs
* * `health_checks` - Health checks
* * `endpoints` - Endpoints
+ * * `replay_vision` - Replay Vision
*/
export type SourceProductEnum = typeof SourceProductEnum[keyof typeof SourceProductEnum];
@@ -30717,6 +30718,7 @@ export namespace Schemas {
Logs: 'logs',
HealthChecks: 'health_checks',
Endpoints: 'endpoints',
+ ReplayVision: 'replay_vision',
} as const;
/**
@@ -30732,6 +30734,7 @@ export namespace Schemas {
* * `health_issue` - Health issue
* * `endpoint_execution_failed` - Endpoint execution failed
* * `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded
+ * * `scanner_finding` - Scanner finding
*/
export type SignalSourceConfigSourceTypeEnum = typeof SignalSourceConfigSourceTypeEnum[keyof typeof SignalSourceConfigSourceTypeEnum];
@@ -30749,6 +30752,7 @@ export namespace Schemas {
HealthIssue: 'health_issue',
EndpointExecutionFailed: 'endpoint_execution_failed',
EndpointBreakdownLimitExceeded: 'endpoint_breakdown_limit_exceeded',
+ ScannerFinding: 'scanner_finding',
} as const;
export interface SignalSourceConfig {
diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.ts
index 53cf789436b2..7c72842d0f66 100644
--- a/services/mcp/src/generated/signals/api.ts
+++ b/services/mcp/src/generated/signals/api.ts
@@ -574,9 +574,10 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.describe(
- '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints'
+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -592,9 +593,10 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.describe(
- '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
@@ -633,9 +635,10 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.describe(
- '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints'
+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -651,9 +654,10 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.describe(
- '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
@@ -683,10 +687,11 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(
'logs',
'health_checks',
'endpoints',
+ 'replay_vision',
])
.optional()
.describe(
- '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints'
+ '* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision'
),
source_type: zod
.enum([
@@ -702,10 +707,11 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(
'health_issue',
'endpoint_execution_failed',
'endpoint_breakdown_limit_exceeded',
+ 'scanner_finding',
])
.optional()
.describe(
- '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded'
+ '* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding'
),
enabled: zod.boolean().optional(),
config: zod.unknown().optional(),
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json
index 9a759eb2d28b..5fd8b2630b52 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-create.json
@@ -6,7 +6,7 @@
"type": "boolean"
},
"source_product": {
- "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints",
+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision",
"enum": [
"session_replay",
"llm_analytics",
@@ -19,12 +19,13 @@
"signals_scout",
"logs",
"health_checks",
- "endpoints"
+ "endpoints",
+ "replay_vision"
],
"type": "string"
},
"source_type": {
- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded",
+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding",
"enum": [
"session_analysis_cluster",
"evaluation",
@@ -37,7 +38,8 @@
"alert_state_change",
"health_issue",
"endpoint_execution_failed",
- "endpoint_breakdown_limit_exceeded"
+ "endpoint_breakdown_limit_exceeded",
+ "scanner_finding"
],
"type": "string"
}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json
index f89e9d2c3e7a..8fb73c5fb54e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-partial-update.json
@@ -10,7 +10,7 @@
"type": "string"
},
"source_product": {
- "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints",
+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision",
"enum": [
"session_replay",
"llm_analytics",
@@ -23,12 +23,13 @@
"signals_scout",
"logs",
"health_checks",
- "endpoints"
+ "endpoints",
+ "replay_vision"
],
"type": "string"
},
"source_type": {
- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded",
+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding",
"enum": [
"session_analysis_cluster",
"evaluation",
@@ -41,7 +42,8 @@
"alert_state_change",
"health_issue",
"endpoint_execution_failed",
- "endpoint_breakdown_limit_exceeded"
+ "endpoint_breakdown_limit_exceeded",
+ "scanner_finding"
],
"type": "string"
}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json
index 3ba284f07870..692847fca72d 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-update.json
@@ -10,7 +10,7 @@
"type": "string"
},
"source_product": {
- "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints",
+ "description": "* `session_replay` - Session replay\n* `llm_analytics` - LLM analytics\n* `github` - GitHub\n* `linear` - Linear\n* `zendesk` - Zendesk\n* `conversations` - Conversations\n* `error_tracking` - Error tracking\n* `pganalyze` - pganalyze\n* `signals_scout` - Signals scout\n* `logs` - Logs\n* `health_checks` - Health checks\n* `endpoints` - Endpoints\n* `replay_vision` - Replay Vision",
"enum": [
"session_replay",
"llm_analytics",
@@ -23,12 +23,13 @@
"signals_scout",
"logs",
"health_checks",
- "endpoints"
+ "endpoints",
+ "replay_vision"
],
"type": "string"
},
"source_type": {
- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded",
+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `issue` - Issue\n* `ticket` - Ticket\n* `issue_created` - Issue created\n* `issue_reopened` - Issue reopened\n* `issue_spiking` - Issue spiking\n* `cross_source_issue` - Cross source issue\n* `alert_state_change` - Alert state change\n* `health_issue` - Health issue\n* `endpoint_execution_failed` - Endpoint execution failed\n* `endpoint_breakdown_limit_exceeded` - Endpoint breakdown limit exceeded\n* `scanner_finding` - Scanner finding",
"enum": [
"session_analysis_cluster",
"evaluation",
@@ -41,7 +42,8 @@
"alert_state_change",
"health_issue",
"endpoint_execution_failed",
- "endpoint_breakdown_limit_exceeded"
+ "endpoint_breakdown_limit_exceeded",
+ "scanner_finding"
],
"type": "string"
}
diff --git a/tach.toml b/tach.toml
index 91bc71e553e3..f44db1e77b95 100644
--- a/tach.toml
+++ b/tach.toml
@@ -517,6 +517,7 @@ depends_on = [
"ee",
"posthog",
"products.exports",
+ "products.signals",
]
layer = "modules"