Skip to content

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

feat(autoresearch): add the model list scene (#101572)

Andrew Maguiredfa0c7bf9b2e
diff --git a/frontend/package.json b/frontend/package.json
index 6ad5ea5163dd..0715864a9096 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -91,6 +91,7 @@
"@posthog/products-analytics-platform": "workspace:*",
"@posthog/products-annotations": "workspace:*",
"@posthog/products-apm": "workspace:*",
+ "@posthog/products-autoresearch": "workspace:*",
"@posthog/products-batch-exports": "workspace:*",
"@posthog/products-billing-alerts": "workspace:*",
"@posthog/products-business-knowledge": "workspace:*",
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index c9a9a66083b1..e90a8be0d728 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -3877,9 +3877,9 @@ snapshots:
layout-products-and-files--customize-sidebar-ranked--light:
hash: v1.k794b7964.99480a84fec9120166ec1eb9c71a81af3677fb991de2a14aac860bef12674878.wZtg7UkhqmBcwiOC0MphwhQDOiT7K75H60QmpUA_WxQ
layout-products-and-files--customize-sidebar-save-failure--dark:
- hash: v1.k794b7964.8f3c0c24769c2f181b86e1707c9927ca92a867a3990186198a04e7edda693280.et6WGrpUdhTl9muz_5wwjKCKPPeHR-NFdPLNEOU5cS4
+ hash: v1.k794b7964.5e1f3680320ab6d42a511a2c402dfca144df5c7eec262ab88ac5f2e7a6d2cdd7.7SqpMXbzmrpLsUg3pU2feyYahAvkgB_cibVFZeFTO5g
layout-products-and-files--customize-sidebar-save-failure--light:
- hash: v1.k794b7964.cef048a34c318e0bb4b34518ce55f7230c55596d69ae19638dc34b1e4fbd17b0.Qzwwa-ft2Sqk9ORq-Qg9FmF-pa6byIEvkwLGkMQDRU8
+ hash: v1.k794b7964.bb927837aedeea34512340e5e8da46fce3682f01f5038b9c23c7fd4ac120e5f8.k_trZ-SRvMOa1GxoXfg0QNRYk76u-XOCkSJh-o4O_4w
layout-products-and-files--customize-sidebar-unavailable--dark:
hash: v1.k794b7964.0f3a9904f597bcfec4f8090610c4c1c81bf339c48e40f6285ea2040c325577ea.iJcdet_5JMcIe7LNCbPQGsxgM-hr4oibceAtJTdhk9I
layout-products-and-files--customize-sidebar-unavailable--light:
diff --git a/frontend/src/layout/panel-layout/sidebarProductMeta.ts b/frontend/src/layout/panel-layout/sidebarProductMeta.ts
index 63e74007f0d3..1f14c1e61491 100644
--- a/frontend/src/layout/panel-layout/sidebarProductMeta.ts
+++ b/frontend/src/layout/panel-layout/sidebarProductMeta.ts
@@ -67,6 +67,7 @@ const descriptions: Record<string, string> = {
export const SIDEBAR_PRODUCTS_WITHOUT_DOCS = new Set<string>([
'AI gateway',
'Apps',
+ 'Autoresearch',
'Broadcasts',
'Business knowledge',
'Engineering analytics',
diff --git a/frontend/src/productScenes.tsx b/frontend/src/productScenes.tsx
index cd51d56236b4..9f71808cdfcb 100644
--- a/frontend/src/productScenes.tsx
+++ b/frontend/src/productScenes.tsx
@@ -39,6 +39,7 @@ export const productScenes: Record<string, () => Promise<any>> = {
Alerts: () => import('../../products/alerts/frontend/AlertsScene'),
PrecomputeDebug: () => import('../../products/analytics_platform/frontend/PrecomputeDebugScene'),
Annotations: () => import('../../products/annotations/frontend/pages/Annotations'),
+ Autoresearch: () => import('../../products/autoresearch/frontend/AutoresearchScene'),
BusinessKnowledge: () => import('../../products/business_knowledge/frontend/scenes/sources/BusinessKnowledgeScene'),
BusinessKnowledgePlayground: () =>
import('products/business_knowledge/frontend/scenes/playground/BusinessKnowledgePlaygroundScene'),
diff --git a/frontend/src/products.json b/frontend/src/products.json
index b5ebbbeafc77..a5978bf0d38f 100644
--- a/frontend/src/products.json
+++ b/frontend/src/products.json
@@ -56,6 +56,13 @@
"type": "llm_prompts",
"intents": ["llm_prompts"]
},
+ {
+ "path": "Autoresearch",
+ "category": "Tools",
+ "iconType": "experiment",
+ "type": "autoresearch",
+ "intents": ["autoresearch"]
+ },
{
"path": "Business knowledge",
"category": "Data",
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index f17709f05f6f..d22447bc8e6e 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -99,6 +99,7 @@ export const productRoutes: Record<string, [string, string]> = {
'/debug/precompute': ['PrecomputeDebug', 'precomputeDebug'],
'/data-management/annotations': ['Annotations', 'annotations'],
'/data-management/annotations/:id': ['Annotations', 'annotation'],
+ '/autoresearch': ['Autoresearch', 'autoresearch'],
'/business-knowledge': ['BusinessKnowledge', 'businessKnowledge'],
'/business-knowledge/settings': ['BusinessKnowledgeSettings', 'businessKnowledgeSettings'],
'/business-knowledge/playground': ['BusinessKnowledgePlayground', 'businessKnowledgePlayground'],
@@ -612,6 +613,12 @@ export const productConfiguration: Record<string, any> = {
'Annotations allow you to mark when certain changes happened so you can easily see how they impacted your metrics.',
iconType: 'annotation',
},
+ Autoresearch: {
+ name: 'Autoresearch',
+ projectBased: true,
+ description: 'Automatically find the best model to predict user behavior and score your users on a schedule.',
+ iconType: 'experiment',
+ },
BusinessKnowledge: {
name: 'Business knowledge',
projectBased: true,
@@ -1247,6 +1254,9 @@ export const productUrls = {
precomputeDebug: (): string => `/debug/precompute`,
annotations: (): string => '/data-management/annotations',
annotation: (id: AnnotationType['id'] | ':id'): string => `/data-management/annotations/${id}`,
+ autoresearch: (): string => '/autoresearch',
+ autoresearchNew: (): string => '/autoresearch/new',
+ autoresearchPipeline: (id: string): string => `/autoresearch/${id}`,
businessKnowledge: (): string => '/business-knowledge',
businessKnowledgeSettings: (): string => '/business-knowledge/settings',
businessKnowledgePlayground: (chatId?: string): string =>
@@ -2052,6 +2062,7 @@ export const getTreeItemsNew = (): FileSystemImport[] => [
export type ProductTreePath =
| 'AI gateway'
| 'Apps'
+ | 'Autoresearch'
| 'Broadcasts'
| 'Business knowledge'
| 'Clusters'
@@ -2130,6 +2141,18 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
sceneKey: 'StreamlitApps',
sceneKeys: ['StreamlitApps', 'StreamlitApp', 'StreamlitAppEdit'],
},
+ {
+ path: 'Autoresearch',
+ intents: [ProductKey.AUTORESEARCH],
+ category: ProductItemCategory.TOOLS,
+ type: 'autoresearch',
+ href: urls.autoresearch(),
+ flag: FEATURE_FLAGS.AUTORESEARCH,
+ iconType: 'experiment',
+ tags: ['alpha'],
+ sceneKey: 'Autoresearch',
+ sceneKeys: ['Autoresearch'],
+ },
{
path: 'Broadcasts',
intents: [ProductKey.WORKFLOWS],
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 9559acbd082b..900f9dd383c1 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -40515,6 +40515,7 @@
"llm_analytics",
"alerts",
"annotations",
+ "autoresearch",
"business_knowledge",
"cohorts",
"comments",
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index ff1ade248823..008875a78c0b 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -9021,6 +9021,7 @@ export enum ProductKey {
AI_OBSERVABILITY = 'llm_analytics',
ALERTS = 'alerts',
ANNOTATIONS = 'annotations',
+ AUTORESEARCH = 'autoresearch',
BUSINESS_KNOWLEDGE = 'business_knowledge',
COHORTS = 'cohorts',
COMMENTS = 'comments',
diff --git a/frontend/src/scenes/sceneTypes.ts b/frontend/src/scenes/sceneTypes.ts
index a8edffef3a86..087710f3790f 100644
--- a/frontend/src/scenes/sceneTypes.ts
+++ b/frontend/src/scenes/sceneTypes.ts
@@ -17,6 +17,7 @@ export enum Scene {
AIGateway = 'AIGateway',
Alerts = 'Alerts',
Annotations = 'Annotations',
+ Autoresearch = 'Autoresearch',
Approval = 'Approval',
AsyncMigrations = 'AsyncMigrations',
BatchExport = 'BatchExport',
diff --git a/frontend/src/styles/base.scss b/frontend/src/styles/base.scss
index 2ba5a6817f82..b9a1f3068a99 100644
--- a/frontend/src/styles/base.scss
+++ b/frontend/src/styles/base.scss
@@ -333,6 +333,8 @@
--color-product-experiments-light: rgb(182 42 217);
--color-product-error-tracking-light: rgb(211 148 24);
--color-product-error-tracking-dark: rgb(247 165 1);
+ --color-product-autoresearch-light: rgb(182 42 217);
+ --color-product-autoresearch-dark: rgb(212 106 240);
--color-product-alerts-light: rgb(229 142 0);
--color-product-alerts-dark: rgb(255 168 28);
--color-product-surveys-light: rgb(243 84 84);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 484bf05d4fde..8d453a3c213b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -674,6 +674,9 @@ importers:
'@posthog/products-apm':
specifier: workspace:*
version: link:../products/apm
+ '@posthog/products-autoresearch':
+ specifier: workspace:*
+ version: link:../products/autoresearch
'@posthog/products-batch-exports':
specifier: workspace:*
version: link:../products/batch_exports
@@ -2647,6 +2650,9 @@ importers:
kea-subscriptions:
specifier: 'catalog:'
version: 3.0.1([email protected](patch_hash=139b8d1f1304f9d9da452a9a1244c94ea679dbcb85687d8999563146879fb6f5)([email protected]))
+ posthog-js:
+ specifier: 'catalog:'
+ version: 1.434.14(@types/[email protected])([email protected])
react:
specifier: 18.3.1
version: 18.3.1
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index bf81532e596a..ef3913cf1992 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2436,6 +2436,7 @@ class ProductKey(StrEnum):
LLM_ANALYTICS = "llm_analytics"
ALERTS = "alerts"
ANNOTATIONS = "annotations"
+ AUTORESEARCH = "autoresearch"
BUSINESS_KNOWLEDGE = "business_knowledge"
COHORTS = "cohorts"
COMMENTS = "comments"
diff --git a/products/autoresearch/frontend/AGENTS.md b/products/autoresearch/frontend/AGENTS.md
new file mode 100644
index 000000000000..10b602a108ed
--- /dev/null
+++ b/products/autoresearch/frontend/AGENTS.md
@@ -0,0 +1,53 @@
+# Frontend
+
+Three scenes behind the `autoresearch` feature flag: the pipeline list, the create form, and a single pipeline's detail view. This piece of the split tracked in [#88464](https://github.com/PostHog/posthog/pull/88464) lands the list scene; the create form (`/autoresearch/new`) and the detail scene (`/autoresearch/:id`) arrive in the next pieces, so the list's "New model" button and row links point at routes that do not resolve yet.
+
+The product is mostly a backend, and the UI is deliberately thin — it reads status and results rather than doing any modeling work. What it mainly has to get right is honestly representing a long-running, partly-asynchronous process whose rows arrive at different times.
+
+## What lives here
+
+| File | Scene / role |
+| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
+| `AutoresearchScene.tsx` | `/autoresearch` — the pipeline list, with row actions (pause, resume, delete) and the "New model" entry point. |
+| `autoresearchLogic.ts` | List logic — loads pipelines, lifecycle actions, and setup-status detection for the empty-state gate. |
+| `PipelineStatusTag.tsx` | Status tag + tooltip, shared with the detail scene once it lands. |
+| `emptyState/` | `ProductEmptyState` config + example-data preview for the first-run gate. |
+| `generated/` | **Generated. Never hand-edit.** Change the serializer in `../backend/presentation/views/serializers.py` and run `hogli build:openapi`. |
+
+Scene registration, routes, and urls live in `../manifest.tsx`.
+`frontend/src/products.tsx` is generated from the manifests — hand-editing it there gets wiped by `pnpm build:products`. Only the `Scene` enum entries belong in `sceneTypes.ts`.
+
+## Representing an in-flight run honestly
+
+This is where the UI is easiest to get wrong, because the backend writes a training run's state in two stages:
+
+- `AutoresearchIteration` rows land **live**, during the run.
+- `AutoresearchTrainingRun.iteration_count`, `best_holdout_score`, and the champion `AutoresearchModel` land **only at completion**.
+
+So a healthy run in progress reads `0/5` iterations with five iteration rows already in the database and no model at all. Rendering the counter alone makes a working run look stalled. Prefer the iteration rows for progress, and treat a missing champion on a `running` pipeline as normal rather than as an empty state.
+
+Pipeline status has six values (`draft`, `bootstrapping`, `running`, `converged`, `paused`, `archived`) and a fresh pipeline sits in `bootstrapping` for the whole first training run.
+
+## Conventions
+
+Follow `frontend/src/AGENTS.md` — it applies to product frontends too.
+
+- **Business logic goes in the kea logic, not the component.** Avoid React hooks.
+- **Import generated API types**; never hand-write an interface that duplicates a serializer.
+- TypeScript with explicit return types; Tailwind utilities rather than inline styles.
+- Reuse Lemon / quill components instead of hand-rolling tables, badges, or tags.
+- Any button that fires a request must guard against double-submission — `loading` / `disabledReason` on `LemonButton`, reset on both success and error paths. The lifecycle actions here (train, score, archive, pause, resume) are all network calls, and several are expensive: firing `train` twice starts two sandbox agent runs and spends the budget twice.
+- Usage events are part of the API: renaming one breaks every insight built on it. The list logic captures `autoresearch model list viewed`, `autoresearch model list load failed`, `autoresearch model deleted` / `paused` / `resumed`, and `autoresearch model action failed` (with `action`); buttons carry a `data-attr` for autocapture. Extend the same names when you add a scene.
+
+## Copy
+
+Sentence case, not Title Case. Invoke `/writing-user-facing-copy` before adding or changing any visible string.
+
+The settled user-facing word for the entity is **"model"** ("New model", "Delete model", "Model paused").
+"Pipeline" is the internal name — it stays in code symbols and the backend, and must not appear in copy.
+
+## When editing this flow
+
+- Regenerate types after any serializer change and commit the result; CI checks for drift.
+- Register new scenes in `../manifest.tsx`, not in the generated `products.tsx`.
+- **If you add a scene or change the routes, update this file to match.**
diff --git a/products/autoresearch/frontend/AutoresearchScene.tsx b/products/autoresearch/frontend/AutoresearchScene.tsx
new file mode 100644
index 000000000000..fdc89bbca465
--- /dev/null
+++ b/products/autoresearch/frontend/AutoresearchScene.tsx
@@ -0,0 +1,200 @@
+import { useActions, useValues } from 'kea'
+
+import { IconPause, IconPlay, IconPlus, IconTrash } from '@posthog/icons'
+import { LemonBanner, LemonButton, LemonDialog, LemonTable, LemonTableColumn } from '@posthog/lemon-ui'
+
+import { NotFound } from 'lib/components/NotFound'
+import { dayjs } from 'lib/dayjs'
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
+import { More } from 'lib/lemon-ui/LemonButton/More'
+import { createdByColumn } from 'lib/lemon-ui/LemonTable/columnUtils'
+import { LemonTableLink } from 'lib/lemon-ui/LemonTable/LemonTableLink'
+import { sceneConfigurations } from 'scenes/scenes'
+import { Scene, SceneExport } from 'scenes/sceneTypes'
+import { urls } from 'scenes/urls'
+
+import { SceneContent } from '~/layout/scenes/components/SceneContent'
+import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
+import { ProductKey } from '~/queries/schema/schema-general'
+
+import { autoresearchLogic } from './autoresearchLogic'
+import { autoresearchEmptyState } from './emptyState/autoresearchEmptyState'
+import { AutoresearchPipelineApi } from './generated/api.schemas'
+import { PipelineStatusTag } from './PipelineStatusTag'
+
+export const scene: SceneExport = {
+ component: AutoresearchScene,
+ logic: autoresearchLogic,
+ productKey: ProductKey.AUTORESEARCH,
+ emptyState: autoresearchEmptyState,
+}
+
+export function AutoresearchScene(): JSX.Element {
+ const isEnabled = useFeatureFlag('AUTORESEARCH')
+ const { pipelines, pipelinesLoading, pipelinesLoadFailed, mutatingPipelineIds } = useValues(autoresearchLogic)
+ const { deletePipeline, pausePipeline, resumePipeline, loadPipelines } = useActions(autoresearchLogic)
+
+ if (!isEnabled) {
+ return <NotFound object="Autoresearch" caption="This feature is not enabled for your project." />
+ }
+
+ const columns: LemonTableColumn<AutoresearchPipelineApi, keyof AutoresearchPipelineApi | undefined>[] = [
+ {
+ title: 'Name',
+ sticky: true,
+ render: (_: unknown, record: AutoresearchPipelineApi) => (
+ <LemonTableLink
+ to={urls.autoresearchPipeline(record.id)}
+ title={record.name}
+ description={record.description}
+ />
+ ),
+ },
+ {
+ title: 'Target',
+ dataIndex: 'target_event',
+ },
+ {
+ title: 'Prediction horizon',
+ dataIndex: 'horizon_days',
+ render: (_, record: AutoresearchPipelineApi) => (record.horizon_days ? `${record.horizon_days}d` : '—'),
+ },
+ {
+ title: 'Status',
+ dataIndex: 'status',
+ render: (_, record: AutoresearchPipelineApi) => <PipelineStatusTag status={record.status} />,
+ },
+ createdByColumn() as unknown as LemonTableColumn<
+ AutoresearchPipelineApi,
+ keyof AutoresearchPipelineApi | undefined
+ >,
+ {
+ title: 'Holdout AUC',
+ dataIndex: 'champion_holdout_auc',
+ tooltip: 'Offline AUC of the current champion model, measured on held-out training data.',
+ render: (_, record: AutoresearchPipelineApi) =>
+ record.champion_holdout_auc == null ? '—' : record.champion_holdout_auc.toFixed(3),
+ },
+ {
+ title: 'Realized AUC',
+ dataIndex: 'champion_realized_auc',
+ tooltip:
+ 'Realized AUC of the current champion model, measured against actual outcomes once predictions matured.',
+ render: (_, record: AutoresearchPipelineApi) =>
+ record.champion_realized_auc == null ? '—' : record.champion_realized_auc.toFixed(3),
+ },
+ {
+ title: 'Last scored',
+ dataIndex: 'last_scored_at',
+ render: (_, record: AutoresearchPipelineApi) =>
+ record.last_scored_at ? dayjs(record.last_scored_at).fromNow() : 'Never',
+ },
+ {
+ title: '',
+ width: 0,
+ render: (_: unknown, record: AutoresearchPipelineApi) => {
+ const canPause = record.status === 'running'
+ const canResume = record.status === 'paused'
+ const mutating = !!mutatingPipelineIds[record.id]
+ return (
+ <More
+ data-attr="autoresearch-model-more"
+ overlay={
+ <>
+ {canPause && (
+ <LemonButton
+ fullWidth
+ icon={<IconPause />}
+ loading={mutating}
+ disabledReason={mutating ? 'Another change is still saving' : undefined}
+ onClick={() => pausePipeline(record)}
+ >
+ Pause scheduled scoring
+ </LemonButton>
+ )}
+ {canResume && (
+ <LemonButton
+ fullWidth
+ icon={<IconPlay />}
+ loading={mutating}
+ disabledReason={mutating ? 'Another change is still saving' : undefined}
+ onClick={() => resumePipeline(record)}
+ >
+ Resume scheduled scoring
+ </LemonButton>
+ )}
+ <LemonButton
+ fullWidth
+ icon={<IconTrash />}
+ status="danger"
+ loading={mutating}
+ disabledReason={
+ mutating
+ ? 'Another change is still saving'
+ : record.status === 'bootstrapping'
+ ? 'Wait for the first training run to finish'
+ : undefined
+ }
+ onClick={() => {
+ LemonDialog.open({
+ title: `Delete "${record.name}"?`,
+ description:
+ 'The model, its training runs, and prediction metadata will be removed. Emitted autoresearch_prediction events stay in the events stream, and the prediction person property stays on each scored person.',
+ primaryButton: {
+ children: 'Delete',
+ status: 'danger',
+ onClick: () => deletePipeline(record.id, record.name),
+ },
+ secondaryButton: { children: 'Cancel' },
+ })
+ }}
+ >
+ Delete model
+ </LemonButton>
+ </>
+ }
+ />
+ )
+ },
+ },
+ ]
+
+ return (
+ <SceneContent>
+ <SceneTitleSection
+ name={sceneConfigurations[Scene.Autoresearch].name ?? 'Autoresearch'}
+ description={sceneConfigurations[Scene.Autoresearch].description}
+ resourceType={{
+ type: sceneConfigurations[Scene.Autoresearch].iconType ?? 'experiment',
+ }}
+ actions={
+ <LemonButton
+ type="primary"
+ icon={<IconPlus />}
+ size="small"
+ to={urls.autoresearchNew()}
+ data-attr="autoresearch-new-model"
+ >
+ New model
+ </LemonButton>
+ }
+ />
+
+ {pipelinesLoadFailed && !pipelinesLoading && (
+ <LemonBanner
+ type="error"
+ action={{
+ children: 'Retry',
+ onClick: () => loadPipelines(),
+ 'data-attr': 'autoresearch-list-retry',
+ }}
+ >
+ Couldn't load your models. Try again, and if it keeps happening contact support.
+ </LemonBanner>
+ )}
+ {!(pipelinesLoadFailed && pipelines.length === 0) && (
+ <LemonTable loading={pipelinesLoading} columns={columns} dataSource={pipelines} rowKey="id" />
+ )}
+ </SceneContent>
+ )
+}
diff --git a/products/autoresearch/frontend/CLAUDE.md b/products/autoresearch/frontend/CLAUDE.md
new file mode 120000
index 000000000000..47dc3e3d863c
--- /dev/null
+++ b/products/autoresearch/frontend/CLAUDE.md
@@ -0,0 +1 @@
+AGENTS.md
\ No newline at end of file
diff --git a/products/autoresearch/frontend/PipelineStatusTag.tsx b/products/autoresearch/frontend/PipelineStatusTag.tsx
new file mode 100644
index 000000000000..1bcea70bf703
--- /dev/null
+++ b/products/autoresearch/frontend/PipelineStatusTag.tsx
@@ -0,0 +1,42 @@
+import { LemonTag, Tooltip } from '@posthog/lemon-ui'
+
+import { AutoresearchPipelineStatusEnumApi } from './generated/api.schemas'
+
+const STATUS_TAG_TYPE: Record<
+ AutoresearchPipelineStatusEnumApi,
+ 'default' | 'success' | 'warning' | 'highlight' | 'completion'
+> = {
+ draft: 'default',
+ bootstrapping: 'highlight',
+ running: 'success',
+ converged: 'completion',
+ paused: 'warning',
+ archived: 'default',
+}
+
+const STATUS_LABEL: Record<AutoresearchPipelineStatusEnumApi, string> = {
+ draft: 'Draft',
+ bootstrapping: 'Bootstrapping',
+ running: 'Running',
+ converged: 'Converged',
+ paused: 'Paused',
+ archived: 'Archived',
+}
+
+const STATUS_DESCRIPTION: Record<AutoresearchPipelineStatusEnumApi, string> = {
+ draft: 'Created but never trained. Start a training run to find a first champion.',
+ bootstrapping: 'First training run in progress. No champion has been promoted yet.',
+ running: 'Live: a champion is promoted and the population is scored on schedule.',
+ converged: 'Champion is stable (budget spent or improvement plateaued); still scoring on schedule.',
+ paused: 'Scheduled scoring is on hold. Resume to continue scoring.',
+ archived: 'Retired. No training or scoring runs.',
+}
+
+/** Status tag with an explanatory tooltip, shared by the pipeline list and detail scenes. */
+export function PipelineStatusTag({ status }: { status: AutoresearchPipelineStatusEnumApi }): JSX.Element {
+ return (
+ <Tooltip title={STATUS_DESCRIPTION[status]}>
+ <LemonTag type={STATUS_TAG_TYPE[status]}>{STATUS_LABEL[status]}</LemonTag>
+ </Tooltip>
+ )
+}
diff --git a/products/autoresearch/frontend/autoresearchLogic.test.ts b/products/autoresearch/frontend/autoresearchLogic.test.ts
new file mode 100644
index 000000000000..af0ff1553a48
--- /dev/null
+++ b/products/autoresearch/frontend/autoresearchLogic.test.ts
@@ -0,0 +1,157 @@
+import { router } from 'kea-router'
+import { expectLogic } from 'kea-test-utils'
+
+import { productSetupStatusLogic } from 'lib/components/ProductEmptyState/productSetupStatusLogic'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { urls } from 'scenes/urls'
+
+import { ProductKey } from '~/queries/schema/schema-general'
+import { initKeaTests } from '~/test/init'
+
+import { autoresearchLogic } from './autoresearchLogic'
+import {
+ autoresearchDestroy,
+ autoresearchList,
+ autoresearchPauseCreate,
+ autoresearchResumeCreate,
+} from './generated/api'
+import { AutoresearchPipelineApi } from './generated/api.schemas'
+
+jest.mock('./generated/api', () => ({
+ autoresearchList: jest.fn(),
+ autoresearchDestroy: jest.fn(),
+ autoresearchPauseCreate: jest.fn(),
+ autoresearchResumeCreate: jest.fn(),
+}))
+
+const mockList = autoresearchList as jest.Mock
+
+type Settle = { resolve: (value: unknown) => void; reject: (reason: unknown) => void }
+
+describe('autoresearchLogic', () => {
+ beforeEach(() => {
+ jest.clearAllMocks()
+ initKeaTests()
+ featureFlagLogic.mount()
+ featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.AUTORESEARCH], { [FEATURE_FLAGS.AUTORESEARCH]: true })
+ })
+
+ function statusLogicValues(): string {
+ return productSetupStatusLogic({ productKey: ProductKey.AUTORESEARCH }).values.status
+ }
+
+ it.each([
+ [0, 'needs-setup'],
+ [2, 'has-data'],
+ ])('pushes the setup status for %i pipelines so the empty-state gate routes correctly', async (count, expected) => {
+ mockList.mockResolvedValue({ results: Array.from({ length: count }, (_, i) => ({ id: String(i) })) })
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ expect(statusLogicValues()).toBe(expected)
+ })
+
+ it('fails open to unknown when the list load fails with no earlier answer', async () => {
+ mockList.mockRejectedValue(new Error('network down'))
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ expect(statusLogicValues()).toBe('unknown')
+ expect(logic.values.pipelinesLoadFailed).toBe(true)
+
+ mockList.mockReturnValue(new Promise(() => {}))
+ logic.actions.loadPipelines()
+ expect(logic.values.pipelinesLoadFailed).toBe(false)
+ })
+
+ it('follows every page of the list', async () => {
+ mockList
+ .mockResolvedValueOnce({ results: [{ id: 'a' }, { id: 'b' }], next: 'page-2' })
+ .mockResolvedValueOnce({ results: [{ id: 'c' }], next: null })
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ expect(logic.values.pipelines.map((p) => p.id)).toEqual(['a', 'b', 'c'])
+ expect(mockList).toHaveBeenLastCalledWith(expect.any(String), { offset: 2 })
+ })
+
+ it.each([
+ ['succeeds', (settle: Settle) => settle.resolve({ results: [{ id: 'old' }], next: null })],
+ ['fails', (settle: Settle) => settle.reject(new Error('network down'))],
+ ])('keeps the newer list when an older load %s last', async (_, finishOlder) => {
+ const settle = {} as Settle
+ mockList
+ .mockReturnValueOnce(
+ new Promise((resolve, reject) => {
+ settle.resolve = resolve
+ settle.reject = reject
+ })
+ )
+ .mockResolvedValueOnce({ results: [{ id: 'new' }], next: null })
+ const logic = autoresearchLogic()
+ logic.mount()
+ logic.actions.loadPipelines()
+ await expectLogic(logic).toDispatchActions(['loadPipelinesSuccess'])
+ finishOlder(settle)
+ await expectLogic(logic).toFinishAllListeners()
+ expect(logic.values.pipelines.map((p) => p.id)).toEqual(['new'])
+ expect(logic.values.pipelinesLoadFailed).toBe(false)
+ })
+
+ it.each([
+ ['deletePipeline', autoresearchDestroy],
+ ['pausePipeline', autoresearchPauseCreate],
+ ['resumePipeline', autoresearchResumeCreate],
+ ] as const)('sends one %s request while the first is in flight', async (action, apiCall) => {
+ mockList.mockResolvedValue({ results: [] })
+ ;(apiCall as jest.Mock).mockReturnValue(new Promise(() => {}))
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ const pipeline = { id: 'p1', name: 'Model' } as AutoresearchPipelineApi
+ for (let i = 0; i < 2; i++) {
+ if (action === 'deletePipeline') {
+ logic.actions.deletePipeline(pipeline.id, pipeline.name)
+ } else {
+ logic.actions[action](pipeline)
+ }
+ }
+ expect(apiCall).toHaveBeenCalledTimes(1)
+ })
+
+ it('waits for the flag before it loads the list', async () => {
+ mockList.mockResolvedValue({ results: [], next: null })
+ featureFlagLogic.actions.setFeatureFlags([], {})
+ router.actions.push(urls.autoresearch())
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ expect(mockList).not.toHaveBeenCalled()
+
+ featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.AUTORESEARCH], { [FEATURE_FLAGS.AUTORESEARCH]: true })
+ await expectLogic(logic).toFinishAllListeners()
+ expect(mockList).toHaveBeenCalledTimes(1)
+ })
+
+ it('updates a row as soon as its pause succeeds', async () => {
+ mockList.mockResolvedValueOnce({ results: [{ id: 'p1', name: 'Model', status: 'running' }], next: null })
+ mockList.mockReturnValue(new Promise(() => {}))
+ ;(autoresearchPauseCreate as jest.Mock).mockResolvedValue({ id: 'p1', name: 'Model', status: 'paused' })
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toDispatchActions(['loadPipelinesSuccess'])
+ logic.actions.pausePipeline(logic.values.pipelines[0])
+ await expectLogic(logic).toDispatchActions(['pipelineUpdated'])
+ expect(logic.values.pipelines[0].status).toBe('paused')
+ })
+
+ it('loads once when mounted on the list route', async () => {
+ mockList.mockResolvedValue({ results: [] })
+ router.actions.push(urls.autoresearch())
+ const logic = autoresearchLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ expect(mockList).toHaveBeenCalledTimes(1)
+ })
+})
diff --git a/products/autoresearch/frontend/autoresearchLogic.ts b/products/autoresearch/frontend/autoresearchLogic.ts
new file mode 100644
index 000000000000..290beeac3a08
--- /dev/null
+++ b/products/autoresearch/frontend/autoresearchLogic.ts
@@ -0,0 +1,291 @@
+import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, reducers } from 'kea'
+import { loaders } from 'kea-loaders'
+import { urlToAction } from 'kea-router'
+import posthog from 'posthog-js'
+
+import { productSetupStatusLogic } from 'lib/components/ProductEmptyState/productSetupStatusLogic'
+import type { ProductSetupStatus } from 'lib/components/ProductEmptyState/types'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { teamLogic } from 'scenes/teamLogic'
+import { urls } from 'scenes/urls'
+
+import { ProductKey } from '~/queries/schema/schema-general'
+
+import type { FeatureFlagsSet } from '../../../frontend/src/lib/logic/featureFlagLogic'
+import {
+ autoresearchDestroy,
+ autoresearchList,
+ autoresearchPauseCreate,
+ autoresearchResumeCreate,
+} from './generated/api'
+import { AutoresearchPipelineApi } from './generated/api.schemas'
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface autoresearchLogicValues {
+ featureFlags: FeatureFlagsSet // featureFlagLogic
+ setupStatus: ProductSetupStatus // productSetupStatusLogic
+ currentTeamId: number | null // teamLogic
+ mutatingPipelineIds: Record<string, boolean>
+ pipelines: AutoresearchPipelineApi[]
+ pipelinesLoadFailed: boolean
+ pipelinesLoading: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface autoresearchLogicActions {
+ setFeatureFlags: (
+ flags: string[],
+ variants: Record<string, boolean | string>
+ ) => {
+ flags: string[]
+ variants: Record<string, boolean | string>
+ } // featureFlagLogic
+ setDetectedStatus: (status: ProductSetupStatus) => {
+ status: ProductSetupStatus
+ } // productSetupStatusLogic
+ loadCurrentTeamSuccess: (
+ currentTeam: null | import('~/types').TeamPublicType,
+ payload?: any
+ ) => {
+ currentTeam: null | import('~/types').TeamPublicType
+ payload?: any
+ } // teamLogic
+ deletePipeline: (
+ id: string,
+ name: string
+ ) => {
+ id: string
+ name: string
+ }
+ loadPipelines: (_: void) => void
+ loadPipelinesFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadPipelinesSuccess: (
+ pipelines: AutoresearchPipelineApi[],
+ payload?: void
+ ) => {
+ pipelines: AutoresearchPipelineApi[]
+ payload?: void
+ }
+ pausePipeline: (pipeline: AutoresearchPipelineApi) => {
+ pipeline: AutoresearchPipelineApi
+ }
+ pipelineRemoved: (id: string) => {
+ id: string
+ }
+ pipelineUpdated: (pipeline: AutoresearchPipelineApi) => {
+ pipeline: AutoresearchPipelineApi
+ }
+ resumePipeline: (pipeline: AutoresearchPipelineApi) => {
+ pipeline: AutoresearchPipelineApi
+ }
+ setPipelineMutating: (
+ id: string,
+ mutating: boolean
+ ) => {
+ id: string
+ mutating: boolean
+ }
+}
+
+export type autoresearchLogicType = MakeLogicType<autoresearchLogicValues, autoresearchLogicActions>
+
+export const autoresearchLogic = kea<autoresearchLogicType>([
+ path(['products', 'autoresearch', 'autoresearchLogic']),
+ connect(() => ({
+ values: [
+ teamLogic,
+ ['currentTeamId'],
+ featureFlagLogic,
+ ['featureFlags'],
+ productSetupStatusLogic({ productKey: ProductKey.AUTORESEARCH }),
+ ['status as setupStatus'],
+ ],
+ actions: [
+ productSetupStatusLogic({ productKey: ProductKey.AUTORESEARCH }),
+ ['setDetectedStatus'],
+ teamLogic,
+ ['loadCurrentTeamSuccess'],
+ featureFlagLogic,
+ ['setFeatureFlags'],
+ ],
+ })),
+ actions({
+ deletePipeline: (id: string, name: string) => ({ id, name }),
+ pausePipeline: (pipeline: AutoresearchPipelineApi) => ({ pipeline }),
+ resumePipeline: (pipeline: AutoresearchPipelineApi) => ({ pipeline }),
+ setPipelineMutating: (id: string, mutating: boolean) => ({ id, mutating }),
+ pipelineUpdated: (pipeline: AutoresearchPipelineApi) => ({ pipeline }),
+ pipelineRemoved: (id: string) => ({ id }),
+ }),
+ reducers({
+ // Apply a successful row action at once, so the row cannot offer a stale action while the list reloads.
+ pipelines: {
+ pipelineUpdated: (state, { pipeline }) => state.map((row) => (row.id === pipeline.id ? pipeline : row)),
+ pipelineRemoved: (state, { id }) => state.filter((row) => row.id !== id),
+ },
+ mutatingPipelineIds: [
+ {} as Record<string, boolean>,
+ {
+ setPipelineMutating: (
+ state: Record<string, boolean>,
+ { id, mutating }: { id: string; mutating: boolean }
+ ) => ({ ...state, [id]: mutating }),
+ },
+ ],
+ pipelinesLoadFailed: [
+ false,
+ {
+ loadPipelines: () => false,
+ loadPipelinesSuccess: () => false,
+ loadPipelinesFailure: () => true,
+ },
+ ],
+ }),
+ loaders(({ values }) => ({
+ pipelines: [
+ [] as AutoresearchPipelineApi[],
+ {
+ loadPipelines: async (_: void, breakpoint) => {
+ if (!values.currentTeamId) {
+ return []
+ }
+ // The endpoint pages at 100 rows. Follow every page so a team with more models sees all of them.
+ const pipelines: AutoresearchPipelineApi[] = []
+ for (;;) {
+ let response
+ try {
+ response = await autoresearchList(String(values.currentTeamId), {
+ offset: pipelines.length,
+ })
+ } catch (error) {
+ breakpoint()
+ throw error
+ }
+ // Stop here when a newer load started, so this one cannot publish an older list or error.
+ breakpoint()
+ pipelines.push(...response.results)
+ if (!response.next || response.results.length === 0) {
+ return pipelines
+ }
+ }
+ },
+ },
+ ],
+ })),
+ listeners(({ actions, values }) => ({
+ // Detection for the scene empty-state gate: this is a creation-first product,
+ // so "set up" simply means at least one pipeline exists.
+ loadPipelinesSuccess: ({ pipelines }: { pipelines: AutoresearchPipelineApi[] }) => {
+ // With no team yet the loader returns an empty list that says nothing about setup.
+ if (!values.currentTeamId) {
+ return
+ }
+ actions.setDetectedStatus(pipelines.length > 0 ? 'has-data' : 'needs-setup')
+ },
+ loadCurrentTeamSuccess: () => {
+ if (values.featureFlags[FEATURE_FLAGS.AUTORESEARCH]) {
+ actions.loadPipelines()
+ }
+ },
+ setFeatureFlags: () => {
+ // Flags can arrive after mount, when afterMount already skipped the load. Start it once the flag is on.
+ if (
+ values.featureFlags[FEATURE_FLAGS.AUTORESEARCH] &&
+ values.setupStatus === 'loading' &&
+ !values.pipelinesLoading
+ ) {
+ posthog.capture('autoresearch model list viewed')
+ actions.loadPipelines()
+ }
+ },
+ loadPipelinesFailure: () => {
+ posthog.capture('autoresearch model list load failed')
+ // Never strand the gate on its spinner: with no earlier answer, fail open
+ // to the real scene. Don't downgrade an existing answer on a reload blip.
+ if (values.setupStatus === 'loading') {
+ actions.setDetectedStatus('unknown')
+ }
+ },
+ deletePipeline: async ({ id, name }: { id: string; name: string }) => {
+ if (!values.currentTeamId || values.mutatingPipelineIds[id]) {
+ return
+ }
+ actions.setPipelineMutating(id, true)
+ try {
+ await autoresearchDestroy(String(values.currentTeamId), id)
+ actions.pipelineRemoved(id)
+ posthog.capture('autoresearch model deleted', { pipeline_id: id })
+ lemonToast.success(`Deleted "${name}"`)
+ actions.loadPipelines()
+ } catch (error: any) {
+ posthog.capture('autoresearch model action failed', { action: 'delete', pipeline_id: id })
+ lemonToast.error(error?.detail ?? error?.data?.detail ?? 'Failed to delete the model')
+ } finally {
+ actions.setPipelineMutating(id, false)
+ }
+ },
+ pausePipeline: async ({ pipeline }: { pipeline: AutoresearchPipelineApi }) => {
+ if (!values.currentTeamId || values.mutatingPipelineIds[pipeline.id]) {
+ return
+ }
+ actions.setPipelineMutating(pipeline.id, true)
+ try {
+ actions.pipelineUpdated(await autoresearchPauseCreate(String(values.currentTeamId), pipeline.id))
+ posthog.capture('autoresearch model paused', { pipeline_id: pipeline.id })
+ lemonToast.success(`Paused "${pipeline.name}". Scheduled scoring is on hold.`)
+ actions.loadPipelines()
+ } catch (error: any) {
+ posthog.capture('autoresearch model action failed', { action: 'pause', pipeline_id: pipeline.id })
+ lemonToast.error(error?.detail ?? error?.data?.detail ?? 'Failed to pause the model')
+ } finally {
+ actions.setPipelineMutating(pipeline.id, false)
+ }
+ },
+ resumePipeline: async ({ pipeline }: { pipeline: AutoresearchPipelineApi }) => {
+ if (!values.currentTeamId || values.mutatingPipelineIds[pipeline.id]) {
+ return
+ }
+ actions.setPipelineMutating(pipeline.id, true)
+ try {
+ actions.pipelineUpdated(await autoresearchResumeCreate(String(values.currentTeamId), pipeline.id))
+ posthog.capture('autoresearch model resumed', { pipeline_id: pipeline.id })
+ lemonToast.success(`Resumed "${pipeline.name}"`)
+ actions.loadPipelines()
+ } catch (error: any) {
+ posthog.capture('autoresearch model action failed', { action: 'resume', pipeline_id: pipeline.id })
+ lemonToast.error(error?.detail ?? error?.data?.detail ?? 'Failed to resume the model')
+ } finally {
+ actions.setPipelineMutating(pipeline.id, false)
+ }
+ },
+ })),
+ urlToAction(({ actions, values }) => ({
+ // Reload whenever the list route is entered — the scene logic can stay mounted across
+ // navigation (e.g. returning from the create flow), so afterMount alone leaves the list
+ // showing a stale snapshot that omits a just-created pipeline.
+ // Skip the initial call that urlToAction makes on mount, because afterMount already loads.
+ [urls.autoresearch()]: (_, __, ___, { initial }) => {
+ // With the flag off the scene shows NotFound, so there is no list view to record or load.
+ if (!values.featureFlags[FEATURE_FLAGS.AUTORESEARCH]) {
+ return
+ }
+ posthog.capture('autoresearch model list viewed')
+ if (!initial) {
+ actions.loadPipelines()
+ }
+ },
+ })),
+ afterMount(({ actions, values }) => {
+ if (values.featureFlags[FEATURE_FLAGS.AUTORESEARCH]) {
+ actions.loadPipelines()
+ }
+ }),
+])
diff --git a/products/autoresearch/frontend/emptyState/AutoresearchPredictionPreview.tsx b/products/autoresearch/frontend/emptyState/AutoresearchPredictionPreview.tsx
new file mode 100644
index 000000000000..aba672449435
--- /dev/null
+++ b/products/autoresearch/frontend/emptyState/AutoresearchPredictionPreview.tsx
@@ -0,0 +1,67 @@
+import type { ProductEmptyStateMode } from 'lib/components/ProductEmptyState/types'
+import { LemonTag } from 'lib/lemon-ui/LemonTag'
+
+// Example deciles - hand-authored, not real data. The bimodal shape a healthy
+// churn/conversion model produces: most users cold, a hot tail worth acting on.
+const DECILE_USERS = [412, 188, 96, 61, 44, 32, 25, 21, 18, 74]
+
+const TOP_USERS = [
+ { user: 'sofia', probability: '96.2%' },
+ { user: 'liam', probability: '93.8%' },
+ { user: 'ava', probability: '91.4%' },
+]
+
+/**
+ * Example-data preview for the autoresearch empty state: the probability
+ * distribution plus the highest-probability users - static bars, no timers, per
+ * the preview rules in the `building-product-empty-states` skill.
+ */
+export function AutoresearchPredictionPreview(_: { mode: ProductEmptyStateMode }): JSX.Element {
+ const maxUsers = Math.max(...DECILE_USERS)
+ return (
+ <div className="flex flex-col gap-3">
+ <div className="rounded-md border border-primary bg-surface-primary p-3">
+ <div className="mb-2 flex items-center justify-between">
+ <span className="text-xs font-semibold">Probability of converting · next 30 days</span>
+ <LemonTag size="small">example data</LemonTag>
+ </div>
+ <div className="flex items-end gap-1 h-20">
+ {DECILE_USERS.map((users, decile) => (
+ <div key={decile} className="flex-1 flex flex-col justify-end h-full">
+ <div
+ className="w-full rounded-t bg-[var(--data-color-1)]"
+ style={{ height: `${Math.max(4, (100 * users) / maxUsers)}%` }}
+ />
+ </div>
+ ))}
+ </div>
+ <div className="mt-1 flex justify-between text-xs text-secondary">
+ <span>0%</span>
+ <span>100%</span>
+ </div>
+ </div>
+
+ <div className="rounded-md border border-primary bg-surface-primary p-3">
+ <div className="mb-2 flex items-center justify-between">
+ <span className="text-xs font-semibold">Highest-probability users</span>
+ <LemonTag size="small">example data</LemonTag>
+ </div>
+ <div className="flex flex-col">
+ {TOP_USERS.map((row) => (
+ <div
+ key={row.user}
+ className="flex items-center gap-2 border-b border-primary px-1 py-1.5 text-xs last:border-b-0"
+ >
+ <span className="min-w-0 truncate font-medium">{row.user}</span>
+ <span className="ml-auto shrink-0 text-secondary tabular-nums">{row.probability}</span>
+ </div>
+ ))}
+ </div>
+ <div className="mt-2 rounded border border-primary px-2 py-1.5 text-xs text-secondary">
+ Written back as a person property, for example{' '}
+ <span className="font-semibold text-primary">predicted_p_converted</span>
+ </div>
+ </div>
+ </div>
+ )
+}
diff --git a/products/autoresearch/frontend/emptyState/autoresearchEmptyState.tsx b/products/autoresearch/frontend/emptyState/autoresearchEmptyState.tsx
new file mode 100644
index 000000000000..93db38a1695e
--- /dev/null
+++ b/products/autoresearch/frontend/emptyState/autoresearchEmptyState.tsx
@@ -0,0 +1,37 @@
+import * as einsteinPng from '@posthog/brand/hoggies/png/einstein'
+import { IconFlask } from '@posthog/icons'
+
+import { pngHoggie } from 'lib/brand/hoggies'
+import type { SceneProductEmptyState } from 'lib/components/ProductEmptyState/types'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { urls } from 'scenes/urls'
+
+import { ProductKey } from '~/queries/schema/schema-general'
+
+import { autoresearchLogic } from '../autoresearchLogic'
+import { AutoresearchPredictionPreview } from './AutoresearchPredictionPreview'
+
+const HedgehogEinstein = pngHoggie(einsteinPng)
+
+export const autoresearchEmptyState: SceneProductEmptyState = {
+ statusLogic: autoresearchLogic,
+ // The whole product is behind this flag. With the flag off the gate renders the scene, and the scene shows NotFound.
+ featureFlag: FEATURE_FLAGS.AUTORESEARCH,
+ config: {
+ productKey: ProductKey.AUTORESEARCH,
+ productName: 'Autoresearch',
+ icon: <IconFlask />,
+ accentColor: 'var(--color-product-autoresearch-light)',
+ accentColorDark: 'var(--color-product-autoresearch-dark)',
+ hedgehog: HedgehogEinstein,
+ text: {
+ 'needs-setup': {
+ headline: 'Predict what your users will do next',
+ lead: 'Pick a target event, a population, and a horizon. An agent trains and compares models until it finds the best one, then scores your users on a schedule and writes each prediction back to PostHog.',
+ },
+ },
+ primaryAction: { label: 'New model', to: urls.autoresearchNew() },
+ previewLabel: 'Predictions, once trained',
+ Preview: AutoresearchPredictionPreview,
+ },
+}
diff --git a/products/autoresearch/manifest.tsx b/products/autoresearch/manifest.tsx
index 8784afc8e693..d0cf1fd478c4 100644
--- a/products/autoresearch/manifest.tsx
+++ b/products/autoresearch/manifest.tsx
@@ -1,7 +1,40 @@
+import { FEATURE_FLAGS } from 'lib/constants'
+import { urls } from 'scenes/urls'
+
+import { ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'
import { ProductManifest } from '~/types'
export const manifest: ProductManifest = {
name: 'Autoresearch',
- treeItemsNew: [],
- treeItemsProducts: [],
+ scenes: {
+ Autoresearch: {
+ name: 'Autoresearch',
+ import: () => import('./frontend/AutoresearchScene'),
+ projectBased: true,
+ description:
+ 'Automatically find the best model to predict user behavior and score your users on a schedule.',
+ iconType: 'experiment',
+ },
+ },
+ routes: {
+ '/autoresearch': ['Autoresearch', 'autoresearch'],
+ },
+ urls: {
+ autoresearch: (): string => '/autoresearch',
+ autoresearchNew: (): string => '/autoresearch/new',
+ autoresearchPipeline: (id: string): string => `/autoresearch/${id}`,
+ },
+ treeItemsProducts: [
+ {
+ path: 'Autoresearch',
+ intents: [ProductKey.AUTORESEARCH],
+ category: ProductItemCategory.TOOLS,
+ type: 'autoresearch',
+ href: urls.autoresearch(),
+ flag: FEATURE_FLAGS.AUTORESEARCH,
+ iconType: 'experiment',
+ tags: ['alpha'],
+ sceneKey: 'Autoresearch',
+ },
+ ],
}
diff --git a/products/autoresearch/mcp/AGENTS.md b/products/autoresearch/mcp/AGENTS.md
index bce81e609b7f..fe5487bc07bb 100644
--- a/products/autoresearch/mcp/AGENTS.md
+++ b/products/autoresearch/mcp/AGENTS.md
@@ -7,7 +7,7 @@ During a run, the sandbox agent has no other write path. It records iterations,
## What lives here
- `tools.yaml`
- The whole surface: 20 enabled tools, `category: Autoresearch`, `feature: autoresearch`, `url_prefix: /` until the list scene lands its route. The family must stay at or below 25 tools: above that the exec tool's compact domain index splits it into sub-domains, and the serialized exec schema crosses the claude.ai registry cap (see `services/mcp/tests/unit/instructions-formatter-snapshot.test.ts`). Duplicative tools (`suggestions-retrieve`, `templates-list`, `validate-online-create`, `artifacts-delete-create`) are disabled rather than removed. `resolve-template-create` names every template key, so it replaces `templates-list` as the template entry point.
+ The whole surface: 20 enabled tools, `category: Autoresearch`, `feature: autoresearch`, `url_prefix: /autoresearch`. The family must stay at or below 25 tools: above that the exec tool's compact domain index splits it into sub-domains, and the serialized exec schema crosses the claude.ai registry cap (see `services/mcp/tests/unit/instructions-formatter-snapshot.test.ts`). Duplicative tools (`suggestions-retrieve`, `templates-list`, `validate-online-create`, `artifacts-delete-create`) are disabled rather than removed. `resolve-template-create` names every template key, so it replaces `templates-list` as the template entry point.
Each entry names an `operation` (an operation id from the OpenAPI spec), an `enabled` flag, required `scopes` (`autoresearch:read` / `autoresearch:write`, plus every extra scope the endpoint's `required_scopes` names, such as `query:read`: MCP hides a tool whose scopes the key lacks), `annotations` (`readOnly`, `destructive`, `idempotent`), and a `title` + `description`.
Tool entries are scaffolded from the OpenAPI schema — `pnpm --filter=@posthog/mcp run scaffold-yaml -- --sync-all` keeps the tool list and operation ids in sync. Everything editorial (description, title, `enrich_url`, `exclude_params`) is yours to write.
diff --git a/products/autoresearch/mcp/tools.yaml b/products/autoresearch/mcp/tools.yaml
index 4b79898f3690..8c5d10bbd537 100644
--- a/products/autoresearch/mcp/tools.yaml
+++ b/products/autoresearch/mcp/tools.yaml
@@ -6,7 +6,7 @@
# All other fields (title, description, enrich_url, etc.) are yours to configure.
category: Autoresearch
feature: autoresearch
-url_prefix: /
+url_prefix: /autoresearch
ui_apps: {}
tools:
autoresearch-archive-create:
diff --git a/products/autoresearch/package.json b/products/autoresearch/package.json
index 00c6ad6f751b..0c29f5101683 100644
--- a/products/autoresearch/package.json
+++ b/products/autoresearch/package.json
@@ -10,6 +10,7 @@
"kea-loaders": "catalog:",
"kea-router": "catalog:",
"kea-subscriptions": "catalog:",
+ "posthog-js": "catalog:",
"zod": "^4.0.0"
},
"devDependencies": {
diff --git a/services/mcp/src/tools/generated/autoresearch.ts b/services/mcp/src/tools/generated/autoresearch.ts
index 2c76fd83e52b..89b4b132513c 100644
--- a/services/mcp/src/tools/generated/autoresearch.ts
+++ b/services/mcp/src/tools/generated/autoresearch.ts
@@ -104,7 +104,7 @@ const autoresearchList = (): ToolBase<
])
),
} as typeof result
- return await withPostHogUrl(context, filtered, '/')
+ return await withPostHogUrl(context, filtered, '/autoresearch')
},
})
@@ -180,7 +180,7 @@ const autoresearchModelsList = (): ToolBase<
])
),
} as typeof result
- return await withPostHogUrl(context, filtered, '/')
+ return await withPostHogUrl(context, filtered, '/autoresearch')
},
})
@@ -331,7 +331,7 @@ const autoresearchSuggestionsList = (): ToolBase<
])
),
} as typeof result
- return await withPostHogUrl(context, filtered, '/')
+ return await withPostHogUrl(context, filtered, '/autoresearch')
},
})
@@ -711,7 +711,7 @@ const autoresearchTrainingRunsList = (): ToolBase<
])
),
} as typeof result
- return await withPostHogUrl(context, filtered, '/')
+ return await withPostHogUrl(context, filtered, '/autoresearch')
},
})
diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.json
index 81bb5cba5f42..cecea0b80050 100644
--- a/services/mcp/src/tools/links/app-url-manifest.json
+++ b/services/mcp/src/tools/links/app-url-manifest.json
@@ -239,6 +239,21 @@
"params": [],
"scope": "global"
},
+ "autoresearch": {
+ "template": "/autoresearch",
+ "params": [],
+ "scope": "project"
+ },
+ "autoresearchNew": {
+ "template": "/autoresearch/new",
+ "params": [],
+ "scope": "project"
+ },
+ "autoresearchPipeline": {
+ "template": "/autoresearch/{id}",
+ "params": ["id"],
+ "scope": "project"
+ },
"batchExport": {
"template": "/pipeline/batch-exports/{id}",
"params": ["id"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
index 4795848b74b3..cdf1e2192383 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
@@ -13,7 +13,7 @@
"type": "object"
},
"url": {
- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/autoresearch\n/autoresearch/new\n/autoresearch/{id}\n/billing/authorization_status\n/broadcasts\n/broadcasts/new\n/broadcasts/{id}\n/business-knowledge\n/business-knowledge/playground\n/business-knowledge/settings\n/business-knowledge/{id}\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/loop/{loopId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/by-external-id/{externalId}\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/customer_analytics/tasks\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/tiles/{tileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-destinations\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/debug/precompute\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors\n/engineering-analytics/authors/{handle}\n/engineering-analytics/deploys\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/tests\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/etl\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/files\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/games/shipit\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/missing-capabilities\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-registry\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/widgets/{widgetId}\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/billing/real-time-usage\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/organization-authentication/{feature}/{configId}\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/terminal\n/themes/custom-css\n/toolbar\n/tracing\n/tracing/retention-rules/new\n/tracing/retention-rules/{id}\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/agents\n/web/bots\n/web/content-autopilot\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard/runs\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
"type": "string"
}
},