: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.
.stamphog
The PostHog monorepo's own stamphog configuration.
How the hosted product reads this directory: products/stamphog/README.md.
What each file contains and how per-folder overrides resolve: the engine's "Policy files" section.
What this repository configures
policy.yml declares only what differs from the shipped default, which the engine merges it onto:
infra_cicdreplaces itspathslist. It also matches.github/pr-deploy, and of the workflows it keeps only the ones that CODEOWNERS assigns toteam-security, so those stay denied for every author.ci_workflowsis an extra, owner-only category. It matches every file under.github/workflows/and.depot/workflows/, and itsexempt_author_teamslets stamphog approve there only for authors onteam-devex.stamphog_policyextends its paths withpackages/owners-yaml/,owners.yamlandproduct.yaml, because those are gate inputs here.devex_guardrailsis an extra category. It matches the semgrep rules, ratchet baselines, invariant tests and lint code that guard the house patterns, so an edit to a guard always gets a human review.agent_steeringis an extra, owner-only category. It matches the rootAGENTS.md, the five topic guides moved out of it (.agents/agent-automation.md,architecture.md,ci.md,code-style.mdandfeature-usage-tracking.md), the PR template, thewriting-pr-descriptionsskill,.claude/settings.json,.claude/hooks/and.mcp.json, and itsexempt_author_teamslets stamphog approve there only for authors onteam-devex.workflows_deliveryis an extra, owner-only category. It matches the CDP, Workflows and Messaging API, models and plugin-server worker code, and itsexempt_author_teamslets stamphog approve there only for authors onteam-workflows.deny_exceptionsliftsauthandbillingforproducts/warehouse_sources/backend/temporal/data_imports/sources/andproducts/warehouse_sources/sources/, because connector code does OAuth and talks to the Stripe API without touching PostHog's auth system or its billing. It liftsworkflows_deliveryfor the CDP and Messaging API test directories.allowextends its path patterns with.github/CODEOWNERS.
The repository uses the shipped default review-guidance.md.
steering.md tells the reviewer to refuse a diff that adds a suppression or an exemption for one of those guards.
A path rule cannot see these, because the marker sits in product code or in a busy file.
That covers the isolation exemptions inside tach.toml and the product turbo.json files, which stay off the deny list because most of their edits are routine depends_on and input additions.
ownership comes from the shipped default, which declares one hogli-resolver source at the repo root, so stamphog reads the same merged view the reviewer auto-assigner builds.
overrides comes from the shipped default and grants folders a ceiling of 75 files and 1500 lines.
Two folders currently take it up: products/desktop/ and products/visual_review/.
Proposing a change
Open a PR that edits these files.
Stamphog can never auto-approve it: the stamphog_policy deny category matches .stamphog/**, any AGENT_APPROVALS.md, and the engine itself, so every change routes to a human reviewer.
The loader also hard-fails if that self-governance entry is missing or loses a shipped pattern, so it cannot be dropped silently.