Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(experiments): offer the wizard's scanner only with experiment-scanner (#116665)

Kim Svatos Dugan74404844ced6
diff --git a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.test.ts b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.test.ts
index 7e6feeb0b795..276c4dff44f1 100644
--- a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.test.ts
+++ b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.test.ts
@@ -4,9 +4,7 @@ import { router } from 'kea-router'
import { expectLogic, partial } from 'kea-test-utils'
import posthog from 'posthog-js'
-import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { refreshTreeItem } from '~/layout/panel-layout/ProjectTree/projectTreeLogic'
import { useMocks } from '~/mocks/jest'
@@ -151,7 +149,6 @@ describe('createExperimentLogic', () => {
})
it('creates a scanner scoped to enrolled experiment sessions when selected', async () => {
- featureFlagLogic.actions.setFeatureFlags([], { [FEATURE_FLAGS.VISION_EXPERIMENT_SCANNER]: true })
await expectLogic(logic, () => {
logic.actions.setCreateReplayVisionScanner(true)
logic.actions.setExperiment({
@@ -220,9 +217,6 @@ describe('createExperimentLogic', () => {
name: 'a generic failure is reported to error tracking',
response: [500, { detail: 'Scanner unavailable' }] as [number, Record<string, unknown>],
shouldCapture: true,
- experimentScanners: false,
- message: "Experiment created, but the Replay Vision scanner wasn't.",
- retry: { label: 'Set up scanner', url: '/replay-vision/new/template' },
},
{
// Missing org AI consent is user-correctable config, not a defect: keep it out of error
@@ -230,55 +224,38 @@ describe('createExperimentLogic', () => {
name: 'a missing AI consent 400 is not reported to error tracking',
response: [400, { code: 'ai_data_processing_not_approved' }] as [number, Record<string, unknown>],
shouldCapture: false,
- experimentScanners: false,
- message: "Experiment created, but the Replay Vision scanner wasn't.",
- retry: { label: 'Set up scanner', url: '/replay-vision/new/template' },
},
- {
- // The retry must reopen the experiment scanner wizard on this experiment, not the generic
- // template list, or the person starts over without the experiment.
- name: 'with experiment scanners the retry opens the experiment scanner wizard',
- response: [500, { detail: 'Scanner unavailable' }] as [number, Record<string, unknown>],
- shouldCapture: true,
- experimentScanners: true,
- message: "Experiment created, but the experiment scanner wasn't.",
- retry: { label: 'Set up experiment scanner', url: '/replay-vision/new/template?experiment=123' },
- },
- ])(
- 'keeps the created experiment when scanner creation fails: $name',
- async ({ response, shouldCapture, experimentScanners, message, retry }) => {
- featureFlagLogic.actions.setFeatureFlags([], {
- [FEATURE_FLAGS.VISION_EXPERIMENT_SCANNER]: experimentScanners,
+ ])('keeps the created experiment when scanner creation fails: $name', async ({ response, shouldCapture }) => {
+ const captureExceptionSpy = jest.spyOn(posthog, 'captureException').mockImplementation(() => undefined)
+ scannerCreateSpy.mockResolvedValueOnce(response)
+ await expectLogic(logic, () => {
+ logic.actions.setCreateReplayVisionScanner(true)
+ logic.actions.setExperiment({
+ ...NEW_EXPERIMENT,
+ name: 'Test Experiment',
+ description: 'Test hypothesis',
+ feature_flag_key: 'test-experiment',
})
- const captureExceptionSpy = jest.spyOn(posthog, 'captureException').mockImplementation(() => undefined)
- scannerCreateSpy.mockResolvedValueOnce(response)
- await expectLogic(logic, () => {
- logic.actions.setCreateReplayVisionScanner(true)
- logic.actions.setExperiment({
- ...NEW_EXPERIMENT,
- name: 'Test Experiment',
- description: 'Test hypothesis',
- feature_flag_key: 'test-experiment',
- })
- logic.actions.saveExperiment()
+ logic.actions.saveExperiment()
+ })
+ .toDispatchActions(['saveExperiment', 'createExperimentSuccess', 'saveExperimentSuccess'])
+ .toFinishAllListeners()
+
+ expect(routerPushSpy).toHaveBeenCalledWith('/experiments/123')
+ expect(lemonToast.error).toHaveBeenCalledWith(
+ "Experiment created, but the experiment scanner wasn't.",
+ expect.objectContaining({
+ button: expect.objectContaining({ label: 'Set up experiment scanner' }),
})
- .toDispatchActions(['saveExperiment', 'createExperimentSuccess', 'saveExperimentSuccess'])
- .toFinishAllListeners()
-
- expect(routerPushSpy).toHaveBeenCalledWith('/experiments/123')
- expect(lemonToast.error).toHaveBeenCalledWith(
- message,
- expect.objectContaining({
- button: expect.objectContaining({ label: retry.label }),
- })
- )
- const [, { button }] = (lemonToast.error as jest.Mock).mock.calls.at(-1)
- button.action()
- expect(routerPushSpy).toHaveBeenLastCalledWith(retry.url)
- expect(captureExceptionSpy).toHaveBeenCalledTimes(shouldCapture ? 1 : 0)
- captureExceptionSpy.mockRestore()
- }
- )
+ )
+ const [, { button }] = (lemonToast.error as jest.Mock).mock.calls.at(-1)
+ button.action()
+ // The retry must reopen the experiment scanner wizard on this experiment, not the generic
+ // template list, or the person starts over without the experiment.
+ expect(routerPushSpy).toHaveBeenLastCalledWith('/replay-vision/new/template?experiment=123')
+ expect(captureExceptionSpy).toHaveBeenCalledTimes(shouldCapture ? 1 : 0)
+ captureExceptionSpy.mockRestore()
+ })
it('refreshes tree items for experiment and feature flag after creation', async () => {
await expectLogic(logic, () => {
diff --git a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
index 5d49b8db21b4..92435afb7799 100644
--- a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
+++ b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
@@ -5,9 +5,7 @@ import posthog from 'posthog-js'
import { ApiError } from 'lib/api-error'
import { tryShowMCPHint } from 'lib/components/MCPHint/mcpHintLogic'
import { SetupTaskId, globalSetupLogic } from 'lib/components/ProductSetup'
-import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { FeatureFlagsSet, featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { featureFlagsLogic } from 'scenes/feature-flags/featureFlagsLogic'
import { projectLogic } from 'scenes/projectLogic'
import { teamLogic } from 'scenes/teamLogic'
@@ -71,7 +69,6 @@ export interface CreateExperimentLogicProps {}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface createExperimentLogicValues {
- featureFlags: FeatureFlagsSet // featureFlagLogic
currentProjectId: number | null // projectLogic
featureFlagKeyValidation: FeatureFlagKeyValidation | null // variantsPanelLogic
featureFlagKeyValidationLoading: boolean // variantsPanelLogic
@@ -203,8 +200,6 @@ export const createExperimentLogic = kea<createExperimentLogicType>([
['featureFlagKeyValidation', 'featureFlagKeyValidationLoading'],
projectLogic,
['currentProjectId'],
- featureFlagLogic,
- ['featureFlags'],
],
actions: [featureFlagsLogic, ['updateFlag'], teamLogic, ['addProductIntent', 'addProductIntentForCrossSell']],
})),
@@ -506,12 +501,11 @@ export const createExperimentLogic = kea<createExperimentLogicType>([
let replayScannerId: string | null = null
let replayScannerCreationFailed = false
- const experimentScanners = !!values.featureFlags[FEATURE_FLAGS.VISION_EXPERIMENT_SCANNER]
if (values.createReplayVisionScanner) {
try {
const replayScanner = await visionScannersCreate(
String(values.currentProjectId),
- experimentScannerBody(response, experimentScanners)
+ experimentScannerBody(response)
)
replayScannerId = replayScanner.id
actions.addProductIntentForCrossSell({
@@ -537,36 +531,24 @@ export const createExperimentLogic = kea<createExperimentLogicType>([
}
if (replayScannerCreationFailed) {
- lemonToast.error(
- experimentScanners
- ? "Experiment created, but the experiment scanner wasn't."
- : "Experiment created, but the Replay Vision scanner wasn't.",
- {
- button: experimentScanners
- ? {
- label: 'Set up experiment scanner',
- action: () =>
- router.actions.push(
- combineUrl(
- urls.replayVisionScannerTemplate('new'),
- experimentScannerParams({
- experimentId: response.id as number,
- variantKey: null,
- })
- ).url
- ),
- }
- : {
- label: 'Set up scanner',
- action: () => router.actions.push(urls.replayVisionTemplates()),
- },
- }
- )
+ lemonToast.error("Experiment created, but the experiment scanner wasn't.", {
+ button: {
+ label: 'Set up experiment scanner',
+ action: () =>
+ router.actions.push(
+ combineUrl(
+ urls.replayVisionScannerTemplate('new'),
+ experimentScannerParams({
+ experimentId: response.id as number,
+ variantKey: null,
+ })
+ ).url
+ ),
+ },
+ })
} else if (replayScannerId) {
lemonToast.success(
- experimentScanners
- ? 'Experiment created. The experiment scanner turns on when you launch the experiment.'
- : 'Experiment created. The Replay Vision scanner is off until you turn it on.',
+ 'Experiment created. The experiment scanner turns on when you launch the experiment.',
{
button: {
label: 'View scanner',
diff --git a/frontend/src/scenes/experiments/ExperimentWizard/experimentWizardLogic.test.tsx b/frontend/src/scenes/experiments/ExperimentWizard/experimentWizardLogic.test.tsx
index 8d088e9a6544..0bbd84b21102 100644
--- a/frontend/src/scenes/experiments/ExperimentWizard/experimentWizardLogic.test.tsx
+++ b/frontend/src/scenes/experiments/ExperimentWizard/experimentWizardLogic.test.tsx
@@ -7,6 +7,8 @@ import userEvent from '@testing-library/user-event'
import { BindLogic } from 'kea'
import { expectLogic, partial } from 'kea-test-utils'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { featureFlagsLogic } from 'scenes/feature-flags/featureFlagsLogic'
import { useMocks } from '~/mocks/jest'
@@ -856,6 +858,7 @@ describe('experimentWizardLogic', () => {
logic = experimentWizardLogic()
logic.mount()
+ featureFlagLogic.actions.setFeatureFlags([], { [FEATURE_FLAGS.VISION_EXPERIMENT_SCANNER]: true })
})
afterEach(() => {
@@ -893,7 +896,7 @@ describe('experimentWizardLogic', () => {
;(global as any).__consentAccepted = accepted
renderAnalyticsStep()
- await userEvent.click(screen.getByText('Watch participant behavior with Replay Vision'))
+ await userEvent.click(screen.getByText('Compare what users do in each variant'))
// Without the gate the unconsented tick lands in the logic, and the save path then
// creates a scanner the backend refuses with the consent 400.
@@ -913,5 +916,14 @@ describe('experimentWizardLogic', () => {
expect(screen.getByText(/Each scanned session costs/)).toBeInTheDocument()
})
+
+ it('offers no scanner without the experiment-scanner flag', () => {
+ ;(global as any).__consentAccepted = true
+ featureFlagLogic.actions.setFeatureFlags([], {})
+
+ renderAnalyticsStep()
+
+ expect(screen.queryByText(/Each scanned session costs/)).not.toBeInTheDocument()
+ })
})
})
diff --git a/frontend/src/scenes/experiments/ExperimentWizard/steps/AnalyticsStep.tsx b/frontend/src/scenes/experiments/ExperimentWizard/steps/AnalyticsStep.tsx
index ab13ca7a86a1..b108f8896c19 100644
--- a/frontend/src/scenes/experiments/ExperimentWizard/steps/AnalyticsStep.tsx
+++ b/frontend/src/scenes/experiments/ExperimentWizard/steps/AnalyticsStep.tsx
@@ -19,6 +19,7 @@ import { experimentWizardLogic } from '../experimentWizardLogic'
export function AnalyticsStep(): JSX.Element {
const { experiment, sharedMetrics } = useValues(experimentWizardLogic)
const { setExperiment, setExposureCriteria, setSharedMetrics } = useActions(experimentWizardLogic)
+ const experimentScanners = useFeatureFlag('VISION_EXPERIMENT_SCANNER')
return (
<div className="space-y-6">
@@ -93,7 +94,7 @@ export function AnalyticsStep(): JSX.Element {
</div>
</div>
- <ReplayVisionScannerCheckbox />
+ {experimentScanners && <ReplayVisionScannerCheckbox />}
</div>
)
}
@@ -106,7 +107,6 @@ function ReplayVisionScannerCheckbox(): JSX.Element {
const { setCreateReplayVisionScanner } = useActions(experimentWizardLogic)
const { dataProcessingAccepted } = useValues(aiConsentLogic)
const [consentRequested, setConsentRequested] = useState(false)
- const experimentScanners = useFeatureFlag('VISION_EXPERIMENT_SCANNER')
const checkbox = (
<LemonCheckbox
@@ -125,19 +125,13 @@ function ReplayVisionScannerCheckbox(): JSX.Element {
label={
<div className="py-3">
<div className="flex items-center gap-2 font-semibold">
- {experimentScanners ? (
- <>
- <IconSparkles className="text-ai" />
- Compare what users do in each variant
- </>
- ) : (
- 'Watch participant behavior with Replay Vision'
- )}
+ <IconSparkles className="text-ai" />
+ Compare what users do in each variant
</div>
<div className="mt-1 font-normal text-sm text-muted">
- {experimentScanners
- ? 'Set up an experiment scanner. It uses Replay vision to summarize the recordings of exposed users and shows each variant side by side. It turns on when you launch the experiment and stops when the experiment ends. Until launch, nothing is scanned and no credits are used.'
- : 'Set up a scanner that classifies what participants do after experiment exposure. It is created turned off, so nothing is scanned and no credits are used until you turn it on. You can adjust its prompt, filters, and sampling first. A scanner keeps running after the experiment ends, so turn it off when you are done.'}
+ Set up an experiment scanner. It uses Replay vision to summarize the recordings of exposed users
+ and shows each variant side by side. It turns on when you launch the experiment and stops when
+ the experiment ends. Until launch, nothing is scanned and no credits are used.
</div>
{/* Per-session price only: a monthly projection needs the 30-day recording history the
* estimate endpoint reads, and an unstarted experiment has no exposed sessions yet, so
diff --git a/frontend/src/scenes/experiments/replayVisionScanner.test.ts b/frontend/src/scenes/experiments/replayVisionScanner.test.ts
index a15c138d0d95..8cfae2813257 100644
--- a/frontend/src/scenes/experiments/replayVisionScanner.test.ts
+++ b/frontend/src/scenes/experiments/replayVisionScanner.test.ts
@@ -23,7 +23,7 @@ describe('replayVisionScanner', () => {
},
{
name: 'the experiment form checkbox',
- build: (experiment: Experiment): unknown => experimentScannerBody(experiment, true).scanner_config,
+ build: (experiment: Experiment): unknown => experimentScannerBody(experiment).scanner_config,
},
])('$name keeps the experiment hypothesis out of it', ({ build }) => {
const experiment: Experiment = {
@@ -72,7 +72,7 @@ describe('replayVisionScanner', () => {
exposure_criteria,
}
- const body = experimentScannerBody(experiment, true)
+ const body = experimentScannerBody(experiment)
expect(body).toMatchObject({
scanner_type: 'experiment',
@@ -97,24 +97,11 @@ describe('replayVisionScanner', () => {
true
)
- const body = experimentScannerBody(experiment, true)
+ const body = experimentScannerBody(experiment)
expect(prefilled.scanner_type).toEqual(body.scanner_type)
expect(prefilled.scanner_config).toMatchObject({ experiment_id: 123, variants: null })
expect(body.query).toEqual(prefilled.query)
})
-
- // Until the flag is on for a team, the checkbox keeps creating what it always has.
- it('without the experiment type, saves an off classifier with legacy targeting', () => {
- const experiment: Experiment = { ...NEW_EXPERIMENT, id: 123, name: 'Checkout redesign' }
-
- const body = experimentScannerBody(experiment, false)
-
- expect(body).toMatchObject({
- scanner_type: 'classifier',
- experiment_targeting: { experiment_id: 123, variant: null },
- enabled: false,
- })
- })
})
})
diff --git a/frontend/src/scenes/experiments/replayVisionScanner.ts b/frontend/src/scenes/experiments/replayVisionScanner.ts
index fff8fda45f32..726ba7df252a 100644
--- a/frontend/src/scenes/experiments/replayVisionScanner.ts
+++ b/frontend/src/scenes/experiments/replayVisionScanner.ts
@@ -2,7 +2,6 @@ import type { Experiment } from '~/types'
import type { ReplayScannerApi } from 'products/replay_vision/frontend/generated/api.schemas'
import {
- buildExperimentTargeting,
experimentScannerConfig,
experimentScannerQuery,
} from 'products/replay_vision/frontend/replay_scanners/experimentTargeting'
@@ -14,75 +13,16 @@ import {
const SCANNER_NAME_MAX_LENGTH = 255
-/**
- * A classifier, not a summarizer: a fixed tag set is what makes two variants comparable, and free
- * text does not aggregate into a per-variant delta. `never-reached` is the escape tag — most
- * exposed sessions never touch the changed surface, and without somewhere to put them the model is
- * forced to invent friction on irrelevant sessions, which shows up as a fake delta between variants.
- */
-export const EXPERIMENT_SCANNER_TAGS = [
- 'never-reached',
- 'smooth',
- 'hesitation',
- 'confusion',
- 'error-or-dead-end',
-] as const
-
-/**
- * The variant keys are deliberately absent: the scanner cannot know which variant a session belongs
- * to, and a prompt that names them gets confident, wrong variant labels attached to observations.
- * Attribution comes from joining observations back to the exposure event at readout instead.
- */
-function experimentClassifierPrompt(experiment: Experiment): string {
- const hypothesis = experiment.description?.trim()
- return [
- 'Classify what this participant did after the point where the experiment change would first be visible to them. Ignore anything earlier in the session.',
- // The hypothesis is optional at creation, so the required name is the fallback grounding:
- // without any hint at the changed surface, the tags have nothing to distinguish sessions on.
- hypothesis
- ? `What the experiment changes: ${hypothesis}`
- : `The experiment has no written hypothesis. Its name is "${experiment.name.trim()}", so infer the changed surface from that name.`,
- 'Pick one tag:',
- '- never-reached: they never got to the part of the product the experiment changes.',
- '- smooth: they reached it and moved on without visible trouble.',
- '- hesitation: they reached it and paused, re-read, or went back and forth before acting.',
- '- confusion: they reached it and acted as if they misread it, for example wrong clicks, repeated attempts, or wandering.',
- '- error-or-dead-end: they hit an error, an empty state, or a point with no way forward.',
- 'Do not guess which variant of the experiment this session was in, and do not mention variants. Describe only what the participant did.',
- ].join('\n\n')
-}
-
/**
* An experiment scanner on the experiment the wizard just created. That experiment is a draft, so
* the scanner is saved off with `start_on_launch`, and the backend turns it on when the experiment
* launches. `query` carries only the experiment's test-account setting: the API derives the
* exposed population from the experiment at scan time.
*/
-export function experimentScannerBody(experiment: Experiment, asExperimentScanner: boolean): ReplayScannerApi {
+export function experimentScannerBody(experiment: Experiment): ReplayScannerApi {
const nameSuffix = ` (#${experiment.id})`
const name = `${experiment.name.slice(0, SCANNER_NAME_MAX_LENGTH - nameSuffix.length)}${nameSuffix}`
- if (!asExperimentScanner) {
- // Without the experiment type: a classifier with legacy targeting, created off.
- return scannerToApiBody({
- name,
- description: 'Classifies what participants do after they are exposed to this experiment.',
- scanner_type: 'classifier',
- scanner_config: {
- prompt: experimentClassifierPrompt(experiment),
- tags: [...EXPERIMENT_SCANNER_TAGS],
- multi_label: false,
- },
- provider: DEFAULT_PROVIDER,
- model: DEFAULT_MODEL,
- // A null variant watches every variant of the experiment.
- experiment_targeting: buildExperimentTargeting({ experiment, variantKey: null }),
- query: experimentScannerQuery(experiment),
- // Enabling starts real credit spend, so that stays a human decision on the scanner itself.
- enabled: false,
- })
- }
-
return scannerToApiBody({
name,
description: 'Summarizes what participants do after they are exposed to this experiment, for each variant.',
diff --git a/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md b/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md
index f29e86b68205..192b70335f75 100644
--- a/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md
+++ b/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.md
@@ -62,8 +62,6 @@ Template hygiene, learned the hard way: name the changed surface concretely (not
Every prompt needs the **post-exposure framing** sentence: tell the model to focus on behavior after the point where the experiment's change would first be visible and ignore earlier activity. Be honest with the user that this is a request to the model, not an enforced window — scanners view the whole recording (see Limits).
-**The experiment creation wizard offers the same scanner from a checkbox.** Its prompt and tag set are the post-exposure friction template below, canonical in `experimentScannerPrompt` and `EXPERIMENT_SCANNER_TAGS` (`frontend/src/scenes/experiments/replayVisionScanner.ts`) — change them and this section together, and prefer matching them over inventing a new prompt when a user already has a wizard-created scanner. The wizard sets the population with `experiment_targeting`, the same as Step 2.
-
Starter templates:
1. **"Did anyone notice?"** — `classifier`, tags `reached-and-interacted`, `reached-not-interacted`, `never-reached`. When an experiment lands flat, the numbers can't distinguish "the change did nothing" from "nobody encountered the change"; this can. Needs the user to describe the changed surface. Often the right first scanner.
diff --git a/products/replay_vision/README.md b/products/replay_vision/README.md
index c58b739a15e1..d3110fadcdd5 100644
--- a/products/replay_vision/README.md
+++ b/products/replay_vision/README.md
@@ -55,9 +55,7 @@ Outside these scenes, the product also renders inside the session replay player:
## Experiment-created scanners
-The experiment creation wizard offers an opt-in Replay Vision scanner when the `replay-vision` feature flag is enabled. The scanner is a **disabled** classifier — enabling it, and the credit spend that follows, stays a human decision on the scanner itself. Its population lives in `experiment_targeting`, never in its `RecordingsQuery`: the API derives the person-scoped exposure filter from that field at scan time, the same resolution the experiment's Recordings tab uses, so the scanner watches the sessions that tab lists, including an exposure event that fires server-side or in an earlier session. The `RecordingsQuery` carries only the experiment's test-account setting, and the API rejects an `experiment_exposure` set there directly. Scanners the wizard created before that field existed keep their original exposure-event filters; recreating one from the experiment's Recordings tab is the fix for a scanner watching nothing. Scanner creation runs after the experiment has been persisted and cannot roll back a successfully created experiment.
-
-The template lives in `frontend/src/scenes/experiments/replayVisionScanner.ts` and mirrors the one in the `scanning-experiments-with-replay-vision` skill: a fixed tag set (so variants stay comparable), an escape tag for sessions that never reached the changed surface, and no variant names in the prompt.
+The experiment creation wizard offers an opt-in experiment scanner when the `experiment-scanner` feature flag is on, and offers no scanner without it. The scanner is the `experiment` type, saved off with `start_on_launch`, and the backend turns it on when the experiment launches. Its population comes from the experiment, never from its `RecordingsQuery`: the API derives the person-scoped exposure filter at scan time, the same resolution the experiment's Recordings tab uses, so the scanner watches the sessions that tab lists, including an exposure event that fires server-side or in an earlier session. The `RecordingsQuery` carries only the experiment's test-account setting, and the API rejects an `experiment_exposure` set there directly. Older wizard scanners are classifiers with `experiment_targeting` and keep working. Scanner creation runs after the experiment has been persisted and cannot roll back a successfully created experiment.
## Layout