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(review_hog): run the resolution stage at high effort (#114322)

Julian Bezec5c03443d2b
diff --git a/products/review_hog/ARCHITECTURE.md b/products/review_hog/ARCHITECTURE.md
index 86eb5c971a06..76b0263af589 100644
--- a/products/review_hog/ARCHITECTURE.md
+++ b/products/review_hog/ARCHITECTURE.md
@@ -541,7 +541,7 @@ 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-5` @ xhigh). One per-turn override sits on top
+pins; the resolution stage runs the validator's model at lower effort (`claude-opus-5-5` @ high). 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-6-luna`, Codex with `full-access`), for that turn only.
diff --git a/products/review_hog/DECISIONS.md b/products/review_hog/DECISIONS.md
index a78c689efc07..ea32144978c9 100644
--- a/products/review_hog/DECISIONS.md
+++ b/products/review_hog/DECISIONS.md
@@ -214,6 +214,21 @@ read `FINAL_REPORT.md` there first (config glossary + coverage matrix + ranking)
would also save review cost, but neither is tested. The prompt does not mention the rule, so the sessions have no
reason to raise a level to get a finding posted.
+### ✅ DECIDED 2026-10-09 — resolution stage on Opus 5.5 @ high instead of xhigh
+
+- **What.** `RESOLUTION_REASONING_EFFORT` moves from `xhigh` to `high`. The model stays `claude-opus-5-5`.
+- **Why.** The xhigh pin came from the validator, and no one compared it against other options. A coarse offline
+ trial ran 10 bot threads from 3 merged PRs (#72074, #106886, #109785), one fresh session per thread, on API keys.
+ - Opus @ high matched the reference outcome on 9 of 10 threads. Opus @ xhigh matched on all 6 threads it ran.
+ - On the shared threads, high cost about two thirds of xhigh and took about half the wall time.
+ - Clear fixes came out the same at every effort level. xhigh only added extra tests and docs.
+ - xhigh's one extra win was declining a speculative bot ask (read from the writer DB). The cheaper arms made a
+ small, plausible fix there instead.
+- **Rejected.** Opus @ medium saves little over high. Sonnet 5.5 @ high escalated contained fixes it should make.
+ GPT-6.1 Sol @ high made a wrong decline and one large out-of-scope fix.
+- **Caveats.** Each thread and arm ran once, and no tests ran in the trial. Production runs one warm session per PR,
+ not one session per thread. Watch the resolution outcomes on the dashboard after the change.
+
### ✅ BUILT 2026-10-08 — inline finding comments: one P-level heading and one paragraph
- **What.** An inline comment is `**P{n} · {title}**`, then one paragraph with the issue and its fix, then the hidden
diff --git a/products/review_hog/backend/reviewer/constants.py b/products/review_hog/backend/reviewer/constants.py
index dff30ce60fb3..c1b8a7045923 100644
--- a/products/review_hog/backend/reviewer/constants.py
+++ b/products/review_hog/backend/reviewer/constants.py
@@ -380,10 +380,11 @@ def validation_arm_for_mode(
# RESOLUTION MODEL
# 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.
+# The validator's model at high effort: xhigh gave the same outcomes on clear fixes at a higher cost
+# per turn (see the 2026-10-09 entry in DECISIONS.md).
RESOLUTION_RUNTIME_ADAPTER: RuntimeAdapter | None = RuntimeAdapter.CLAUDE
RESOLUTION_MODEL: str | None = "claude-opus-5-5"
-RESOLUTION_REASONING_EFFORT: ReasoningEffort | None = ReasoningEffort.XHIGH
+RESOLUTION_REASONING_EFFORT: ReasoningEffort | None = ReasoningEffort.HIGH
RESOLUTION_INITIAL_PERMISSION_MODE: str | None = None
# A resolution run handles at most this many threads, priority-ordered; the binding constraint is