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(docs): remove stale docs and harden guidance (#104523)

Raúl Negrón-Oteroa6d6fee6df01
diff --git a/AGENTS.md b/AGENTS.md
index 267c5d9a0b13..ca72b9eb502a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -36,7 +36,8 @@
## 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 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.
+- When a change touches user-facing behavior, an API, a config/setting, or a documented workflow, update a relevant existing doc under `docs/` **in the same PR**. If none exists, make no docs change.
+- A new `docs/**` file requires a person to request that specific document in the current conversation. Existing related docs, PR checklists, and general docs requirements do not authorize one. Put PR-specific context in the PR description.
### Commit types
diff --git a/docs/internal/ai-observability-evaluation-reports.md b/docs/internal/ai-observability-evaluation-reports.md
deleted file mode 100644
index b9907d34f7f8..000000000000
--- a/docs/internal/ai-observability-evaluation-reports.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Evaluation report count triggers
-
-An evaluation report configured for "Every N evaluations" counts matching results since its last delivery.
-For a report that has not been delivered, the count starts at its configured start time or creation time.
-Results remain eligible until a report is delivered, even when reaching the threshold takes more than seven days.
-For example, a report with a threshold of 100 and 10 new results per day becomes due after ten days.
-Cooldowns and daily delivery limits still apply.
-
-## Query time limits
-
-The coordinator checks count-triggered reports every five minutes and groups queries by team.
-Each report retains its own start time within the shared query.
-If a query times out, the check divides its time range and adds the counts from the two non-overlapping ranges.
-The check requests an error on timeout so partial counts cannot be mistaken for complete results.
-
-Queries and their split retries share a 100-second execution budget within a 120-second activity timeout.
-The initial query keeps its 30-second limit; split retries request at most 15 seconds each.
-Each attempt reserves room for a twofold overrun and reduces its limit when the remaining budget requires it.
-If the remaining budget cannot support another attempt, the activity fails and follows its retry policy.
-The execution budget limits query work; it does not discard older results or guarantee that every report can be checked within that budget.
diff --git a/docs/internal/ai-observability-mcp-traces.md b/docs/internal/ai-observability-mcp-traces.md
deleted file mode 100644
index b59250375bbe..000000000000
--- a/docs/internal/ai-observability-mcp-traces.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Reading LLM traces over MCP
-
-`query-llm-trace` and `query-llm-traces-list` accept an optional `detail` parameter:
-
-| Value | Content |
-| ------------------ | ----------------------------------------------------------------------------------------------------- |
-| `"full"` (default) | Full event properties, subject to response size limits. |
-| `"summary"` | Trace and event metadata with short previews of prompts, outputs, span states, and custom properties. |
-
-Omitting `detail` preserves the existing full-detail behavior. Summary mode is opt-in on both tools.
-The MCP wrapper consumes this parameter; it is not part of the backend `TraceQuery` or `TracesQuery` schema.
-
-## Investigation workflow
-
-Use `detail: "summary"` to find candidate traces or survey a trace's events, costs, timing, and errors.
-Summarized traces include `_detail: { "mode": "summary" }`.
-
-Once a trace needs investigation, use `query-llm-trace` with `detail: "full"` and retain the relevant
-date and property filters. Full detail is needed for exact tool arguments, conversation extraction,
-and searches for content that a preview may omit. A known trace can be read in full directly.
-
-The [exploring-llm-traces skill](../../products/ai_observability/skills/exploring-llm-traces/SKILL.md)
-teaches this workflow and includes scripts for parsing saved full-detail responses.
-
-## Response limits
-
-Both modes compact large responses before returning them to the MCP client. The compactor accounts
-for JSON escaping in values and keys, then checks the serialized result against its budget.
-Summary mode has a smaller budget than full detail.
-
-Long values, omitted array items or object keys, and dropped events or traces carry truncation markers.
-`detail: "full"` does not disable these limits. Missing content in a truncated response does not prove
-it was absent from the stored trace. Narrow the query or open the returned `_posthogUrl` for the complete data.
-The stored trace is unchanged by response compaction.
diff --git a/docs/internal/aws-ses-pool-imports.md b/docs/internal/aws-ses-pool-imports.md
deleted file mode 100644
index bacdcb925231..000000000000
--- a/docs/internal/aws-ses-pool-imports.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Amazon SES pool imports
-
-The `dedicated_ip_pools` table lists pool names and adds details from `GetDedicatedIpPool`.
-AWS reserves `ses-shared-pool` and `ses-default-dedicated-pool` for its shared and default dedicated pools.
-See the [AWS pool documentation](https://docs.aws.amazon.com/ses/latest/dg/managing-ip-pools.html).
-
-If AWS lists either reserved pool but rejects its detail request with `BadRequestException`, the connector keeps a row with `pool_name` only.
-Missing details do not imply a scaling mode or ownership of dedicated IP addresses.
-If AWS returns details for either pool, the connector keeps them.
-
-Import and schema discovery use the same detail-fetch helper.
-The endpoint configuration limits the fallback to exact names, and no other endpoint enables it.
-The helper reuses the existing signed requests and tracked HTTP transport.
-Pagination, retry handling, and row normalization remain unchanged.
-
-A rejected list request, a rejected custom pool detail request, or a different detail error does not use this fallback.
-Existing handling for deleted items, access failures, and transient errors remains unchanged.
-
-## Tests
-
-Run the connector tests:
-
-```sh
-hogli test products/warehouse_sources/backend/temporal/data_imports/sources/aws_ses/tests/test_aws_ses.py
-```
-
-Run the import workflow regression test with the local development services:
-
-```sh
-hogli test products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_aws_ses_source.py
-```
-
-The workflow test supplies controlled AWS HTTP responses and checks the imported warehouse data.
-It does not test a live AWS account.
diff --git a/docs/internal/canvas-collaboration.md b/docs/internal/canvas-collaboration.md
deleted file mode 100644
index d65cffa693c0..000000000000
--- a/docs/internal/canvas-collaboration.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Canvas collaboration
-
-## Access
-
-Signed-in project members can edit canvases in public spaces. A task-bound sandbox
-with an authenticated user has the same content access. It must use its bound task ID.
-Personal-space canvases remain private to their owner. Team boundaries do not change.
-
-Members can publish source, edit files, rebuild the current version, stage drafts,
-promote drafts, and revert versions. They can also edit canvas context and record
-their own generation task. Only the canvas creator can rename, move, pin, describe,
-or delete the canvas. The publish and edit endpoints reject a non-creator's `name`
-field with HTTP 403, without saving source or changing the current version.
-
-## Publishing and recovery
-
-Agent runs publish by default. Ask for a draft or a review step to keep a change
-off the live canvas. A publish creates a source version and queues its build.
-The live artifact changes only after a successful build. A failed build leaves
-the last successful artifact available.
-
-For a component entry at `/src/canvas.tsx`, the builder adds the React mount code.
-The script's `src` attribute can use single or double quotes, with spaces around `=`.
-Builder fixes apply to new builds, not existing artifacts.
-Republish an affected canvas after the builder fix is deployed to replace a blank artifact.
-
-Canvas artifact responses use their enforced CSP without the application-wide report-only policy.
-Only the artifact response helper sets this exception; a CSP header alone does not enable it.
-Admin policy enforcement and reporting on other pages remain unchanged.
-
-Use `expected_current_version_id` when publishing. A stale version returns HTTP 409.
-Read the current source, apply the change again, and retry against that version.
-Use version history to inspect earlier source and revert an unwanted change.
-Version history shows the publisher and links to the publishing task without
-assuming that the task belongs to the canvas's current space.
-
-## Agent sessions
-
-The canvas panel shows the active run's chat. After the run finishes, edit mode
-shows a new composer. View mode shows an empty chat state. Comments remain attached
-to the earlier task. Each new edit starts a new task and session.
-
-## Release checks
-
-### Agent reads and run health
-
-The canvas runtime still reads complete state when it omits read options.
-The `canvas-state-retrieve` MCP tool defaults to a paged key inventory (`keys_only=true`).
-Keep `scope`, `key`, and `key_prefix` unchanged when following `next_offset`.
-Set `keys_only=false` to read small selected values.
-Use `canvas-state-value-retrieve` for long values: join `value_json` chunks, then parse the complete JSON.
-Pass the first chunk's `revision` on each continuation; restart from zero after HTTP 409.
-Inventory pages are not a snapshot, so re-read the inventory if another writer changes keys during traversal.
-
-Context wiki MCP reads also return bounded chunks.
-Follow `next_offset` with the same `head_sha` and `limit` until `complete` is true.
-Join every content chunk before editing or proposing a replacement page.
-Restart after HTTP 409 rather than joining content from different revisions.
-The ordinary page API remains a full read when `limit` is absent.
-
-Run health comes from task records, not saved canvas labels.
-Use `tasks-list` with the space's `channel`, `status=failed`, `internal=all`, and `archived=all`.
-For workflow-backed loops, add `hog_flow_id`.
-Results include the latest run's error and completion time even if the agent could not write canvas state.
-Read `tasks-runs-list` for earlier runs, or use `loops-runs-retrieve` with `status=failed` for a loop's paged failure history.
-These reads do not change task states or grant additional permissions.
-
-### Validation
-
-The desktop changes use existing endpoints and version fields. They can ship before
-or after the backend changes. The backend still controls write access. An older
-backend continues to reject shared edits until the new permissions reach it.
-
-Check shared edits with both a signed-in member and a task-bound sandbox. Confirm
-that name changes fail for non-creators, personal-space access stays private, and
-stale publishes return HTTP 409. Confirm that a finished run returns to the composer
-and that a version's task link does not use the canvas's space ID.
-
-Use the existing `canvas published` events and canvas build results to check publish
-activity and failures after release. No new analytics events are required.
diff --git a/docs/internal/customer-analytics/account-links.md b/docs/internal/customer-analytics/account-links.md
deleted file mode 100644
index c54fb2b09c41..000000000000
--- a/docs/internal/customer-analytics/account-links.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Account links
-
-Customer analytics supports two account URL forms within the current project:
-
-- `/customer_analytics/accounts/:accountId` identifies an account by its internal UUID.
-- `/customer_analytics/accounts/by-external-id/:externalId` identifies an account by its exact external ID.
-
-Both URLs open the same account detail scene when `customer-analytics-account-scene` is enabled.
-Append a tab name, such as `/usage`, to open that tab.
-Tab changes preserve the identifier form, query parameters, and URL hash.
-Existing internal links continue to use the account UUID.
-
-## External ID encoding
-
-Use `urls.customerAnalyticsAccountByExternalId(externalId, tab)` to build external-ID links.
-The helper encodes the external ID as one URL segment.
-For example, the external ID `example/account` becomes `example%2Faccount` in the path.
-Case and spaces are significant.
-
-The route uses a local wildcard because the router's named parameters do not accept all external-ID characters.
-The scene reads the raw path and decodes the external ID once.
-An encoded slash remains part of the ID, rather than a tab separator.
-A literal percent sequence must remain distinct from the character it could encode.
-
-Accounts with no external ID require a UUID link.
-Use UUID links for empty external IDs and IDs equal to `.` or `..`; browsers can normalize dot-only path segments before routing.
-
-## API lookup
-
-The external route loads the account through:
-
-```text
-GET /api/projects/:projectId/accounts/by_external_id/?external_id=...
-```
-
-The API accepts a required, nonempty string of at most 400 characters.
-Use URL query encoding for this value, not path encoding.
-The generated `accountsByExternalIdRetrieve` client handles query encoding.
-The API preserves case and whitespace and matches only `external_id` within the project.
-It does not fall back to the account UUID, even when the external ID is a UUID string.
-
-The endpoint returns the same account response as UUID retrieval, including tags and notebooks.
-It uses the same access controls and requires `account:read` for API credentials.
-Invalid input returns 400. Missing accounts and object-level access denial both return 404 so callers cannot distinguish restricted external IDs.
-
-## Scene behavior
-
-The external route waits for the current feature flags before loading, so cached flags cannot cause a premature legacy redirect.
-It makes one account lookup request and keeps the result in the existing scene logic.
-It does not resolve a UUID and then request the same account again.
-Related panels still make their own requests.
-Presence, tag edits, and nested account APIs use the returned `account.id`, never the external ID.
-Presence starts after external-ID resolution succeeds.
-
-The scene keeps external-ID links unchanged while the detail scene is enabled.
-With the detail-scene flag disabled, a successful lookup redirects to the existing UUID route for the legacy Accounts view.
-Loading failures retain the existing retry and not-found states.
diff --git a/docs/internal/customer-analytics/account-presence.md b/docs/internal/customer-analytics/account-presence.md
deleted file mode 100644
index 4f97e53269a3..000000000000
--- a/docs/internal/customer-analytics/account-presence.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Account detail presence
-
-Account detail pages show avatars for other active teammates who can read the same account.
-
-The browser sends `POST /api/projects/:team_id/accounts/:account_id/presence/` when the page opens and every 30 seconds while the tab is visible. For an [external-ID account link](account-links.md), heartbeats start after the account lookup succeeds and use the returned account UUID. The request has no body. The server derives the viewer identity from the authenticated user.
-
-Each heartbeat updates an account-scoped Redis roster. A viewer expires after 90 seconds without another heartbeat. Hidden tabs and unmounted pages stop heartbeats, so another viewer can remain visible for up to 90 seconds after leaving.
-
-The response contains only other active viewers. Each viewer has a `user_id` and `display_name`. The response does not include email addresses. Duplicate tabs from one user appear as one viewer.
-
-The endpoint requires `account:read` and returns 404 when the caller cannot read the account. Service credentials receive an empty list and do not create presence. Redis errors also return an empty list, so presence cannot prevent the account page from loading.
-
-The frontend sequences heartbeat responses. A late response cannot replace newer viewer data.
diff --git a/docs/internal/customer-analytics/email-matching.md b/docs/internal/customer-analytics/email-matching.md
deleted file mode 100644
index ee97429cbfcd..000000000000
--- a/docs/internal/customer-analytics/email-matching.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Customer analytics email matching
-
-The shared matcher checks each participant address in this order:
-
-1. The account's `known_emails` property.
-2. The account's `email_domains` property.
-3. The person's associated group.
-4. Organization membership, when the Gmail owner's staff-only account member search is enabled.
-
-A known email overrides a domain assignment.
-A unique domain assignment takes priority over person groups and organization membership, including ambiguous results from those later sources.
-Direct email matching and calendar matching skip organization membership.
-
-The first match wins for each address.
-No match allows the next step.
-An ambiguous result stops matching for that address.
-For example, if two accounts claim a domain, the matcher does not use a person group to choose between them.
-Use `known_emails` to assign individual addresses on shared domains.
-
-## Matching flow
-
-This flow runs independently for each participant address.
-Skip person-group matching when no account group type is configured.
-Skip organization membership unless one active Gmail owner passes the staff and feature-flag checks.
-
-```mermaid
-flowchart TD
- Input[Participant email] --> Normalize[Trim whitespace and lowercase]
- Normalize --> Eligible{"Contains @ and is not<br/>an @posthog.com address?"}
- Eligible -->|No| Unmatched[No account match]
- Eligible -->|Yes| Stage["Try the next enabled stage<br/>1. Known email<br/>2. Email domain<br/>3. Person's group<br/>4. Organization membership"]
- Stage --> Result{Stage result?}
- Result -->|One account| Matched[Keep the match and stop]
- Result -->|Ambiguous| Unmatched
- Result -->|No match| More{More enabled stages?}
- More -->|Yes| Stage
- More -->|No| Unmatched
-
- classDef phBlue fill:#1d4aff,stroke:#1d4aff,color:#fff;
- classDef phYellow fill:#f9bd2b,stroke:#f9bd2b,color:#000;
- classDef phGray fill:#e5e7eb,stroke:#c7ccd1,color:#000;
- class Input,Matched,Unmatched phYellow;
- class Normalize,Stage phBlue;
- class Eligible,Result,More phGray;
-```
-
-Ambiguity stops all later stages for that address.
-A lookup error can fail the task instead of allowing fallback.
-
-## Thread links
-
-Each participant can match a different account.
-When several participants match the same account, the thread keeps one link with the highest-priority source from the order above.
-A recalculation replaces the thread's account links and removes stale links without deleting messages.
-
-Deployment alone does not recalculate existing links.
-After deployment, use `schedule_email_thread_link_recalculation(team_id)` from `products.customer_analytics.backend.facade.email_matching` to update an affected project.
-Check that a unique domain assignment wins over a competing group or membership match, while a known email still overrides the domain.
-Calendar rematching processes only meetings without an account; it does not replace existing assignments.
-
-## Unchanged safeguards
-
-Addresses are trimmed and lowercased before matching.
-The exact `@posthog.com` suffix is excluded before all steps.
-The person-group lookup uses the project's configured account group type.
-The organization-membership step keeps its existing Gmail-owner gate and local-region lookup; it does not query EU membership data from the US.
diff --git a/docs/internal/customer-analytics/external-api.md b/docs/internal/customer-analytics/external-api.md
deleted file mode 100644
index ed3c90ffd43f..000000000000
--- a/docs/internal/customer-analytics/external-api.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# Customer analytics bulk account API
-
-`GET /api/customer_analytics/external/accounts` returns accounts and their active relationship assignments.
-Use a project secret API key or a personal API key with `account:read` scope.
-Send the key in the `Authorization: Bearer <key>` header.
-The endpoint does not accept the public project token or the legacy team secret token.
-Invalid personal and project secret keys share an IP rate limit.
-Requests over this limit return HTTP 429.
-
-## Personal API keys
-
-Personal keys require the `project_id` query parameter:
-
-```http
-GET /api/customer_analytics/external/accounts?project_id=<project_id>
-Authorization: Bearer <personal_api_key>
-```
-
-The endpoint accepts current `phx_` keys and legacy personal keys without a prefix.
-It uses the standard personal-key parser, which also accepts `personal_api_key` in the request body or query string.
-
-The key must permit access to the selected project and organization.
-The key owner must have project access and permission to read accounts.
-Creating an account or receiving an individual account grant does not override a resource-level denial.
-Organization security rules also apply.
-The response includes only accounts the key owner can access.
-Account access filters apply before pagination.
-The endpoint does not use the key owner's currently selected project.
-An unknown project ID returns HTTP 404.
-An existing project that the key cannot access returns HTTP 403.
-Personal-key permission errors use the standard `type`, `code`, `detail`, and `attr` fields.
-Other authentication and scope errors can use the `error` field.
-The API schema describes both formats for HTTP 401 and 403.
-
-## Project secret API keys
-
-Project secret keys (`phs_...`) use the project bound to the key.
-The `project_id` parameter is optional for these keys.
-If supplied, it must match the key's project.
-These service keys retain project-wide account access within their scopes.
-
-## Pagination and assignments
-
-The response contains `results` and `next_cursor`.
-Pass a non-null `next_cursor` as the next request's `cursor` parameter.
-Keep `project_id` and all filters the same for every page.
-The default and maximum page size is 100.
-
-Each account's `relationships` object maps relationship names to arrays of assigned users.
-Each assignment contains `user_id`, `email`, and `name`.
-Roles without active assignments are omitted.
-Use `external_id` to match accounts to external records.
-
-Ignored accounts are excluded by default.
-Use `include_ignored=true` to include them or `assigned_only=true` to return accounts with active assignments.
-Use `managed_only=true` to return accounts with at least one controlled relationship.
-This filter includes ignored accounts and cleared roles, and personal-key access rules still apply.
-An account absent from the response can be filtered or inaccessible, so absence alone does not mean its ownership was cleared.
diff --git a/docs/internal/customer-analytics/feature-requests.md b/docs/internal/customer-analytics/feature-requests.md
deleted file mode 100644
index c13ea155466c..000000000000
--- a/docs/internal/customer-analytics/feature-requests.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Customer Analytics feature request GitHub links
-
-A feature request can link to one GitHub issue through a GitHub integration connected to the same project.
-
-## Behavior
-
-- Linking and resuming sync fetch the current issue through the selected GitHub App integration.
-- The integration must be active, belong to the project, still reference the saved installation, and be visible to the person linking or resuming sync.
-- Feature request responses and history include GitHub link metadata only when the person can view the integration. Other history changes remain visible.
-- GitHub issue URLs use `https://github.com/<owner>/<repo>/issues/<number>`. Pull request URLs are rejected. Comment fragments do not affect the saved link.
-- Closing an issue with reason `completed` marks the request Completed. Legacy closures without a reason also map to Completed.
-- Closing an issue with reason `not_planned` marks the request Won't fix. Unsupported closure reasons do not change the request.
-- Reopening restores the request status that existed before GitHub closed it.
-- A manual request status update pauses GitHub sync and clears the saved pre-close status. Resuming a closed issue saves the current manual status as the new restore point.
-- Pause sync preserves the pre-close status. If the issue reopens while paused, Resume sync restores that status.
-- GitHub never overwrites the request title or description. Multiple requests can link to the same issue.
-- GitHub metadata-only updates refresh the link without changing the request version, update timestamp, attribution, or history. Status and sync-control changes still update the request.
-- Unlink issue preserves the request status and history. An existing link must be removed before another issue can be linked.
-- Link, pause, resume, unlink, and GitHub status changes are recorded in feature request history. GitHub-sourced history uses `change_source: "github"`.
-- Archived requests reject link controls. Background updates for archived requests do nothing.
-
-## Delivery and limits
-
-The GitHub ingress consumer queues installation ID, repository, issue number, title, state, close reason, and GitHub update time.
-It also carries the GitHub delivery ID and receipt time for correlation.
-It never queues issue bodies.
-
-The worker finds all matching project-scoped links for an installation.
-It ignores duplicate and older GitHub snapshots.
-When conflicting state changes share a timestamp, it fetches the current issue because GitHub timestamps have second precision.
-The worker checks the feature flag for the user who last enabled sync, with the same organization and project context as the API.
-A deleted user, unavailable integration, archived request, paused link, or disabled flag prevents automatic updates.
-
-The worker processes every matching link before it retries a delivery with a conflicted request. It does not periodically repair missed webhooks.
-Pause sync, then select Resume sync to fetch the latest issue state.
-Scheduled reconciliation and operator alerts are separate work.
-
-## Tracing a sync
-
-Start with the `X-GitHub-Delivery` value from GitHub's delivery page.
-Find the shared `ingress_delivery_dispatch` log by `delivery_id`, then filter product logs by `github_delivery_id` with the same value.
-The queue log includes `task_id`. Retries retain that task ID and increment the zero-based `sync_attempt`.
-
-| Event | Meaning |
-| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
-| `feature_request_github_delivery_queued` | Celery publication returned a task ID. This does not prove that a worker ran. |
-| `feature_request_github_task_started` | An attempt began. `delivery_age_seconds` measures time since receipt, including retry delays. |
-| `feature_request_github_target_applied` | The target transaction committed. `status_before`, `status_after`, and `changed` describe the request status change. |
-| `feature_request_github_target_skipped` | A matched target did not apply the update. Inspect `reason`. Stale and duplicate outcomes use debug level. |
-| `feature_request_github_target_conflicted` | A request version changed. Other targets can still update before the delivery retries. |
-| `feature_request_github_target_failed` | A target failed. Inspect `stage` and `error_type`. |
-| `feature_request_github_delivery_summary` | The attempt reports matched, applied, skipped, conflicted, and failed target counts. Earlier targets can commit even when the attempt fails. |
-
-Target logs include `team_id`, `feature_request_id`, `github_link_id`, and `integration_id`.
-The initial query excludes paused links, so `matched=0` does not distinguish a paused link from an unlinked issue.
-A `paused` reason means the worker observed a link pause after selecting it.
-A successful summary with `applied=0` is not proof of synchronization.
-
-Terminal failures after the three configured retries produce a sanitized `FeatureRequestGitHubTaskFailed` exception in PostHog Error Tracking.
-Search its properties by `github_delivery_id` or `task_id`, then inspect the target logs for the failing request.
-The exception retains stack locations and records the original exception type, but excludes its message, chain, and local variables.
-No new log includes issue titles, bodies, repository URLs, credentials, or raw payloads.
-
-For manual actions, search `feature_request_github_manual_action_committed` by `team_id` and `feature_request_id`.
-Link and resume fetch failures use `feature_request_github_issue_fetch_failed`, with the action, request ID, upstream status when available, and a bounded failure stage.
-These logs preserve the user-facing validation response.
-
-Verify log and exception delivery with an internal test before expanding the flag.
-Reuse the existing Celery metrics for `customer_analytics.process_feature_request_github_issue` when configuring failure alerts.
-This instrumentation does not create alerts or add missed-webhook reconciliation.
-Do not infer a missed delivery from an old `last_synced_at` alone; an unchanged issue may have no new event.
-
-## Local checks
-
-Run:
-
-```sh
-hogli test products/customer_analytics/backend/test/test_feature_request_github.py products/customer_analytics/backend/test/test_feature_request_github_observability.py
-hogli test posthog/ingress/test/
-pnpm --filter=@posthog/frontend typescript:check
-```
-
-Generate OpenAPI after backend changes with `hogli build:openapi`.
-The rollout remains gated by `customer-analytics-feature-requests`.
-
-## Rollout checks
-
-Use an internal test request and an accessible test issue.
-Link it, close it as completed, reopen it, and close it as not planned.
-Check request history after each transition.
-Change the request status manually and confirm that later issue events do not override it until sync resumes.
-Repeat a denied write as a viewer.
-Do not expand the rollout until missed-webhook recovery and synchronization health checks are available.
diff --git a/docs/internal/customer-analytics/tasks-workflows.md b/docs/internal/customer-analytics/tasks-workflows.md
deleted file mode 100644
index 5918cd30afa3..000000000000
--- a/docs/internal/customer-analytics/tasks-workflows.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# Create customer tasks from workflows
-
-In the workflow editor, add **Customer analytics > Create task**. Enter a task name and optionally a description, an account UUID, an assigned project member's user ID, and an ISO 8601 due date. All fields support workflow variables. For **Account** and **Assignee**, choose **Raw** to enter an ID or workflow expression, or **Picker** to select an account or project member using the same pickers as the task modal. Switching modes preserves the current value. A **Get account** step can supply the account UUID in raw mode.
-
-Tasks start with the **Open** status. The created task ID is available as the step's output, including on a retry.
-New workflow runs create at most one task per action visit while that task exists.
-A retry returns the same task ID without changing the task. A loop that visits the action again creates another task.
-An empty or null assignee creates an unassigned task.
-
-New task creation runs with the workflow owner's current customer task permissions.
-The owner must be active, retain access to the workflow project and its canonical project, and have editor access to customer tasks.
-Account visibility and assignee eligibility match ordinary task creation. A child project's tasks are stored in its canonical parent project.
-The customer tasks feature flag must be enabled for the workflow owner.
-
-An authenticated retry returns an existing task's UUID even if the workflow was deleted, the owner's access changed, or the flag was disabled.
-The retry must still pass token verification and match the project, workflow, and invocation key.
-This response does not grant access to task contents. Requests for new tasks still pass all creation checks.
-
-## Deployment
-
-Task creation reuses `CUSTOMER_ANALYTICS_ACCOUNTS_JWT_SECRET`, the signing key for account actions.
-Configure matching keys in Django and the workflow worker before enabling the action in production.
-Both accept comma-separated keys for rotation. The worker signs with the first key, and Django verifies against all keys.
-Development and test environments use the matching local default.
-
-New runs record their task key version before execution. Retries and manual reruns preserve that version and the action visit count.
-Runs created without a version retain their original run-and-action keys, even if no function state was saved before a worker restart.
-Those legacy runs create at most one task per action, including across loop visits.
-Start a new workflow run to use per-visit task creation.
-
-Task tokens retain their own `posthog:customer-tasks:create` audience. Account tokens cannot call the task endpoint.
-The shared key couples service access and rotation for both surfaces. See [Workflow task signing key](../../../products/customer_analytics/backend/COMPROMISES.md#workflow-task-signing-key).
-Task creation fails when the shared key is missing. Unlike account actions, it has no fallback to the project secret API token.
-
-The worker calls `POST /api/projects/{team_id}/workflow_customer_tasks/` through `INTERNAL_API_BASE_URL`, with a short-lived service token scoped to the project, workflow, and invocation/action key. The call goes directly to the backend, avoiding login redirects on the public app URL. Redirects and responses without a valid task UUID fail the workflow step. User API credentials and tokens for other actions cannot call this endpoint. No database migration is required.
-
-For local development, set `INTERNAL_API_BASE_URL` to the address where the backend listens. Linux devboxes may bind to the Docker bridge address, such as `http://172.17.0.1:8000`, instead of localhost. Restart the dev processes after changing the local environment.
-
-## Backend ownership
-
-Customer analytics registers the endpoint in `products/customer_analytics/backend/routes.py`.
-The HTTP view lives in `products/customer_analytics/backend/presentation/views/workflow_customer_tasks.py` and delegates creation to `backend/facade/workflow_customer_tasks.py` in the same product.
-That facade reads the workflow owner ID through `products/workflows/backend/facade/api.py`.
-Only Workflows queries the workflow model.
-The URL and basename stay unchanged.
-The view pins its OpenAPI product attribution to `workflows` but remains excluded from generated API docs.
-
-## Task digest content and links
-
-Task digests read the assignee's current tasks, deadlines, and permissions when built.
-Only active, assigned tasks with open or in-progress status appear.
-Task and linked-account access restrictions apply to both the listed tasks and the overdue count.
-
-**Due today** covers the full current date in the project timezone.
-The email lists up to 10 tasks, shows the total beside the section heading, and shows the remaining count below the list.
-The remaining count links to active tasks assigned to the email recipient with the **Today** due-date filter.
-**Due this week** covers tomorrow through Friday of the current workweek; Friday and weekend digests do not include next week.
-An overdue task has a deadline before the current instant, so tasks due earlier today also contribute to the overdue count.
-Empty digests are skipped, but an overdue count alone is enough to send one.
-
-Task links open the task editor using `task_id`.
-The overdue link selects `status=open`, `assignee=me`, `archive=active`, and `due=overdue` on the Tasks tab.
-Explicit URL filters replace locally saved filters, and the overdue cutoff is evaluated when the view loads.
-The notification settings link opens the personal task digest settings.
-Content generation does not schedule or send email; delivery is controlled separately.
-
-## Task digest preferences
-
-In **Settings > Customer analytics > Notifications**, each user can enable task digest emails and choose a send time and a cadence of **Weekdays** or **Every day**.
-The time uses the project timezone shown beside the control.
-The time dropdown offers half-hour choices and preserves any previously saved custom time.
-Preferences are disabled by default and apply only to the current user in the project.
-Use **Save** to persist changes; a failed save keeps the draft available to retry.
-The same Notifications section contains the existing event stream settings, and existing event stream settings links still open it.
-Task digest controls require the customer tasks feature; event stream controls retain their existing feature access.
-
-The user-config API stores preferences in `UserCustomerAnalyticsConfig.properties.task_digest`, with `enabled`, `send_time` (`HH:MM`), and `cadence` (`weekdays` or `every_day`).
-`GET` and `PATCH /api/projects/{project_id}/user_customer_analytics_config/@me/` expose this object alongside `pinned_properties`.
-Omitted fields retain their stored values, including fields within `task_digest`.
-Missing preferences return disabled, 09:00, and weekdays without changing other stored settings.
-Scheduling and email delivery are implemented separately.
-
-Users can configure their own digest from **Email digest** in the Tasks page header.
-The modal uses the same preferences form as customer analytics notification settings.
-Opening the modal records `customer analytics task digest opened`; successful saves record `customer analytics task digest preferences saved` with a `source` of `tasks` or `settings`.
-
-## Task digest delivery
-
-The `customer-analytics-task-digest` feature flag controls scheduled digest emails independently of Tasks and the event stream.
-Enable it only for the initial rollout's recipients after verifying delivery in staging.
-Disabling it stops both new scheduled sends and worker retries.
-
-Every five minutes, the scheduler reads opted-in users in batches of 100 and enqueues users whose selected time has passed in the project timezone.
-Each worker rereads preferences, membership, task permissions, and current assignments before rendering the digest.
-Weekday cadence excludes Saturday and Sunday; every-day cadence includes them.
-Daylight-saving changes follow the project timezone: a nonexistent time moves forward by the clock change, and a repeated time produces one digest for that local date.
-Delayed work can catch up during that date, but does not send an older date's digest.
-
-Digests use the checked-in `email/customer_task_digest.html` template through SMTP.
-Configure `EMAIL_ENABLED`, the SMTP host, port, authentication, TLS settings, sender, timeout, and `SITE_URL` before enabling the flag.
-Customer.io configuration alone is insufficient; there is no Customer.io template dependency for this email.
-Missing SMTP configuration records a failed occurrence instead of reporting success.
-
-The worker sends synchronously and checks `MessagingRecord.sent_at` for provider acceptance.
-The campaign key contains the project ID, user ID, and local digest date.
-Confirmed sends are skipped by repeated scheduler runs and worker retries.
-`MessagingRecord.campaign_count` caps this occurrence at four attempts; permanent rejection marks the remaining attempts unavailable.
-Temporary SMTP failures retry with backoff. A provider accepting a message does not prove inbox delivery, and a process failure between acceptance and committing the record can still duplicate a message.
-
-`customer_analytics.task_digest.delivery` records acceptance, temporary failure, retry exhaustion, permanent rejection, and missing configuration.
-`customer_analytics.task_digest.send_delay` measures the delay from the configured time to acceptance.
-These metrics have no task content, account names, or recipient email labels.
-Before a limited rollout, use test users in staging to verify a received email, current permission and opt-out checks, duplicate suppression, and the flag's kill switch.
-No production verification is implied by local tests.
diff --git a/docs/internal/feature-flags/management-warnings.md b/docs/internal/feature-flags/management-warnings.md
deleted file mode 100644
index f14e001da877..000000000000
--- a/docs/internal/feature-flags/management-warnings.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Management warnings
-
-The rules v2 management warning contract is dormant.
-It defines a diagnostic value and its wire representation, and three configuration detectors behind a facade entrypoint that no production write path calls yet.
-
-## Supported codes
-
-Management warnings describe an actionable consequence of an otherwise valid configuration or operation.
-The following triggers guide detector implementations.
-
-| Code | Trigger and placement | Suppress when |
-| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
-| `RULE_ORDER_CHANGES_TRAFFIC` | An allowed reorder changes which rule receives an overlapping population. Show it in the reorder preview. | Target populations are disjoint, or the reorder cannot change evaluation. Reject edits to a protected experiment prefix instead. |
-| `UNREACHABLE_LOWER_RULE` | An earlier terminal catch-all prevents evaluation from reaching a lower rule. Identify the blocking and unreachable rules so the user can move or remove them. | The earlier rule can continue to the lower rule. |
-| `ROLLOUT_MISS_CAN_ENTER_LOWER_RULE` | A continuing rollout miss reaches a lower rule that serves the same value outside the upper rule's percentage. Identify both rules and explain the effective reach. | Continuation alone is the only evidence. Ordinary composition of rules does not need a warning. |
-| `ASSIGNMENT_RESET_CHANGES_TRAFFIC` | Resetting a non-experiment percentage rollout's seed can change who receives its value. Show it in the reset preview. | The percentage is 0 or 100, the seed is unchanged, or evaluation cannot change. Started experiment resets remain invalid. |
-| `CONCLUSION_EXPANDS_POPULATION` | Shipping a winner or concluding to a terminal replacement extends the chosen value to people excluded by rollout or holdout. Show the expansion in the operation preview. | The removed gates do not expand who receives the value. Variant consolidation alone does not trigger it. |
-
-Reorder and rollout detectors must establish the relevant overlap and reachability before asserting an effect.
-They do not need a general solver for arbitrary targeting predicates.
-An inconclusive comparison must not claim a proven traffic change or an exact affected percentage.
-Reset and conclusion warnings belong to the operation preview, so they do not persist after the operation completes.
-
-## Other diagnostics
-
-SDK readiness checks need observed SDK capabilities and evaluation modes.
-They belong to activation and experiment-start validation rather than configuration-only warning detectors.
-Readiness explains remote request requirements and local-only or bulk-local omissions before activation; expected remote fallback alone is not a configuration defect.
-Missing attribution support is explained while drafting and blocks experiment start when the readiness policy fails.
-Equal-valued variants are valid, including A/A tests; the editor may explain that variant identity distinguishes them, and equality alone is not a warning.
-Number and object value compatibility behavior remains deferred until those values are enabled.
-None of these carry a management warning code.
-
-## Wire compatibility and detector ownership
-
-`ManagementWarning` requires `code` and permits optional `detail` and `attr` members.
-`detail` is presentation text; `attr` identifies a field when present.
-An omitted `attr` and `attr: null` both mean no field and parse as `None`.
-Serialization omits `attr` when it is `None`, so explicit null normalizes to an omitted member.
-
-The five codes are the complete `warning_codes` list of the harness registry 2.0.0 in contract package 2.0.0, released in [posthog-sdk-test-harness 1.5.0](https://github.com/PostHog/posthog-sdk-test-harness/tree/e487249c34176c053f524d96bf0f99818dc91247/contracts/feature_flag_rules_v2); the DTO rejects any other code.
-`products/feature_flags/backend/test/fixtures/rules_v2_contract/` vendors that release's config schema, registry, warning schema and config fixtures with a digest-checked pin.
-
-Share the diagnostic output type across callers.
-Define detector inputs alongside their implementations: rule checks need evaluated targeting and rollout fields, and lifecycle checks need the proposed operation.
-The structural `ConfigV2` reader omits these fields, so it cannot serve as a universal detector input; the rule detectors read `ValidatedConfig` from the strict validator instead.
-
-## Configuration validation and rule detectors
-
-`facade/config_validation.py` validates a complete canonical config version 2 candidate: the document a writer is about to persist, with rule ids and seeds already resolved, plus explicit `ValidationLimits` (the deployment filter byte limit and a per-rule metadata bound) from the trusted caller.
-It returns a `ValidatedConfig` or raises `ConfigValidationError` with every field error in a fixed order (root fields, then each rule's fields in rule order), each as a stable code (`required`, `invalid`, `unknown_field`, `not_unique`, `unsupported`, `limit_exceeded`), a presentation detail and a `filters.…` path.
-It does not read or write the database, assign ids or seeds, check permissions, or mutate the input, and a valid result is not permission to store or activate anything.
-
-The admitted family is deliberately narrower than the published schema: person-assigned boolean flags with `targeted_release` and `percentage_rollout` rules whose targeting uses person properties with the contract's canonical operators.
-String, number and object values, experiment rules, group assignment (`aggregation_group_type_index`) and cohort, group and flag properties are refused with the `unsupported` code, never with a shape code, so a schema-valid contract fixture is not relabelled as malformed and no partially checked document succeeds.
-Cohort and flag references wait for the dependency validation task; the other families wait for their milestones.
-
-`facade/rule_warnings.py` owns the three configuration detectors and `review_config`, the dormant entrypoint that validates a candidate and returns its warnings as `ManagementWarning` values.
-Validation runs first, so a warning never accompanies an invalid document.
-Given the stored `ValidatedConfig`, the entrypoint also compares rule order; without it no reorder warning is claimed.
-
-The detectors reason about one population at a time: the people who satisfy a rule's whole predicate set.
-A rule provably applies to that population when its own predicate set is a subset of the population's; any other relation is inconclusive and stops the analysis, so the detectors never guess how two different predicates overlap and never claim an affected percentage.
-Within a population, percentage rules split people by their assignment hash: rules that share a seed reuse the same hash interval, rules with different seeds are treated as independent, 0% includes nobody and 100% everybody.
-
-- `UNREACHABLE_LOWER_RULE` fires for a rule that no path reaches because earlier applicable rules already settled everyone: a targeted release, a `return_default` rule or a 100% rollout that covers the rule's population, or same-seed rollouts that together close the hash space. A continuing partial rollout, a narrower conditional rule and a same-seed rollout that includes nobody do not block.
-- `ROLLOUT_MISS_CAN_ENTER_LOWER_RULE` fires when a continuing partial rollout serves a value to somebody and a lower rule with the same value provably serves it to people who missed that rollout: a covering targeted release, a rollout with another seed, or a same-seed rollout with a higher percentage. A lower rule with another value, a same-seed rollout at or below the upper percentage, a 0% rule, a terminal rule in between, and an inconclusive overlap all suppress it.
-- `RULE_ORDER_CHANGES_TRAFFIC` fires for a pair of rules present unchanged in both configs whose relative order flipped when some population provably settles on different values in the two orders. Equal values, disjoint or inconclusive targeting, an unmoved terminal rule above both, and rules added, removed or edited by the same change do not produce it: an edited rule is an edit, not a reorder.
-
-Warnings are deterministic and deduplicated per rule or rule pair; `attr` points at the affected rule and `detail` names the other rule by id, never a seed or property value.
-The two lifecycle codes are not detected here; they belong to the reset and conclusion previews.
diff --git a/docs/internal/inbox-ranking-shadow-evaluation.md b/docs/internal/inbox-ranking-shadow-evaluation.md
deleted file mode 100644
index 46257db37271..000000000000
--- a/docs/internal/inbox-ranking-shadow-evaluation.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Inbox ranking shadow evaluation
-
-The shadow job compares model, served and seeded random orders without changing what the inbox serves.
-The served baseline pools all selected sorts because impression events do not record the sort.
-Logged outcomes have position bias, so the comparison is not a causal estimate of a model rollout.
-
-The read reconstructs complete lists from newly shown impression rows in five-second UTC windows.
-It groups by viewer, session, scope and normalized tab, combines merged state sections and pagination by absolute rank, and requires every rank through the maximum list size.
-Incomplete or conflicting windows are excluded; window boundaries can lose valid observations, and nearby visits can combine without a render ID.
-Later visits outside the window remain separate.
-
-Scores become available at the S3 object's `LastModified`, read with the score bytes.
-Unscored reports retain their outcomes and go last in the model order.
-Coverage is computed separately for each family, role and head.
-A missing champion partition uses candidate scores as an explicit fallback, not as evidence of the historical champion pointer.
-
-The daily job has a one-hour timeout.
-Every completed evaluation emits `inbox_ranking_shadow_run_completed`, including runs with zero grades and a `reason`: `no_complete_lists`, `no_available_scores`, or `no_gradeable_outcomes`.
-Per-order metrics for `all_rows` remain on `inbox_ranking_shadow_ranking_graded`.
-Metrics for `scored_rows` use `inbox_ranking_shadow_scored_ranking_graded`, so existing charts do not mix the two scopes.
-Use the scored event to compare orders on the same scored reports.
-See the [ranking DAG README](../../products/signals/dags/inbox_ranking/README.md) for configuration and metric definitions.
diff --git a/docs/internal/inbox-report-selection.md b/docs/internal/inbox-report-selection.md
deleted file mode 100644
index 15c34629e252..000000000000
--- a/docs/internal/inbox-report-selection.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Inbox report selection
-
-Report cards on the self-driving inbox Reports page do not show selection checkboxes, including on hover or when selected.
-Selected cards keep their accent outline.
-
-Cmd+click on macOS and Ctrl+click keep the browser's standard link behavior instead of changing the selection.
-This also applies when reports are selected or a bulk action runs.
-Use Shift+click to select a range of reports.
-Press and hold also selects a report.
-Once a selection exists, a plain click selects or deselects a report instead of opening it.
-Selection cannot change while a bulk action runs, and resolved reports cannot be selected.
diff --git a/docs/internal/marketing-retention-summary.md b/docs/internal/marketing-retention-summary.md
deleted file mode 100644
index 717e0bcbcaf0..000000000000
--- a/docs/internal/marketing-retention-summary.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Marketing retention summary
-
-Retention opens with a source table of users, return rates within 7 and 30 days, and median days to a second session. The volume column is labeled New users when Only new users is enabled and Users otherwise. It displays its count and share on one line at wider widths. The interface exposes only the summary. The legacy cohort frontend is removed.
-
-## Definitions
-
-Acquisition uses the exact selected date range and the first qualifying session. Retention defaults to the last 30 days and offers presets up to 90 days. The backend rejects longer summary ranges. Source means normalized UTM source; referring domain remains a separate breakdown. Untagged sessions keep the existing source fallback. Only new users uses the existing 90-day lookback, with the query's existing configurable maximum of 365 days.
-
-Each return rate divides returning users by acquired users who completed the full corresponding window. A second session must start after the first session and within the return window. Further pageviews in the first session do not count. Returns are observed up to 30 days after acquisition, capped at the current time. A dash means nobody completed the window.
-
-Days to return is the estimated median elapsed time to the second session among observed returners within 30 days. Recent users with incomplete windows participate in this median, so it may change as they return. The median uses the shared comparison arrow and tooltip, with neutral colors and displays a dash when no return is observed. Compare rates within a column: the 7-day and 30-day denominators can differ.
-
-Comparison is enabled by default and can be disabled with the comparison selector in the toolbar. The previous acquisition period uses the shared date comparison rules, including relative ranges and calendar periods. Each period uses its own new-user lookback. Missing previous data does not produce a change indicator.
-
-## Query and compatibility
-
-Summary mode adds optional fields to the existing retention query and response. Callers that omit summary mode retain the cohort response. The summary materializes acquisition and per-person return results within one query, including comparison. Return events are joined to each acquisition window before aggregation, and the median uses ClickHouse's bounded reservoir. The table defaults to current acquisition volume, and sources are selected by that volume; the tail is folded before computing the median. User shares include the folded Other row.
-
-The legacy cohort renderer, summary helpers, and frontend controls are removed. The backend cohort query mode remains compatible with existing callers. This cleanup is a separate draft and must be reviewed independently before merging.
-
-This mode measures session returns. Conversion-goal retention is a separate behavior and needs an explicit definition before sharing these fixed-window summary metrics. There is no dedicated retention precompute path.
diff --git a/docs/internal/mcp-analytics-activation.md b/docs/internal/mcp-analytics-activation.md
deleted file mode 100644
index 652db8ad6dcd..000000000000
--- a/docs/internal/mcp-analytics-activation.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# MCP analytics setup measurement
-
-The product empty state offers Wizard, an installation prompt for a coding agent, and manual documentation.
-Wizard targets the selected project with `--project-id`.
-The agent prompt includes the selected project ID and backend URL, but no credentials.
-It links to the existing Markdown installation guide so the app does not depend on a new documentation URL being deployed first.
-
-## Events
-
-The shared `productSetupStatusLogic` emits these events.
-Existing click event names remain unchanged.
-
-| Event | Meaning |
-| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
-| `product empty state shown` | The setup surface rendered for the selected project. Filter `mode = needs-setup` for the initial setup denominator. |
-| `product empty state wizard command copied` | The command reached the clipboard. This does not prove the installer started. |
-| `product empty state agent instructions opened` | The agent prompt dialog opened. |
-| `product empty state agent prompt copied` | The installation prompt reached the clipboard. This does not prove the agent ran. |
-| `product empty state manual setup clicked` | The manual setup documentation opened. |
-| `product empty state wizard session observed` | A current, project-matching `mcp-analytics` Wizard session appeared or changed phase in the inline progress view. |
-| `product empty state data detected` | The product's detection logic reported `has-data` after a setup exposure or interaction in this browser. |
-
-Each setup event includes `product_key`, `project_id`, `project_uuid`, `setup_attempt_id`, `initial_setup_route`, and `setup_route`.
-Shown and interaction events also include `mode`.
-Route values are `wizard`, `agent`, or `manual`; they are null until a command/prompt is copied or the manual link is clicked.
-Opening the agent dialog does not select the agent route.
-The initial route remains fixed while the current route changes as someone tries another path.
-
-`setup_attempt_id` identifies the first setup journey in one browser for one product and project.
-It persists across navigation and reloads in local storage.
-It is not a project-wide or cross-device identifier.
-The data-detected event is emitted at most once per stored attempt.
-MCP signal queries discard successes and failures when the selected project UUID changes while the query is in flight.
-Clearing browser storage starts a new attempt, so deduplicate analysis by project, not by attempt count.
-Forced `?empty_state` previews, Storybook previews, and impersonated sessions do not emit the new setup funnel events.
-
-Wizard observations also include `wizard_session_id` and `wizard_phase`.
-The session ID is the session API's ID, not the CLI's process-level `run_id` or the cloud run's `wizard_run_id`.
-The authenticated session belongs to the selected project, which connects observed progress to the UI cohort without adding an unsupported CLI flag.
-Deduplicate Wizard observations by project, session ID, and phase.
-They can repeat on remount, and a completed session can be observed without its running phase being seen.
-
-## Funnel and outcomes
-
-Use the earliest eligible `product empty state shown` event per project as the cohort entry.
-Filter `product_key = mcp_analytics` and `mode = needs-setup`, exclude internal/test projects, and allow a full seven-day observation window.
-Use the existing instance and project UUID groups (`$group_1`, `$group_2`) as the project key; numeric IDs alone collide across regions.
-
-Measure these separately:
-
-1. Setup shown -> any setup route chosen.
-2. Setup shown -> `product empty state data detected` within seven days.
-3. Setup shown -> the existing stored product activation timestamp within seven days.
-
-Keep route choice as a diagnostic breakdown.
-It is not a randomized comparison: people who choose different installers can differ before installation.
-An experiment should assign variants at the project level and compare all eligible exposed projects in each assigned variant.
-This change does not create or start an experiment.
-
-The existing activation definition remains unchanged: MCP tool-call data plus an MCP analytics view.
-Use the stored product-intent activation timestamp for that metric; the activation event alone misses immediate activations.
-
-The data-detected event is a browser observation, not an ingestion timestamp or proof of SDK installation on a particular server.
-It can miss projects whose data arrives while no setup detection is mounted.
-MCP analytics detection currently accepts any `$mcp_tool_call` in the project, including hosted PostHog MCP traffic.
-To measure installation of an owned server, independently verify the server identity on the ingested call.
-Do not report this frontend proxy as that stronger metric.
-
-The app cannot observe an external agent starting or completing installation from a copied prompt alone.
-Keep those stages unknown until there is evidence.
-The prompt instructs the agent to verify a real tool-call event and to report pending verification when it cannot access PostHog.
-
-## Verification flow
-
-The existing setup detector keeps polling for MCP data.
-The inline Wizard view tracks the `mcp-analytics` workflow and shows its existing progress, failure, and report surfaces.
-A completed Wizard run is not evidence of a captured tool call.
-After setup, invoke an existing safe tool and inspect its event in the selected project's MCP analytics activity view.
-When data arrives, the existing empty-state gate reveals the product's activity/first-look surface.
-Stateless MCP clients may omit initialization, so `$mcp_initialize` is not required for completion.
diff --git a/docs/internal/metrics-dashboard-panels.md b/docs/internal/metrics-dashboard-panels.md
deleted file mode 100644
index 5a2fdf9a5e28..000000000000
--- a/docs/internal/metrics-dashboard-panels.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Metrics dashboard panels
-
-The metrics viewer and metrics dashboard tiles render one of several panel types, picked from the chart-type dropdown.
-The picker lists the time-series panels (line, area, bar) plus the Grafana-style scalar and categorical panels (stat, gauge, bar gauge, table).
-The scalar panels are gated behind the `metrics-dashboard-panels` feature flag.
-
-Every panel reads the same response: a list of series, each with a label set, bucketed points, and an optional UCUM unit.
-
-## How a panel collapses points to a number
-
-Scalar panels (stat, gauge, bar gauge) and the table's reducer columns collapse each series to one number with a reducer: `last`, `mean`, `min`, `max`, `sum`, or `delta` (last minus first).
-The `reduce` display setting chooses the reducer; the deprecated `statSummary` maps onto it (`latest` → `last`, `average` → `mean`, `total` → `sum`).
-A series whose buckets are all null reduces to null and is dropped by the scalar panels, so a tile shows "No data" instead of a dash.
-
-## Units
-
-The display `unit` setting overrides everything.
-Without it, a series renders with its ingested UCUM unit — but only when no other series in the same tile carries a different unit.
-A tile mixes every series' values on one chart, so a mixed-unit result renders bare numbers rather than mislabel one series with another's unit.
-UCUM `1` (dimensionless) renders as a plain number: it is not necessarily a ratio, so it is never rescaled to a percent.
-
-## Thresholds
-
-Thresholds color the scalar panels and the table's value cells.
-Each step is a lower bound with a color token; the lowest step is the base color.
-They are a color scale, not the range: the gauge's automatic max extends past the highest threshold when the value does, so the arc never reads full while the number keeps climbing.
-
-## Panel-specific rules
-
-- **Stat**: one headline card per series (capped at 12) with a sparkline.
-- **Gauge**: one radial gauge per series (capped at 12). Bounds come from the explicit y-axis min/max, else the threshold extremes, else 0 to the value.
-- **Bar gauge**: one bar per series, sorted by value. It needs grouped data to be meaningful, so the picker disables it unless the result is grouped; removing the last group-by falls the display back to line.
-- **Table**: one row per series, one column per label key, plus one column per reducer in `legendCalcs`. The list is deduplicated and capped at six reducers — it is persisted user input from saved insights.
-
-## Null buckets
-
-A null bucket is a non-representable aggregate (a gap).
-The time-series panel renders it as 0 until the chart library takes null data; `nullMode` is read by the chart config, not the panel.
-The reducers skip nulls rather than counting them as zero, so a gap never drags a `mean` down.
diff --git a/docs/internal/metrics-group-by.md b/docs/internal/metrics-group-by.md
deleted file mode 100644
index cc4687926ec6..000000000000
--- a/docs/internal/metrics-group-by.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Metrics group by
-
-The Group by dropdown lists attributes by distinct value count, from highest to lowest.
-Each item shows its distinct value count on the right.
-Hover over a count to show the "Number of distinct values" tooltip.
-Attributes with the same count appear in alphabetical order.
-Search keeps this order.
-
-The count uses attribute values from series whose latest metadata timestamp is at or after the selected start time.
-It does not read raw metric samples or enforce the selected end time.
-Counts are informational and most useful for recent series.
-The query uses `uniqCombined64` to estimate distinct value counts with bounded memory.
-Metadata updates can lag samples, so this is not an exact count for the selected time window.
-When a metric is selected, it only lists attributes from that metric.
-When no metric is selected, it lists attributes from all metrics in the project.
-The count includes both metric attributes and resource attributes.
-Repeated values count once, even when many series have the same value.
-For an attribute in both scopes, the nonempty resource value takes priority, as it does in chart grouping.
-Otherwise, the count uses the metric attribute value. An empty string counts as one value.
-The `service_name` item counts distinct service names, not series.
-
-Users can still enter custom attribute keys. Custom keys have no count until the API returns them.
diff --git a/docs/internal/product-empty-state-layout.md b/docs/internal/product-empty-state-layout.md
deleted file mode 100644
index 78ba45d4804d..000000000000
--- a/docs/internal/product-empty-state-layout.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Product empty-state layout
-
-`ProductEmptyState` responds to the width of its scene container, including the space left after the sidebar and side panel.
-
-- Below 64rem, the preview stacks below the setup copy and stays visible.
-- At 64rem and above, the preview occupies a separate column.
-- A `beside` hedgehog appears beside the copy when the copy container reaches 52rem. Below that, a smaller illustration appears above the product name.
-- Secondary links and replay vision preview filters wrap when space is limited.
-
-Use `containerWidth` in `productEmptyStateStory` to cover narrow scenes independently of the Storybook viewport. Cover both setup and waiting modes when the product supports them.
-
-The story wrapper defaults to the viewport width minus Storybook's padding. Keep an explicit width on this wrapper: the snapshot runner uses an inline-block root, which collapses around an unsized query container.
diff --git a/docs/internal/scout-scanner-write-access.md b/docs/internal/scout-scanner-write-access.md
deleted file mode 100644
index 95ce2305acd6..000000000000
--- a/docs/internal/scout-scanner-write-access.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Scout write access for Replay vision scanners
-
-A person can grant **Replay vision scanners** in a scout's write access settings.
-The `replay_scanner:write` scope applies across the project from the next run.
-Dry runs do not receive the grant.
-
-A scout can create and update scanners, disable them, and use prompt suggestions based on human ratings.
-Shared ratings must record explicit user verdicts. The scout must keep its own assessments in memory or reports.
-
-Scout sandbox tokens have these API restrictions:
-
-- A scanner must have a credit limit when the scout creates, copies, or enables it.
-- A scout cannot remove a credit limit.
-- New or increased scanner credit limits cannot exceed the organization's Replay vision credit quota.
-- A finite organization quota is required for creation, copies, enabling, limit increases, and changes that can increase spend.
-- Reducing a limit and disabling a scanner remain available without a finite organization quota.
-- An enabled scanner must have a limit before the scout changes targeting, sampling, or the model.
-- Prompt fixes and disabling remain available for existing scanners without a limit.
-- Scouts cannot start inline scans, manual scans, prompt tests, retries, or historical backfills.
-- Scouts cannot delete scanners. Disable a scanner to stop it and keep its observations.
-
-These restrictions apply only to scout sandbox tokens.
-Session users, personal API keys, and ordinary OAuth tokens retain their existing access rules.
diff --git a/docs/internal/signals-operational-scouts.md b/docs/internal/signals-operational-scouts.md
deleted file mode 100644
index 3efec0872c50..000000000000
--- a/docs/internal/signals-operational-scouts.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Operational scouts
-
-A canonical scout declares `scout-role: operational` in its `SKILL.md` frontmatter.
-The harness enables it outside the seed allowlist and the enabled-scout limit.
-The holdback list still applies.
-An operational scout remains exempt from inactivity warnings and pauses.
-User pauses and failure pauses remain in effect.
-
-The config records whether the role set `auto_pause_exempt` in `auto_pause_exempt_by_role`.
-When a scout loses its operational role, the next coordinator tick removes only the exemption set by the role.
-An explicit `auto_pause_exempt` edit through the config API clears this ownership marker, so the user setting survives a role change.
-Role reconciliation runs independently of skill content hashes.
-
-Archived canonical skills retain their operational identity in config responses.
-The config API refuses to delete their configs.
-Set `enabled=false` to stop an operational scout.
-
-## Write eligibility
-
-Operational scouts use the same write gates as other scouts.
-Read `summary.emit_eligibility` from `scout-project-profile-get` to check the calling scout's write eligibility.
-Use `summary_only=true` to omit the full inventory.
-The response includes the calling scout's dry-run setting, but the cached profile keeps only the team-wide gates.
-Outside a scout run, supply `run_id` to check a specific run on the project.
-
-When `blocking_reason` is `scout_emit_disabled`, continue the investigation without emitting findings or reports.
-Keep the findings in the run summary so a person can evaluate the dry run.
-For a team-wide block, refresh the profile once with `force_refresh=true` before stopping the investigation.
-If the block remains, record its reason and remediation in the run summary.
-The write path checks eligibility again, so a successful profile check does not guarantee a later write.
-
-## Roster sorting
-
-The Scouts roster supports Name, Status, Recently created, Recently updated, and Last run.
-The time-based options show the newest timestamp first, place missing timestamps last, and use alphabetical order for ties.
-Recently updated uses the config `updated_at`, including system status changes.
-Last run uses the last scheduled dispatch timestamp, not the completion time.
-Manual and workflow-triggered runs do not update this timestamp.
diff --git a/docs/internal/signals-report-metrics.md b/docs/internal/signals-report-metrics.md
deleted file mode 100644
index b285d53cfd41..000000000000
--- a/docs/internal/signals-report-metrics.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Signals report metrics
-
-Each Signals report metric uses one bounded Trends query over event or action sources. The report derives a whole-window value and a longitudinal strip from that query.
-
-The default query uses `date_from: "-13d"` and `interval: "day"`. This gives 14 inclusive daily buckets, including today. The strip keeps at most the trailing 14 buckets. For a longer query window, the whole-window value covers more time than the strip.
-
-Use `affected_users` only for distinct people. It needs exactly one series with `math: "dau"`. Use `affected_sessions` only for distinct sessions. It needs exactly one series with `math: "unique_session"`. Do not use formulas or group math for either kind.
-
-Do not author comparisons. The server does not yet keep equal adjacent comparison windows live. Stored legacy comparisons remain compatible, but list and detail responses do not expose them as live values.
-
-An actionable report summary includes an Expected impact section after its Solution section. The section uses a queried baseline to estimate the metric's post-fix value or range and its delta. This forecast stays in prose because it is an estimate, not a live report metric or comparison. If the solution does not directly change the observed metric, the summary names the measurement needed to verify the solution. If the evidence has no usable baseline or denominator, the summary states that it cannot make a credible estimate.
-
-Metric refresh serves snapshots measured in the last 15 minutes from the query cache. Each request runs at most 40 source series and stops on a best-effort 20-second deadline. A refresh saves `value`, `value_at`, and `series`, and clears `comparison`. The endpoint allows 10 requests per minute for each team.
-
-Use lowercase non-currency units such as `users`, `sessions`, or `failure`. Use uppercase ISO currency codes such as `USD`.
-
-Every write path reads the organization-level `signals-report-metrics` flag through `report_content_gates.py`. The agentic research pipeline and the scout `emit_report` / `edit_report` channel both drop authored metrics while the flag is off, because a stored definition is also a query that the refresh path runs later. The check fails closed, so a flag-service error stores no definitions. A scout that sends an empty list still clears the report's metrics.
-
-## Access limits
-
-Metrics with cohort references, including nested references, always hide both the query and the snapshot. This rule applies even when a token has all required scopes. `UserAccessControl` has no cohort object access policy, so the server cannot prove access. Keep this restriction until a safe cohort access policy exists. It is an intentional safety limit, not a display bug.
-
-Unknown property-filter or resource shapes also hide the query and snapshot. Standard event, person, group, session, and element property filters are supported, subject to the access checks.
diff --git a/docs/internal/signals-scout-slack-delivery.md b/docs/internal/signals-scout-slack-delivery.md
deleted file mode 100644
index 00347223f1d5..000000000000
--- a/docs/internal/signals-scout-slack-delivery.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Signals scout Slack delivery
-
-A Signals scout can send its output to one Slack channel or to as many as five
-people by direct message. Configure this in the scout settings or in
-`output_destinations.slack` through the API.
-
-Set either `channel` or `users`. The `integration_id` must identify a Slack
-integration in the same PostHog project.
-
-## Report threads
-
-`thread_reports` is `true` by default. A threaded report puts a short lead in
-the channel and splits the other summary sections into replies. An explicit
-`false` keeps the report in one message. Slack can truncate a long summary in
-this mode.
-
-The setting stays the same when you change the channel, direct-message
-recipients, or Slack workspace. Finding messages and report update notes always
-use one message.
-
-If Slack rate-limits a report reply, delivery schedules a separate task after
-the `Retry-After` period. The delay is at most one hour. Each task continues
-from the section that Slack rejected, so it does not block a delivery worker or
-post the report lead again.
diff --git a/docs/internal/survey-responses.md b/docs/internal/survey-responses.md
deleted file mode 100644
index f897500640d9..000000000000
--- a/docs/internal/survey-responses.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Survey response results
-
-Survey results always include captured answers, regardless of the survey's response collection setting.
-This includes answers sent before completion and answers attached to partially completed dismissal or abandonment events.
-Changing the collection setting does not hide answers already captured.
-
-Events with the same submission ID appear as one response, with the latest available answer to each question.
-Events without a submission ID remain separate responses.
-An unfinished submission is labeled **Dismissed** when its latest response event is a dismissal, and **Abandoned** otherwise.
-**Abandoned** means no completion has been captured yet; it does not require a page-unload event or an inactivity timeout.
-A submission that later completes is shown as completed.
-
-The responses table, question charts, response counts, and summaries include these answers automatically.
-Dismissals and abandonments with no answers do not count as responses.
-
-Survey performance appears on both the Summary and Responses tabs in the redesigned survey view.
-It includes a compact row with counts and percentages for **Completed**, **Dismissed**, and **Abandoned** responses.
-These percentages use all responses matching the current filters as their denominator, including archived responses when selected.
-Each submission counts once in this breakdown, even when the performance summary counts unique people.
-The performance bar labels dismissals with no answers separately from responses.
-
-Use **Export responses** on the Summary tab to download answers as CSV or Excel.
-The export includes all responses matching the current filters, across all table pages.
-The Responses tab has an export control in the table.
-The same export remains available in the action sidebar.
-
-CSV and Excel downloads from all three locations use the same format.
-Each row contains a respondent ID, email when available, a UTC submission timestamp, response status, and one column per answerable question.
-Email comes from the person's `$email` property, falling back to `email` when `$email` is empty.
-Responses without an email retain their respondent ID and have a blank email cell.
-Question headings include their position and full text, so repeated questions remain distinct.
-Link questions are omitted, multiple-choice answers are comma-separated, and two-point ratings use **Thumbs up** or **Thumbs down**.
-Unanswered questions have blank cells.
-Downloads exclude the internal response payload and table action column.
-
-Excel downloads include bold, wrapped headings, readable column widths, wrapped answers, column filters, and a frozen header row.
-Row heights expand for multiline answers up to Excel's row-height limit; longer answers remain available in the cell.
-These layout settings also apply to other tabular Excel downloads through the shared exporter.
diff --git a/docs/internal/task-summaries.md b/docs/internal/task-summaries.md
deleted file mode 100644
index 5a4546279bab..000000000000
--- a/docs/internal/task-summaries.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Task summaries
-
-`POST /api/projects/{project_id}/tasks/summaries/` returns summaries for the requested task IDs.
-The response is paginated. Follow `next` with the same request body to load the remaining summaries.
-Task visibility and project boundaries apply to every request.
-
-`latest_run` is null when a task has no runs. Otherwise, it includes two nullable PR fields:
-
-- `pr_url`: the task's PR URL, or null when the task has no recorded PR.
-- `pr_state`: `open`, `draft`, `closed`, `merged`, or `unknown`. This field is null when `pr_url` is null.
-
-The run's `pr_merged` flag takes precedence over its recorded `pr_state`.
-A PR with a missing or unrecognized state returns `unknown`.
-The response excludes other run output, including generated summaries.
-
-These fields describe the PR the task points at, which is not always one the latest run opened.
-A run that opens no PR of its own starts with an empty output, which is what a resume or a
-follow-up message produces. These fields then report the most recent run that did open a PR. A run
-that opened its own PR reports that one. This matches the `latest_run` the task detail endpoint
-returns, so both endpoints answer the same way about the same task.
-
-A URL counts only when it is a non-empty string, recorded under either `pr_url` or `pr_urls`. For a
-run that recorded only `pr_urls`, `pr_url` reports the first usable entry.
-
-The batch query selects these fields with the run status, in one subquery for the latest run and one
-for the latest run holding a PR. It does not load each run separately.
-Each request reads current stored output. PR output can change without a change to the task's `updated_at` value.
-The endpoint does not fetch live state from GitHub.
-
-Deploy this backend change before a client relies on the new fields.
-Clients that support older servers must retain their task-detail fallback when the PR fields are absent.