:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): move the anomaly scoring switch into the product analytics source (#130566)
posthog[bot]fb75476b8a9b
diff --git a/products/signals/backend/anomaly_scores/queue.py b/products/signals/backend/anomaly_scores/queue.pyindex 6f50b4e2c903..08d176a99d6f 100644--- a/products/signals/backend/anomaly_scores/queue.py+++ b/products/signals/backend/anomaly_scores/queue.py@@ -297,7 +297,7 @@ def eligible_teams(config: AnomalyScoringConfig) -> list[Team]:def turned_off_in_settings(team: Team) -> bool:- """Whether the project turned anomaly scoring off in its self-driving settings. A team without a config row is on."""+ """Whether the project turned anomaly scoring off in its Product analytics source. A team without a config row is on."""return SignalTeamConfig.objects.filter(team_id=team.id, anomaly_scoring_enabled=False).exists()diff --git a/products/signals/backend/anomaly_scores/search.py b/products/signals/backend/anomaly_scores/search.pyindex b1f352600e34..cd92e0f85671 100644--- a/products/signals/backend/anomaly_scores/search.py+++ b/products/signals/backend/anomaly_scores/search.py@@ -59,7 +59,7 @@ SCORING_SOURCE_OFF_MESSAGE = ("Scores written before it was turned off stay readable.")SCORING_TURNED_OFF_MESSAGE = (- "Anomaly scoring is turned off in this project's self-driving settings, so no insight is scored. "+ "Anomaly scoring is turned off in this project's Product analytics source, so no insight is scored. ""Scores written before it was turned off stay readable.")diff --git a/products/signals/backend/presentation/anomalies.py b/products/signals/backend/presentation/anomalies.pyindex 10b1361e01fe..581bcb3720da 100644--- a/products/signals/backend/presentation/anomalies.py+++ b/products/signals/backend/presentation/anomalies.py@@ -221,7 +221,7 @@ class AnomalySearchResponseSerializer(serializers.Serializer):scoring_enabled = serializers.BooleanField(help_text=("Whether anomaly scoring scores this project now. False when scoring does not cover the "- "project, or when the project turned it off in its self-driving settings. Scores written "+ "project, or when the project turned it off in its Product analytics source. Scores written ""before scoring was turned off are still returned."))@@ -304,7 +304,7 @@ class AnomalyInsightResponseSerializer(serializers.Serializer):scoring_enabled = serializers.BooleanField(help_text=("Whether anomaly scoring scores this project now. False when scoring does not cover the "- "project, or when the project turned it off in its self-driving settings. Scores written "+ "project, or when the project turned it off in its Product analytics source. Scores written ""before scoring was turned off are still returned."))diff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.pyindex d3a0ed51c6c7..4f76df88e530 100644--- a/products/signals/backend/serializers.py+++ b/products/signals/backend/serializers.py@@ -588,11 +588,12 @@ class SignalTeamConfigSerializer(serializers.ModelSerializer):anomaly_scoring_enabled = serializers.BooleanField(required=False,help_text=(- "Legacy off switch for anomaly scoring. The Product analytics source (analytics / "- "anomaly_investigation) now controls scoring: when that source is on, anomaly scoring scores "- "this project's active trends insights and writes the results as $anomaly_score events, which "- "are not billed. True by default. False still stops new scores; events written before stay. "- "Turning it on does not enroll a project that anomaly_scoring_available reports as not covered."+ "Whether anomaly scoring runs while the Product analytics source (analytics / anomaly_investigation) "+ "is on. Scoring checks this project's active trends insights for anomalies and writes the results "+ "as $anomaly_score events, which are not billed. True by default. False stops new scores and keeps "+ "alert signals; events written before stay. Turning the source off stops scoring whatever this "+ "value is, and turning the source on again keeps this value. Turning it on does not enroll a "+ "project that anomaly_scoring_available reports as not covered."),)anomaly_scoring_available = serializers.SerializerMethodField(diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 7d47b223fcfa..8869174031d0 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -492,7 +492,7 @@ export interface AnomalyInsightSeriesApi {}export interface AnomalyInsightResponseApi {- /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its self-driving settings. Scores written before scoring was turned off are still returned. */+ /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its Product analytics source. Scores written before scoring was turned off are still returned. */scoring_enabled: boolean/** The numeric id of the insight. */insight_id: number@@ -710,7 +710,7 @@ export interface AnomalyInsightRowApi {}export interface AnomalySearchResponseApi {- /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its self-driving settings. Scores written before scoring was turned off are still returned. */+ /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its Product analytics source. Scores written before scoring was turned off are still returned. */scoring_enabled: boolean/** Active insights that scoring checks: saved trends insights that a person viewed, that sit on a dashboard someone opened, or that were edited in the active window (90 days by default), or that have an enabled alert or subscription. */watched_insights: number@@ -833,7 +833,7 @@ export interface SignalTeamConfigApi {* @items.maxLength 255*/implementation_repositories?: string[]- /** Legacy off switch for anomaly scoring. The Product analytics source (analytics / anomaly_investigation) now controls scoring: when that source is on, anomaly scoring scores this project's active trends insights and writes the results as $anomaly_score events, which are not billed. True by default. False still stops new scores; events written before stay. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered. */+ /** Whether anomaly scoring runs while the Product analytics source (analytics / anomaly_investigation) is on. Scoring checks this project's active trends insights for anomalies and writes the results as $anomaly_score events, which are not billed. True by default. False stops new scores and keeps alert signals; events written before stay. Turning the source off stops scoring whatever this value is, and turning the source on again keeps this value. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered. */anomaly_scoring_enabled?: boolean/** Whether the anomaly scoring rollout covers this project. PostHog decides which projects it covers. A covered project is scored only while its Product analytics source is on. */readonly anomaly_scoring_available: booleandiff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex 911206ecf22d..ab39720dd0e5 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -140,7 +140,7 @@ export const SignalsConfigCreateBody = /* @__PURE__ */ zod.object({.boolean().optional().describe(- "Legacy off switch for anomaly scoring. The Product analytics source (analytics \/ anomaly_investigation) now controls scoring: when that source is on, anomaly scoring scores this project's active trends insights and writes the results as $anomaly_score events, which are not billed. True by default. False still stops new scores; events written before stay. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered."+ "Whether anomaly scoring runs while the Product analytics source (analytics \/ anomaly_investigation) is on. Scoring checks this project's active trends insights for anomalies and writes the results as $anomaly_score events, which are not billed. True by default. False stops new scores and keeps alert signals; events written before stay. Turning the source off stops scoring whatever this value is, and turning the source on again keeps this value. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered."),})diff --git a/products/signals/frontend/inbox/components/config/AgentsRoster.test.tsx b/products/signals/frontend/inbox/components/config/AgentsRoster.test.tsxindex 7971c3ab8ffe..2915560234f1 100644--- a/products/signals/frontend/inbox/components/config/AgentsRoster.test.tsx+++ b/products/signals/frontend/inbox/components/config/AgentsRoster.test.tsx@@ -9,6 +9,7 @@ import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { useMocks } from '~/mocks/jest'import { initKeaTests } from '~/test/init'+import { signalTeamConfigLogic } from '../../logics/signalTeamConfigLogic'import { signalSourcesLogic } from '../../signalSourcesLogic'import { SourcesTab } from '../tabs/SourcesTab'import { AgentsRoster } from './AgentsRoster'@@ -237,6 +238,61 @@ describe('AgentsRoster', () => {})+ // `anomaly_scoring_available` ignores the source state, so the roster has to gate the switch on it.+ it.each([+ { armed: true, available: true, shown: true },+ { armed: false, available: true, shown: false },+ { armed: true, available: false, shown: false },+ ])(+ 'shows the anomaly scoring switch=$shown when the source is armed=$armed and scoring is available=$available',+ async ({ armed, available, shown }) => {+ const patches: Record<string, unknown>[] = []+ useMocks({+ get: {+ '/api/projects/:team_id/signals/source_configs/': {+ results: [+ {+ id: 'analytics',+ source_product: 'analytics',+ source_type: 'anomaly_investigation',+ enabled: armed,+ config: {},+ },+ ],+ },+ '/api/projects/:team_id/signals/config/': () => [+ 200,+ { anomaly_scoring_enabled: true, anomaly_scoring_available: available },+ ],+ },+ post: {+ '/api/projects/:team_id/signals/config/': async ({ request }) => {+ const patch = (await request.json()) as Record<string, unknown>+ patches.push(patch)+ return [200, { anomaly_scoring_available: available, ...patch }]+ },+ },+ })+ render(<AgentsRoster />)+ await waitFor(() => expect(signalTeamConfigLogic.values.teamConfig).not.toBeNull())++ const [expandButton] = await screen.findAllByLabelText('Expand Product analytics')+ await userEvent.click(expandButton)+ expect(await screen.findByText('Alerts that become signals')).toBeInTheDocument()++ const scoringSwitch = (): HTMLElement | null =>+ screen.queryByLabelText('Score active trends insights for anomalies')+ if (!shown) {+ expect(scoringSwitch()).not.toBeInTheDocument()+ return+ }+ await waitFor(() => expect(scoringSwitch()).toBeChecked())+ await userEvent.click(scoringSwitch()!)+ await waitFor(() => expect(patches).toEqual([{ anomaly_scoring_enabled: false }]))+ await waitFor(() => expect(scoringSwitch()).not.toBeChecked())+ }+ )+it('caps the scanner list, and lets both the filter and Show more reach past the cap', async () => {render(<AgentsRoster />)await userEvent.click(await screen.findByText('Replay vision'))diff --git a/products/signals/frontend/inbox/components/config/AgentsRoster.tsx b/products/signals/frontend/inbox/components/config/AgentsRoster.tsxindex 3310f8325b4b..80909c6ae29a 100644--- a/products/signals/frontend/inbox/components/config/AgentsRoster.tsx+++ b/products/signals/frontend/inbox/components/config/AgentsRoster.tsx@@ -125,6 +125,13 @@ interface SourceAlertScope {disabledReason?: string}+/** Product analytics only: whether anomaly scoring runs while the source is on. */+interface SourceAnomalyScoring {+ enabled: boolean+ onChange: (enabled: boolean) => void+ saving: boolean+}+// Replaces the source detail while the alert scope control shows, since the default copy only covers investigated alerts.const ALERT_SCOPE_SOURCE_DETAIL = 'Fires when an insight alert goes off. Choose which alerts count below.'@@ -246,8 +253,6 @@ function EntityRow({interface ExpansionProps {agent: AgentRosterDefinition- /** A second line under the detail, for a setting that only some projects have. */- note?: stringstate: AgentSourceStateproduct?: SourceProductStatusenablingProduct: boolean@@ -255,6 +260,8 @@ interface ExpansionProps {onToggleEntity: (entityId: string) => voidfilters?: SourceFiltersalertScope?: SourceAlertScope+ /** Only set while the source is on for a project the anomaly scoring rollout covers. */+ anomalyScoring?: SourceAnomalyScoring/** Opens the steering form. Only set for steerable sources that are on with a persisted config row. */onSteer?: () => voidonRetryData: () => void@@ -318,7 +325,6 @@ function ProductDataStatus({function Expansion({agent,- note,state,product,enablingProduct,@@ -326,6 +332,7 @@ function Expansion({onToggleEntity,filters,alertScope,+ anomalyScoring,onSteer,onRetryData,}: ExpansionProps): JSX.Element {@@ -367,7 +374,6 @@ function Expansion({<span>{alertScope ? ALERT_SCOPE_SOURCE_DETAIL : agent.detail}</span>{!hasMetaLine && docsLink ? <span> {docsLink}</span> : null}</p>- {note && <p className="mb-0 text-xs text-secondary">{note}</p>}{hasMetaLine && (<div className="flex flex-wrap items-center justify-between gap-2">@@ -447,6 +453,24 @@ function Expansion({)}</div>)}+ {anomalyScoring && (+ <div className="flex items-start justify-between gap-3 pt-1">+ <div className="flex min-w-0 flex-col gap-0.5">+ <span className="text-xs font-semibold text-default">Anomaly scoring</span>+ <span className="text-xs text-secondary">+ Checks your active trends insights for anomalies and saves the results as $anomaly_score+ events, which are not billed. Turn it off to keep alert signals without scoring.+ </span>+ </div>+ <LemonSwitch+ checked={anomalyScoring.enabled}+ onChange={anomalyScoring.onChange}+ loading={anomalyScoring.saving}+ aria-label="Score active trends insights for anomalies"+ data-attr="signals-anomaly-scoring-enabled"+ />+ </div>+ )}</div>{state.entitiesLoading ? (@@ -527,7 +551,6 @@ function Expansion({interface AgentRowProps {agent: AgentRosterDefinition- note?: stringstate: AgentSourceStateproduct?: SourceProductStatusexpanded: boolean@@ -538,13 +561,13 @@ interface AgentRowProps {onEnableProduct: (product: SourceProductStatus) => voidfilters?: SourceFiltersalertScope?: SourceAlertScope+ anomalyScoring?: SourceAnomalyScoringonSteer?: () => voidonRetryData: () => void}const AgentRow = memo(function AgentRow({agent,- note,state,product,expanded,@@ -555,6 +578,7 @@ const AgentRow = memo(function AgentRow({onEnableProduct,filters,alertScope,+ anomalyScoring,onSteer,onRetryData,}: AgentRowProps): JSX.Element {@@ -672,7 +696,6 @@ const AgentRow = memo(function AgentRow({{expanded && (<Expansionagent={agent}- note={note}state={state}product={product}enablingProduct={enablingProduct}@@ -680,6 +703,7 @@ const AgentRow = memo(function AgentRow({onToggleEntity={(entityId) => onToggleEntity(agent.source, entityId)}filters={filters}alertScope={alertScope}+ anomalyScoring={anomalyScoring}onSteer={onSteer}onRetryData={onRetryData}/>@@ -696,11 +720,9 @@ function AgentRosterGroupHeader({ group }: { group: AgentRosterGroup }): JSX.Elereturn <h4 className="m-0 text-sm font-semibold text-default">{group.label}</h4>}-const ANOMALY_SCORING_NOTE =- 'This source also checks your active trends insights for anomalies and saves the results as $anomaly_score events, which are free.'-export function AgentsRoster(): JSX.Element {- const { anomalyScoringAvailable } = useValues(signalTeamConfigLogic)+ const { anomalyScoringAvailable, anomalyScoringEnabled, teamConfigUpdating } = useValues(signalTeamConfigLogic)+ const { patchTeamConfig } = useActions(signalTeamConfigLogic)const {externalSourceStates,rosterGroups,@@ -995,6 +1017,20 @@ export function AgentsRoster(): JSX.Element {isAnomalyInvestigationToggling,])+ // `anomaly_scoring_available` only reports the rollout, so the source state gates the switch here.+ const analyticsArmed = stateFor('analytics').armed+ const anomalyScoring = useMemo(+ (): SourceAnomalyScoring | undefined =>+ analyticsArmed && anomalyScoringAvailable+ ? {+ enabled: anomalyScoringEnabled,+ onChange: (enabled) => patchTeamConfig({ anomaly_scoring_enabled: enabled }),+ saving: teamConfigUpdating,+ }+ : undefined,+ [analyticsArmed, anomalyScoringAvailable, anomalyScoringEnabled, patchTeamConfig, teamConfigUpdating]+ )+const renderAgent = useCallback((agent: AgentRosterDefinition): JSX.Element => {const state = stateFor(agent.source)@@ -1026,7 +1062,6 @@ export function AgentsRoster(): JSX.Element {<AgentRowkey={agent.source}agent={agent}- note={agent.source === 'analytics' && anomalyScoringAvailable ? ANOMALY_SCORING_NOTE : undefined}state={state}product={productStatusBySource[agent.source]}expanded={expandedSource === agent.source}@@ -1039,6 +1074,7 @@ export function AgentsRoster(): JSX.Element {onEnableProduct={(product) => product.enablement && enableSourceProduct(product.enablement)}filters={filters}alertScope={agent.source === 'analytics' ? alertScope : undefined}+ anomalyScoring={agent.source === 'analytics' ? anomalyScoring : undefined}onSteer={steeringConfigs? () => setSteeringTarget({ configs: steeringConfigs, label: agent.label })@@ -1051,7 +1087,6 @@ export function AgentsRoster(): JSX.Element {[stateFor,linearIssuesConfig,- anomalyScoringAvailable,openLinearTeamsPicker,isLinearIssuesToggling,sourceConfigsLoading,@@ -1063,6 +1098,7 @@ export function AgentsRoster(): JSX.Element {enableSourceProduct,loadProductDataEvents,alertScope,+ anomalyScoring,])diff --git a/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx b/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsxindex a9a25425e55d..3eedca3fee8d 100644--- a/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx+++ b/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx@@ -733,31 +733,6 @@ function PullRequestLabelRow(): JSX.Element {)}-/**- * The Product analytics source controls anomaly scoring now. This row only renders for a covered project- * that turned scoring off with the older setting, so it can turn scoring back on.- */-function AnomalyScoringRow(): JSX.Element {- const { anomalyScoringEnabled, teamConfigUpdating } = useValues(signalTeamConfigLogic)- const { patchTeamConfig } = useActions(signalTeamConfigLogic)-- return (- <AutonomySettingRow- title="Anomaly scoring"- description="Scoring is off for this project from an earlier setting. Turn it on to check your active trends insights for anomalies again. After that, the Product analytics source turns scoring on and off."- control={- <LemonSwitch- checked={anomalyScoringEnabled}- loading={teamConfigUpdating}- onChange={(enabled) => patchTeamConfig({ anomaly_scoring_enabled: enabled })}- aria-label="Score active trends insights for anomalies"- data-attr="signals-anomaly-scoring-enabled"- />- }- />- )-}-/*** Per-user opt-in to being added as a GitHub assignee on the implementation PR for reports that* suggest this user as reviewer. Off by default, because being assigned is visible to everybody on@@ -942,8 +917,7 @@ function PullRequestGenerationRow(): JSX.Element {* applies to, and every row shares one shape (`AutonomySettingRow`).*/export function SelfDrivingSection(): JSX.Element {- const { teamConfig, teamConfigLoading, anomalyScoringAvailable, anomalyScoringEnabled } =- useValues(signalTeamConfigLogic)+ const { teamConfig, teamConfigLoading } = useValues(signalTeamConfigLogic)if (teamConfigLoading && teamConfig === null) {return <LemonSkeleton className="h-20 w-full rounded" />@@ -970,7 +944,6 @@ export function SelfDrivingSection(): JSX.Element {</AutonomySettingGroup><AutonomySettingGroup title="Reports" description="Applies to everyone in this project."><DailyReportLimitRow />- {anomalyScoringAvailable && !anomalyScoringEnabled && <AnomalyScoringRow />}</AutonomySettingGroup></div>)diff --git a/products/signals/frontend/inbox/components/tabs/SourcesTab.stories.tsx b/products/signals/frontend/inbox/components/tabs/SourcesTab.stories.tsxindex e7127c3b0283..9f62e33fc3c0 100644--- a/products/signals/frontend/inbox/components/tabs/SourcesTab.stories.tsx+++ b/products/signals/frontend/inbox/components/tabs/SourcesTab.stories.tsx@@ -41,6 +41,9 @@ interface PanelState {eventDefinitionsUnavailable: booleansourceConfigsUnavailable: booleanexternalConnections: boolean+ // Team config (signals/config)+ anomalyScoringAvailable: boolean+ anomalyScoringEnabled: boolean}function sourceConfig(@@ -229,6 +232,13 @@ function PanelHarness(state: PanelState): JSX.Element {conversations_enabled: state.conversationsOn,},],+ '/api/projects/:team_id/signals/config/': () => [+ 200,+ {+ anomaly_scoring_available: state.anomalyScoringAvailable,+ anomaly_scoring_enabled: state.anomalyScoringEnabled,+ },+ ],'/api/projects/:team_id/signals/source_configs/': () =>state.sourceConfigsUnavailable? [500, { detail: 'A server error occurred.' }]@@ -317,6 +327,8 @@ const meta: Meta<typeof PanelHarness> = {eventDefinitionsUnavailable: false,sourceConfigsUnavailable: false,externalConnections: false,+ anomalyScoringAvailable: true,+ anomalyScoringEnabled: true,},}export default meta@@ -441,7 +453,7 @@ export const ErrorTrackingExpanded: Story = {},}-/** Product analytics opened with the all-alerts flag on: the choice between investigated alerts, every firing alert, and off. */+/** Product analytics opened with the all-alerts flag on: the alert scope choice, and the anomaly scoring switch. */export const ProductAnalyticsAlertScope: Story = {args: { productAnalyticsArmed: true },parameters: {diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 7a676ec5703b..c18b77330b0c 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -14320,7 +14320,7 @@ export namespace Schemas {}export interface AnomalyInsightResponse {- /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its self-driving settings. Scores written before scoring was turned off are still returned. */+ /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its Product analytics source. Scores written before scoring was turned off are still returned. */scoring_enabled: boolean;/** The numeric id of the insight. */insight_id: number;@@ -14512,7 +14512,7 @@ export namespace Schemas {}export interface AnomalySearchResponse {- /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its self-driving settings. Scores written before scoring was turned off are still returned. */+ /** Whether anomaly scoring scores this project now. False when scoring does not cover the project, or when the project turned it off in its Product analytics source. Scores written before scoring was turned off are still returned. */scoring_enabled: boolean;/** Active insights that scoring checks: saved trends insights that a person viewed, that sit on a dashboard someone opened, or that were edited in the active window (90 days by default), or that have an enabled alert or subscription. */watched_insights: number;@@ -108136,7 +108136,7 @@ export namespace Schemas {* @items.maxLength 255*/implementation_repositories?: string[];- /** Legacy off switch for anomaly scoring. The Product analytics source (analytics / anomaly_investigation) now controls scoring: when that source is on, anomaly scoring scores this project's active trends insights and writes the results as $anomaly_score events, which are not billed. True by default. False still stops new scores; events written before stay. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered. */+ /** Whether anomaly scoring runs while the Product analytics source (analytics / anomaly_investigation) is on. Scoring checks this project's active trends insights for anomalies and writes the results as $anomaly_score events, which are not billed. True by default. False stops new scores and keeps alert signals; events written before stay. Turning the source off stops scoring whatever this value is, and turning the source on again keeps this value. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered. */anomaly_scoring_enabled?: boolean;/** Whether the anomaly scoring rollout covers this project. PostHog decides which projects it covers. A covered project is scored only while its Product analytics source is on. */readonly anomaly_scoring_available: boolean;diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex 86e426470e7b..0a76438461bf 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -389,7 +389,7 @@ export const SignalsConfigCreateBody = () => zod.object({.boolean().optional().describe(- "Legacy off switch for anomaly scoring. The Product analytics source (analytics \/ anomaly_investigation) now controls scoring: when that source is on, anomaly scoring scores this project's active trends insights and writes the results as $anomaly_score events, which are not billed. True by default. False still stops new scores; events written before stay. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered."+ "Whether anomaly scoring runs while the Product analytics source (analytics \/ anomaly_investigation) is on. Scoring checks this project's active trends insights for anomalies and writes the results as $anomaly_score events, which are not billed. True by default. False stops new scores and keeps alert signals; events written before stay. Turning the source off stops scoring whatever this value is, and turning the source on again keeps this value. Turning it on does not enroll a project that anomaly_scoring_available reports as not covered."),})