: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
feat(review-hog): switch the reviewer to gpt-6.1-sol (#109076)
Alex Lebedev93f95ade3110
diff --git a/products/review_hog/ARCHITECTURE.md b/products/review_hog/ARCHITECTURE.mdindex 46b59927b6dd..60c4874ebd50 100644--- a/products/review_hog/ARCHITECTURE.md+++ b/products/review_hog/ARCHITECTURE.md@@ -411,7 +411,7 @@ only separates the fleet's Modal cost from user-driven runs.persists the full agent log at `task_run.log_url` (S3 / Tasks UI), so the executor never copies it locally.The perspective review (the blind-spot sweep rides the same activity) runs on a different model family than the-rest — **OpenAI Codex `gpt-6-sol`**, with `initial_permission_mode="full-access"`, at an effort set by the+rest — **OpenAI Codex `gpt-6.1-sol`**, with `initial_permission_mode="full-access"`, at an effort set by thereport's **review tier**. The pins are per **report**, not per process: each `ReviewReport` persists a **reviewarm** (adapter / model / effort / permission mode) plus the tier it was chosen from (`review_tier`, and for agentPRs the Signals priority that placed it there, `review_signal_priority`), decided once at report creation and kept@@ -515,7 +515,7 @@ an agent-side fix reaches reviews only once it is published and the image rebuil`{ mode, settings: { model, reasoning_effort } }` as the per-turn `collaborationMode` (codex applies a providedcollaboration mode as is and ignores the turn's `effort` param when one is sent, so the pinned effort has to ridealong here or every turn runs at the model's default effort — this is the line that applies a tier's effort to- `gpt-6-sol`); Claude → the claude adapter's session config sets the model and effort (effort only for the claude+ `gpt-6.1-sol`); Claude → the claude adapter's session config sets the model and effort (effort only for the claudeadapter). Startup validation (`bin.ts` + `isSupportedReasoningEffort`) checks the model/effort combo against theregistry, but **not** that the gateway actually serves the model. The sandbox reviewer path has no allow-list fallback:`_doInitializeSession` → `createAcpConnection` passes the pinned `model` straight to codex (no `gatewayModels`, sodiff --git a/products/review_hog/backend/reviewer/constants.py b/products/review_hog/backend/reviewer/constants.pyindex feb498fc67c6..0bf997d0918d 100644--- a/products/review_hog/backend/reviewer/constants.py+++ b/products/review_hog/backend/reviewer/constants.py@@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)# REVIEW MODELREVIEW_RUNTIME_ADAPTER = RuntimeAdapter.CODEX-REVIEW_MODEL = "gpt-6-sol"+REVIEW_MODEL = "gpt-6.1-sol"REVIEW_REASONING_EFFORT = ReasoningEffort.XHIGH# Codex's default "auto" approval mode does not auto-approve MCP tool calls, so a headless reviewer# stalls on the skill pull without "full-access". (Claude sandboxes bypass permissions by defaultdiff --git a/products/review_hog/backend/tests/test_review_completed_tracking.py b/products/review_hog/backend/tests/test_review_completed_tracking.pyindex 46b68c3d6cfd..d211b267b075 100644--- a/products/review_hog/backend/tests/test_review_completed_tracking.py+++ b/products/review_hog/backend/tests/test_review_completed_tracking.py@@ -311,7 +311,7 @@ class TestTrackReviewCompleted(BaseTest):assert props["signal_priority"] == "P3"assert props["signal_report_id"] == signal_report_idassert props["trigger_source"] == "inbox"- assert props["review_model"] == "gpt-6-sol"+ assert props["review_model"] == "gpt-6.1-sol"assert props["review_reasoning_effort"] == "low"assert props["review_arm_fallback"] is False# The validator and resolver are fixed pins, but the event is where a cost dashboard