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.

feat(review_hog): move the review and validation pins to current models (#105226)

Alex Lebedevd7531f015ca8
diff --git a/docs/internal/sandboxes-setup-guide.md b/docs/internal/sandboxes-setup-guide.md
index 1854dee7f3f7..d11a6fee121e 100644
--- a/docs/internal/sandboxes-setup-guide.md
+++ b/docs/internal/sandboxes-setup-guide.md
@@ -196,7 +196,7 @@ When a run lands on the Python gateway unexpectedly, check those two variables f
Their absence means no token was minted, so the agent falls back to deriving the
product from the task run it fetches at boot, which is the path that fails quietly.
-ReviewHog Flash uses `gpt-5.6-luna` for review, blind-spot checks, and validation.
+ReviewHog Flash uses `gpt-6-luna` for review, blind-spot checks, and validation.
The **ReviewHog Flash - Experimental** subsection under **What gets reviewed** on the Code review page groups the automatic Flash review toggle and **Flash strength** setting.
These settings apply only to Flash reviews.
**Flash strength** selects **Medium** (`medium`, the default) or **Extra high** (`xhigh`) for all of your Flash reviews, including automatic, UI, and CLI requests.
diff --git a/products/review_hog/ARCHITECTURE.md b/products/review_hog/ARCHITECTURE.md
index 51e81c5fcd38..6bcf6fb42b97 100644
--- a/products/review_hog/ARCHITECTURE.md
+++ b/products/review_hog/ARCHITECTURE.md
@@ -408,7 +408,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-5.6-sol`**, with `initial_permission_mode="full-access"`, at an effort set by the
+rest — **OpenAI Codex `gpt-6-sol`**, with `initial_permission_mode="full-access"`, at an effort set by the
report's **review tier**. The pins are per **report**, not per process: each `ReviewReport` persists a **review
arm** (adapter / model / effort / permission mode) plus the tier it was chosen from (`review_tier`, and for agent
PRs the Signals priority that placed it there, `review_signal_priority`), decided once at report creation and kept
@@ -429,10 +429,10 @@ The cheaper arms are rolled out per team through the `REVIEWHOG_TEAM_IDS` dogfoo
but run the default arm. `load_review_arm` → `resolve_review_arm` honors a persisted arm only while it stays a
registry-supported combo — anything else falls back to the default (full-strength) pins and stamps
`review_arm_fallback` on the run's analytics events. Chunking, dedup, and the validator stay on Claude at fixed
-pins; the resolution stage runs the validator's model (`claude-opus-5` @ xhigh). One per-turn override sits on top
+pins; the resolution stage runs the validator's model (`claude-opus-5-5` @ xhigh). One per-turn override sits on top
of all of this: **Flash mode** (`review_mode` on the workflow input, `REVIEW_MODE_FLASH`; the UI trigger's
`run_mode=flash`) runs both sandbox seats — the perspective wave with its blind-spot sweep, and the validator — on
-one arm, `FLASH_ARM` (`gpt-5.6-luna`, Codex with `full-access`), for that turn only.
+one arm, `FLASH_ARM` (`gpt-6-luna`, Codex with `full-access`), for that turn only.
`flash_arm_for_effort` selects the acting user's saved `medium` (default) or `xhigh` effort, snapshotted when the turn starts.
The preference applies to automatic, UI, and CLI Flash requests.
The report's tier and arm are untouched, so the PR's next normal trigger reviews normally; `review_arm_for_mode` / `validation_arm_for_mode`
@@ -512,7 +512,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 provided
collaboration mode as is and ignores the turn's `effort` param when one is sent, so the pinned effort has to ride
along here or every turn runs at the model's default effort — this is the line that applies a tier's effort to
- `gpt-5.6-sol`); Claude → the claude adapter's session config sets the model and effort (effort only for the claude
+ `gpt-6-sol`); Claude → the claude adapter's session config sets the model and effort (effort only for the claude
adapter). Startup validation (`bin.ts` + `isSupportedReasoningEffort`) checks the model/effort combo against the
registry, 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`, so
diff --git a/products/review_hog/backend/reviewer/constants.py b/products/review_hog/backend/reviewer/constants.py
index ab69eeecc6fb..feb498fc67c6 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 MODEL
REVIEW_RUNTIME_ADAPTER = RuntimeAdapter.CODEX
-REVIEW_MODEL = "gpt-5.6-sol"
+REVIEW_MODEL = "gpt-6-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 default
@@ -68,7 +68,7 @@ REVIEW_MODE_FLASH = "flash"
# Share the arm so Flash's reviewer and validator use the same cost and reasoning budget.
FLASH_ARM = ReviewArm(
runtime_adapter=RuntimeAdapter.CODEX,
- model="gpt-5.6-luna",
+ model="gpt-6-luna",
reasoning_effort=ReasoningEffort.MEDIUM,
initial_permission_mode="full-access",
)
@@ -225,7 +225,7 @@ def resolve_review_arm(
# Pins for the per-chunk warm validation sessions, bundled like the review arm so a mode can swap
# the whole seat at once.
VALIDATION_RUNTIME_ADAPTER = RuntimeAdapter.CLAUDE
-VALIDATION_MODEL = "claude-opus-5"
+VALIDATION_MODEL = "claude-opus-5-5"
VALIDATION_REASONING_EFFORT = ReasoningEffort.XHIGH
VALIDATION_INITIAL_PERMISSION_MODE: str | None = None
@@ -248,7 +248,7 @@ def validation_arm_for_mode(
# Pins for the resolution stage's warm per-PR session (assess + implement, one thread per turn).
# The validator's model and effort: resolution is judgment plus careful editing, the validator's job.
RESOLUTION_RUNTIME_ADAPTER: RuntimeAdapter | None = RuntimeAdapter.CLAUDE
-RESOLUTION_MODEL: str | None = "claude-opus-5"
+RESOLUTION_MODEL: str | None = "claude-opus-5-5"
RESOLUTION_REASONING_EFFORT: ReasoningEffort | None = ReasoningEffort.XHIGH
RESOLUTION_INITIAL_PERMISSION_MODE: str | None = None
@@ -369,7 +369,7 @@ CHUNK_SOFT_MAX_ADDITIONS = 600
# a judge sharing the reviewer's model family would inherit the same blind spots the telemetry
# exists to measure. Effort is "high" — a focused yes/no on a small diff, not the reviewer's
# exhaustive xhigh pass.
-OUTCOME_JUDGE_MODEL = "claude-opus-5"
+OUTCOME_JUDGE_MODEL = "claude-opus-5-5"
OUTCOME_JUDGE_REASONING_EFFORT = "high"
# The judge's stated reason is persisted with the outcome so a classification can be explained later.
# It is asked for a sentence or two; this only trims a malfunctioning one before it lands in the row.
diff --git a/products/review_hog/backend/reviewer/tests/test_constants.py b/products/review_hog/backend/reviewer/tests/test_constants.py
index c4b64e42d635..dc2cc4cac02c 100644
--- a/products/review_hog/backend/reviewer/tests/test_constants.py
+++ b/products/review_hog/backend/reviewer/tests/test_constants.py
@@ -180,6 +180,14 @@ _SONNET_ARM = ReviewArm(
initial_permission_mode=None,
)
+# The reviewer pin a report persisted before the model bump, sticky for that report's life.
+_LEGACY_CODEX_ARM = ReviewArm(
+ runtime_adapter=RuntimeAdapter.CODEX,
+ model="gpt-5.6-sol",
+ reasoning_effort=ReasoningEffort.XHIGH,
+ initial_permission_mode="full-access",
+)
+
@pytest.mark.parametrize(
"persisted,expected",
@@ -188,6 +196,18 @@ _SONNET_ARM = ReviewArm(
pytest.param((None, None, None, None), DEFAULT_REVIEW_ARM, id="null-bundle"),
# A persisted assignment that differs from the default pins is honored verbatim.
pytest.param(("claude", "claude-sonnet-5", "xhigh", None), _SONNET_ARM, id="persisted-claude-arm"),
+ # An in-flight report keeps the previous reviewer pin. Deregistering the legacy model would
+ # move every such report onto the bumped default mid-review instead.
+ pytest.param(
+ ("codex", "gpt-5.6-sol", "xhigh", "full-access"), _LEGACY_CODEX_ARM, id="persisted-legacy-codex-arm"
+ ),
+ # The cheap tier's effort too: narrowing the legacy model's effort list would lift an
+ # in-flight cheap report to the full-strength default and cost money.
+ pytest.param(
+ ("codex", "gpt-5.6-sol", "low", "full-access"),
+ replace(_LEGACY_CODEX_ARM, reasoning_effort=ReasoningEffort.LOW),
+ id="persisted-legacy-codex-cheap-tier",
+ ),
# A model that outlived its registration must degrade to the default reviewer, not send an
# unroutable pin into a paid sandbox turn. Pinned at "high" deliberately: the Codex effort
# registry accepts any unknown model at <=high, so only the membership check catches this.
diff --git a/products/review_hog/backend/tests/test_review_completed_tracking.py b/products/review_hog/backend/tests/test_review_completed_tracking.py
index c16e4a7cced8..46b68c3d6cfd 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_id
assert props["trigger_source"] == "inbox"
- assert props["review_model"] == "gpt-5.6-sol"
+ assert props["review_model"] == "gpt-6-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