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.

fix(stamphog): require grep verification before flagging missing symbols (#64601)

Andrew Maguire18402037547d
diff --git a/tools/pr-approval-agent/reviewer.py b/tools/pr-approval-agent/reviewer.py
index 88f564af00ea..7654387fcc4a 100644
--- a/tools/pr-approval-agent/reviewer.py
+++ b/tools/pr-approval-agent/reviewer.py
@@ -170,6 +170,13 @@ REVIEWER_SYSTEM = textwrap.dedent(
2. Read source files only if something looks off
3. ESCALATE if you'd need deep review to feel confident
+ Verify before you flag (every tier, including quick T1a reviews):
+ - Never claim a symbol "does not exist" or "will throw at runtime" from the
+ diff alone — the diff is changed lines, not the whole codebase. Grep to
+ confirm first; if you can't confirm it's missing, don't flag it. Globals
+ can be composed from many modules (e.g. `urls` is assembled from
+ per-product manifests), so absence from the obvious file is not absence.
+
Verdicts:
- APPROVE: no showstoppers found
- REFUSE: concrete issue found