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.

chore(devex): stop agents from adding internal docs per pr (#102121)

Julian Bezd98daad431eb
diff --git a/AGENTS.md b/AGENTS.md
index b136f7fa10d1..e782967ea8ca 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -37,7 +37,7 @@
## Commits and Pull Requests
- Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) for all commit messages and PR titles.
-- When a change touches user-facing behavior, an API, a config/setting, or a documented workflow, update the matching doc under `docs/` **in the same PR** — treat a stale doc as part of the breakage, not a follow-up.
+- When a change touches user-facing behavior, an API, a config/setting, or a documented workflow, update the existing doc under `docs/` **in the same PR** — a stale doc is part of the breakage. **Never add a new doc unless a person asks**; PR context goes in the PR description.
### Commit types
diff --git a/docs/README.md b/docs/README.md
index 38308cd1b731..5352019226b5 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,6 @@
# PostHog Documentation
-Developer-focused documentation alongside code. Update docs in the same PR as your code changes.
+Developer-focused documentation alongside code. Update existing docs in the same PR as your code changes. Add a new doc only when a person asks for it.
## Structure
diff --git a/docs/internal/ai-observability-taggers.md b/docs/internal/ai-observability-taggers.md
deleted file mode 100644
index 89e3a665312b..000000000000
--- a/docs/internal/ai-observability-taggers.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# AI observability taggers
-
-Taggers automatically add custom tags to AI generations.
-The Tags pages and tagger API require the `llm-analytics-tags` feature flag.
-The pages load tagger data only after the feature flag resolves as enabled.
-
-## Creating taggers
-
-Opening the Tags page only loads existing taggers.
-An empty project stays empty until someone with editor access selects **Create tagger** and saves a tagger.
-There is no automatic or bulk creation of default taggers.
-
-Removing default creation does not change taggers that already exist.
-
-## Planned retirement
-
-We plan to remove Taggers as soon as Evaluations support categorical output types.
diff --git a/docs/internal/customer-analytics-billing-tabs.md b/docs/internal/customer-analytics-billing-tabs.md
deleted file mode 100644
index 13ab60ce04d6..000000000000
--- a/docs/internal/customer-analytics-billing-tabs.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Account usage and spend tabs
-
-Usage and Spend display saved billing insights in both expanded account rows and the account detail scene.
-The account supplies the organization variable, and the date filter supplies the start and end dates.
-SQL variable pickers are hidden because these values are controlled by the account tab.
-
-Supported SQL charts render through `AccountBillingChart`. Other visualizations, including series
-breakdowns, render through an embedded `Query` in a fixed-height container. Embedded SQL charts fill
-that container; standalone SQL insights retain their viewport-based height.
-
-The Usage tab offers Daily, Weekly, and Monthly aggregation. Daily is the default.
-Weekly buckets start on Monday; monthly buckets start on the first day of the month.
-Each bucket sums only the daily usage inside the selected date range, so edge buckets can be partial.
-The tab groups the existing saved query's date and value columns without changing the saved insight.
-Spend insights retain their existing monthly calculations.
-
-Usage queries request up to 10,000 buckets so year-to-date ranges are not cut off by SQL table pagination.
-Automatic usage charts use the account chart renderer, with date-axis tick spacing and wrapping series
-controls outside the fixed-height plot. The interval and date controls wrap in narrow containers.
-The selected interval survives tab switches while the account remains open.
diff --git a/docs/internal/customer-analytics-email-matching.md b/docs/internal/customer-analytics-email-matching.md
deleted file mode 100644
index 213a8ea93fad..000000000000
--- a/docs/internal/customer-analytics-email-matching.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Customer analytics email matching
-
-Customer analytics uses a shared matcher to link email threads and calendar meetings to accounts.
-The matcher checks each participant address in this order:
-
-1. The account's `known_emails` property.
-2. The person's associated group.
-3. Organization membership, when the Gmail owner's staff-only account member search is enabled.
-4. The account's `email_domains` property.
-
-An ambiguous match stops further matching for that address.
-Other participants can still match accounts.
-
-## Internal email exclusion
-
-The matcher removes addresses with the exact `@posthog.com` suffix before any matching step.
-It trims whitespace and converts addresses to lowercase before this check.
-This keeps internal participants from linking customer correspondence to internal accounts.
-Subdomains and similar domain names do not match this exclusion.
-Other participant addresses keep their existing matching behavior.
-
-This rule uses `POSTHOG_INTERNAL_EMAIL_SUFFIX`.
-It does not depend on account names or the `exclude_from_crm` group property.
-
-## Existing links
-
-The exclusion applies when the matcher processes new or updated email threads and calendar meetings.
-Deployment alone does not change stored associations.
-
-To update existing email links, call `schedule_email_thread_link_recalculation(team_id)` from `products.customer_analytics.backend.facade.email_matching` for the affected project after deployment.
-The task replaces each thread's account links, including removing links that no longer match.
-It preserves the email thread and its messages.
-Check that customer links remain and excluded addresses no longer produce account links.
-
-The calendar rematch task processes only meetings without an account.
-It does not remove existing meeting assignments.
diff --git a/docs/internal/customer-analytics-property-editors.md b/docs/internal/customer-analytics-property-editors.md
deleted file mode 100644
index 25da42b40ad6..000000000000
--- a/docs/internal/customer-analytics-property-editors.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Account property editors
-
-Percent editors show percentage units, so a stored `0.184` appears as `18.4%`.
-Saving converts the entered percentage back to its stored fraction.
-
-Date-only properties preserve the calendar date from the API, including when the API
-returns a UTC-midnight timestamp. Datetime properties retain local timezone handling.
-The date picker keeps an attempted selection available after a failed save.
-
-## Pin preferences
-
-Omitting `pinned_properties` from a PATCH to
-`/api/projects/:team_id/user_customer_analytics_config/@me/` preserves the existing
-selection. An explicit empty list clears it.
-
-API keys and OAuth tokens require `account:write` to change pins. Session-authenticated
-viewers can personalize their pins from the sidebar or expanded account rows without permission to edit account values.
-
-A failed save keeps the pin selector open with the attempted selection and order.
-The user can retry the save or remove a rejected property.
-
-Legacy child-environment URLs read and update the same user configuration as their parent project.
-They require access to the parent project and its Customer analytics resource. Scoped
-credentials must include the parent project, not only the child environment.
-Successful pin saves emit `customer analytics account pinned properties saved` with aggregate
-counts only. Failed attempts do not emit a success event.
diff --git a/docs/internal/customer-analytics-tasks-mcp.md b/docs/internal/customer-analytics-tasks-mcp.md
deleted file mode 100644
index 0eaf23b8695b..000000000000
--- a/docs/internal/customer-analytics-tasks-mcp.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Manage Customer analytics tasks through MCP
-
-Enable `customer-analytics-customer-tasks` for the caller, then reconnect the MCP client to discover the task tools.
-Read operations require `customer_task:read`; writes require `customer_task:write`.
-Existing project membership, task permissions, and linked-account visibility apply.
-
-| Tool | Operation |
-| -------------------------------- | -------------------------------------------------------------------------------------------- |
-| `customer-tasks-create` | Create a task with a name and optional description, account, assignee, deadline, and status. |
-| `customer-tasks-list` | Search and filter tasks, with limit/offset pagination. |
-| `customer-tasks-retrieve` | Retrieve a task by UUID. |
-| `customer-tasks-partial-update` | Change selected fields, including assignment and status. |
-| `customer-tasks-archive-create` | Remove a task from active lists while preserving its history. |
-| `customer-tasks-restore-create` | Restore an archived task. |
-| `customer-tasks-activities-list` | Read the task's change history. |
-
-`account_id` is a Customer analytics account UUID. `assigned_to_id` is a PostHog project member's user ID.
-`due_at` accepts an ISO 8601 timestamp. Pass null when updating to clear an account, assignee, description, or deadline.
-Omitted update fields remain unchanged. Restore an archived task before editing it.
-Completed and canceled tasks must return to `open` before moving to another status.
-
-For SQL reads, query `system.customer_tasks`. It includes archived tasks; add `archived_at IS NULL` for active tasks.
-Direct SQL reads enforce task permissions and linked-account visibility, but do not require the task feature flag.
-Users with task-only grants can query granted tasks without account links.
-Tasks linked to accounts remain hidden until the caller can read those accounts.
-Data Modeling can materialize this table through its system-table allowlist.
-Refreshes include the project's tasks without per-user task or account restrictions. Warehouse-view permissions protect the materialized result.
-The task API and MCP tools still require the feature flag.
-Task activity history remains available through the API so historical account details can be redacted.
diff --git a/docs/internal/dashboard-keyboard-shortcuts.md b/docs/internal/dashboard-keyboard-shortcuts.md
deleted file mode 100644
index 9284c6b2c78c..000000000000
--- a/docs/internal/dashboard-keyboard-shortcuts.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Dashboard keyboard shortcuts
-
-Press `E` to enter layout editing on a dashboard with at least one tile and edit access.
-This also works while you edit dashboard filters.
-The shortcut does not activate while you type in an input, text area, or content editor.
-
-During layout editing, press `E` or `Command+Option+S` (`Ctrl+Alt+S` on Windows and Linux) to save the layout.
-Press `Escape` to cancel layout editing.
-
-`DashboardCustomizeButton` attaches `Shortcut` directly to `LemonButton`.
-The shortcut needs a reference to the DOM button to register and trigger a click.
-If a component wraps the button, it must forward that reference or contain the shortcut itself.
-
-`DashboardHeader.test.tsx` covers the `E` key from view mode and filter editing, and checks that users with view access cannot start layout editing.
diff --git a/docs/internal/duplication-lint.md b/docs/internal/duplication-lint.md
deleted file mode 100644
index 55c07d097cdd..000000000000
--- a/docs/internal/duplication-lint.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Duplication lint
-
-Run `python3 bin/lint_duplication.py --base origin/master` to check for new Python and TypeScript duplication.
-The check compares the branch's committed `HEAD` with its merge base.
-It ignores uncommitted and untracked files.
-
-A reported pair must include at least one changed file to count as new duplication.
-Removing a third copy can make the scanner pair two unchanged files differently, which must not fail the check.
-For pairs that include a changed file, the check still compares the fragment and its occurrence count with the baseline.
-
-The thresholds are in `bin/lint-duplication.limits.json`.
-When a new pair exceeds its threshold, extract the shared code into a helper.
diff --git a/docs/internal/marketing-analytics-compact-dashboard.md b/docs/internal/marketing-analytics-compact-dashboard.md
deleted file mode 100644
index c1e8b69b960f..000000000000
--- a/docs/internal/marketing-analytics-compact-dashboard.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Compact marketing dashboard
-
-The `new-marketing-analytics-dashboard` preview uses a compact section selector. The selected traffic section shows its description once above the metrics. Buttons wrap when the scene narrows, including when a side panel is open.
-
-Source and conversion-goal suggestions start collapsed for new preferences. Existing expansion preferences remain respected. Both notices retain their review and setup actions.
-
-Acquisition keeps visitors, sessions, pageviews, new customers and the customer-to-visitor ratio. Customer goal selection, comparison periods and breakdown sorting retain their existing behavior.
-
-The full-width Acquisition trend shows total visitors using pageview and screen events. The breakdown selector only groups the table below it; it does not filter the trend or overview cards. Channel, UTM source, referring domain, campaign, medium and landing page remain separate options. The table retains customer metrics when a customer goal is configured.
-
-Retention, conversion and revenue retain their existing controls and feature flags. Conversion displays its section description below the heading.
-
-With the new dashboard enabled, top-level navigation contains Dashboard, Ad performance and Setup. Attribution explorer and Retention explorer remain available in the legacy dashboard only. Existing explorer tab URLs fall back to Dashboard in the new layout. Conversion and Retention remain accessible through the dashboard section selector, subject to their existing feature flags.
diff --git a/docs/internal/marketing-analytics-configuration-writes.md b/docs/internal/marketing-analytics-configuration-writes.md
deleted file mode 100644
index aa5362b2a119..000000000000
--- a/docs/internal/marketing-analytics-configuration-writes.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Marketing configuration writes
-
-Settings updates send only the changed field and refresh the Marketing configuration under a row lock, preserving unrelated concurrent changes.
-
-Explicit conversion-goal list updates still replace the list; simultaneous edits to that same list are not merged.
-
-Loading a project replaces the current and saved Marketing settings with that project’s configuration, including an empty configuration when none exists.
-
-Setup is available when either `marketing-analytics-setup` or `new-marketing-analytics-dashboard` is enabled for the requesting person. Both Setup endpoints use the same rule; existing project permissions still apply.
-
-Setup usage emits `marketing analytics setup section viewed` on entry and section changes.
-Suggestion review, dismissal, restoration, batch review, capability filters, rescans and navigation have separate events.
-`marketing analytics setup change submitted`, `change completed` and `change failed` share the same prefix and report operation types, counts, source and whether the change is an undo. Completed reports the server's applied count, which may be zero.
-`marketing analytics setup sync retry completed` reports requested and failed counts; it measures scheduling retries, not completed syncs.
-Payloads exclude suggestion IDs, titles, evidence, goal names and UTM values. Source navigation measures entry into connection flows; existing warehouse connection events measure their completion.
-
-## Acquisition preview
-
-With `new-marketing-analytics-dashboard` enabled, the dashboard shows visitors, sessions and pageviews using the existing Web Overview query and metric cards. The date range, comparison and saved test-account filter apply to both the summary and channel table. Reload summary refreshes only the summary. The legacy dashboard remains available when the flag is off.
-
-Revenue in the new dashboard uses event/action goals marked as revenue that sum an amount property. It displays one goal at a time through the existing attribution table, counts repeat purchases and shares attribution date, breakdown and exclusion filters. Projects without eligible goals link to Setup. Warehouse goals remain in Ad performance.
-
-Revenue ranks rows by their highest attributed value across models before the server limit and chart limit. Conversion queries retain conversion-count ordering.
-
-Engagement displays session duration and bounce rate from the same Web Overview response as Acquisition. Both sections share date, comparison and test-account filters; rendering Engagement adds no extra query.
-
-The new dashboard embeds the existing Attribution explorer as Conversion when `marketing-analytics-attribution` is enabled. It keeps goal selection, attribution models, conversion paths and the explorer’s date and test-account filters.
-
-The new dashboard shows undismissed ad-source connection suggestions from the existing Setup plan. The accordion remembers its expanded state in local storage. Connect opens the existing review in Setup; sources are never connected automatically. Dismissed suggestions can be restored in Setup.
-
-Each Setup section also lists its dismissed suggestions behind Show dismissed, with an individual Restore action. This remains available when all suggestions in that section are dismissed.
-
-The new dashboard also embeds the existing Retention explorer when `marketing-analytics-retention` is enabled. It shares the acquisition date range and keeps the explorer’s cohort controls, reload and empty state. Previous-period comparison and the traffic test-account filter do not apply to Retention.
-
-With `new-marketing-analytics-dashboard` enabled, Marketing Analytics opens directly without the product welcome screen or its setup reminder. Existing setup status and local skip preferences remain unchanged; disabling the flag restores the previous onboarding behavior. Configuration remains available in Setup.
-
-The bypass waits for feature flags before mounting setup detection. The explicit `?empty_state` preview still takes precedence.
-
-With `new-marketing-analytics-dashboard` enabled, Ad performance reuses the existing ad spend dashboard. Its conversion-goal switch appears only when goals are configured and defaults to on. Turning it off limits the summary and table queries to ad-platform metrics, including platform-reported conversions, and omits saved and draft PostHog conversion goals. This preference applies only to Ad performance; leaving the tab or disabling the dashboard flag restores the legacy queries and saved column choices. Ad performance keeps source status and reconnect controls visible when loading sources fails, without entering legacy onboarding.
-
-The new dashboard shows the conversion-goal suggestions from Setup, including missing New user and Revenue classifications. Review in Setup opens the existing configuration flow. Dismissed suggestions remain recoverable in Setup, and collapsing the dashboard suggestions persists in local storage. This does not create goals automatically or change candidate ranking.
-
-When the main content panel is narrow, Setup provides a section selector in place of the sidebar. Dashboard suggestion headers keep Review in Setup beside the title.
-
-The new dashboard opens on Acquisition. Its section tiles show one section at a time while preserving the shared date and comparison filters. Retention, Conversion, and Revenue tiles follow their existing feature flags.
-
-Acquisition and Engagement reuse the Web Analytics stats table with a shared traffic breakdown selector. The Acquisition table shows visitors, sessions and pageviews; the Engagement table shows visitors and bounce rate. Summary cards remain visitors, sessions, and pageviews for Acquisition, and session duration and bounce rate for Engagement. Changing sections preserves the selected breakdown, date range, and comparison.
-
-Comparison and Reload summary controls appear only in Acquisition and Engagement, where they affect the displayed traffic data. The comparison selection is retained when visiting other sections.
-
-Acquisition also shows unique visitors completing a selected customer goal and their ratio to visitors, with prior-period comparison and channel/campaign breakdowns. Event and action goals marked as customer-defining are supported; warehouse goals remain in Ad performance. The selected goal's property filters apply only to conversions, preserving the visitor denominator. Multiple goals are selected individually, and removing or unmarking a selection falls back to another eligible goal or the Configure in Setup card.
-
-These are unique converters within the selected period, not a first-ever customer calculation. Choose a once-per-customer event or action to interpret the metric as new customers. The Acquisition table retains visitors, sessions and pageviews, adding customers and their ratio to visitors when a goal is selected. The ratio can exceed 100% when conversion events arrive without pageviews or screenviews. Engagement and the legacy dashboard remain unchanged.
-
-Reload summary stays disabled until both traffic and customer metrics finish loading in Acquisition.
-
-### Acquisition code ownership and verification
-
-The dashboard, customer-goal selection, customer-to-visitor calculation, and traffic column presentation live in `products/marketing_analytics/frontend/dashboard/`. Attribution owns its revenue and attribution controls. Web Analytics owns the reusable query execution, including conversion property filters and optional traffic metrics.
-
-To verify Acquisition, enable `new-marketing-analytics-dashboard` and open `/project/<project_id>/marketing` in a development project with pageviews and a customer event or action:
-
-1. In Setup, mark a conversion goal as a new customer goal. Return to Dashboard → Acquisition.
-2. Confirm Visitors, Sessions, Pageviews, New customers, and Customer-to-visitor ratio appear. Select another customer goal and confirm the customer metrics update.
-3. Switch the traffic breakdown from Channel to Campaign and enable comparison. Confirm the table and summary use the selected period.
-4. Open Engagement, change dates, and return to Acquisition. Confirm the dates and breakdown remain selected and the customer metrics reload.
-5. Remove or unmark the selected customer goal in Setup. Confirm Acquisition falls back to another eligible goal, or shows Configure in Setup if none remain.
-
-Customer-goal selection and ratio tests live beside the dashboard. The dashboard suites also cover section gating and source-suggestion navigation.
-
-Click a traffic metric column heading to sort descending; click it again to sort ascending. Acquisition and Engagement retain separate sort selections.
diff --git a/docs/internal/marketing-analytics-date-filter.md b/docs/internal/marketing-analytics-date-filter.md
deleted file mode 100644
index 2d17b9d2c466..000000000000
--- a/docs/internal/marketing-analytics-date-filter.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Marketing analytics date filter
-
-The shared Marketing analytics dashboard toolbar shows the active date range beside Reload.
-Users can inspect and change the range without opening Options.
-The toolbar wraps its controls when space is limited.
-
-Options contains comparison, integrations, and test-account filtering.
-Attribution and retention explorers keep their date selectors inside their Options popovers.
-
-The date selector continues to use the existing shared date state, URL parameters, and time-precision support.
-Moving it does not change query ranges or aggregation behavior.
diff --git a/docs/internal/marketing-analytics-demo-data.md b/docs/internal/marketing-analytics-demo-data.md
deleted file mode 100644
index 37aa5a6051b2..000000000000
--- a/docs/internal/marketing-analytics-demo-data.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Marketing analytics demo traffic
-
-`generate_marketing_demo_data` generates returning visitors and a mix of single-page and multi-page sessions for paid and free channels. Repeated pageviews share a session ID and have later timestamps, so visitors, sessions, pageviews and engagement metrics can be reviewed separately.
-
-Use a fresh local project and at least twice the dashboard date range for previous-period comparisons. The command defaults to 60 days, covering two 30-day periods. It also configures demo warehouse sources and goals; it is not a traffic-only seeder.
-
-```sh
-DEBUG=1 python manage.py generate_marketing_demo_data --team-id <demo-project-id> --days-past 60 --scale 0.1
-```
-
-Existing seeded events are unchanged. Generate into a new project to avoid mixing old and new traffic distributions.
diff --git a/docs/internal/marketing-page-visibility.md b/docs/internal/marketing-page-visibility.md
deleted file mode 100644
index 606c876b764d..000000000000
--- a/docs/internal/marketing-page-visibility.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Marketing analytics page visibility
-
-The `new-marketing-analytics-dashboard` preview includes Page visibility between Ad performance and Setup.
-Open `/marketing?tab=page-visibility` within the current project.
-
-Page visibility reuses Web Analytics Page performance: page metrics, Google search visibility, AI referrals, crawler activity, and conversion breakdowns.
-Its date, domain, device, comparison, path cleaning, conversion goal, and property controls retain the existing query definitions.
-Filter changes keep the Marketing analytics route, and shared URLs restore those filters.
-No project-specific conversion goal or campaign is preselected.
-
-Google search and crawler sections retain the existing setup requirements and empty states.
-The original Web Analytics Page performance tab keeps its existing feature flag and URL.
-
-Marketing-specific AI tools and attached context are inactive on Page visibility because its controls use independent Web Analytics state.
-
-Page visibility keeps its filters, dates, comparison and conversion goal separate from Web Analytics, including across reloads. Each surface restores only its own URLs.
diff --git a/docs/internal/mcp-analytics-activity.md b/docs/internal/mcp-analytics-activity.md
deleted file mode 100644
index e32f34abd54f..000000000000
--- a/docs/internal/mcp-analytics-activity.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# MCP Analytics activity counts
-
-The Activity banner summarizes the activity overview's fixed 30-day window. Its
-call count, client count, favorite tool, and failures all come from that overview.
-The lifetime onboarding signal only determines whether to show first-call copy;
-it does not replace the 30-day count. A project with older calls and no recent
-activity sees "No tool calls in the last 30 days".
-
-The live activity table defaults to 30 days, but its date and property filters
-apply only to the table. Changing them does not change the banner's window.
-Event count queries preserve the selected event names and date range. The total
-removes property and `where` filters; the matched count retains them. Both retain
-fixed properties that scope the table.
-
-The activity table labels counts and pagination as "tool calls". Its toolbar
-stays fixed while results scroll through LemonTable's content scroll support.
-Other DataTable consumers opt into this behavior through
-`QueryContext.dataTableAllowContentScroll` and can customize count and pagination
-nouns through `QueryContext.dataTableNouns`.
diff --git a/docs/internal/mcp-analytics-dashboard.md b/docs/internal/mcp-analytics-dashboard.md
deleted file mode 100644
index 140fccebedb0..000000000000
--- a/docs/internal/mcp-analytics-dashboard.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# MCP analytics dashboard layout
-
-The overview groups usage trends before the harness and model breakdowns, followed by reliability and sessions flagged for review.
-The tool calls and errors chart shares a row with the tool call breakdown when the scene is at least 64rem wide.
-Both chart areas have matching heights.
-Harness and model cards share a row when the scene is at least 48rem wide; narrower scenes stack them.
-The error-rate chart and sessions flagged for review also share a row at 64rem.
-Both pairs stack below that width to keep chart labels and table columns readable.
-These breakpoints follow the scene container, including when a side panel reduces the available space.
-
-Harness and model breakdowns use the same horizontal Quill bar chart treatment.
-Both charts use plain bars with a shared scale from zero to all calls in the selected period, so bar lengths agree with the displayed percentages.
-Model percentages include unknown calls in their denominator.
-The unknown-model percentage sits beside the call count, with the exact count and an explanation in a tooltip.
-Both chart regions have a bounded height and scroll when their labels need more space.
-
-The **Show all models** button in the card header opens a dialog with the existing paginated model table.
-It keeps the dashboard layout stable while browsing long model names or additional pages.
-The harness overview shows the top six named harnesses and groups the remaining calls into **Other harnesses**.
-This group includes smaller named harnesses and the backend's unrecognized-client bucket; it does not mean that every call lacks client identity.
-**Show all harnesses** opens a paginated table of all returned harness groups, preserving the active dashboard filters.
-The table labels the backend's existing **Other** bucket as **Unrecognized harnesses**.
-The combined chart row shows a call-weighted error rate and omits sessions, since one session may contain calls from multiple harnesses.
-**Explore models** opens the breakdown in an insight with the current filters.
-
-For visual checks, use the dashboard and narrow dashboard stories, plus the harness and model card stories.
-Check light and dark themes, laptop windows, and a 520px scene.
-Verify that labels stay readable, the two breakdown surfaces match, tiny bars respond to hover, and the model dialog supports pagination and closing.
-
-Run the full scene stories after the narrow story when checking snapshots.
-The snapshot runner clears the previous layout class before each capture, so padded component styles cannot shrink later fullscreen scenes.
diff --git a/docs/internal/mcp-model-identification.md b/docs/internal/mcp-model-identification.md
deleted file mode 100644
index bd2c0c9ecbd5..000000000000
--- a/docs/internal/mcp-model-identification.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# MCP model identification
-
-The MCP analytics model chart shows the six most-used reported model identifiers.
-Other models combines the remaining identifiers and counts toward the identified percentage.
-Unknown counts calls with no captured model identifier.
-The coverage summary separates unknown calls from the model ranking.
-It remains visible when every call is unknown, showing 0% identified coverage.
-The ranking shows named models by call count, followed by Other models; all percentages use all calls, including unknown calls, as the denominator.
-Show all models expands a table of individual reported identifiers, loaded on demand in pages of 50.
-The table uses the dashboard filters and keeps unknown calls in the percentage denominator.
-Unknown calls stay in the coverage summary, and changing filters resets the expanded table.
-For a date range ending now, the first page fixes the time bounds for subsequent pages and retries.
-Late-arriving events within those bounds can still affect counts; the table is not a database snapshot.
-The query's `includeAllModels` option enables this ungrouped view; `limit` (1 to 100) and `offset` select a page, and `hasMore` indicates another page is available.
-Explore models opens a Trends table that trims model identifiers and groups missing or blank values under Unknown, with the dashboard's date range, property filters, and test-account exclusion preserved.
-The insight link wraps the Trends query in an `InsightVizNode` so the insight editor can render the table.
-The table can show up to 50 identifiers before grouping the remaining values.
-Identifiers come from client metadata or the agent's self-report; the identified percentage measures reporting coverage, not verified model identity.
-
-PostHog's MCP server asks for `llm_model` on advertised tools and prefers recognized client metadata when available.
-Agents can report `unknown` when they do not know their model.
-Calls continue to work when the argument is omitted or invalid.
-
-## Investigating unknown calls
-
-When no model is captured, PostHog's MCP server adds `$mcp_llm_model_missing_reason` to `$mcp_tool_call`:
-
-| Value | Meaning |
-| --------------- | ---------------------------------------------------------------------------------------------------------------------- |
-| `missing` | The call omitted the `llm_model` argument. |
-| `unknown` | The argument was `unknown`, ignoring case and surrounding whitespace. |
-| `invalid` | The argument was blank or was not a string. |
-| `not_captured` | A nonempty report was supplied but the analytics SDK did not capture it, for example when the tool owns that argument. |
-| `capture_error` | Analytics preparation failed. |
-
-The reason describes the model argument only after client metadata and self-report resolution produced no model.
-A model resolved from client metadata has no missing reason, even if the agent supplied `unknown` or an invalid argument.
-Only the reason is recorded; rejected values and exception messages are not added to this property.
-
-Break down unknown calls by this property and client over a period after deployment.
-Use `missing` to investigate callers with older tool schemas or scripts that do not supply a model.
-Use `unknown` to find clients where agents lack model identity and client-supplied metadata would help.
-Do not infer a model from the client name or assume a scripted call has a calling model.
-
-Historical events and other instrumented MCP servers may have no missing reason.
-That absence does not mean the agent reported `unknown`.
-This instrumentation does not backfill historical events or change the model chart's counts.
diff --git a/docs/internal/metrics-catalog.md b/docs/internal/metrics-catalog.md
deleted file mode 100644
index 286ee71057ee..000000000000
--- a/docs/internal/metrics-catalog.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# Metric catalog
-
-The catalog first requests metric names and types from `metrics/names/`.
-It does not read metric values until a card is near the visible area.
-
-Visible cards enter a shared queue.
-After 50 ms, the queue sends up to 20 exact names to `metrics/values/` in one request.
-Only one batch runs at a time.
-The request uses POST with a JSON `names` array and keeps the current service filter.
-The server ignores `value` and `limit` when `names` is present.
-It returns up to 24 recent sparkline points per metric.
-
-The catalog matches responses by metric name, not response order.
-A service change clears queued cards and makes old responses invalid, including errors.
-Failed cards keep the Retry button.
-Query budget failures return an error instead of partial results.
-The catalog shows the empty state only after a successful request returns no usable points.
-
-Each sparkline needs an explicit width and height.
-The card gives the shared `Sparkline` component `w-full h-full` inside a fixed-height container.
-
-## Tests
-
-The component tests check the POST batch after the queue delay.
-The Storybook tests use an explicit container width and wait for a visible chart.
-They do not wait for every loading placeholder to disappear: offscreen cards stay unloaded until they enter view.
-
-## Metadata migration
-
-Migration `0323_metrics_metadata3_dual_write` adds three metadata tables on the logs cluster.
-`metric_series3` partitions by `toDate(original_expiry_timestamp)` and keeps `ReplacingMergeTree(last_seen)`.
-Merges retain the latest labelled row for each series within each expiry day.
-The expiry timestamp still controls row retention.
-Expiry partitions keep rows with different expiry dates in separate parts, so later expiry dates do not delay removal of earlier parts.
-A query for one activity day can read several expiry partitions.
-Series rows do not provide complete daily activity history.
-
-`metric_attributes3` includes `metric_name` in its columns, sort key, and materialized view grouping.
-Both metric attributes and resource attributes include the metric name.
-The sort key also includes `service_name` and `original_expiry_time_bucket` to keep their counts and retention separate during merges.
-The hourly buckets, expiry partitions, label filter, and attribute length limits match `metric_attributes2`.
-
-`metric_names3` stores metric names in hourly activity buckets, partitioned by expiry day.
-The separate `original_expiry_time_bucket` column has type `DateTime64(0)` and contains the source expiry timestamp rounded down to the hour.
-The partition key is `toDate(original_expiry_time_bucket)`.
-Its sort key is `(team_id, time_bucket, metric_name, original_expiry_time_bucket)` to support recent name lists for one project.
-The view grouping and sort key include the expiry hour, so rows with different expiry hours cannot merge.
-Its materialized view reads only samples where `has_labels` is true, including samples with empty attribute maps.
-`AggregatingMergeTree` combines rows across series and services for each project, activity hour, name, and expiry hour.
-It retains the maximum `original_expiry_timestamp` within each group. This aggregate controls TTL and remains separate from both bucket columns.
-The table records activity from labelled samples, not every sample.
-Time filters use the hourly buckets, so discovery can include activity outside the requested range within its boundary hours.
-Later readers must use `DISTINCT metric_name` because merges are asynchronous and names repeat across activity and expiry buckets.
-Queries with other label filters still need series data.
-
-Four new materialized views read `metrics2_input` and write to the new tables.
-The existing views continue to write to `metric_series2` and `metric_attributes2`.
-The distributed tables and HogQL schemas still read the existing tables.
-This phase adds storage and insert work; it does not improve query speed until reads move to the new tables.
-
-### Backfill and read cutover
-
-The migration does not copy historical rows.
-Backfill the new destination tables directly after all four materialized views exist on each logs replica.
-Do not replay a backfill through `metrics2_input`, because its existing views would also write the raw samples and old metadata again.
-
-Use a source boundary that excludes rows already written by the new views.
-Attribute counts use addition, so overlapping writes or repeated backfill batches can count rows twice.
-A timestamp boundary alone does not exclude late samples.
-Preserve the original expiry timestamps in the backfill.
-
-`metric_series2` retains only the latest row for each series after merges.
-Copying it cannot restore rows for earlier expiry partitions.
-Use retained samples and the matching series labels to populate those partitions with the original expiry timestamps.
-`metric_attributes2` does not retain metric names, so it cannot supply the new attribute rows alone.
-Preserve the `has_labels` filter when rebuilding attribute counts from samples.
-
-For `metric_names3`, use only source samples with `has_labels` set.
-Group by project, metric name, and the sample timestamp rounded to the start of its hour.
-Also group by `original_expiry_time_bucket`, computed from the source expiry timestamp rounded down to the hour.
-Keep the maximum original expiry timestamp for each group.
-Repeated catalog rows merge with `max`, so overlapping catalog batches do not add counts or shorten retention.
-The latest series rows alone cannot restore earlier hourly activity.
-
-Before a read cutover, compare metric names, label pairs, series presence per expiry day, and retention for the same source range.
-Check insert latency, materialized view errors, part counts, and storage growth during this phase.
-A later migration can move the distributed readers after the backfill is complete.
-Keep the old tables until that read cutover is stable.
diff --git a/docs/internal/models.md b/docs/internal/models.md
deleted file mode 100644
index 9ab0bbe9545a..000000000000
--- a/docs/internal/models.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Managing models
-
-The Models overview shows ten rows per page in each section: models needing attention, models behind schedule, and failing data quality checks.
-Each section has independent previous and next controls when it has more than ten rows.
-Screen readers identify these controls as Previous page and Next page.
-Paginated tables keep the height of a full page, including on a partial last page, so other sections stay in place.
-Skipped runs describe upstream models stopped after repeated failures as suspended.
-
-Open a saved view from Models to inspect its query, refresh schedule, and run history.
-The Models breadcrumb on a model detail page returns to the models list tab.
-The actions menu offers **Delete view** for a saved view and **Delete materialized view** for a materialized view.
-Deletion asks for confirmation, removes the saved view and its materialized data, and returns to Models after success.
-Queries that depend on the deleted view will stop working.
-**Revert materialization** removes the materialized data and stops scheduled refreshes while keeping the saved view.
-Endpoint-backed models use the endpoint page to manage their lifecycle.
-
-Run history shows ten runs per page with previous and next controls.
-Refreshing the history reloads the current page.
-The latest run continues to update independently while you browse older pages, so the model status and run controls reflect the current run.
-**Last synced** reports the newest completed run, even when it is older than the ten runs on the first page.
-
-When suspension enforcement is enabled, a model suspended on the serving engine shows **Suspended** in both the attention list and its detail summary.
-The summary includes the reason and the stopped schedule; past runs retain their recorded outcomes.
-A marker on a shadow engine, or a marker while enforcement is disabled, does not mean scheduled refreshes have stopped.
-
-Model list action menus use full-width buttons.
-Deleting a view shows one success notification after the deletion request succeeds.
diff --git a/docs/internal/replay-vision-evaluation-evidence.md b/docs/internal/replay-vision-evaluation-evidence.md
deleted file mode 100644
index e7d811d36ef8..000000000000
--- a/docs/internal/replay-vision-evaluation-evidence.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Replay Vision evaluation evidence
-
-Successful scanner quality evaluations retain every structured finding in `signals`, alongside `signals_count`.
-An empty result retains `signals: []`.
-The output preserves each finding's type, time range, URL, description, and confidence for review against the recording.
-
-Primary verdict agreement, signal counts, and model confidence do not measure recommendation precision.
-The suite does not score each finding's evidence or usefulness.
-Review the findings against the recording before using them to assess recommendations.
-
-Signal payloads can contain session content.
-Keep them private and out of public CI summaries, commits, and pull requests.
-See the [evaluation README](../../products/replay_vision/evals/README.md) for run instructions and data handling restrictions.
diff --git a/docs/internal/replay-vision-loading.md b/docs/internal/replay-vision-loading.md
deleted file mode 100644
index e6f3c79d2493..000000000000
--- a/docs/internal/replay-vision-loading.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Replay Vision loading
-
-Observation pages load the result independently of the recording player component. The component loads when the reader expands the recording or selects a citation. Playback remains paused on manual expansion. A citation seeks after the recording bounds and player timestamp are ready. Metadata arriving before snapshots does not consume the pending seek.
-
-Observation detail requests omit `order_by=-created_at`, which is the API default. This permits the indexed previous/next lookup when no other filters apply. Other sorting and filter parameters remain unchanged.
-
-Scanner pages load observation rows when the Observations table mounts. Leaving the table stops automatic row refreshes. Returning reloads the rows with the current filters and sort. Statistics still load for scanner warnings, including while another tab is open.
-
-Search, On-demand, Backfills, Configuration, Calibration, Scouts, and Alerts load their components when selected. Tab controls remain available while a tab loads. These imports use the shared chunk retry and error recovery behavior.
-
-To check loading performance, compare cold and warm navigation separately. Measure time until the observation result or selected tab is usable. Check JavaScript requests separately from API response times. A smaller initial dependency graph does not prove a reduction in API latency.
diff --git a/docs/internal/replay-vision-signal-evidence.md b/docs/internal/replay-vision-signal-evidence.md
deleted file mode 100644
index 81030ff262b8..000000000000
--- a/docs/internal/replay-vision-signal-evidence.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Replay Vision signal timestamps
-
-New signals responses require nonnegative whole-second timestamps with `start_time <= end_time`.
-Each finding must end at or before the recording duration. A duration of 10.9 seconds permits `REC_T 10`, but not `REC_T 11`.
-Equal start and end times are valid, including zero in a recording shorter than one second.
-
-A nonempty response fails validation when the recording duration is missing, nonfinite, zero, or negative.
-An empty signals list is valid regardless of duration.
-
-If any finding fails validation, the provider gets one correction request for the signals response.
-For timestamps past the duration, the request says to use visible timestamps or omit the finding, without clamping timestamps.
-For an unavailable duration, the request says to return an empty signals list.
-If the second response also fails, the signals step contributes no findings. The main scanner output is preserved.
-
-Time ordering is validated on `SignalsResponse`, not the shared `SignalFinding` payload.
-Stored `ScannerCallOutput` payloads can still load legacy findings whose end time precedes their start time.