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): port revenue-analytics scout to the report channel (#67155)

Andrew Maguire8d5dd95e01f8
diff --git a/products/signals/skills/signals-scout-revenue-analytics/SKILL.md b/products/signals/skills/signals-scout-revenue-analytics/SKILL.md
index 229c7da5e29b..cf7f04491e37 100644
--- a/products/signals/skills/signals-scout-revenue-analytics/SKILL.md
+++ b/products/signals/skills/signals-scout-revenue-analytics/SKILL.md
@@ -2,12 +2,17 @@
name: signals-scout-revenue-analytics
description: >
Signals scout for PostHog revenue analytics. Watches for upstream failures (Stripe sync
- stalls, capture regressions), config drift, and goal-miss escalations.
+ stalls, capture regressions), config drift, and goal-miss escalations, and files each
+ validated finding as a report in the inbox.
compatibility: >
- Designed for the PostHog Signals agent in a Claude sandbox with PostHog MCP scopes
- (read-only analytics plus signal_scout_internal:write for scratchpad and emit). Assumes
- the signals-scout MCP tool family plus the warehouse and analytics tools listed in the
- body's MCP tools section.
+ Designed for the PostHog Signals agent in a Claude sandbox with PostHog MCP scopes:
+ read-only analytics plus signal_scout_internal:write (for scratchpad) +
+ signal_scout_report:write (for emit-report/edit-report, granted because this scout authors
+ reports directly via the report channel). Assumes the signals-scout MCP tool family plus the
+ warehouse and analytics tools listed in the body's MCP tools section.
+allowed_tools:
+ - emit_report
+ - edit_report
metadata:
owner_team: signals
scope: revenue_analytics
@@ -31,7 +36,15 @@ finance acts on stale data. That's the high-impact class. Movement in MRR / chur
itself is secondary — the team is usually already watching that.
Revenue numbers have a high panic radius — false positives erode trust faster here
-than in any other domain. When in doubt, memory entry, not emit.
+than in any other domain. When in doubt, write a scratchpad memory rather than a report.
+
+You author reports directly via the report channel (`signals-scout-emit-report` /
+`signals-scout-edit-report`): you've done the research, so you own each finding 1:1
+end-to-end as an inbox report rather than firing a weak signal for a pipeline to cluster.
+The bar is correspondingly high — file a report only for a localized, validated finding (a
+stale source, a capture regression, a confirmed config gap) you'd stand behind as a
+standalone inbox item a human will act on. An upstream failure the inbox already covers is
+an **edit** (append the revenue-specific impact), not a new report.
## Quick close-out: is revenue analytics even active?
@@ -70,7 +83,7 @@ Three cheap reads cold-start a run:
| Stripe-shaped `external_data_sources` row with `status = failed` or stuck `running` | Revenue dashboard silently stale — high-impact upstream watchdog |
| Configured revenue event missing or sharply down in `top_events` | Capture regression — MRR / gross revenue dropping artificially |
| `popular_insights` includes revenue chart and chart's source is unhealthy | Confirmed downstream impact — high-confidence finding |
-| `product_intents` lists revenue analytics but no Stripe source and no event configured | Stuck onboarding — write memory, don't emit |
+| `product_intents` lists revenue analytics but no Stripe source and no event configured | Stuck onboarding — write memory, don't report |
| Recent revenue dashboard view counts unchanged after a known revenue movement | Team isn't watching — dashboard exists but isn't load-bearing |
### Explore
@@ -88,9 +101,9 @@ class** — a finance metric reading wrong without any error surface to the user
2. `external-data-sync-logs` for the failure pattern — one-off vs recurring.
3. `execute-sql` against `system.insights` filtered to `name ILIKE '%revenue%' OR
query::text ILIKE '%revenue_analytics%'` for blast radius.
-4. Cross-check `existing_inbox_reports` for an open warehouse-source report — if so,
- surface the **revenue-specific** angle (which finance metrics are wrong) rather
- than re-emitting the same warehouse failure.
+4. Cross-check `inbox-reports-list` for an open warehouse-source report — if so,
+ `append_note` the **revenue-specific** angle (which finance metrics are wrong) onto it
+ rather than authoring a parallel report for the same warehouse failure.
The warehouse failure is the recovery action; the revenue angle is the **business
impact** prose: which dashboards, who reads them, what's wrong by how much.
@@ -122,7 +135,7 @@ dashboard renders but only gross revenue is meaningful.
Detect: events configured with revenue + currency but no subscription property;
gross-revenue chart populated, MRR chart empty. Scratchpad-level finding for
-new-onboarding teams; emit-worthy if the team has been live long enough that they
+new-onboarding teams; report-worthy if the team has been live long enough that they
should have noticed.
#### Currency mix surprise
@@ -137,7 +150,7 @@ GROUP BY 1 ORDER BY 2 DESC
```
A currency that's never appeared before, or whose share suddenly jumped, usually means
-either (a) the team is selling into a new market — write a scratchpad entry, no emit,
+either (a) the team is selling into a new market — write a scratchpad entry, no report,
or (b) currency property is misconfigured and revenue is being mis-tagged. The (b) case
shows up as a single dominant currency on a non-USD team or vice versa. Cross-reference
with `RevenueAnalyticsEventItem.currencyProperty` to tell them apart.
@@ -151,7 +164,7 @@ person-level revenue (group analytics, customer journeys) goes dark.
Detect via the `customer` view: count of customers with non-null
`posthog_person_distinct_id` in last 30d vs the 30d before. Scratchpad-worthy if the
-team isn't using person-level revenue features; emit-worthy if they are (check
+team isn't using person-level revenue features; report-worthy if they are (check
`popular_insights` for person-breakdown revenue charts).
#### Deferred revenue not deferring
@@ -159,7 +172,7 @@ team isn't using person-level revenue features; emit-worthy if they are (check
Stripe source healthy, but invoice line items missing the `period` property. The
dashboard will show monthly revenue lumpy (annual subscriptions land in one month)
instead of spread across the service period. Check the `revenue_item` view: rows where
-`is_recurring = true` and `period_start` / `period_end` are null. Emit when more than
+`is_recurring = true` and `period_start` / `period_end` are null. Report when more than
~20% of recurring rows are missing period info — finance reporting wrong in a subtle
way.
@@ -171,13 +184,13 @@ under the goal, the team should already be reacting. If recent dashboard views h
ticked up, they aren't watching. Surface the gap; let the team decide.
Disqualifier: goals with `due_date` already past, where the team hasn't updated them —
-config debt, not active targets. Scratchpad entry, skip emit.
+config debt, not active targets. Scratchpad entry, skip the report.
#### Test-account contamination
`RevenueAnalyticsConfig.filter_test_accounts = false` on a project with a
`person.properties.email` filter set up for test accounts. Internal QA charges are
-being counted as real revenue. Easy scratchpad entry; emit-worthy if the scratchpad
+being counted as real revenue. Easy scratchpad entry; report-worthy if the scratchpad
shows the team has historically asked about "revenue jumped overnight" incidents and
the cause was QA traffic.
@@ -185,7 +198,9 @@ the cause was QA traffic.
Memory is a continuous activity. Write a scratchpad entry whenever you observe something
a future revenue run should know. Encode the "category" in the key prefix — `pattern:`,
-`noise:`, `addressed:`, `dedupe:` — so future runs find it with a single `text=` search:
+`noise:`, `addressed:`, `dedupe:`, plus `report:<entity>` (the `report_id` of a report you
+authored, so the next run edits it) and `reviewer:<area>` (a resolved owner login) — so
+future runs find it with a single `text=` search:
- key `pattern:revenue_analytics:event-config` — _"Revenue event is `purchase_completed`;
revenue prop is `revenue` (cents), currency prop is `currency`, subscription prop is
@@ -198,10 +213,15 @@ a future revenue run should know. Encode the "category" in the key prefix — `p
- key `pattern:revenue_analytics:q3-arr-goal` — _"Team has revenue analytics goals
configured; Q3 ARR target is $X by due_date 2026-09-30 — re-check progress monthly."_
- key `pattern:revenue_analytics:dashboard-staleness` — _"Revenue dashboard at `/revenue`
- was last viewed 2026-04-22; team isn't actively watching — emit at higher confidence
+ was last viewed 2026-04-22; team isn't actively watching — report at a higher confidence
threshold."_
- key `addressed:revenue_analytics:test-accounts` — _"`filter_test_accounts` is off; QA
charges from `@example.com` accounts appear in revenue — already raised, team aware."_
+- key `report:revenue_analytics:stripe_prod` — _"Authored report `0193…` for the stalled
+ `stripe_prod` sync on 2026-06-30 (MRR + gross-revenue dashboards reading stale); edit it
+ if the source is still failing next run."_
+- key `reviewer:revenue_analytics:billing` — _"Billing / revenue surface owner is
+ `octocat` — route revenue-source reports here."_
By run #5 the scratchpad knows the team's revenue config, currency mix, which
dashboards are load-bearing, and whether finance is actively watching — so when something
@@ -209,24 +229,50 @@ regresses, the finding lands with the right context already attached.
### Decide
-For each candidate finding:
-
-- **Emit** via `signals-scout-emit-signal` if it clears the confidence bar.
- Strong scout findings: confidence ≥ 0.85, with concrete dashboard ids,
- source labels, view names, and quantified impact in the evidence.
-- **Remember** if below the bar but worth carrying forward.
-- **Skip** with a one-line note if a scratchpad entry with a `noise:` or `addressed:`
- key prefix already covers it.
-
-Cross-check `inbox-reports-list` before emitting — if a warehouse-source failure is
-already in the inbox, surface only the revenue-specific business impact angle (which
-metrics are wrong, who reads them) rather than re-emitting the same upstream failure.
+Before you author, check whether this source / metric already has a report — the
+`report:revenue_analytics:<entity>` scratchpad pointer is the reliable path: it holds the
+`report_id`, so `inbox-reports-retrieve` it directly. With no pointer, fall back to an
+`inbox-reports-list` search (`ordering=-updated_at`) on the source label / metric / dashboard
+id. Then, for each candidate:
+
+- **Edit** the existing report via `signals-scout-edit-report` when the inbox already covers
+ the source or metric. A revenue issue is rarely brand-new — a Stripe source still failing, a
+ revenue event still depressed: `append_note` with the fresh status and the revenue-specific
+ impact (which metrics are wrong, by how much), or rewrite the title/summary on a report you
+ authored. This is the default when a match exists **and it's still live**; don't mint a
+ near-duplicate. **Check the matched report's status first:** `edit-report` can't change
+ status, so appending to a `resolved` / `suppressed` / `failed` report buries a real relapse —
+ when the prior report is no longer live, author a fresh report and repoint
+ `report:revenue_analytics:<entity>` at the new id. If a warehouse-source failure report
+ already exists (filed by the data-warehouse scout or the pipeline), `append_note` the
+ revenue angle onto it rather than authoring a parallel report for the same upstream failure.
+- **Author** a fresh report via `signals-scout-emit-report` when nothing live in the inbox
+ covers it. A **strong finding** here: confidence ≥ 0.85, with concrete dashboard ids, source
+ labels, view names, and quantified impact in the `evidence` (which finance metric is wrong, by
+ how much, who reads it). A revenue finding is almost always an investigation, not a one-line
+ code fix — the recovery action for a failing source lives in the warehouse, not a code PR — so
+ set `actionability=requires_human_input` and leave `priority` / `repository` unset. **Set
+ `suggested_reviewers`** — resolve the owning person with `signals-scout-members-list` (each
+ member carries a resolved `github_login`; cache it under a `reviewer:revenue_analytics:<area>`
+ key), or pass a `{user_uuid}` when your evidence already names the owner. It's how the report
+ reaches a human; left empty it's assigned to nobody and likely missed. After authoring, write a
+ `report:revenue_analytics:<entity>` scratchpad entry with the `report_id` so the next run edits
+ it instead of duplicating.
+- **Remember** via `signals-scout-scratchpad-remember` if it's below the bar but worth carrying
+ forward, or to record what you ruled out and why.
+- **Skip** with a one-line note if a scratchpad entry with a `noise:` / `addressed:` / `dedupe:`
+ key prefix, or an existing inbox report, already covers it.
+
+The harness prompt carries the full report-channel contract (field schema, safety ×
+actionability status mapping, reviewer routing, the non-idempotency caveat, and the edit rules)
+— this section only adds the revenue-specific framing. Given revenue's high panic radius, keep
+the authoring bar high: fewer, better, well-routed reports.
### Close out
-**Summarize the run** — one paragraph: looked at what, emitted what, remembered what,
-ruled out what. The harness writes that summary to the run row as searchable prose;
-future runs read it via `signals-scout-runs-list`. Do **not** write a separate
+**Summarize the run** — one paragraph: looked at what, authored or edited which reports,
+remembered what, ruled out what. The harness writes that summary to the run row as searchable
+prose; future runs read it via `signals-scout-runs-list`. Do **not** write a separate
"run metadata" scratchpad entry — the run summary already serves that role.
## Disqualifiers (skip these)
@@ -243,7 +289,7 @@ future runs read it via `signals-scout-runs-list`. Do **not** write a separate
- **Goal expired with no follow-up** — config debt, not an active target. Scratchpad
entry, skip.
-When in doubt, write a memory entry instead of emitting.
+When in doubt, write a memory entry instead of authoring a report.
## MCP tools
@@ -270,7 +316,12 @@ Harness-level:
- `signals-scout-project-profile-get` / `signals-scout-scratchpad-search` /
`signals-scout-runs-list` / `signals-scout-runs-retrieve` — orientation + dedupe.
-- `signals-scout-emit-signal` / `signals-scout-scratchpad-remember` — emit / remember.
+- `inbox-reports-list` / `inbox-reports-retrieve` — find an existing report before authoring.
+- `signals-scout-emit-report` / `signals-scout-edit-report` — author a report / edit an
+ existing one (the report-channel contract is in the harness prompt).
+- `signals-scout-members-list` — this project's members with their resolved `github_login`, for
+ `suggested_reviewers` routing.
+- `signals-scout-scratchpad-remember` — durable memory across runs.
For deeper investigation, the sandbox image bakes
`posthog:auditing-warehouse-source-health` (catches Stripe-source failures upstream of
@@ -284,8 +335,8 @@ for a failing sync).
- Profile + scratchpad show a stable picture → close out empty.
- A candidate matches a scratchpad entry with `noise:` / `addressed:` / `dedupe:` key
prefix → skip.
-- You've validated some hypotheses and emitted what's solid → close out, even if
- there's more you could look at. Fewer, better signals — especially here, where
+- You've validated some hypotheses and authored or edited what's solid → close out, even if
+ there's more you could look at. Fewer, better reports — especially here, where
panic radius is high.
"Looked but found nothing meaningful" is a real outcome.