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(signals): Anchor fixes prompt to the report (#61057)

Michael Matloka0e139f22fb05
diff --git a/products/signals/backend/auto_start.py b/products/signals/backend/auto_start.py
index aed497a38a5d..f77fb4c69091 100644
--- a/products/signals/backend/auto_start.py
+++ b/products/signals/backend/auto_start.py
@@ -49,7 +49,13 @@ def _build_autostart_task_description(
f"{summary}\n\n"
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"
+ "Address the symptom described above — not merely an adjacent issue you notice nearby. "
+ "Investigate the root cause, implement the fix, and open a PR if appropriate. "
+ "If your change fixes something related but does not change what the user actually observed, "
+ "say so explicitly and stop rather than opening a PR for the wrong problem. "
+ "For visual or UX symptoms (loading states, layout, flashes), reproduce the state or review a "
+ "session recording of the affected flow to confirm your fix changes it — unit tests alone do not "
+ "verify a visual symptom.\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 "
diff --git a/products/signals/backend/report_generation/research.py b/products/signals/backend/report_generation/research.py
index b5f379c321fd..cb3964d4a78f 100644
--- a/products/signals/backend/report_generation/research.py
+++ b/products/signals/backend/report_generation/research.py
@@ -101,7 +101,9 @@ class PriorityAssessment(BaseModel):
explanation: str = Field(
description=(
"2-3 sentence justification for the priority level. "
- "Reference quantified user impact, error frequency, or scope of affected code paths."
+ "Cite a quantified figure from your research — error frequency, affected user/session count, "
+ "or scope of affected code paths. If impact could not be measured, say so explicitly and explain "
+ "why the priority is not lowered further."
),
)
priority: Priority = Field(description="Priority (P0-P4)")
@@ -143,7 +145,7 @@ An Axios-style summary in four brief paragraphs:
- A one-sentence "why it matters" tl;dr of the report. Ideally start with "Users …", explaining how users are being impacted, how many, or how important they are. If users aren't impacted, but the team building the product is, describe that. Otherwise, just describe what's going on.
- '**What's happening:** …' - a brief description of the concrete facts, expanding on the tl;dr sentence. Reference specific signals, errors, metrics, or patterns. Use available tools to do research here like a product manager would.
- '**Root cause:** …' - dig as deep as you can into the root cause of the issue, and explain it in plain terms. Use concrete references to problematic APIs or UI elements, so that the engineer familiar with the code understands this.
-- '**How to resolve:** …' - a single, concrete action plan for the code-level fix that addresses the root cause directly. Skip if the report is not actionable.
+- '**How to resolve:** …' - a single, concrete action plan for the code-level fix that addresses the root cause directly and resolves the symptom described in **What's happening** (not merely an adjacent issue). Skip if the report is not actionable.
Principles:
- Be direct and specific. Every sentence must carry information.