: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals): use sol 6.1 xhigh for trial judging (#115360)
Alex Lebedev867127dea218
diff --git a/docs/internal/scout-online-evals-devbox.md b/docs/internal/scout-online-evals-devbox.mdindex f08a1da254a3..79f2286e667b 100644--- a/docs/internal/scout-online-evals-devbox.md+++ b/docs/internal/scout-online-evals-devbox.md@@ -9,7 +9,7 @@ Follow the existing [devbox setup](../../.agents/skills/setting-up-devbox/SKILL.- Use a staff user with membership in project 2 and permission to edit the source skill.- Choose a scout with a reviewed, saved rubric and report tools (`emit_report` or `edit_report`). The trial setup screen explains unsupported configurations.- Start MCP, Temporal and Docker sandboxes alongside the normal stack. Complete local OAuth setup (`setup_tasks_oauth`) and Temporal search-attribute registration.-- Use the [Go AI gateway](https://github.com/PostHog/ai-gateway), with credentials for the scout models and the judge model, currently `gpt-6-astra`.+- Use the [Go AI gateway](https://github.com/PostHog/ai-gateway), with credentials for the scout models and the judge model, currently `gpt-6.1-sol` with `xhigh` reasoning effort.- Preserve the synthetic dataset and set a test budget: scouts and judging make paid model calls. Keep credentials and downloaded reports outside Git.## Configuration@@ -91,7 +91,7 @@ The judge has no live project tools, external MCP connections or repository credThe judge saves one JSON verdict per rubric check through Tasks' existing structured-output support. Signals checks that same Task until it finishes, then validates its quotes against the original saved files. New evaluations use saved scout identifiers to recheck current permissions on every status poll without downloading the full starting context again; preparation and report finalization still validate that context. Worker restarts resume result collection without starting another judge. If result collection remains unavailable, the evaluation fails without freezing an incomplete report; resuming the same evaluation reuses its Tasks and saved judgments.-The judge first checks whether each criterion applies, including allowed exceptions and optional work. The required skill and project-profile startup reads are distinguished from the investigation itself; incidental metadata in those responses does not by itself prove unrelated investigation. Required step order is checked against the execution timeline; doing both steps in the wrong order does not satisfy it. Unresolved conflicting instructions give an unknown verdict unless another clear violation already fails that criterion. Judge prompt versions are fixed per trial: after a version changes, unfinished trials using the older judge require a new trial. Resuming an outdated trial is rejected before more paid runs start. Completed reports stay readable.+The judge first checks whether each criterion applies, including allowed exceptions and optional work. The required skill and project-profile startup reads are distinguished from the investigation itself; incidental metadata in those responses does not by itself prove unrelated investigation. Required step order is checked against the execution timeline; doing both steps in the wrong order does not satisfy it. Unresolved conflicting instructions give an unknown verdict unless another clear violation already fails that criterion. Judge versions cover the model, reasoning effort and prompt. After a version changes, unfinished trials using the older judge require a new trial. Resuming an outdated trial is rejected before more paid runs start. Completed reports stay readable.Unavailable or ambiguous evidence gives an unknown verdict. A required action proved missing from a complete record fails; missing thoughts alone never prove an omission. Citation checks accept decoded JSON string fields in tool responses. A judge failure is shown separately from a failed rubric check. Each judge has a 30-minute deadline measured from its original Task run creation; retries do not reset it. Up to three collectors run at once, but judge Tasks can briefly overlap beyond that after a delayed start or collection failure. Saved results never rerun the judge when viewed.diff --git a/products/signals/backend/scout_harness/trial_evaluation.py b/products/signals/backend/scout_harness/trial_evaluation.pyindex 65c44c7dc888..eed236a20e22 100644--- a/products/signals/backend/scout_harness/trial_evaluation.py+++ b/products/signals/backend/scout_harness/trial_evaluation.py@@ -63,7 +63,7 @@ from products.signals.backend.trial_judging import JUDGE_PROMPT_VERSION as JUDGEfrom products.tasks.backend.facade.api import get_task_run_log_size, get_task_run_log_urls, read_task_run_log_contentMAX_EVALUATION_BYTES = MAX_TRIAL_RUNS * 512 * 1024-JUDGE_MODEL = "gpt-6-astra"+JUDGE_MODEL = "gpt-6.1-sol"_Document = TypeVar("_Document", bound=BaseModel)diff --git a/products/signals/backend/scout_harness/trial_judge.py b/products/signals/backend/scout_harness/trial_judge.pyindex ac7744e44a8b..3cb222142f36 100644--- a/products/signals/backend/scout_harness/trial_judge.py+++ b/products/signals/backend/scout_harness/trial_judge.py@@ -179,7 +179,7 @@ class _JudgeRun:posthog_mcp_scopes=[],model=self.snapshot.judge_model,runtime_adapter="codex",- reasoning_effort="high",+ reasoning_effort="xhigh",initial_permission_mode="full-access",github_read_access=False,sandbox_timeout_seconds=JUDGE_MAX_RUNTIME_SECONDS + 120,diff --git a/products/signals/backend/test/test_scout_trial_evaluation.py b/products/signals/backend/test/test_scout_trial_evaluation.pyindex dc7dd76517e0..cdbc1f285eb6 100644--- a/products/signals/backend/test/test_scout_trial_evaluation.py+++ b/products/signals/backend/test/test_scout_trial_evaluation.py@@ -369,7 +369,7 @@ class TestScoutTrialEvaluation(BaseTest):def test_snapshot_is_frozen_and_reused_only_for_the_same_request(self) -> None:snapshot = prepare_trial_evaluation(config=self.config, user=self.user, request=self.request)assert snapshot.judge_prompt_version == JUDGE_PROMPT_VERSION- assert snapshot.judge_model == "gpt-6-astra"+ assert snapshot.judge_model == "gpt-6.1-sol"saved = json.loads(self.documents[f"signals/scout-trials/{self.team.id}/evaluations/{snapshot.evaluation_id}/snapshot.json"])diff --git a/products/signals/backend/test/test_scout_trial_judge.py b/products/signals/backend/test/test_scout_trial_judge.pyindex 2bd8fea09a1a..b1c9dad4abfe 100644--- a/products/signals/backend/test/test_scout_trial_judge.py+++ b/products/signals/backend/test/test_scout_trial_judge.py@@ -86,7 +86,7 @@ def _snapshot() -> TrialEvaluationSnapshot:rubric_document={"reference_context": _reference_context().model_dump(mode="json")},rubric_reference_generation_id=str(uuid4()),criteria=[_criterion()],- judge_model="gpt-6-astra",+ judge_model="gpt-6.1-sol",judge_prompt_version=JUDGE_PROMPT_VERSION,runs=[TrialRunEvidence(diff --git a/products/signals/backend/test/test_scout_trial_judge_sandbox.py b/products/signals/backend/test/test_scout_trial_judge_sandbox.pyindex 9cb3613e133d..345ac1767478 100644--- a/products/signals/backend/test/test_scout_trial_judge_sandbox.py+++ b/products/signals/backend/test/test_scout_trial_judge_sandbox.py@@ -78,7 +78,7 @@ class TestSandboxJudgeDispatch(BaseTest):self.assertEqual([item["name"] for item in run.artifacts], [file.filename for file in self.evidence.files])self.assertNotIn(self.evidence.sources[0].text, run.state["pending_user_message"])self.assertEqual(run.state["model"], snapshot.judge_model)- self.assertEqual(run.state["reasoning_effort"], "high")+ self.assertEqual(run.state["reasoning_effort"], "xhigh")self.assertEqual(run.state["sandbox_ttl_seconds"], 32 * 60)self.assertEqual(run.state["inactivity_timeout_seconds"], 30 * 60)self.assertEqual(run.state["mcp_gateway_server_ids"], [])diff --git a/products/signals/backend/test/test_scout_trials_api.py b/products/signals/backend/test/test_scout_trials_api.pyindex caecc0bbb19d..90f3fc75c012 100644--- a/products/signals/backend/test/test_scout_trials_api.py+++ b/products/signals/backend/test/test_scout_trials_api.py@@ -1287,7 +1287,7 @@ class TestScoutTrialLaunch(APIBaseTest):_make_run(self.team, metadata={"scout_trial": {"version": 1, "launch_id": launch_ids[0]}})plan_key = f"signals/scout-trials/{self.team.id}/comparisons/{comparison_id}/plan.json"self.documents[plan_key] = json.dumps(- {**json.loads(self.documents[plan_key]), "judge_prompt_version": "sandbox-3"}+ {**json.loads(self.documents[plan_key]), "judge_prompt_version": "sandbox-4"})resumed = self.client.post(diff --git a/products/signals/backend/trial_judging.py b/products/signals/backend/trial_judging.pyindex 8e27f25def51..8ed8ce2d5946 100644--- a/products/signals/backend/trial_judging.py+++ b/products/signals/backend/trial_judging.py@@ -19,7 +19,8 @@ from products.signals.backend.trial_judging_types import (TrialRunEvidence,)-JUDGE_PROMPT_VERSION = "sandbox-4"+# Bump for model, effort or prompt changes so a trial cannot mix judge configurations.+JUDGE_PROMPT_VERSION = "sandbox-5"MAX_JUDGE_OUTPUT_CHARACTERS = 64_000MAX_QUOTE_JSON_DEPTH = 2