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): add gaps and small fix profiles for autofix (#114332)

Julian Bezfe2996036abf
diff --git a/products/review_hog/ARCHITECTURE.md b/products/review_hog/ARCHITECTURE.md
index e605bbafa95b..f9925db4425a 100644
--- a/products/review_hog/ARCHITECTURE.md
+++ b/products/review_hog/ARCHITECTURE.md
@@ -105,6 +105,15 @@ the PR author's resolution criteria (canonical for unmapped authors). Design + d
Stage 7; vocabulary: CONTEXT.md; the live-e2e qualification plan (the resolver fixes its own PR):
`eval/experiments/2026-07-resolution-e2e/PLAN.md`.
+**Fix profiles** are canonical resolution-criteria skills that set how eager the fixer is.
+`review-hog-resolution-criteria` is the default.
+`review-hog-resolution-criteria-gaps` fixes reachable bugs and leaves typos, nits, wording, stale docs and style.
+`review-hog-resolution-criteria-small` fixes small, contained issues and leaves findings whose fix needs a design choice.
+Each profile is the default text plus a profile section, with the same safety rules, hard limits and human overrides.
+A profile leaves a thread as `escalate` with a reply that opens "Left for the author:", so the thread stays open.
+All three are in `CANONICAL_RESOLUTION_SKILL_NAMES` (`reviewer/skill_loader.py`), so every user sees and can select them.
+Only the default auto-seeds active; a profile is active only after the user selects it.
+
**Resolution visibility & the busy-guard** (grilled 2026-08-13, DECISIONS.md "Resolution-stage visibility & cycle guard"; ADR `adr/0001`):
a run opens with a `resolution_run` work-list artefact (queued thread ids + counts) written by `_prepare_run`,
and `reviewer/progress.py::resolution_states` derives the run's state from artefacts alone —
diff --git a/products/review_hog/DECISIONS.md b/products/review_hog/DECISIONS.md
index 5abd75a5c6cb..51c6a0f80e8b 100644
--- a/products/review_hog/DECISIONS.md
+++ b/products/review_hog/DECISIONS.md
@@ -213,6 +213,44 @@ read `FINAL_REPORT.md` there first (config glossary + coverage matrix + ranking)
a bot exchange) and a stored per-user preference (only if someone asks). Full mode keeps its comment dedup for now:
its chunker and dedup prompts both read PR comments, so it is a separate change.
+### ✅ DECIDED 2026-10-09 — resolution fix profiles as canonical skills
+
+- **What.** Two new canonical resolution-criteria skills, `review-hog-resolution-criteria-gaps` and
+ `review-hog-resolution-criteria-small`, sit next to the default `review-hog-resolution-criteria`.
+ A user picks one in the existing per-user criteria picker.
+ - **gaps** fixes real, reachable `should_fix` and `must_fix` bugs.
+ It leaves typos, nits, wording, stale docs and style to the author.
+ - **small** fixes small, contained issues, typos included.
+ It leaves a finding only when the fix needs a design choice that the code and conventions do not settle.
+ - Only the default auto-seeds active. The loader treats every name in `CANONICAL_RESOLUTION_SKILL_NAMES` as
+ visible, so a selected profile drives the run instead of falling back to the default.
+- **Why skills, not settings.** The resolution stage already applies one selected skill per user.
+ A profile changes the bar, and the bar lives in the skill text.
+ A skill needs no new setting, migration or UI control, and a team can copy a profile into a custom skill.
+- **Why a leave uses `escalate`.** `escalate` keeps the thread open, and the driver never resolves it.
+ `wont_fix` resolves the thread and hides it from the author and from an observing agent.
+ The reply opens "Left for the author:" and says what was checked and why the profile left it,
+ so an observing agent can act on it.
+- **Trial evidence.** A coarse offline trial ran the same 10 bot threads from 3 merged PRs under each profile,
+ with Opus and Sonnet at high effort, one run each, on API keys. No tests ran.
+ - The first gaps text fixed only the one `must_fix` thread and left 4 real bugs.
+ Version 2 states that a confirmed, reachable `should_fix` or `must_fix` bug is a gap.
+ With it, gaps fixes the reachable bugs and leaves the copy, docs and logging nits.
+ The two models agree on 9 of 10 threads.
+ - The first small text made Sonnet escalate contained fixes.
+ Version 2 says that several correct small fixes are not a design choice.
+ With it, Sonnet fixes those threads, and both models leave the one thread whose fix needs a design choice.
+ The two models agree on 8 of the 9 threads that ran.
+ - Both profiles cost about the same as the default criteria on the same model, or slightly less.
+ - The leave replies give code evidence and a reason.
+ One run in the first trial returned `wont_fix` for a leave, so both profiles now forbid `wont_fix` for a leave.
+- **Rejected.** A code-level skip of P2 and P3 findings before the resolution turn.
+ In the trial it matched 0 of 10 threads, because older comments carry their level as a badge or a priority line,
+ not as the `**P{n} · title**` heading. The skill rubric handles priority for now.
+- **Caveats.** Each thread and model ran once. Production runs one warm session per PR, not one session per thread.
+ Like the default, gaps still fixes one ask that the author declined on the original PR.
+ Watch the resolution outcomes per profile on the dashboard after users pick them.
+
### ✅ BUILT 2026-10-09 — Flash follow-up turns drop P2 and P3 findings on unchanged code (`reviewhog-flash-2-1`)
- **What.** On a follow-up turn, a P2 or P3 finding that sits more than `FLASH_FOLLOW_UP_CHANGE_MARGIN_LINES` (3)
diff --git a/products/review_hog/backend/api/resolution.py b/products/review_hog/backend/api/resolution.py
index bceecf7f3980..a7ec9f4f9779 100644
--- a/products/review_hog/backend/api/resolution.py
+++ b/products/review_hog/backend/api/resolution.py
@@ -59,13 +59,13 @@ class ReviewResolutionConfigViewSet(TeamAndOrgViewSetMixin, viewsets.GenericView
handled identically at run time): the bar the resolution stage applies to each unresolved
review thread ("worth implementing" / "safe to implement unattended"). The skill itself is
team-level; this surface only controls **which one** applies when the stage runs on the
- requesting user's PRs. Visibility is per-user: the menu shows the canonical plus the customs
- the requesting user authored — a teammate's custom is neither listed nor selectable
+ requesting user's PRs. Visibility is per-user: the menu shows the canonicals (the default
+ criteria and its fix profiles) plus the customs the requesting user authored — a teammate's custom is neither listed nor selectable
(`visible_skill_names`). Like validators (and unlike perspectives), a run applies exactly one,
so this is a single-active selection: `list` shows the visible skills with the user's active
- one flagged (the canonical auto-seeds active on first read); `partial_update` selects one by
- skill name, flipping the user's others off in the same call. There is always a default (the
- canonical), so no minimum floor is needed.
+ one flagged (only the default canonical auto-seeds active on first read; a fix profile is active
+ only once selected); `partial_update` selects one by skill name, flipping the user's others off
+ in the same call. There is always a default (the default canonical), so no minimum floor is needed.
"""
# llm_skill, not INTERNAL: responses carry skill body/description, so the llm_analytics RBAC
diff --git a/products/review_hog/backend/reviewer/lazy_seed.py b/products/review_hog/backend/reviewer/lazy_seed.py
index 5c18492c5eda..357d788361ff 100644
--- a/products/review_hog/backend/reviewer/lazy_seed.py
+++ b/products/review_hog/backend/reviewer/lazy_seed.py
@@ -241,7 +241,7 @@ def discover_canonical_blind_spots(skills_dir: Path | None = None) -> tuple[Cano
def discover_canonical_resolution(skills_dir: Path | None = None) -> tuple[CanonicalSkill, ...]:
- """Every parsed `review-hog-resolution-*` skill on disk (the single criteria skill today)."""
+ """Every parsed `review-hog-resolution-*` skill on disk (the default criteria and its fix profiles)."""
return _discover_canonical(REVIEW_HOG_RESOLUTION_PREFIX, skills_dir)
@@ -551,7 +551,7 @@ def sync_canonical_blind_spots(team: Team, *, prune: bool = False) -> SyncResult
def sync_canonical_resolution(team: Team, *, prune: bool = False) -> SyncResult:
- """Reconcile a team's rows with the canonical `review-hog-resolution-*` criteria skill on disk."""
+ """Reconcile a team's rows with the canonical `review-hog-resolution-*` criteria skills on disk."""
return _sync_canonicals(
team,
canonicals=discover_canonical_resolution(),
diff --git a/products/review_hog/backend/reviewer/skill_loader.py b/products/review_hog/backend/reviewer/skill_loader.py
index ce5bae400950..714eff7b715c 100644
--- a/products/review_hog/backend/reviewer/skill_loader.py
+++ b/products/review_hog/backend/reviewer/skill_loader.py
@@ -210,16 +210,22 @@ def register_missing_validation_config(team_id: int, user_id: int) -> None:
def _load_single_active_skill(
- team_id: int, acting_user_id: int, *, prefix: str, canonical_name: str, error: type[LookupError]
+ team_id: int,
+ acting_user_id: int,
+ *,
+ prefix: str,
+ canonical_name: str,
+ canonical_names: tuple[str, ...],
+ error: type[LookupError],
) -> tuple[str, int]:
"""Resolve a user's single-active `<prefix>*` skill selection to a (name, pinned version).
- Reads the user's one enabled row for the prefix, falling back to the canonical when none is
- enabled — there is always a default, so no min-1 floor. A selected custom whose skill row is
- dead (e.g. archived from the Skills UI) also falls back to the canonical rather than failing
- the run, as does a selected custom the acting user did not author (a leftover from before
- visibility became author-only — the config API no longer allows such a selection). Raises
- `error` only when the canonical itself has no live row (the sync recreates archived canonicals,
+ Reads the user's one enabled row for the prefix, falling back to the default `canonical_name`
+ when none is enabled — there is always a default, so no min-1 floor. Every name in
+ `canonical_names` is selectable by any user. A selected custom whose skill row is dead (e.g.
+ archived from the Skills UI) also falls back to the canonical rather than failing the run, as
+ does a selected custom the acting user did not author (a leftover from before visibility
+ became author-only — the config API no longer allows such a selection). Raises `error` only when the canonical itself has no live row (the sync recreates archived canonicals,
so this is a genuine seeding failure). The enabled set is single-active in app code;
`sorted(...)[0]` is only a deterministic tiebreak.
"""
@@ -230,7 +236,7 @@ def _load_single_active_skill(
)
skill_name = enabled_names[0] if enabled_names else canonical_name
if skill_name != canonical_name and skill_name not in visible_skill_names(
- team_id, acting_user_id, prefix=prefix, canonical_names=(canonical_name,)
+ team_id, acting_user_id, prefix=prefix, canonical_names=canonical_names
):
logger.warning(
"review_hog: selected skill '%s' was not authored by user %s on team %s; falling back to canonical '%s'",
@@ -277,6 +283,7 @@ def load_validation_skill_for_run(team_id: int, acting_user_id: int) -> LoadedVa
acting_user_id,
prefix=REVIEW_HOG_VALIDATION_PREFIX,
canonical_name=REVIEW_HOG_VALIDATION_SKILL_NAME,
+ canonical_names=CANONICAL_VALIDATION_SKILL_NAMES,
error=ValidationSkillNotFoundError,
)
return LoadedValidationSkill(skill_name=skill_name, version=version)
@@ -329,6 +336,7 @@ def load_blind_spots_skill_for_run(team_id: int, acting_user_id: int) -> LoadedB
acting_user_id,
prefix=REVIEW_HOG_BLIND_SPOTS_PREFIX,
canonical_name=REVIEW_HOG_BLIND_SPOTS_SKILL_NAME,
+ canonical_names=CANONICAL_BLIND_SPOTS_SKILL_NAMES,
error=BlindSpotsSkillNotFoundError,
)
return LoadedBlindSpotsSkill(skill_name=skill_name, version=version)
@@ -340,9 +348,18 @@ def load_blind_spots_skill_for_run(team_id: int, acting_user_id: int) -> LoadedB
REVIEW_HOG_RESOLUTION_PREFIX = "review-hog-resolution-"
REVIEW_HOG_RESOLUTION_SKILL_NAME = f"{REVIEW_HOG_RESOLUTION_PREFIX}criteria"
-# Canonical resolution names `register_missing_resolution_config` auto-enables — one today, kept a
-# tuple to mirror the multi-name perspective seed.
-CANONICAL_RESOLUTION_SKILL_NAMES: tuple[str, ...] = (REVIEW_HOG_RESOLUTION_SKILL_NAME,)
+# Fix profiles: canonical alternatives a user can select to change how eager autofix is.
+REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME = f"{REVIEW_HOG_RESOLUTION_SKILL_NAME}-gaps"
+REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME = f"{REVIEW_HOG_RESOLUTION_SKILL_NAME}-small"
+
+# Canonical resolution names every user can see and select. Only the default
+# `REVIEW_HOG_RESOLUTION_SKILL_NAME` auto-enables: seeding every name would make several rows active
+# at once, and the sorted tiebreak would then move a user off their selected custom.
+CANONICAL_RESOLUTION_SKILL_NAMES: tuple[str, ...] = (
+ REVIEW_HOG_RESOLUTION_SKILL_NAME,
+ REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME,
+ REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME,
+)
class ResolutionSkillNotFoundError(LookupError):
@@ -363,9 +380,9 @@ def register_missing_resolution_config(team_id: int, user_id: int) -> None:
"""Seed an enabled `ReviewSkillConfig` for the canonical resolution skill this user lacks.
Mirrors `register_missing_validation_config`: single-active is enforced in app code, so this
- only ever seeds the one canonical.
+ only ever seeds the default. The fix profiles get a row only when the user selects one.
"""
- _register_missing_configs(team_id, user_id, CANONICAL_RESOLUTION_SKILL_NAMES)
+ _register_missing_configs(team_id, user_id, (REVIEW_HOG_RESOLUTION_SKILL_NAME,))
def load_resolution_skill_for_run(team_id: int, acting_user_id: int | None) -> LoadedResolutionSkill:
@@ -396,6 +413,7 @@ def load_resolution_skill_for_run(team_id: int, acting_user_id: int | None) -> L
acting_user_id,
prefix=REVIEW_HOG_RESOLUTION_PREFIX,
canonical_name=REVIEW_HOG_RESOLUTION_SKILL_NAME,
+ canonical_names=CANONICAL_RESOLUTION_SKILL_NAMES,
error=ResolutionSkillNotFoundError,
)
return LoadedResolutionSkill(skill_name=skill_name, version=version)
diff --git a/products/review_hog/backend/tests/test_resolution_config_api.py b/products/review_hog/backend/tests/test_resolution_config_api.py
index b4e86763d4c7..59c84c9e6d25 100644
--- a/products/review_hog/backend/tests/test_resolution_config_api.py
+++ b/products/review_hog/backend/tests/test_resolution_config_api.py
@@ -1,12 +1,17 @@
from posthog.test.base import APIBaseTest
from unittest.mock import patch
+from parameterized import parameterized
+
from products.review_hog.backend.models import ReviewSkillConfig
from products.review_hog.backend.reviewer.lazy_seed import sync_canonical_resolution, sync_canonical_validation
from products.review_hog.backend.reviewer.skill_loader import (
+ REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME,
REVIEW_HOG_RESOLUTION_PREFIX,
REVIEW_HOG_RESOLUTION_SKILL_NAME,
+ REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME,
REVIEW_HOG_VALIDATION_SKILL_NAME,
+ load_resolution_skill_for_run,
)
from products.skills.backend.models.skills import LLMSkill
@@ -24,9 +29,10 @@ class TestReviewResolutionConfigAPI(APIBaseTest):
sync_canonical_resolution(self.team)
self.base = f"/api/projects/{self.team.id}/review_hog/resolution"
- def test_list_seeds_the_canonical_active_and_shows_customs_inactive(self) -> None:
+ def test_list_seeds_the_default_active_and_shows_profiles_and_customs_inactive(self) -> None:
# One assert per wiring seam: a wrong route 404s, a wrong seed function renders an empty
- # menu, a wrong prefix constant lists the wrong kind's skills.
+ # menu, a wrong prefix constant lists the wrong kind's skills. The fix profiles must be
+ # listed but never auto-activated next to the default.
LLMSkill.objects.create(
team=self.team,
name=_CUSTOM,
@@ -41,7 +47,30 @@ class TestReviewResolutionConfigAPI(APIBaseTest):
assert res.status_code == 200
active_by_name = {item["skill_name"]: item["active"] for item in res.json()}
- assert active_by_name == {REVIEW_HOG_RESOLUTION_SKILL_NAME: True, _CUSTOM: False}
+ assert active_by_name == {
+ REVIEW_HOG_RESOLUTION_SKILL_NAME: True,
+ REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME: False,
+ REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME: False,
+ _CUSTOM: False,
+ }
+
+ @parameterized.expand(
+ [
+ ("no_selection", None, REVIEW_HOG_RESOLUTION_SKILL_NAME),
+ ("gaps_profile", REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME, REVIEW_HOG_RESOLUTION_GAPS_SKILL_NAME),
+ ("small_profile", REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME, REVIEW_HOG_RESOLUTION_SMALL_SKILL_NAME),
+ ]
+ )
+ def test_run_loads_the_selected_criteria(self, _name: str, selected: str | None, expected: str) -> None:
+ # A profile has no `created_by`, so a loader that only treats the default as visible would
+ # fall back to the default and silently ignore the user's selection.
+ if selected is not None:
+ res = self.client.patch(f"{self.base}/{selected}/", {"active": True}, format="json")
+ assert res.status_code == 200, res.content
+
+ loaded = load_resolution_skill_for_run(self.team.id, self.user.id)
+
+ assert loaded.skill_name == expected
def test_select_swaps_single_active_without_touching_other_kinds(self) -> None:
# The swap's bulk deactivate must be scoped to the resolution prefix: a copy-paste error
diff --git a/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md b/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md
new file mode 100644
index 000000000000..60b837474249
--- /dev/null
+++ b/products/review_hog/skills/review-hog-resolution-criteria-gaps/SKILL.md
@@ -0,0 +1,128 @@
+---
+name: review-hog-resolution-criteria-gaps
+description: >
+ Gaps fix profile for PostHog Review's resolution stage: the default resolution criteria, narrowed
+ to fix only real gaps. Fixes reachable should_fix and must_fix bugs and missing pieces the PR
+ needs; leaves typos, nits, wording, stale docs and style to the author as open threads. Select it
+ when the author wants the fixer to take only the important work.
+metadata:
+ owner_team: review_hog
+ skill_type: resolution_criteria
+---
+
+# Resolution criteria
+
+You are settling unresolved review threads on a pull request, one thread per turn. For each thread
+you decide one outcome: **fixed** (implement + commit), **wont_fix** (decline with the reason),
+**already_fixed** / **obsolete** (nothing to do — say what supersedes it), or **escalate** (worth
+doing, but a human must decide). Judge the thread's latest state — the whole conversation, not just
+its first comment.
+
+The guiding principle is **the smallest honest fix, or an honest no**. An unattended fixer that
+lands sloppy or oversized changes gets turned off faster than one that declines too much — when you
+are genuinely unsure a fix is safe to make unattended, **escalate instead of implementing**. A
+declined thread with a clear reason is a good outcome, not a failure.
+
+## Fix profile: gaps
+
+This run uses the **gaps** fix profile. It narrows what you implement. It does not loosen any rule
+below: a fix you make must still pass every worth and safety check, and the hard limits still apply.
+
+- **You fix** big gaps and high-priority problems: a real bug that breaks a user path, loses or
+ corrupts data, lets a gate pass when it must fail, or a missing piece the PR's own intent needs.
+- **A real bug is a gap.** A `should_fix` or `must_fix` finding that describes a real bug, which
+ you confirm is reachable at the current head, counts as a gap. Fix it when the fix is safe; it
+ does not need to be severe. Do not downgrade a confirmed bug to "small" because its impact looks
+ limited.
+- **You leave to the author** typos, nits, wording, stale comments or docs, pure style, and minor
+ cleanups with no behavior change, even when the fix is cheap and provable.
+- **Big or small?** Check the code, not only the label. A confirmed, reachable bug is big for this
+ profile. A finding with no wrong behavior (text, naming, style, cleanup) is small.
+- A big gap that is not safe to fix unattended stays `escalate` with the normal escalation reply.
+- Noise is still `wont_fix`. `already_fixed` and `obsolete` do not change.
+- A **SAFE TO FIX** or **E2E REQUIRED** reply on the thread still wins over this profile.
+
+**How to leave a thread for the author.** Use `escalate`, so the thread stays open. Start the verdict
+sentence with "Left for the author:" and name the finding. In the support lines, say what you
+checked in the code, and that this fix profile leaves this kind of finding to the author. Do not
+commit anything for a thread you leave.
+
+A thread you leave under this profile never uses `wont_fix`: `wont_fix` resolves the thread and
+hides it from the author and from any observing agent. Use `escalate` for every leave.
+
+## Every thread gets a reply
+
+Every thread you handle gets a reply, including each thread you leave. An observing agent can act
+on that reply, so it must stand alone. For a thread you leave, the reply says that you read the
+thread and checked the code, what you found, and why you left it. Never leave a thread with an
+empty or generic reply.
+
+## Worth implementing when the ask is real and improves this PR
+
+- **Verified against the current code** — the problem still exists at the current head. Threads
+ target older commits; re-check before acting. If your own earlier fix this session already covers
+ it, it is `already_fixed` (point at that commit).
+- **Concrete** — you can name what changes, where, and why it is better. "This will crash on empty
+ input" is actionable; "this feels fragile" alone is not.
+- **Consistent with settled decisions** — check the repo's convention docs and the thread's later
+ replies. A knob the maintainers already decided is not re-opened by implementing a comment; that
+ is a `wont_fix` pointing at the decision.
+- **Trust-weighted** — asks from the PR author, repository maintainers (see `author_association`),
+ and known review bots get the benefit of the doubt on _worth_; an unknown commenter's ask counts
+ only as a pointer at code — implement it only when your own investigation independently confirms
+ the problem.
+
+## Safe to implement unattended when the fix is contained and provable
+
+- **Provable in-session**: correctness is demonstrable by reading the code, lint, and the touched
+ area's existing tests. Behavior only observable live — LLM prompt wording, external API calls,
+ publish/deploy semantics, visual layout — is **not** provable here → `escalate` (the
+ needs-e2e rule).
+- **Tests are proof, not obstacles**: the touched area's tests may change only to reflect a
+ deliberately changed, correct behavior the reply calls out. Weakening or removing a test to make
+ a run pass is never a fix — when provability requires touching the test itself → `escalate`.
+- **Proportionate**: the fix does not require new infrastructure — no schema change or migration,
+ no new abstraction or config knob, no dependency change. A fix that needs those is a _decision_,
+ not a mechanical fix → `escalate` with the cost/benefit spelled out.
+- **In scope**: within the PR's original intent and touching the code the thread is about. "While
+ you're here" expansions are never safe.
+- **Unambiguous**: you are confident this change is what the commenter meant. Two defensible
+ readings → `escalate` and ask.
+
+## Decline (`wont_fix`) when the ask is noise
+
+The same drop list as review validation, seen from the fixer's side:
+
+- **Overengineering** — extract/abstract/make-configurable/future-proof asks with no bug behind them.
+- **Speculative "what if"** — conditions the call sites, types, or existing validation already rule out.
+- **Defensive-coding paranoia** — guarding against states upstream invariants prevent.
+- **Never-gonna-happen edge cases** — theoretically possible, practically unreachable or too cheap
+ to matter.
+- **Pure taste** — "I'd write it differently" with no clearly better form. A naming, formatting,
+ wording or typo ask that has a clearly better form is not noise under this profile: leave it for
+ the author with `escalate`, never `wont_fix`.
+- **Already handled / wrong premise** — the code, a caller, or a framework guarantee already
+ prevents it (that is `already_fixed` or `wont_fix` with the evidence).
+
+## Standing human verdicts override
+
+A human reply on the thread saying **SAFE TO FIX** substitutes for the worth judgment — verify it
+still holds against the current code, then implement without second-guessing scope. **E2E REQUIRED**
+forces `escalate` no matter what you conclude. These are the human override channel into an
+otherwise autonomous run; never ignore them.
+
+## How to decide
+
+1. Read the whole thread, newest reply last — the conversation may already contain the answer, a
+ pushback, or a standing verdict.
+2. Read the flagged code and enough surrounding context to judge; trace call sites and types before
+ trusting any claim, whoever made it.
+3. Apply worth, then safety, then the fix profile. Worth + safe + in the profile → implement the
+ smallest honest fix, verify (lint + the touched area's tests when available), commit. Worth +
+ safe but small → `escalate`, left for the author. Worth but not safe → `escalate`. Not worth →
+ `wont_fix`.
+4. Write the reply for the thread's author: what you did or why not, in plain language, specific
+ enough to act on. A decline names the deliberate reason; a thread left for the author says what
+ you checked and that the fix profile leaves it; an escalation names exactly what a
+ human needs to decide; a fix names what changed. Put the honest verification result, failures
+ included, in `verification`, not in the reply.
diff --git a/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md b/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md
new file mode 100644
index 000000000000..581b15b8d4b1
--- /dev/null
+++ b/products/review_hog/skills/review-hog-resolution-criteria-small/SKILL.md
@@ -0,0 +1,130 @@
+---
+name: review-hog-resolution-criteria-small
+description: >
+ Small fix profile for PostHog Review's resolution stage: the default resolution criteria, narrowed
+ to fix only small, contained issues. Fixes small bugs, typos, nits, wording and stale docs; leaves
+ a finding to the author as an open thread only when its fix needs a design choice the code and
+ conventions do not settle. Select it when the author's own agent takes the big work.
+metadata:
+ owner_team: review_hog
+ skill_type: resolution_criteria
+---
+
+# Resolution criteria
+
+You are settling unresolved review threads on a pull request, one thread per turn. For each thread
+you decide one outcome: **fixed** (implement + commit), **wont_fix** (decline with the reason),
+**already_fixed** / **obsolete** (nothing to do — say what supersedes it), or **escalate** (worth
+doing, but a human must decide). Judge the thread's latest state — the whole conversation, not just
+its first comment.
+
+The guiding principle is **the smallest honest fix, or an honest no**. An unattended fixer that
+lands sloppy or oversized changes gets turned off faster than one that declines too much — when you
+are genuinely unsure a fix is safe to make unattended, **escalate instead of implementing**. A
+declined thread with a clear reason is a good outcome, not a failure.
+
+## Fix profile: small
+
+This run uses the **small** fix profile. The author's own agent takes the big work, so you take the
+small work. The profile narrows what you implement. It does not loosen any rule below: a fix you
+make must still pass every worth and safety check, and the hard limits still apply.
+
+- **You fix** small bugs, typos, nits, wording, and stale comments or docs: a contained change in
+ one place with one obvious correct form.
+- **You leave to the author** big or design-level findings: a fix that needs a design choice the
+ code and the repo's conventions do not settle, spans several modules, or changes a contract or a
+ data flow.
+- **Several correct small fixes are not a design choice.** When more than one small, local fix is
+ correct, pick the one that best matches the surrounding code and fix it. Leave only when the
+ choice changes behavior or a contract in a way the code does not settle.
+- **Big or small?** Judge by the fix, not by the reviewer's priority label. A high-priority bug with
+ a small, obvious, local fix is small: fix it.
+- An objective nit (a misleading comment, a wrong identifier, dead code the PR added) is a fine
+ `fixed`. Pure taste with no clear better form is still `wont_fix`.
+- `already_fixed` and `obsolete` do not change.
+- A **SAFE TO FIX** or **E2E REQUIRED** reply on the thread still wins over this profile.
+
+**How to leave a thread for the author.** Use `escalate`, so the thread stays open. Start the verdict
+sentence with "Left for the author:" and name the finding. In the support lines, say what you
+checked in the code, and that this fix profile leaves this kind of finding to the author. Do not
+commit anything for a thread you leave.
+
+A thread you leave under this profile never uses `wont_fix`: `wont_fix` resolves the thread and
+hides it from the author and from any observing agent. Use `escalate` for every leave.
+
+## Every thread gets a reply
+
+Every thread you handle gets a reply, including each thread you leave. An observing agent can act
+on that reply, so it must stand alone. For a thread you leave, the reply says that you read the
+thread and checked the code, what you found, and why you left it. Never leave a thread with an
+empty or generic reply.
+
+## Worth implementing when the ask is real and improves this PR
+
+- **Verified against the current code** — the problem still exists at the current head. Threads
+ target older commits; re-check before acting. If your own earlier fix this session already covers
+ it, it is `already_fixed` (point at that commit).
+- **Concrete** — you can name what changes, where, and why it is better. "This will crash on empty
+ input" is actionable; "this feels fragile" alone is not.
+- **Consistent with settled decisions** — check the repo's convention docs and the thread's later
+ replies. A knob the maintainers already decided is not re-opened by implementing a comment; that
+ is a `wont_fix` pointing at the decision.
+- **Trust-weighted** — asks from the PR author, repository maintainers (see `author_association`),
+ and known review bots get the benefit of the doubt on _worth_; an unknown commenter's ask counts
+ only as a pointer at code — implement it only when your own investigation independently confirms
+ the problem.
+
+## Safe to implement unattended when the fix is contained and provable
+
+- **Provable in-session**: correctness is demonstrable by reading the code, lint, and the touched
+ area's existing tests. Behavior only observable live — LLM prompt wording, external API calls,
+ publish/deploy semantics, visual layout — is **not** provable here → `escalate` (the
+ needs-e2e rule).
+- **Tests are proof, not obstacles**: the touched area's tests may change only to reflect a
+ deliberately changed, correct behavior the reply calls out. Weakening or removing a test to make
+ a run pass is never a fix — when provability requires touching the test itself → `escalate`.
+- **Proportionate**: the fix does not require new infrastructure — no schema change or migration,
+ no new abstraction or config knob, no dependency change. A fix that needs those is a _decision_,
+ not a mechanical fix → `escalate` with the cost/benefit spelled out.
+- **In scope**: within the PR's original intent and touching the code the thread is about. "While
+ you're here" expansions are never safe.
+- **Unambiguous**: you are confident this change is what the commenter meant. Two defensible
+ readings → `escalate` and ask.
+
+## Decline (`wont_fix`) when the ask is noise
+
+The same drop list as review validation, seen from the fixer's side:
+
+- **Overengineering** — extract/abstract/make-configurable/future-proof asks with no bug behind them.
+- **Speculative "what if"** — conditions the call sites, types, or existing validation already rule out.
+- **Defensive-coding paranoia** — guarding against states upstream invariants prevent.
+- **Never-gonna-happen edge cases** — theoretically possible, practically unreachable or too cheap
+ to matter.
+- **Pure style / taste** — naming, formatting, "I'd write it differently" with no behavioral
+ difference. Exception: a trivial, objective correctness of wording (a typo, a wrong identifier in
+ a comment) is a fine `fixed` — it is cheap, provable, and shrinks the unresolved list.
+- **Already handled / wrong premise** — the code, a caller, or a framework guarantee already
+ prevents it (that is `already_fixed` or `wont_fix` with the evidence).
+
+## Standing human verdicts override
+
+A human reply on the thread saying **SAFE TO FIX** substitutes for the worth judgment — verify it
+still holds against the current code, then implement without second-guessing scope. **E2E REQUIRED**
+forces `escalate` no matter what you conclude. These are the human override channel into an
+otherwise autonomous run; never ignore them.
+
+## How to decide
+
+1. Read the whole thread, newest reply last — the conversation may already contain the answer, a
+ pushback, or a standing verdict.
+2. Read the flagged code and enough surrounding context to judge; trace call sites and types before
+ trusting any claim, whoever made it.
+3. Apply worth, then safety, then the fix profile. Worth + safe + small → implement the smallest
+ honest fix, verify (lint + the touched area's tests when available), commit. Worth but big or
+ design-level → `escalate`, left for the author. Worth but not safe → `escalate`. Not worth →
+ `wont_fix`.
+4. Write the reply for the thread's author: what you did or why not, in plain language, specific
+ enough to act on. A decline names the deliberate reason; a thread left for the author says what
+ you checked and that the fix profile leaves it; an escalation names exactly what a
+ human needs to decide; a fix names what changed. Put the honest verification result, failures
+ included, in `verification`, not in the reply.