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(autoresearch): make the self-driving queue the autoresearch default (#111297)

posthog[bot]bf4636378ad0
diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml
index 967afb5f24b3..a04c3e8e75af 100644
--- a/.github/workflows/container-images-cd.yml
+++ b/.github/workflows/container-images-cd.yml
@@ -440,7 +440,6 @@ jobs:
# check_general_purpose_coverage_added below.
generalPurpose:
- 'products/notebooks/backend/**'
- - 'products/autoresearch/backend/**'
- 'products/exports/backend/temporal/subscriptions/**'
- 'products/engineering_analytics/backend/**'
- 'products/canvas/backend/**'
@@ -1083,7 +1082,7 @@ jobs:
if [ -z "$BASE" ] || [ "$BASE" = "0000000000000000000000000000000000000000" ] || ! git fetch --depth=1 --no-tags origin "$BASE"; then
BASE="HEAD^"
fi
- if git diff "$BASE" HEAD -- .github/workflows/container-images-cd.yml | grep -qE '^\+.*(products/exports/backend/temporal/subscriptions|products/autoresearch/backend)'; then
+ if git diff "$BASE" HEAD -- .github/workflows/container-images-cd.yml | grep -qE '^\+.*products/exports/backend/temporal/subscriptions'; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
diff --git a/posthog/settings/temporal.py b/posthog/settings/temporal.py
index fadffe04b3aa..bc03f6a2ffce 100644
--- a/posthog/settings/temporal.py
+++ b/posthog/settings/temporal.py
@@ -330,9 +330,9 @@ ERROR_TRACKING_TASK_QUEUE = _set_temporal_task_queue("error-tracking-task-queue"
ERROR_TRACKING_LIFECYCLE_TASK_QUEUE = _set_temporal_task_queue("error-tracking-lifecycle-task-queue")
EVENT_SCREENSHOTS_TASK_QUEUE = _set_temporal_task_queue("event-screenshots-task-queue")
LOGS_ALERTING_TASK_QUEUE = _set_temporal_task_queue("logs-alerting-task-queue")
-# Defaults to the general-purpose fleet so the daily coordinator always has a live worker. Deploy a
-# fleet polling "autoresearch-task-queue" before setting this env, or the schedule strands its runs.
-AUTORESEARCH_TASK_QUEUE = _set_temporal_task_queue(os.getenv("AUTORESEARCH_TASK_QUEUE", "general-purpose-task-queue"))
+# Polled by the temporal-worker-self-driving fleet. The default matches it, so a deploy without the
+# env var still registers the autoresearch coordinator schedule on the queue that fleet polls.
+AUTORESEARCH_TASK_QUEUE = _set_temporal_task_queue(os.getenv("AUTORESEARCH_TASK_QUEUE", "self-driving-task-queue"))
# Polled by the temporal-worker-self-driving fleet. The default matches it, so a deploy without the
# env var still registers the ranking sweep schedule on the queue that fleet polls.
SELF_DRIVING_TASK_QUEUE = _set_temporal_task_queue(os.getenv("SELF_DRIVING_TASK_QUEUE", "self-driving-task-queue"))
diff --git a/products/autoresearch/backend/temporal/AGENTS.md b/products/autoresearch/backend/temporal/AGENTS.md
index b925a7e4cca5..b1cbe867f9f4 100644
--- a/products/autoresearch/backend/temporal/AGENTS.md
+++ b/products/autoresearch/backend/temporal/AGENTS.md
@@ -18,7 +18,7 @@ Scoring, validation and training live in `../inference/`, `../evaluation/`, and
`create_autoresearch_daily_schedule()` registers schedule `autoresearch-daily-coordinator` driving workflow id `autoresearch-coordinator`.
Overlap policy is **SKIP** — a tick that is still running causes the next one to be dropped rather than queued, so a slow day cannot pile up a backlog of duplicate scoring runs.
An update keeps the schedule's live state, so a deploy does not resume a schedule an operator paused.
- The queue defaults to the general-purpose fleet. Deploy a worker polling `autoresearch-task-queue` before you set `AUTORESEARCH_TASK_QUEUE` to it.
+ The queue defaults to `self-driving-task-queue`, which the temporal-worker-self-driving fleet polls. Deploy a worker that polls a new queue before you set `AUTORESEARCH_TASK_QUEUE` to it, or the schedule strands its runs.
- `__init__.py`
The registration surface. `WORKFLOWS` and `ACTIVITIES` are what the worker reads; a workflow that is not in these lists does not exist as far as production is concerned.
diff --git a/products/autoresearch/backend/temporal/__init__.py b/products/autoresearch/backend/temporal/__init__.py
index d840fb19427c..67290619aedd 100644
--- a/products/autoresearch/backend/temporal/__init__.py
+++ b/products/autoresearch/backend/temporal/__init__.py
@@ -1,7 +1,8 @@
"""Temporal workflows and activities for autoresearch inference, validation, and training.
`start_temporal_worker` imports WORKFLOWS and ACTIVITIES from here and
-registers them on `settings.AUTORESEARCH_TASK_QUEUE`.
+registers them on `settings.AUTORESEARCH_TASK_QUEUE`, which the
+temporal-worker-self-driving fleet polls.
"""
from .workflows import (