: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
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.mdindex 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` dogfoobut run the default arm. `load_review_arm` → `resolve_review_arm` honors a persisted arm only while it stays aregistry-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 topof 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 — onone 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.mdindex 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 noreason 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 hiddendiff --git a/products/review_hog/backend/reviewer/constants.py b/products/review_hog/backend/reviewer/constants.pyindex 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.CLAUDERESOLUTION_MODEL: str | None = "claude-opus-5-5"-RESOLUTION_REASONING_EFFORT: ReasoningEffort | None = ReasoningEffort.XHIGH+RESOLUTION_REASONING_EFFORT: ReasoningEffort | None = ReasoningEffort.HIGHRESOLUTION_INITIAL_PERMISSION_MODE: str | None = None# A resolution run handles at most this many threads, priority-ordered; the binding constraint is