Skip to content

feat(stamphog): trust clean ReviewHog signals#3598

Draft
adboio wants to merge 2 commits into
mainfrom
posthog-code/stamphog-trust-reviewhog
Draft

feat(stamphog): trust clean ReviewHog signals#3598
adboio wants to merge 2 commits into
mainfrom
posthog-code/stamphog-trust-reviewhog

Conversation

@adboio

@adboio adboio commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Problem

This repo’s older Stamphog copy did not fetch PR reactions, so it could not consume clean reviewer signals from Greptile, Hex, or ReviewHog.

Why: Keep Stamphog’s reviewer evidence consistent across PostHog repos through one generic trusted-reaction contract.

Changes

  • Fetch PR reactions and retain only allowlisted reviewer bots, excluding the PR author.
  • Include the normalized reactions in the reviewer prompt with generic weak-evidence semantics.
  • Trust the shared posthog[bot] identity used by ReviewHog alongside the existing reviewer bots.

How did you test this?

  • uv run --with pytest python -m pytest tools/pr-approval-agent/test_github.py tools/pr-approval-agent/test_review_pr.py tools/pr-approval-agent/test_reviewer_gateway.py
  • 16 focused tests passed.
  • ruff check passed on the changed Python files.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: fa3ff167-712b-41c4-aa27-aa8ec1700f4e
@adboio adboio self-assigned this Jul 20, 2026
@trunk-io

trunk-io Bot commented Jul 20, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

Generated-By: PostHog Code
Task-Id: fa3ff167-712b-41c4-aa27-aa8ec1700f4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant