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(signals): warn auto-start agents to check external repo AI policies (#62614)

Oliver Browneaa66acc98ba8
diff --git a/products/signals/backend/auto_start.py b/products/signals/backend/auto_start.py
index ec7399aa2619..aed497a38a5d 100644
--- a/products/signals/backend/auto_start.py
+++ b/products/signals/backend/auto_start.py
@@ -50,6 +50,18 @@ def _build_autostart_task_description(
f"{priority_line}"
f"Repository: {repository}\n\n"
"Act on this signal report. Investigate the root cause, implement the fix, and open a PR if appropriate.\n\n"
+ "You are acting fully autonomously on the user's behalf — there is no human approval step unless you "
+ "explicitly request one. So before opening a PR against a repository the user does not own (any external "
+ "/ third-party repo, not under the user's own org), check for the project's contribution and "
+ "AI/LLM-authored-commit policies first. Look in the obvious places — CONTRIBUTING.md, the README, "
+ "CODE_OF_CONDUCT.md, .github/ (including issue/PR templates), and any AGENTS.md, CLAUDE.md, ai.txt, or "
+ "similarly named policy file — for rules on automated or AI-generated contributions, required disclosure, "
+ "or PRs from non-collaborator forks. If the project forbids or restricts AI-authored PRs, requires a "
+ "particular disclosure you can't satisfy, or the repo doesn't accept PRs from forks, do NOT open a PR "
+ "against the upstream repo. Instead, push your branch to the user's own fork of the repository and point "
+ "the user to that branch so they can review the changes and decide how to proceed, and explain in your "
+ "turn summary why you didn't open the PR directly. Err on the side of caution to avoid committing a "
+ "social faux pas in someone else's project.\n\n"
"When opening the PR, include this report deep link in the description footer, "
"making the footer '*Created with [PostHog Code](https://posthog.com/code?ref=pr) "
f"from [an inbox report]({report_deep_link}).' - "