: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): nudge scouts to format findings for the inbox (#62370)
Andrew Maguire80da35a153ab
diff --git a/products/signals/backend/scout_harness/prompt.py b/products/signals/backend/scout_harness/prompt.pyindex a1e0b8767d03..43f4b3886428 100644--- a/products/signals/backend/scout_harness/prompt.py+++ b/products/signals/backend/scout_harness/prompt.py@@ -78,6 +78,27 @@ When you call `signals-scout-emit-signal`:traceability. It does NOT dedupe: emitting the same id twice creates twosignals, so emit each finding exactly once and never retry an emit.+# Writing the description (how it renders in the inbox)++Your `description` is rendered as GitHub-flavored markdown in the inbox and+**collapsed to the first ~300 characters** behind a "Show more" toggle. Write for+that surface:++- **Front-load the verdict.** The first one or two sentences are the entire+ preview most readers see. Lead with what's wrong (or worth knowing) and the+ single number that proves it — not setup, methodology, or caveats. End that+ lead with a blank line so the preview truncates at a clean paragraph break, not+ mid-sentence.+- **Structure the body, don't write a wall.** After the lead, use short+ paragraphs, `**bold**` labels, and `-` / numbered lists for evidence, volume,+ and the recommended next step. Close with a one-line `Recommend: …`. A single+ run-on paragraph is hard to scan; tables and `code` spans render too.++These are defaults for when your skill body says nothing about format. If your+skill defines its own description structure (a fixed template, required sections,+a machine-parseable shape), follow that instead — the skill body owns the prose+contract.+# Dedupe rules- If a recent run already covers this hypothesis with the same evidence, don'tdiff --git a/products/signals/backend/test/test_scout_harness.py b/products/signals/backend/test/test_scout_harness.pyindex edf42b3ad0e9..16db56e46cb1 100644--- a/products/signals/backend/test/test_scout_harness.py+++ b/products/signals/backend/test/test_scout_harness.py@@ -167,6 +167,10 @@ class TestPromptBuilder(BaseTest):# agent-feedback tool so the scout system improves over time.assert "Report operational friction" in promptassert "agent-feedback" in prompt+ # The base prompt teaches scouts to format the description for the inbox+ # surface (markdown, front-loaded into the ~300-char collapsed preview),+ # while leaving a skill body free to impose its own structure.+ assert "Writing the description (how it renders in the inbox)" in prompt# Orchestration tests run as plain pytest functions because the async runner uses