:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals): remove per-evaluation-run signal emission (#82240)
Radu Raicea4d68e43199de
diff --git a/posthog/temporal/ai_observability/__init__.py b/posthog/temporal/ai_observability/__init__.pyindex 432ccc4cc6c9..b9c80bdd115d 100644--- a/posthog/temporal/ai_observability/__init__.py+++ b/posthog/temporal/ai_observability/__init__.py@@ -112,7 +112,7 @@ EVAL_ACTIVITIES = [emit_evaluation_event_activity,emit_trace_evaluation_event_activity,emit_internal_telemetry_activity,- emit_eval_signal_activity, # kept for in-flight v1 workflows, then remove+ emit_eval_signal_activity,]TAGGER_WORKFLOWS = [@@ -189,5 +189,5 @@ ACTIVITIES = [execute_sentiment_eval_activity,emit_evaluation_event_activity,emit_internal_telemetry_activity,- emit_eval_signal_activity, # kept for in-flight v1 workflows, then remove+ emit_eval_signal_activity,]diff --git a/posthog/temporal/ai_observability/eval_reports/emit_signal.py b/posthog/temporal/ai_observability/eval_reports/emit_signal.pyindex 8e0a495a14aa..1bfeda74b6b2 100644--- a/posthog/temporal/ai_observability/eval_reports/emit_signal.py+++ b/posthog/temporal/ai_observability/eval_reports/emit_signal.py@@ -1,14 +1,13 @@"""Emit a signal per evaluation report run.-Parallel to `products/signals/backend/temporal/emit_eval_signal.py` which emits-one signal per individual `$ai_evaluation` result. This module emits one signal-per report run, which is strictly more useful because a report already aggregates-the underlying results into an analytical narrative (trend, patterns, citations)-— the signal inherits that narrative rather than the per-result verdict.+This is the only path from AI observability evaluations into Signals. Emitting one+signal per individual `$ai_evaluation` result flooded inboxes and said little; a+report already aggregates the underlying results into an analytical narrative+(trend, patterns, citations), so the signal inherits that narrative rather than a+single verdict.Gated by its own team-level `SignalSourceConfig(LLM_ANALYTICS, EVALUATION_REPORT)`-toggle (surfaced in the inbox sources UI), independent of the per-evaluation-allowlist that gates per-result emission.+toggle, surfaced in the inbox sources UI.Lives in `posthog/temporal/ai_observability/` (not `products/signals/`) becausethis is fundamentally an LLMA operation: it runs on the LLMA worker, reads thediff --git a/posthog/temporal/ai_observability/eval_reports/test/test_emit_signal.py b/posthog/temporal/ai_observability/eval_reports/test/test_emit_signal.pyindex fb6888414cd7..812ce159fa7c 100644--- a/posthog/temporal/ai_observability/eval_reports/test/test_emit_signal.py+++ b/posthog/temporal/ai_observability/eval_reports/test/test_emit_signal.py@@ -104,18 +104,6 @@ async def _setup_no_source_config(ateam):del ateam-async def _setup_only_per_result_evaluation_config(ateam):- # An enabled per-result (evaluation) config must not turn on report emission —- # reports are gated by their own evaluation_report row.- await sync_to_async(SignalSourceConfig.objects.create)(- team=ateam,- source_product=SignalSourceConfig.SourceProduct.LLM_ANALYTICS,- source_type=SignalSourceConfig.SourceType.EVALUATION,- enabled=True,- config={"evaluation_ids": ["eval-123"]},- )--async def _setup_config_disabled(ateam):await sync_to_async(SignalSourceConfig.objects.create)(team=ateam,@@ -144,11 +132,10 @@ class TestEmitEvalReportSignalActivity:"setup_fn",[_setup_no_source_config,- _setup_only_per_result_evaluation_config,_setup_config_disabled,_setup_org_not_ai_approved,],- ids=["no_source_config", "only_per_result_evaluation_config", "config_disabled", "org_not_ai_approved"],+ ids=["no_source_config", "config_disabled", "org_not_ai_approved"],)async def test_skips_when_gate_fails(self, ateam, setup_fn):await setup_fn(ateam)diff --git a/posthog/temporal/ai_observability/metrics.py b/posthog/temporal/ai_observability/metrics.pyindex 33156530113e..831d60b58595 100644--- a/posthog/temporal/ai_observability/metrics.py+++ b/posthog/temporal/ai_observability/metrics.py@@ -31,7 +31,6 @@ EVAL_ACTIVITY_TYPES = {"emit_evaluation_event_activity","emit_internal_telemetry_activity","update_key_state_activity",- "emit_eval_signal_activity",# check_trace_settled_activity is deliberately excluded: its expected trace_not_settled# failures would otherwise count as activity errors.}@@ -134,13 +133,6 @@ def increment_settle_poll(outcome: str, target: str = "trace") -> None:counter.add(1)-def increment_eval_signal_outcome(outcome: str) -> None:- """Track eval signal activity outcomes (skipped_config_disabled, skipped_org_not_approved, skipped_low_significance, emitted, summarization_failed)."""- meter = get_metric_meter({"outcome": outcome})- counter = meter.create_counter("llma_eval_signal_outcome", "Eval signal activity outcome distribution")- counter.add(1)--def increment_tokens(token_type: str, count: int) -> None:"""Track token usage (input/output/total)."""meter = get_metric_meter({"token_type": token_type})diff --git a/posthog/temporal/ai_observability/run_evaluation.py b/posthog/temporal/ai_observability/run_evaluation.pyindex 93efc35033d5..c7e51490483b 100644--- a/posthog/temporal/ai_observability/run_evaluation.py+++ b/posthog/temporal/ai_observability/run_evaluation.py@@ -327,9 +327,14 @@ class RunEvaluationWorkflow(PostHogWorkflow):schedule_to_close_timeout=timedelta(seconds=30),)- # Legacy per-result signal path. The frontend no longer exposes its enablement;- # evaluation reports are the supported AI observability signal source.- if evaluation_type == "llm_judge" and result.get("verdict") is True and result.get("reasoning"):+ # Old histories must still issue their recorded activity or child-workflow command during replay.+ replay_legacy_eval_signal = not temporalio.workflow.patched("remove-per-evaluation-signal-2026-08")+ if (+ replay_legacy_eval_signal+ and evaluation_type == "llm_judge"+ and result.get("verdict") is True+ and result.get("reasoning")+ ):event_uuid = inputs.event_data.get("uuid", "")properties = inputs.event_data.get("properties", {})if isinstance(properties, str):@@ -379,7 +384,6 @@ class RunEvaluationWorkflow(PostHogWorkflow):evaluation_id=evaluation["id"],team_id=evaluation["team_id"],)-workflow_result: WorkflowResult = {"reasoning": result["reasoning"],"evaluation_id": evaluation["id"],diff --git a/posthog/temporal/ai_observability/test_metrics.py b/posthog/temporal/ai_observability/test_metrics.pyindex e146a295152e..e17f29879148 100644--- a/posthog/temporal/ai_observability/test_metrics.py+++ b/posthog/temporal/ai_observability/test_metrics.py@@ -125,7 +125,6 @@ class TestActivityTypes:"emit_evaluation_event_activity","emit_internal_telemetry_activity","update_key_state_activity",- "emit_eval_signal_activity",}assert EVAL_ACTIVITY_TYPES == expecteddiff --git a/posthog/temporal/ai_observability/test_run_evaluation.py b/posthog/temporal/ai_observability/test_run_evaluation.pyindex 096739c2f48f..c1e9e54b4e0b 100644--- a/posthog/temporal/ai_observability/test_run_evaluation.py+++ b/posthog/temporal/ai_observability/test_run_evaluation.py@@ -9,9 +9,10 @@ from unittest.mock import MagicMock, patchfrom asgiref.sync import sync_to_asyncfrom parameterized import parameterizedfrom temporalio import activity+from temporalio.api.enums.v1 import EventTypefrom temporalio.exceptions import ApplicationErrorfrom temporalio.testing import WorkflowEnvironment-from temporalio.worker import UnsandboxedWorkflowRunner, Worker+from temporalio.worker import Replayer, UnsandboxedWorkflowRunner, Workerfrom posthog.api.capture import CaptureInternalErrorfrom posthog.models import Organization, Team@@ -32,6 +33,7 @@ from products.ai_observability.backend.models.evaluation_directories import Evalfrom products.ai_observability.backend.models.evaluations import Evaluationfrom products.ai_observability.backend.models.provider_keys import LLMProviderKey+from . import run_evaluation as run_evaluation_modulefrom .evaluation_errors import (MAX_STATUS_REASON_DETAIL_LENGTH,require_user_error_spec,@@ -43,6 +45,7 @@ from .run_evaluation import (BooleanEvalResult,BooleanWithNAEvalResult,EmitEvaluationEventInputs,+ EmitInternalTelemetryInputs,EvaluationActivityResult,ExecuteLLMJudgeInputs,RunEvaluationInputs,@@ -148,6 +151,98 @@ def active_key_config(setup_data):class TestRunEvaluationWorkflow:+ @pytest.mark.asyncio+ async def test_new_runs_skip_legacy_eval_signal_while_old_history_replays(self, monkeypatch):+ @activity.defn(name="fetch_evaluation_activity")+ async def mock_fetch_evaluation(inputs: RunEvaluationInputs) -> dict[str, Any]:+ return {+ "id": inputs.evaluation_id,+ "name": "Boolean evaluation",+ "evaluation_type": "llm_judge",+ "evaluation_config": {"prompt": "Is the answer grounded?"},+ "output_type": "boolean",+ "output_config": {},+ "team_id": 1,+ }++ @activity.defn(name="execute_llm_judge_activity")+ async def mock_execute_llm_judge(_: ExecuteLLMJudgeInputs) -> EvaluationActivityResult:+ return {+ "result_type": "boolean",+ "verdict": True,+ "reasoning": "The answer is grounded.",+ "allows_na": False,+ "model": "gpt-4.1-mini",+ "provider": "openai",+ }++ @activity.defn(name="emit_evaluation_event_activity")+ async def mock_emit_evaluation_event(_: EmitEvaluationEventInputs) -> None:+ return++ @activity.defn(name="emit_internal_telemetry_activity")+ async def mock_emit_internal_telemetry(_: EmitInternalTelemetryInputs) -> None:+ return++ original_patched = run_evaluation_module.temporalio.workflow.patched++ def legacy_patched(patch_id: str) -> bool:+ if patch_id == "remove-per-evaluation-signal-2026-08":+ return False+ return original_patched(patch_id)++ task_queue = str(uuid.uuid4())+ async with await WorkflowEnvironment.start_time_skipping() as env:+ async with Worker(+ env.client,+ task_queue=task_queue,+ workflows=[RunEvaluationWorkflow],+ activities=[+ mock_fetch_evaluation,+ mock_execute_llm_judge,+ mock_emit_evaluation_event,+ mock_emit_internal_telemetry,+ ],+ workflow_runner=UnsandboxedWorkflowRunner(),+ ):+ monkeypatch.setattr(run_evaluation_module.temporalio.workflow, "patched", legacy_patched)+ legacy_handle = await env.client.start_workflow(+ RunEvaluationWorkflow.run,+ RunEvaluationInputs(+ evaluation_id="legacy-evaluation",+ event_data=create_mock_event_data(team_id=1),+ ),+ id=str(uuid.uuid4()),+ task_queue=task_queue,+ )+ await legacy_handle.result()+ legacy_history = await legacy_handle.fetch_history()++ monkeypatch.setattr(run_evaluation_module.temporalio.workflow, "patched", original_patched)+ new_handle = await env.client.start_workflow(+ RunEvaluationWorkflow.run,+ RunEvaluationInputs(+ evaluation_id="new-evaluation",+ event_data=create_mock_event_data(team_id=1),+ ),+ id=str(uuid.uuid4()),+ task_queue=task_queue,+ )+ await new_handle.result()+ new_history = await new_handle.fetch_history()++ assert EventType.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED in {+ event.event_type for event in legacy_history.events+ }+ assert EventType.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED not in {+ event.event_type for event in new_history.events+ }++ await Replayer(+ workflows=[RunEvaluationWorkflow],+ workflow_runner=UnsandboxedWorkflowRunner(),+ ).replay_workflow(legacy_history)+@pytest.mark.asyncio@pytest.mark.django_db(transaction=True)async def test_fetch_evaluation_activity(self, setup_data):diff --git a/products/signals/ARCHITECTURE.md b/products/signals/ARCHITECTURE.mdindex d44c13833d8d..a1e76ce7d1dc 100644--- a/products/signals/ARCHITECTURE.md+++ b/products/signals/ARCHITECTURE.md@@ -22,7 +22,7 @@ If you add or remove a Signals workflow/activity from `backend/temporal/__init__Several additional Signals workflows also exist but are not part of the main report pipeline:- `backfill-error-tracking` (`backend/temporal/backfill_error_tracking.py`) — backfills recent error tracking issues as signals-- `emit-eval-signal` (`backend/temporal/emit_eval_signal.py`) — legacy per-result evaluation path retained for existing Temporal histories and stored configs+- `emit-eval-signal` (`backend/temporal/emit_eval_signal.py`) - compatibility-only workflow retained for existing Temporal histories; its activity no longer emits signals- `run-signals-scout-coordinator` (`backend/temporal/agentic/scout_coordinator.py`) — periodic tick (every `COORDINATOR_INTERVAL_MINUTES = 30`) that fans out scheduled `signals-scout-*` scout runs per (team, skill). Spec'd separately below.- `RunSignalsScoutWorkflow` (`backend/temporal/agentic/scout_scheduler.py`) — child workflow per planned run; thin wrapper around the harness activity. Spec'd separately below.@@ -519,18 +519,18 @@ The legacy report↔task link table. General task↔report association has movedPer-team configuration for which signal sources are enabled.-| Field | Type | Description |-| ---------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `team` | FK → Team | Owning team (`related_name="signal_source_configs"`) |-| `source_product` | CharField | One of: `session_replay`, `llm_analytics`, `github`, `linear`, `zendesk`, `conversations`, `error_tracking`, `signals_scout` (`SourceProduct` enum) |-| `source_type` | CharField | One of: `session_analysis_cluster`, `evaluation`, `evaluation_report`, `issue`, `ticket`, `issue_created`, `issue_reopened`, `issue_spiking`, `cross_source_issue` (`SourceType` enum) |-| `enabled` | Boolean | Whether this source is active (default `True`) |-| `config` | JSONField | Source-specific configuration |-| `created_by` | FK → User | User who created the config (nullable) |+| Field | Type | Description |+| ---------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |+| `team` | FK → Team | Owning team (`related_name="signal_source_configs"`) |+| `source_product` | CharField | One of: `session_replay`, `llm_analytics`, `github`, `linear`, `zendesk`, `conversations`, `error_tracking`, `signals_scout` (`SourceProduct` enum) |+| `source_type` | CharField | One of: `session_analysis_cluster`, `evaluation_report`, `issue`, `ticket`, `issue_created`, `issue_reopened`, `issue_spiking`, `cross_source_issue` (`SourceType` enum) |+| `enabled` | Boolean | Whether this source is active (default `True`) |+| `config` | JSONField | Source-specific configuration |+| `created_by` | FK → User | User who created the config (nullable) |**Behavioral notes:**-- AI observability exposes eval-report signals in the Inbox UI. These signals are gated by the `(llm_analytics, evaluation_report)` row controlled by the AI observability toggle. The legacy per-result backend path remains registered but is no longer exposed or counted by the frontend.+- `llm_analytics` signals go through the standard enabled-row check like every other source. `evaluation_report` is the only type AI observability emits, gated by its own `(llm_analytics, evaluation_report)` row (the inbox "AI observability" toggle). The per-result workflow and activity remain registered only so existing Temporal histories can finish replaying.- For session replay configs, serializer validation enforces that `config.recording_filters` is a JSON object when present.- The serializer exposes a computed `status` field:- `session_analysis_cluster` derives status from the Temporal clustering workflow@@ -1140,9 +1140,9 @@ Report ↔ task relationships are recorded as `task_run` artefacts (see `SignalRAuto-start dedup is separate from this freeform log: `maybe_autostart_implementation_task()` (`backend/auto_start.py`) gates on a legacy `SignalReportTask` implementation row, checked inside the report-row `select_for_update`, so concurrent evaluations can't double-start. Both the auto-start and the manual tasks-API path go through `record_implementation_task`, which dual-writes that gate row and the `implementation` `task_run` artefact — the transitional arrangement until the backfill lets the gate move to artefacts (see `SignalReportTask`).-### Legacy eval-signal flow (`backend/temporal/emit_eval_signal.py`)+### Legacy eval-signal compatibility (`backend/temporal/emit_eval_signal.py`)-The frontend no longer exposes per-evaluation signal enablement. This backend workflow remains registered for existing Temporal histories and stored `(llm_analytics, evaluation)` configs until the legacy path is removed. Completed evaluation reports are the supported evaluation-based AI observability signal source.+New evaluation workflows record a removal patch and skip the per-result signal path. The old workflow and activity names remain registered as no-op compatibility definitions so histories that recorded those commands can replay. Evaluation reports are the only evaluation-based AI observability signal source.### Resetting self-driving state for local re-testing@@ -1404,7 +1404,7 @@ products/signals/│ ├── buffer.py # BufferSignalsWorkflow + object-storage flush/backpressure activities│ ├── clickhouse.py # Retry wrapper for HogQL / ClickHouse activity queries│ ├── deletion.py # SignalReportDeletionWorkflow-│ ├── emit_eval_signal.py # Legacy per-result evaluation signal workflow+│ ├── emit_eval_signal.py # Compatibility definitions for old Temporal histories│ ├── emitter.py # SignalEmitterWorkflow — per-signal backpressure bridge│ ├── grouping.py # Legacy v1 workflow + active shared grouping implementation│ ├── grouping_v2.py # Active grouping v2 workflow + pause/unpause supportdiff --git a/products/signals/backend/contracts.py b/products/signals/backend/contracts.pyindex 052502f6abc0..83172d0bf246 100644--- a/products/signals/backend/contracts.py+++ b/products/signals/backend/contracts.py@@ -71,6 +71,9 @@ class SessionProblemSignalInput(SignalInputBase):# ── LLM analytics ───────────────────────────────────────────────────────────────+# Read-only: no emitter writes `llm_analytics/evaluation` signals any more (only whole eval reports+# do), but signals ingested while that path existed keep this payload shape, and the inbox card that+# renders them is generated from this model.class LlmEvalSignalExtra(SignalExtraBase):evaluation_id: strtarget_event_id: str | None = None@@ -80,12 +83,6 @@ class LlmEvalSignalExtra(SignalExtraBase):provider: str | None = None-class LlmEvaluationSignalInput(SignalInputBase):- source_type: Literal[SignalSourceType.EVALUATION]- source_product: Literal[SignalSourceProduct.LLM_ANALYTICS]- extra: LlmEvalSignalExtra--class LlmEvalReportSignalExtra(SignalExtraBase):evaluation_id: strevaluation_name: str@@ -973,7 +970,6 @@ class GoogleSearchConsoleSearchOpportunitySignalInput(SignalInputBase):SignalInput = Annotated[SessionProblemSignalInput- | LlmEvaluationSignalInput| LlmEvaluationReportSignalInput| ZendeskTicketSignalInput| GithubIssueSignalInput@@ -1030,7 +1026,6 @@ SignalInput = Annotated[SIGNAL_INPUT_VARIANTS: tuple[type[SignalInputBase], ...] = (SessionProblemSignalInput,- LlmEvaluationSignalInput,LlmEvaluationReportSignalInput,ZendeskTicketSignalInput,GithubIssueSignalInput,diff --git a/products/signals/backend/enums.py b/products/signals/backend/enums.pyindex 68af23951618..5d28a0ca578e 100644--- a/products/signals/backend/enums.py+++ b/products/signals/backend/enums.py@@ -76,6 +76,8 @@ class SignalSourceProduct(StrEnum):class SignalSourceType(StrEnum):SESSION_ANALYSIS_CLUSTER = "session_analysis_cluster"SESSION_PROBLEM = "session_problem"+ # No emitter produces EVALUATION any more — AI observability only signals whole eval reports.+ # The value stays in the taxonomy so signals ingested before that still resolve to a label.EVALUATION = "evaluation"EVALUATION_REPORT = "evaluation_report"ISSUE = "issue"diff --git a/products/signals/backend/migrations/0092_remove_per_evaluation_signal_source.py b/products/signals/backend/migrations/0092_remove_per_evaluation_signal_source.pynew file mode 100644index 000000000000..98b4dcc337f3--- /dev/null+++ b/products/signals/backend/migrations/0092_remove_per_evaluation_signal_source.py@@ -0,0 +1,39 @@+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("signals", "0091_signalscoutconfig_mcp_gateway_server_ids"),+ ]++ operations = [+ migrations.AlterField(+ model_name="signalsourceconfig",+ name="source_type",+ field=models.CharField(+ choices=[+ ("session_analysis_cluster", "Session analysis cluster"),+ ("evaluation_report", "Evaluation report"),+ ("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"),+ ("anomaly_investigation", "Anomaly investigation"),+ ("ci_flaky_check", "CI flaky check"),+ ("ci_broken_default_branch", "CI broken default branch"),+ ("ci_duration_regression", "CI duration regression"),+ ],+ max_length=100,+ ),+ ),+ ]diff --git a/products/signals/backend/migrations/0093_delete_per_evaluation_source_configs.py b/products/signals/backend/migrations/0093_delete_per_evaluation_source_configs.pynew file mode 100644index 000000000000..11aaea870d48--- /dev/null+++ b/products/signals/backend/migrations/0093_delete_per_evaluation_source_configs.py@@ -0,0 +1,24 @@+from django.db import migrations+++def delete_per_evaluation_source_configs(apps, schema_editor):+ # One row per team that ever switched the source on, so a single filtered delete is enough.+ SignalSourceConfig = apps.get_model("signals", "SignalSourceConfig")+ SignalSourceConfig.objects.filter(source_product="llm_analytics", source_type="evaluation").delete()+++class Migration(migrations.Migration):+ dependencies = [+ ("signals", "0092_remove_per_evaluation_signal_source"),+ ]++ operations = [+ # The rows carried the per-evaluation allowlist that gated one signal per evaluation run.+ # Nothing emits those any more, so the rows are dead config — and leaving them behind would+ # keep handing the API a source_type that is no longer a valid choice.+ migrations.RunPython(+ delete_per_evaluation_source_configs,+ reverse_code=migrations.RunPython.noop,+ elidable=True,+ ),+ ]diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txtindex 2ebe7def0465..aa08f96aa197 100644--- a/products/signals/backend/migrations/max_migration.txt+++ b/products/signals/backend/migrations/max_migration.txt@@ -1 +1 @@-0091_signalscoutconfig_mcp_gateway_server_ids+0093_delete_per_evaluation_source_configsdiff --git a/products/signals/backend/models.py b/products/signals/backend/models.pyindex edd251ad2725..c236c5fb7c07 100644--- a/products/signals/backend/models.py+++ b/products/signals/backend/models.py@@ -48,8 +48,6 @@ class SignalSourceConfig(UUIDModel):# other configs and are deliberately absent).class SourceType(models.TextChoices):SESSION_ANALYSIS_CLUSTER = "session_analysis_cluster", "Session analysis cluster"- # Legacy per-result source type retained for stored configs and historical signal payloads.- EVALUATION = "evaluation", "Evaluation"EVALUATION_REPORT = "evaluation_report", "Evaluation report"ISSUE = "issue", "Issue"TICKET = "ticket", "Ticket"@@ -81,9 +79,7 @@ class SignalSourceConfig(UUIDModel):"""Check whether a given signal source is enabled for a team.Scout findings are on by default (see below). For everything else, the team must have a- SignalSourceConfig row with enabled=True. AI observability evaluation signals additionally- carry a per-evaluation allowlist in the config row, enforced upstream in the llma evals- workflows — the row check here is the team-level gate.+ SignalSourceConfig row with enabled=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.diff --git a/products/signals/backend/temporal/emit_eval_signal.py b/products/signals/backend/temporal/emit_eval_signal.pyindex b8d57f491fb2..eaef6d597add 100644--- a/products/signals/backend/temporal/emit_eval_signal.py+++ b/products/signals/backend/temporal/emit_eval_signal.py@@ -1,36 +1,24 @@-"""Legacy per-result evaluation signal path.+"""Compatibility definitions for per-evaluation signal Temporal histories.-The frontend no longer exposes per-evaluation signal enablement. Keep this workflow and activity-registered for existing Temporal histories and stored configs until the backend path is removed.-Evaluation reports are the supported AI observability signal source.+New evaluation workflows skip this path. Keep the workflow and activity registered until histories+that recorded either legacy signal command have drained."""import jsonfrom dataclasses import dataclassfrom datetime import timedelta-import structlogimport temporalioimport posthoganalyticsimport temporalio.workflow-from pydantic import BaseModel, Fieldfrom temporalio.common import RetryPolicy-from posthog.models.team import Team-from posthog.sync import database_sync_to_asyncfrom posthog.temporal.common.base import PostHogWorkflowfrom posthog.temporal.common.scoped import scoped_temporal-from products.signals.backend.models import SignalSourceConfig-from products.signals.backend.temporal.llm import call_llm--logger = structlog.get_logger(__name__)-@dataclassclass EmitEvalSignalInputs:- """Strongly typed inputs for the eval signal workflow and activity."""-team_id: intevaluation_id: strevaluation_name: str@@ -45,151 +33,14 @@ class EmitEvalSignalInputs:provider: str-class EvalSignalSummary(BaseModel):- title: str = Field(- description="Short title describing what this evaluation detected (max 100 chars)", max_length=100- )- description: str = Field(description="4-8 sentence description of the evaluation goal and why it passed")- significance: float = Field(ge=0.0, le=1.0)---SUMMARIZE_EVAL_SYSTEM_PROMPT = """You are a concise technical writer. Your job is to produce a short signal description from an LLM trace evaluation result.--You will be given:-- The evaluation name-- The full evaluation prompt (the criteria the judge used)-- The judge's reasoning for its verdict-- Context about the target event (event type, trace ID if available)--Produce:-1. A short title (max 100 chars) that captures what the evaluation detected. This should read as a finding, not a question.- Good: "Hallucination detected in product recommendation flow"- Bad: "Evaluation 'hallucination_check' passed"--2. A 4-8 sentence description that explains:- - What the evaluation was checking for (derived from the prompt)- - Why the judge determined the result was true- - Any relevant context about the trace or event--3. A significance score between 0 and 1:- - 0.0 = totally insignificant, noise, expected behavior- - 0.1-0.3 = minor, worth noting but low priority- - 0.4-0.6 = moderate, should be investigated when time permits- - 0.7-0.9 = high, should be prioritized and addressed soon- - 1.0 = critical, should be acted on immediately--Base significance on: severity of the finding, breadth of impact, and how obvious or actionable the fix is.--The output will be fed into a signal grouping and investigation system that groups related findings from different observability tools and data sources, across an entire product.-Write for an engineer who hasn't seen this specific evaluation before.-Do NOT parrot the evaluation name or say "the evaluation passed". Describe the actual finding.--Keep total output under 4000 tokens - be as concise as possible, without losing important information for the downstream investigators.--Respond with a JSON object containing "title", "description", and "significance" fields. Return ONLY valid JSON, no other text. The first token of output must be {"""---def _build_eval_signal_prompt(inputs: EmitEvalSignalInputs) -> str:- parts = [- f"EVALUATION NAME: {inputs.evaluation_name}",- f"\nEVALUATION PROMPT (judge criteria):\n{inputs.evaluation_prompt}",- f"\nJUDGE REASONING:\n{inputs.reasoning}",- f"\nTARGET EVENT TYPE: {inputs.event_type}",- ]- if inputs.trace_id:- parts.append(f"TRACE ID: {inputs.trace_id}")-- return "\n".join(parts)---async def summarize_eval_for_signal(inputs: EmitEvalSignalInputs) -> EvalSignalSummary:- """Use the signals LLM to produce a signal-sized summary of an eval result."""- user_prompt = _build_eval_signal_prompt(inputs)-- def validate(text: str) -> EvalSignalSummary:- data = json.loads(text)- return EvalSignalSummary.model_validate(data)-- return await call_llm(- team_id=inputs.team_id,- system_prompt=SUMMARIZE_EVAL_SYSTEM_PROMPT,- user_prompt=user_prompt,- validate=validate,- thinking=True,- stage="eval_signal_summary",- ai_product="signals_eval",- )--@temporalio.activity.defn@scoped_temporal()-async def emit_eval_signal_activity(inputs: EmitEvalSignalInputs) -> None:- def _is_eval_enabled() -> Team | None:- """Check SignalSourceConfig and return Team if this eval is enabled, else None."""- try:- source_config = SignalSourceConfig.objects.get(- team_id=inputs.team_id,- source_product=SignalSourceConfig.SourceProduct.LLM_ANALYTICS,- source_type=SignalSourceConfig.SourceType.EVALUATION,- enabled=True,- )- except SignalSourceConfig.DoesNotExist:- return None-- enabled_ids = source_config.config.get("evaluation_ids", [])- if inputs.evaluation_id not in enabled_ids:- return None-- return Team.objects.get(id=inputs.team_id)-- team = await database_sync_to_async(_is_eval_enabled, thread_sensitive=False)()- if team is None:- return-- organization = await database_sync_to_async(lambda: team.organization)()- if not organization.is_ai_data_processing_approved:- return-- # LLM call to produce a signal-quality summary from the raw eval data- summary = await summarize_eval_for_signal(inputs)-- if summary.significance < 0.1:- return-- from products.signals.backend.facade.api import emit_signal-- await emit_signal(- team=team,- source_product="llm_analytics",- source_type="evaluation",- source_id=f"{inputs.evaluation_id}:{inputs.event_uuid}",- description=summary.description,- weight=summary.significance,- extra={- "evaluation_id": inputs.evaluation_id,- "target_event_id": inputs.event_uuid,- "target_event_type": inputs.event_type,- "trace_id": inputs.trace_id,- "model": inputs.model,- "provider": inputs.provider,- },- )-- logger.info(- "Emitted eval signal",- evaluation_id=inputs.evaluation_id,- team_id=inputs.team_id,- signal_title=summary.title,- )+async def emit_eval_signal_activity(_: EmitEvalSignalInputs) -> None:+ return@temporalio.workflow.defn(name="emit-eval-signal")class EmitEvalSignalWorkflow(PostHogWorkflow):- """- Dedicated workflow for emitting eval signals, runs on VIDEO_EXPORT_TASK_QUEUE- (the signals worker) instead of the evals queue. Fire-and-forget from RunEvaluationWorkflow.- """-@staticmethoddef parse_inputs(inputs: list[str]) -> EmitEvalSignalInputs:loaded = json.loads(inputs[0])@@ -200,12 +51,9 @@ class EmitEvalSignalWorkflow(PostHogWorkflow):with posthoganalytics.new_context(capture_exceptions=False):posthoganalytics.tag("team_id", inputs.team_id)posthoganalytics.tag("product", "signals")- await self._run_impl(inputs)-- async def _run_impl(self, inputs: EmitEvalSignalInputs) -> None:- await temporalio.workflow.execute_activity(- emit_eval_signal_activity,- inputs,- schedule_to_close_timeout=timedelta(seconds=120),- retry_policy=RetryPolicy(maximum_attempts=2),- )+ await temporalio.workflow.execute_activity(+ emit_eval_signal_activity,+ inputs,+ schedule_to_close_timeout=timedelta(seconds=120),+ retry_policy=RetryPolicy(maximum_attempts=2),+ )diff --git a/products/signals/backend/test/test_api.py b/products/signals/backend/test/test_api.pyindex b09ebb5a2d49..1a73f21a761b 100644--- a/products/signals/backend/test/test_api.py+++ b/products/signals/backend/test/test_api.py@@ -46,11 +46,22 @@ SESSION_PROBLEM_EXTRA = {],}+# Retired payload shape: one signal per evaluation run. Kept here to pin that it is rejected.EVALUATION_EXTRA = {"evaluation_id": "eval-001","trace_id": "trace-abc",}+EVALUATION_REPORT_EXTRA = {+ "evaluation_id": "eval-001",+ "evaluation_name": "Answer grounded in context",+ "evaluation_description": "Checks that answers cite the retrieved context",+ "report_id": "report-001",+ "report_run_id": "report-run-001",+ "period_start": "2025-06-01T00:00:00Z",+ "period_end": "2025-06-08T00:00:00Z",+}+ZENDESK_TICKET_EXTRA = {"url": "https://example.zendesk.com/tickets/1","type": "problem",@@ -77,11 +88,11 @@ class TestEmitSignalValidation:"source_product, source_type, extra",[("session_replay", "session_problem", SESSION_PROBLEM_EXTRA),- ("llm_analytics", "evaluation", EVALUATION_EXTRA),+ ("llm_analytics", "evaluation_report", EVALUATION_REPORT_EXTRA),("zendesk", "ticket", ZENDESK_TICKET_EXTRA),("github", "issue", GITHUB_ISSUE_EXTRA),],- ids=["session_problem", "evaluation", "ticket", "issue"],+ ids=["session_problem", "evaluation_report", "ticket", "issue"],)async def test_emit_signal_accepts_valid_input(self, source_product, source_type, extra, team_stub):client = AsyncMock()@@ -116,9 +127,16 @@ class TestEmitSignalValidation:("session_replay", "nonexistent", {}),("github", "issue", {}),("zendesk", "ticket", {**ZENDESK_TICKET_EXTRA, "tags": "not-a-list"}),- ("llm_analytics", "evaluation", {**EVALUATION_EXTRA, "bogus": 1}),+ ("llm_analytics", "evaluation_report", {**EVALUATION_REPORT_EXTRA, "bogus": 1}),+ ("llm_analytics", "evaluation", EVALUATION_EXTRA),+ ],+ ids=[+ "unknown_source_type",+ "missing_extra_fields",+ "wrong_extra_field_type",+ "unexpected_extra_field",+ "retired_per_evaluation_run_type",],- ids=["unknown_source_type", "missing_extra_fields", "wrong_extra_field_type", "unexpected_extra_field"],)async def test_emit_signal_rejects_invalid_input(self, source_product, source_type, extra, team_stub):client = AsyncMock()diff --git a/products/signals/backend/test/test_llm.py b/products/signals/backend/test/test_llm.pyindex f7bde62d034b..16d90e66c503 100644--- a/products/signals/backend/test/test_llm.py+++ b/products/signals/backend/test/test_llm.py@@ -3,11 +3,6 @@ from unittest.mock import AsyncMock, MagicMock, patchfrom django.test import override_settings-from products.signals.backend.temporal.emit_eval_signal import (- EmitEvalSignalInputs,- EvalSignalSummary,- summarize_eval_for_signal,-)from products.signals.backend.temporal.llm import call_llmfrom products.signals.eval.llm_gen.client import CanonicalSignal, CanonicalSignalBatch, generate_canonical_signals@@ -97,28 +92,3 @@ async def test_eval_fixture_generation_opts_in_as_signals_eval():kwargs = generation_call.call_args.kwargsassert kwargs["ai_product"] == "signals_eval"assert kwargs["stage"] == "eval_signal_generation"---async def test_eval_signal_summary_opts_in_as_signals_eval():- inputs = EmitEvalSignalInputs(- team_id=1,- evaluation_id="eval-1",- evaluation_name="name",- evaluation_prompt="prompt",- event_uuid="event-1",- event_type="generation",- trace_id="trace-1",- reasoning="reasoning",- model="claude-sonnet-4-5",- provider="anthropic",- )- summary = EvalSignalSummary(title="t", description="d", significance=0.5)- with patch(- "products.signals.backend.temporal.emit_eval_signal.call_llm", new=AsyncMock(return_value=summary)- ) as summary_call:- await summarize_eval_for_signal(inputs)-- kwargs = summary_call.call_args.kwargs- assert kwargs["ai_product"] == "signals_eval"- assert kwargs["stage"] == "eval_signal_summary"diff --git a/products/signals/backend/test/test_signal_source_config_api.py b/products/signals/backend/test/test_signal_source_config_api.pyindex fa037bc66da0..4b6a504f593e 100644--- a/products/signals/backend/test/test_signal_source_config_api.py+++ b/products/signals/backend/test/test_signal_source_config_api.py@@ -487,16 +487,14 @@ class TestIsSourceEnabledGating(APIBaseTest):@parameterized.expand([- ("evaluation_requires_row", SignalSourceConfig.SourceType.EVALUATION, None, False),- ("evaluation_enabled_row", SignalSourceConfig.SourceType.EVALUATION, True, True),("evaluation_report_requires_row", SignalSourceConfig.SourceType.EVALUATION_REPORT, None, False),("evaluation_report_enabled_row", SignalSourceConfig.SourceType.EVALUATION_REPORT, True, True),("evaluation_report_disabled_row", SignalSourceConfig.SourceType.EVALUATION_REPORT, False, False),])def test_llm_analytics_gating(self, _name, source_type, existing_enabled, expected):- # llm_analytics has no always-on bypass: both evaluation and evaluation_report signals- # go through the standard config-row check.+ # llm_analytics has no always-on bypass: evaluation_report signals go through the+ # standard config-row check.if existing_enabled is not None:SignalSourceConfig.objects.create(team=self.team,diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 1bef283ddeea..6e3429dde2d6 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -3826,7 +3826,6 @@ export const SignalSourceConfigSourceProductEnumApi = {/*** * `session_analysis_cluster` - Session analysis cluster- * * `evaluation` - Evaluation* * `evaluation_report` - Evaluation report* * `issue` - Issue* * `ticket` - Ticket@@ -3849,7 +3848,6 @@ export type SignalSourceConfigSourceTypeEnumApi =export const SignalSourceConfigSourceTypeEnumApi = {SessionAnalysisCluster: 'session_analysis_cluster',- Evaluation: 'evaluation',EvaluationReport: 'evaluation_report',Issue: 'issue',Ticket: 'ticket',diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex a97cd3af95ea..301aa0296294 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -1323,7 +1323,6 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -1342,7 +1341,7 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({'ci_duration_regression',]).describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),enabled: zod.boolean().optional(),config: zod.unknown().optional(),@@ -1407,7 +1406,6 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -1426,7 +1424,7 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({'ci_duration_regression',]).describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),enabled: zod.boolean().optional(),config: zod.unknown().optional(),@@ -1492,7 +1490,6 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -1512,7 +1509,7 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(]).optional().describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),enabled: zod.boolean().optional(),config: zod.unknown().optional(),diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex 5d755a771303..5d328e6d9b71 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -272,15 +272,15 @@ tools:Create a signal source config for the current project, switching an inbox signal source on. A source ties a`source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay,llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid- `source_type` values: session_analysis_cluster, evaluation, evaluation_report, issue, ticket, issue_created,+ `source_type` values: session_analysis_cluster, evaluation_report, issue, ticket, issue_created,issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To surface AI observabilityevaluation report findings in the inbox, create `source_product=llm_analytics`,- `source_type=evaluation_report`. The Signals scout source is ON BY DEFAULT — scout findings reach the inbox- with no config row needed. The only reason to create a `source_product=signals_scout`,- `source_type=cross_source_issue` row is to OPT OUT: create it with `enabled=false` (the per-scout `emit`- flag is set separately via `scout-config-update`). There is at most one config per (source_product,- source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster- source requires the organization to have approved AI data processing.+ `source_type=evaluation_report` — there is no per-evaluation-run source. The Signals scout source is ON BY+ DEFAULT — scout findings reach the inbox with no config row needed. The only reason to create a+ `source_product=signals_scout`, `source_type=cross_source_issue` row is to OPT OUT: create it with+ `enabled=false` (the per-scout `emit` flag is set separately via `scout-config-update`). There is at most+ one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling+ the session_analysis_cluster source requires the organization to have approved AI data processing.inbox-source-configs-destroy:operation: signals_source_configs_destroyenabled: falsediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex afb0f7ebda7d..185b1911aa47 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -4847,7 +4847,7 @@}},"inbox-source-configs-create": {- "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation, evaluation_report, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To surface AI observability evaluation report findings in the inbox, create `source_product=llm_analytics`, `source_type=evaluation_report`. The Signals scout source is ON BY DEFAULT — scout findings reach the inbox with no config row needed. The only reason to create a `source_product=signals_scout`, `source_type=cross_source_issue` row is to OPT OUT: create it with `enabled=false` (the per-scout `emit` flag is set separately via `scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation_report, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To surface AI observability evaluation report findings in the inbox, create `source_product=llm_analytics`, `source_type=evaluation_report` — there is no per-evaluation-run source. The Signals scout source is ON BY DEFAULT — scout findings reach the inbox with no config row needed. The only reason to create a `source_product=signals_scout`, `source_type=cross_source_issue` row is to OPT OUT: create it with `enabled=false` (the per-scout `emit` flag is set separately via `scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.","category": "Signals","feature": "signals","summary": "Create signal source config",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 8b04aea8ff64..8b4f80176623 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -5030,7 +5030,7 @@}},"inbox-source-configs-create": {- "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation, evaluation_report, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To surface AI observability evaluation report findings in the inbox, create `source_product=llm_analytics`, `source_type=evaluation_report`. The Signals scout source is ON BY DEFAULT — scout findings reach the inbox with no config row needed. The only reason to create a `source_product=signals_scout`, `source_type=cross_source_issue` row is to OPT OUT: create it with `enabled=false` (the per-scout `emit` flag is set separately via `scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.",+ "description": "Create a signal source config for the current project, switching an inbox signal source on. A source ties a `source_product` to a `source_type` and an `enabled` flag. Valid `source_product` values: session_replay, llm_analytics, github, linear, zendesk, conversations, error_tracking, pganalyze, signals_scout, logs. Valid `source_type` values: session_analysis_cluster, evaluation_report, issue, ticket, issue_created, issue_reopened, issue_spiking, cross_source_issue, alert_state_change. To surface AI observability evaluation report findings in the inbox, create `source_product=llm_analytics`, `source_type=evaluation_report` — there is no per-evaluation-run source. The Signals scout source is ON BY DEFAULT — scout findings reach the inbox with no config row needed. The only reason to create a `source_product=signals_scout`, `source_type=cross_source_issue` row is to OPT OUT: create it with `enabled=false` (the per-scout `emit` flag is set separately via `scout-config-update`). There is at most one config per (source_product, source_type) per project; if one already exists, update it instead. Enabling the session_analysis_cluster source requires the organization to have approved AI data processing.","category": "Signals","feature": "signals","summary": "Create signal source config",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex ed5d2e3f7c7e..e46d937f0a4e 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -50926,7 +50926,6 @@ export namespace Schemas {/*** * `session_analysis_cluster` - Session analysis cluster- * * `evaluation` - Evaluation* * `evaluation_report` - Evaluation report* * `issue` - Issue* * `ticket` - Ticket@@ -50949,7 +50948,6 @@ export namespace Schemas {export const SignalSourceConfigSourceTypeEnum = {SessionAnalysisCluster: 'session_analysis_cluster',- Evaluation: 'evaluation',EvaluationReport: 'evaluation_report',Issue: 'issue',Ticket: 'ticket',diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex 171580406a9e..7d9b97a2c1b4 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -1856,7 +1856,6 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -1875,7 +1874,7 @@ export const SignalsSourceConfigsCreateBody = /* @__PURE__ */ zod.object({'ci_duration_regression',]).describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),enabled: zod.boolean().optional(),config: zod.unknown().optional(),@@ -1958,7 +1957,6 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -1977,7 +1975,7 @@ export const SignalsSourceConfigsUpdateBody = /* @__PURE__ */ zod.object({'ci_duration_regression',]).describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),enabled: zod.boolean().optional(),config: zod.unknown().optional(),@@ -2052,7 +2050,6 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(source_type: zod.enum(['session_analysis_cluster',- 'evaluation','evaluation_report','issue','ticket',@@ -2072,7 +2069,7 @@ export const SignalsSourceConfigsPartialUpdateBody = /* @__PURE__ */ zod.object(]).optional().describe(- '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation` - Evaluation\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'+ '\* `session_analysis_cluster` - Session analysis cluster\n\* `evaluation_report` - Evaluation report\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\n\* `anomaly_investigation` - Anomaly investigation\n\* `ci_flaky_check` - CI flaky check\n\* `ci_broken_default_branch` - CI broken default branch\n\* `ci_duration_regression` - CI duration regression'),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.jsonindex 255dc77ad585..41983a750d9b 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@@ -61,10 +61,9 @@"type": "string"},"source_type": {- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression",+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression","enum": ["session_analysis_cluster",- "evaluation","evaluation_report","issue","ticket",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.jsonindex 0b6539ebbd68..009bb4745f02 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@@ -65,10 +65,9 @@"type": "string"},"source_type": {- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression",+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression","enum": ["session_analysis_cluster",- "evaluation","evaluation_report","issue","ticket",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.jsonindex e312684bf66c..2a9e6d78a544 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@@ -65,10 +65,9 @@"type": "string"},"source_type": {- "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation` - Evaluation\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression",+ "description": "* `session_analysis_cluster` - Session analysis cluster\n* `evaluation_report` - Evaluation report\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\n* `anomaly_investigation` - Anomaly investigation\n* `ci_flaky_check` - CI flaky check\n* `ci_broken_default_branch` - CI broken default branch\n* `ci_duration_regression` - CI duration regression","enum": ["session_analysis_cluster",- "evaluation","evaluation_report","issue","ticket",