Review Hog Validation Criteria

by PostHog469d1773e9cbNo licenseListed Oct 8, 2026Updated Oct 8, 2026

The validation criteria for PostHog Review, the bar for deciding whether a flagged PR issue is worth keeping. Keeps real, user-affecting correctness / security / data-loss / contract / performance problems; drops overengineering, speculation, paranoia, never-gonna-happen edge cases, and style.

Instructions onlySoftware Development
AI-generated overview

Defines validation criteria for deciding whether a flagged PR review issue is worth keeping or dropping.

What it does
This skill supplies the judgment criteria for a PR review gate. It instructs the agent to investigate each previously flagged candidate issue against the live codebase and return a keep/drop verdict (is_valid) plus a category and focused argumentation. It lists what counts as a real problem (correctness, security, data loss, contract breaks, performance, reliability) and what counts as noise (overengineering, speculation, paranoia, style, already handled, wrong). The guiding principle is precision over recall, so uncertain issues are dropped.
When to use it
Use it when acting as the final validation gate over candidate issues raised by earlier review perspectives on a pull request. It fits deciding which flagged findings are worth surfacing to the author, not re-reviewing the PR or inventing new issues.
Requirements
No scripts or special tooling; it is instructions only. It assumes the agent can read the flagged files and surrounding code in the live codebase.

Review validation criteria

You are the final judgment gate of a PR review. Earlier specialist perspectives flagged candidate issues; your job is to decide, for each one, whether it is worth surfacing to the author — not to re-review the PR or invent new issues. Investigate the flagged code against the live codebase, then return a keep/drop verdict (is_valid) using the bar below.

The guiding principle is precision over recall: a reviewer that raises noise gets muted, so when you are genuinely unsure whether an issue matters, drop it. A smaller set of real, actionable findings is worth far more than a long list padded with maybes.

Keep an issue (is_valid = true) when it is a real problem that plausibly affects users or the codebase

Keep it if the flagged code, as written and as actually reached, would cause one of:

  • Correctness bugs — wrong results, broken logic, off-by-one / boundary errors, mishandled edge cases that real inputs will hit, incorrect data transformations or state mutations.
  • Security issues — injection, auth/permission gaps, IDOR / tenant-isolation holes, secret leakage, unsafe deserialization, path traversal, SSRF.
  • Data loss or corruption — destructive or non-idempotent operations, lost writes, migrations that drop or mangle data, race conditions that corrupt shared state.
  • Contract breaks — backwards-incompatible API / schema / signature changes, broken callers, a changed invariant other code relies on.
  • Performance problems that bite at real scale — N+1 queries, unbounded loops/memory on realistic inputs, missing indexes on hot paths, blocking I/O on an async path, accidental quadratic behavior.
  • Resource / reliability defects — leaked connections / file handles, unreleased locks, swallowed errors that hide failures, missing handling for a failure mode that will occur.

A good "keep" can name the concrete trigger and the concrete consequence ("if items is empty this raises IndexError", "this query runs once per row → N+1 on the dashboard"). If you can't name both, be skeptical.

Drop an issue (is_valid = false) when it is noise

Drop it if it is any of:

  • Overengineering — "extract this", "add an abstraction/interface", "make it configurable", "future-proof for a case that isn't in scope".
  • Speculative "what if" — depends on inputs or conditions that can't actually occur given the call sites, types, or validation already in place.
  • Defensive-coding paranoia — guarding against None/errors that upstream types or invariants already rule out; redundant checks the framework or a parent caller already performs.
  • Never-gonna-happen edge cases — theoretically possible but practically unreachable, or so rare and low-impact that handling it isn't worth the code.
  • Pure style / taste — naming, formatting, comment wording, import order, "I'd write it differently" with no behavioral difference. (Formatting is not a PostHog Review concern.)
  • Already handled — the supposed problem is prevented elsewhere (a parent caller, a default, a framework guarantee, existing validation), which you confirmed by reading the surrounding code.
  • Wrong / unreproducible — investigating the actual code shows the premise is mistaken.

How to decide

  1. Read the flagged file(s) and the code around them in full — don't judge from the snippet alone.
  2. Trace whether the problem can actually be reached: check call sites, types, validation, and how inputs flow in.
  3. Weigh real impact (who is affected, how badly) against the bar above.
  4. On the fence → drop (precision over recall, as above).
  5. Record a focused argumentation that states the concrete reasoning for your verdict, and set category to the kind of issue it is.

Source and attribution

Source:PostHog/ai-plugininskills/review-hog-validation-criteriaat commit469d177

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from PostHog/ai-plugin

Writing Simplified Technical English

PostHog

Applies ASD-STE100 simplified technical English rules to make agent-written prose unambiguous and actionable.

Writing & ContentOct 8, 2026

Working With Task Comments

PostHog

Reads and interprets comments on PostHog tasks, artifacts, and canvases through the PostHog MCP exec dispatcher.

Productivity & WorkflowOct 8, 2026

Working With Skills

PostHog

Guides agents in using PostHog's skill-* MCP tools to discover, read, create, update, and refactor skills.

AI & AgentsOct 8, 2026

Working With Scouts

PostHog

Operating manual for delegating watching jobs to PostHog Signals scouts, acting on their reports, and steering the fleet over time.

AI & AgentsOct 8, 2026

Validating And Publishing Canvases

PostHog

Validate and publish a canvas source project safely: the source-project shape, declared capabilities, reading the current version pointer, iterating on validation diagnostics, guarded publishing with expected_current_version_id, staging a draft build and promoting it, waiting out the queued build, and recovering from a 409 version_conflict or a 429 capacity limit without overwriting concurrent work. Use whenever a canvas edit is ready to save, a draft build is wanted, a canvas publish or build returns diagnostics or a conflict, or a task needs to understand canvas version history.

Awaiting classificationOct 8, 2026

Understanding Billing Usage

PostHog

Explains PostHog billing usage and spend from the customer's visible Billing MCP tools. Use when the user asks why usage or spend is high, which product or project is driving usage, what a usage type means, how to reduce usage, what changed over time, why they got a usage change alert, or whether a spike/drop alert was real or noisy. Also use before product-specific analytics skills when the user names a billable PostHog product metric such as events, recordings, feature flag requests, exceptions, survey responses, synced rows, logs, AI events, AI credits, or Inbox credits. Starts from Billing usage/spend tools, then routes to customer-visible product MCP surfaces for deeper investigation.

Awaiting classificationOct 8, 2026