: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
refactor(signals): drop duplicated report.md from ported scouts (#67153)
Andrew Maguiree9ea43851796
diff --git a/products/signals/skills/AGENTS.md b/products/signals/skills/AGENTS.mdindex 85761340ade3..90735fdb4da5 100644--- a/products/signals/skills/AGENTS.md+++ b/products/signals/skills/AGENTS.md@@ -37,12 +37,14 @@ agent-enabled team's `LLMSkill` rows by `scout_harness/lazy_seed.py` — seeproduct. The first canonical scout on the **report channel** (its frontmatter`allowed_tools` lists `emit_report` / `edit_report`): it authors fully-validatedcorrelations 1:1 as `SignalReport`s directly, rather than firing weak `emit_signal`- findings for the pipeline to cluster. Carries two progressively-disclosed references:+ findings for the pipeline to cluster. The report-channel contract itself (when to author+ vs. edit, the field schema, status mapping, reviewer routing, dedupe) lives in the harness+ prompt (`scout_harness/prompt.py`), injected into every report-channel scout — so a ported+ scout carries only its _domain-specific_ report framing inline in its body, not a bundled+ copy of the contract. The generalist keeps one progressively-disclosed reference,`references/conventions.md` (scratchpad key prefixes + the four-states author/edit- classifier + cross-project noise patterns) and `references/report.md` (the report- channel — when to author vs. edit, fields, status mapping, reviewer routing, dedupe).- This is the entry point if you want to understand how a scout decides what to- investigate end-to-end.+ classifier + cross-project noise patterns). This is the entry point if you want to+ understand how a scout decides what to investigate end-to-end.- `signals-scout-ai-observability/` — anomaly watcher for AI observability(cost / latency / error / token-share regressions).- `signals-scout-apm/` — RED-metrics anomaly watcher for the distributed tracing (APM /@@ -261,26 +263,27 @@ recurring token cost on every run — and push detail into references that are oread when needed.The generalist (`signals-scout-general`) is **report-only** — it authors `SignalReport`s-directly and does not `emit_signal`, so it carries two references:+directly and does not `emit_signal`. The **report-channel contract** (when to author a fresh+report vs. edit an existing one, the field schema, the safety × actionability status mapping,+reviewer routing via `signals-scout-members-list`, and the non-idempotency + pipeline-rewrite+caveats) lives in the **harness prompt** (`scout_harness/prompt.py`), which forks on the scout's+channel and injects it into every report-channel scout — so it is **not** duplicated as a+per-scout reference. The generalist keeps one bundled reference:- **`references/conventions.md`** — the four-states author/edit classifier, scratchpadkey-prefix vocabulary, and cross-project noise patterns.-- **`references/report.md`** — the report channel (`emit-report` / `edit-report`):- when to author a fresh report vs. edit an existing one, the field schema, the- safety × actionability status mapping, reviewer routing (`suggested_reviewers` via- `org-member-get-github-login`), and the non-idempotency + pipeline-rewrite caveats.- Bundled because the generalist is the first canonical scout on the channel; a scout- reads only its own files at runtime, so any future report-channel adopter bundles its- own copy rather than pointing here.-The rest of the fleet is being ported onto the **report channel** one scout per PR,-biggest reach first (see the `scouts-emit-reports` spec). A ported scout is report-only —-its frontmatter `allowed_tools` lists `emit_report` / `edit_report` and it bundles its own-`references/report.md`, the same shape as the generalist (`signals-scout-ai-observability`-is on the channel; others follow). A scout not yet ported still emits weak `emit_signal`-findings for the pipeline to cluster; those specialists carry their own emit/dedupe contract-where they need it, and its canonical write-up now lives in-`authoring-scouts/references/emit-contract.md`.+The rest of the fleet is being ported onto the **report channel** one scout per PR, biggest+reach first (see the `scouts-emit-reports` spec). A ported scout is report-only — its frontmatter+`allowed_tools` lists `emit_report` / `edit_report` — and it carries only its _domain-specific_+report framing **inline in its body** (what's report-shaped for its surface, its+`reviewer:<domain>` / `report:<domain>` scratchpad keys, a tailored title example); the channel+contract comes from the prompt, so a ported scout bundles **no** `report.md`. The exception is+`signals-scout-anomaly-detection`, which keeps a slimmed `references/report-contract.md` for its+genuinely scout-specific **notebook write-up + embedded-chart recipe** (it defers the generic+contract to the prompt). A scout not yet ported still emits weak `emit_signal` findings for the+pipeline to cluster; those specialists carry their own emit/dedupe contract where they need it,+and its canonical write-up now lives in `authoring-scouts/references/emit-contract.md`.The specialists each carry their own domain discriminator + investigation patterns.Most are a single self-contained `SKILL.md`; a few bundle surface-specific references@@ -288,9 +291,11 @@ read on demand — `signals-scout-anomaly-detection` (`anomaly-methods.md`,`watchlist-and-memory.md`, `report-contract.md`), `signals-scout-ai-observability`(`lenses.md`), and `signals-scout-surveys` (`response-querying.md`). Treat thegeneralist as the reference shape. Note that a scout can only read its own bundled-files at runtime (each team's `LLMSkill` row carries just that skill's files), so a-specialist that needs the emit/dedupe conventions in depth bundles its own copy-rather than pointing at the generalist's.+files at runtime (each team's `LLMSkill` row carries just that skill's files) — which is+why a signal scout that needs the emit/dedupe conventions in depth bundles its own copy+rather than pointing at the generalist's. The report-channel contract is the exception to+that copy-it-locally rule: it rides in the harness prompt, not a file, so report scouts+share one definition without each bundling a copy.## When editing skills in this directorydiff --git a/products/signals/skills/authoring-scouts/references/emit-contract.md b/products/signals/skills/authoring-scouts/references/emit-contract.mdindex 08f61d869a66..ae5219f58fc9 100644--- a/products/signals/skills/authoring-scouts/references/emit-contract.md+++ b/products/signals/skills/authoring-scouts/references/emit-contract.md@@ -3,9 +3,9 @@How a scout calls `signals-scout-emit-signal`, and how to write a scout's **Decide**section so it emits well-calibrated findings. This is the contract the signal-emitting fleetruns on — author your scout so its findings fit this shape. (The canonical generalist,-`signals-scout-general`, is report-only and authors `SignalReport`s directly instead; see its-`references/report.md`.) The harness validates request shape but does **not** grade prose-quality; that's on the scout.+`signals-scout-general`, is report-only and authors `SignalReport`s directly instead, via the+report channel — whose contract rides in the harness prompt, not a bundled reference.) The+harness validates request shape but does **not** grade prose quality; that's on the scout.## Fieldsdiff --git a/products/signals/skills/authoring-scouts/references/scout-anatomy.md b/products/signals/skills/authoring-scouts/references/scout-anatomy.mdindex 6b5e814c6199..f784f94bc41a 100644--- a/products/signals/skills/authoring-scouts/references/scout-anatomy.md+++ b/products/signals/skills/authoring-scouts/references/scout-anatomy.md@@ -127,9 +127,10 @@ close-out), 3 (orient), 7 (decide), 8 (disqualifiers), and 10 (close out). Secti## References-The generalist is report-only and carries `references/report.md` (the report channel) and-`references/conventions.md` (the four-states author/edit classifier + scratchpad vocab); the-emit contract the signal-emitting fleet reasons in terms of lives in+The generalist is report-only and carries `references/conventions.md` (the four-states+author/edit classifier + scratchpad vocab); the report-channel contract itself rides in the+harness prompt (injected into every report-channel scout), so a report scout bundles no copy of+it. The emit contract the signal-emitting fleet reasons in terms of lives in[`emit-contract.md`](emit-contract.md) in this skill. For a **per-team** scout you usually don't need to bundleyour own copies — the canonical scout already encodes the conventions inline, and yourscout body can too. Bundle a reference only when you have genuinely surface-specific depthdiff --git a/products/signals/skills/signals-scout-ai-observability/SKILL.md b/products/signals/skills/signals-scout-ai-observability/SKILL.mdindex f5fb013a5dc3..11aaa661f8b4 100644--- a/products/signals/skills/signals-scout-ai-observability/SKILL.md+++ b/products/signals/skills/signals-scout-ai-observability/SKILL.md@@ -32,8 +32,8 @@ end-to-end rather than firing weak signals for a pipeline to cluster. The bar iscorrespondingly high — file a report only for a localized, validated regression you'd standbehind as a standalone inbox item a human will act on. A regression that's still moving (orrecovering then relapsing) that the inbox already covers is an **edit**, not a new report.-The full report channel — fields, status mapping, reviewer routing, dedupe, and the edit-rules — lives in [`references/report.md`](references/report.md).+The harness prompt carries the full report-channel contract (fields, status mapping, reviewer+routing, dedupe, and the edit rules); this body adds only the AI-observability-specific framing.## Quick close-out: is AI observability even in use?@@ -185,9 +185,9 @@ candidate:they're PR-autostart fields, and supplying `priority` + `suggested_reviewers` with no`repository` signals PR intent that spins up a repo-selection sandbox only to no-op(autostart needs `immediately_actionable`). **Always set `suggested_reviewers`** regardless —- resolve the owning person via `org-member-get-github-login` and pass it as a `{github_login}` (or- `{user_uuid}`) object, since `suggested_reviewers` is a **list of objects, not bare strings** (cache- the login under a `reviewer:llm_analytics:<area>` key). It's how the report reaches a human; left+ resolve the owning person via `signals-scout-members-list` and pass their resolved `github_login`+ (or a `{user_uuid}`) as an object, since `suggested_reviewers` is a **list of objects, not bare+ strings** (cache the login under a `reviewer:llm_analytics:<area>` key). It's how the report reaches a human; leftempty, the report is assigned to nobody and is likely missed. After authoring, write a`report:llm_analytics:<entity>` scratchpad entry with the `report_id` so the next run editsit instead of duplicating.@@ -263,9 +263,10 @@ Inbox & reviewer routing:before authoring so you edit instead of duplicating (`ordering=-updated_at`).- `inbox-report-artefacts-list` — a comparable report's artefact log, where the routed`suggested_reviewers` live (the report record doesn't expose them) — reviewer precedent.-- `org-members-list` / `org-member-get-github-login` — resolve a product / model / eval owner- to a GitHub login, wrapped as a `{github_login}` object for `suggested_reviewers` (returns null- when unlinked → try the next owner, or pass the member's `{user_uuid}` and let the server resolve).+- `signals-scout-members-list` — this project's members with their resolved `github_login`, to+ route `suggested_reviewers` to a product / model / eval owner (wrap as a `{github_login}` object,+ or pass the member's `{user_uuid}` and let the server resolve; null `github_login` → try the next+ owner). The in-run roster; the org-scoped resolver tools aren't available in a scout run.Harness-level:@@ -273,7 +274,9 @@ Harness-level:- `signals-scout-scratchpad-search` / `signals-scout-scratchpad-remember` — durable steering across runs.- `signals-scout-runs-list` / `signals-scout-runs-retrieve` — what prior runs found.- `signals-scout-emit-report` / `signals-scout-edit-report` — author a report / edit an- existing one (see [`references/report.md`](references/report.md)).+ 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.Deep-dive skills (baked into the sandbox — read the matching one when you go deep, don'treinvent its queries): `posthog:exploring-llm-costs`, `posthog:exploring-llm-traces`,diff --git a/products/signals/skills/signals-scout-ai-observability/references/report.md b/products/signals/skills/signals-scout-ai-observability/references/report.mddeleted file mode 100644index c76d71cbe2f0..000000000000--- a/products/signals/skills/signals-scout-ai-observability/references/report.md+++ /dev/null@@ -1,207 +0,0 @@-# The report channel: `emit-report` / `edit-report`--The report channel is your output: you've already done the research, so you file a full-`SignalReport` into the inbox directly — no weak signals, no pipeline clustering. This reference-is the contract: the two tools, their fields, how to choose between authoring and editing, and the-two behaviors that make this channel different (it isn't idempotent, and the pipeline may later-rewrite what you authored).--> Like every `signals-scout-*` tool, **both report tools require the current `run_id`** (the-> run you're executing in) on every call — omitting it fails validation.--## Author or edit--| You have… | Use |-| --------------------------------------------------------------------------------------------------------------- | ------------- |-| A finished, well-formed finding nothing in the inbox covers — filed **1:1** with full control of title/summary. | `emit-report` |-| New information about a report that already exists (one you authored last run, or a pipeline report). | `edit-report` |--**Always search the inbox first** (`inbox-reports-list` → `inbox-reports-retrieve`): edit an-existing report rather than mint a near-duplicate. An AI observability shift is report-shaped when-it's a single, localized, validated change — one model/product's cost step, one latency band-shifting, one eval silently broken or regressing, one error class firing at scale, one runaway-cluster — that you've corroborated and would stand behind as a standalone inbox item. A scatter of-small, weakly-correlated wobbles across many models or dimensions is not a report — it's a sign you-haven't found the finding yet; keep investigating or record it in the scratchpad and move on.--Filing a report is a **high bar**. Author one only for a finding you'd own end-to-end as an inbox-item a human will act on. When you can't get there, a scratchpad note is the right home — never-file a half-formed report to fill space.--## `emit-report` — author a full report--Judges the report for safety, then persists it at the judged status.--| Field | Type | Notes |-| --------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `run_id` | string, required | The current run's id — same as every `signals-scout-*` tool. |-| `title` | string, ≤300, non-empty | The inbox headline. One specific, quantified line. |-| `summary` | string | The report body prose — hook → pattern → hypothesis → recommendation. See _Writing the summary_ below. |-| `evidence` | list, 1–50 | Each `{description, source_id}`. Becomes a bound signal row backing the report. `source_id` is the citable entity id. Hard cap of **50** — summarize/trim before calling; a longer list fails validation before the report is judged or persisted. |-| `actionability_explanation` | string | One sentence justifying the actionability call below. |-| `actionability` | enum | `immediately_actionable` / `requires_human_input` / `not_actionable`. You make this call — the channel does not re-research it. |-| `already_addressed` | bool, default `false` | Set when the underlying issue is already handled and you're filing for the record. |-| `suggested_reviewers` | list of objects | Each `{github_login}` and/or `{user_uuid}` (**not** a bare string). The **single most important routing field** — set on every report (PR or not). See the _`suggested_reviewers`_ section below for the object shape + resolution steps. |--**Status is decided for you, from safety × actionability:**--| Safety judge | `actionability` | Resulting status | Surfaces in inbox? |-| ------------ | ------------------------ | ---------------- | ------------------ |-| safe | `immediately_actionable` | `READY` | yes |-| safe | `requires_human_input` | `PENDING_INPUT` | yes |-| safe | `not_actionable` | `SUPPRESSED` | no |-| unsafe | (any) | `SUPPRESSED` | no |--Note the trap: `not_actionable` is **suppressed** (never surfaces). Reserve it for filing-for-the-record;-if you want a human to see it, it must be `immediately_actionable` or `requires_human_input`.--The result tells you what happened: `report_id` (always set when a report was persisted —-**even when suppressed**, so you can edit or dedup against it), `report_status` (the birth status —-`ready` / `pending_input` / `suppressed`), `emitted` (true only when it actually surfaced),-`safety_explanation`, and `skipped_reason` (set only when a preflight gate — the team's-AI-data-processing approval or the signals-scout source being enabled — stopped the call before any-report was created).--### Writing the `title` and `summary`--The `title` is the inbox headline and the `summary` is the body a human reads to decide whether to-act — write both for a busy reader scanning a feed of other reports.--- **`title`** — one specific, quantified line. Lead with what's wrong, which slice, and the blast- radius, not a vague category. _"`sonnet` p90 latency jumped from ~19s to ~48s after 14:00 UTC,- confined to the `posthog_ai` product"_, not _"LLM latency up"_.-- **`summary`** — a tight few paragraphs following hook → pattern → hypothesis → recommendation:- 1. **Hook** — what's happening, quantified ("`$ai_total_cost_usd` for the `code` product rose from- ~$40/day to ~$210/day between Apr 26–28, while generation count held flat").- 2. **Pattern** — the shape that makes this signal, not noise ("the rise is confined to one- `ai_product` and one model after a prompt-version bump in the same window; other products' spend- is flat — a per-product cost regression, not a fleet-wide price change").- 3. **Hypothesis** — your best read of the cause.- 4. **Recommendation** — the concrete action that would resolve it.--Quantify ("~$210/day", "p90 ~48s") over qualitative ("a lot"), and cite entity ids (trace ids,-generation ids, evaluation ids, model/provider names, eval names, cluster ids, prompt versions, time-ranges) inline so a reviewer can pivot straight from prose to source. Put the same citations in-`evidence` so they back the report as bound signals.--### Opening a draft PR (autostart)--First, `suggested_reviewers` is **not** a PR field — set it whenever you can name a plausible owner,-PR or not. It's the routing lever and is covered in its own section below; the three fields in this-section are the **PR-only** ones.--A surfaced, immediately-actionable report can open a draft PR automatically. It's opt-in per report-via these fields; supply them only when the report is a concrete, fixable issue you'd want a PR for.--| Field | Type | Notes |-| ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `repository` | string | `"owner/repo"` targets that repo; the `NO_REPO` sentinel opts out; **omitting it** falls back to free-form selection across the team's repos — the slow path on a many-repo team (it spawns a selection sandbox), so pass `owner/repo` when you know it. |-| `priority` | `P0`-`P4` | Required for a PR. Pair with `priority_explanation`. |-| `priority_explanation` | string | Required when `priority` is set. |--Repo selection only runs when you signal PR intent — an explicit `repository`, or both `priority`-and `suggested_reviewers`. A report that supplies none of these just surfaces in the inbox (no repo-sandbox, no PR). Autostart no-ops unless the report is `immediately_actionable`, has a repo +-priority, and a reviewer qualifies — so these three PR fields are safe to omit for an informational-report. `suggested_reviewers` is not: set it whenever you can name a plausible owner (see the next-section), PR or not. An AI observability regression (cost / latency / eval / runaway loop) is almost-always a thing to investigate, not a one-line code fix, so most of these reports want-`requires_human_input` and a reviewer, not a PR.--## `suggested_reviewers` — set it on every report (this is how it reaches a human)--`suggested_reviewers` is the **single most important routing field**. It is how a report reaches the-right person: the inbox orders by `is_suggested_reviewer`, so a reviewer's own reports float to the-top of _their_ inbox even when **no PR** is involved. **A report with an empty `suggested_reviewers`-is assigned to nobody — it lands in the shared inbox and is very likely to be missed.** So resolve and-set at least one reviewer on every report you author, including informational `requires_human_input`-ones.--Each entry is an **object**, not a bare string — `{"github_login": "..."}` and/or-`{"user_uuid": "..."}` (at least one of the two per entry; a list of plain strings like `["octocat"]`-**fails validation**). Pick whichever you resolved:--- **`github_login`** — the GitHub login, case-insensitive (stored lowercased), no `@`, no display name- (e.g. `{"github_login": "octocat"}`).-- **`user_uuid`** — the PostHog user UUID (e.g. from `org-members-list`); the server resolves it to the- member's linked GitHub login. Use this when you know the PostHog user but not their handle. A- `user_uuid` that isn't an org member with a linked GitHub identity is **rejected** (never silently- dropped), so the reviewer always routes or the call tells you it didn't.--You rarely know either outright, so resolve it — cheapest first:--1. **Scratchpad cache.** A `reviewer:<domain>:<area>` entry you (or a prior run) recorded — reuse it.- For AI observability, key by the owning product / model area (`reviewer:llm_analytics:<area>`).-2. **Inbox precedent.** `inbox-reports-list` (filter by `source_product` + a free-text `search`) for a- comparable report on the same product/model/eval, then `inbox-report-artefacts-list` on it — the- `suggested_reviewers` artefact is where the routed reviewer lives (the report record itself doesn't- expose it). Reuse that reviewer for the same area.-3. **`org-member-get-github-login`** — the **canonical resolver, available on every run**. Identify the- owning **person** (by name/email via `org-members-list`, or `@me`), then pass their PostHog user- UUID to `org-member-get-github-login` to get their linked GitHub login (or just pass the UUID- straight through as `{"user_uuid": "..."}` and let the server resolve it). It returns null when the- person hasn't linked a GitHub account — then try the next plausible owner.--**Never guess a handle** — a wrong login mis-assigns the report, which is worse than leaving it open.-If you genuinely can't resolve any confident owner, author the report anyway (it still surfaces) but-treat that as the exception, not the norm. Once you've tied a product/model area to an owner, write a-`reviewer:llm_analytics:<area>` scratchpad entry with the resolved login so the next run routes-instantly.--**On `edit-report`:** `edit-report` **also accepts `suggested_reviewers`** — it replaces the report's-reviewer list (an empty list is a no-op; existing reviewers are never cleared) and re-runs autostart,-so it's the right tool to **route a report that surfaced with no owner**. When a later run resolves an-owner for an orphaned report, `edit-report` it with the reviewer rather than only appending a note.--## `edit-report` — update an existing report--Rewrite `title`/`summary` and/or append a note to a report that already exists. Pass `run_id` and-`report_id`, plus at least one of `title`, `summary`, `append_note`.--`edit-report` can target **any** of the team's inbox reports — not just ones a scout authored. That-makes it the right tool when a later run learns something about a report the pipeline (or another-scout) created. Two rules of good behavior:--- **Prefer `append_note` over rewriting** `title`/`summary` on a report you didn't author. A note is- additive and audit-friendly (it carries your scout as author); a rewrite silently overwrites a- human- or pipeline-authored headline.-- **Don't fight an in-flight pipeline.** A report the summary/research workflow is mid-run on can have- its fields overwritten under you. If a report is actively being worked, append a note rather than- rewriting.--**A persistent regression is one report, not one per tick.** A cost step that's still elevated, a-latency band that hasn't recovered, an eval still failing more: when a new complete window confirms-the same issue is ongoing, `append_note` the fresh window onto the report your-`report:llm_analytics:<entity>` pointer names — don't author a fresh report each run. But-`edit-report` **can't change status**, so appending to a `resolved` / `suppressed` / `failed` report-(one that won't surface in the inbox) buries a real relapse under a closed item. Check the matched-report's status first: when it's no longer live, **author a fresh report** for the relapse and-repoint the `report:llm_analytics:<entity>` scratchpad key at the new id.--## Dedup: the channel is NOT idempotent--`emit-report` is **not idempotent** — a retried call authors a _second_ report. There is no-server-side dedup key. The dedup story is two-sided and you own it:--1. **Before authoring**, `inbox-reports-list` for a prior report on the same topic (filter by- `search` / `status`). Pass `ordering=-updated_at` — the default ordering buckets by your own- reviewer-match and status first, so without it the most recent duplicate can sort below older rows- and you'd miss it. **Don't filter `source_product=llm_analytics`:** your own report-channel reports- persist their backing signals under `source_product=signals_scout`, so a `llm_analytics` filter- matches none of them — omit it, or use `signals_scout`. Found a match? `edit-report` it instead of- authoring a new one.-2. **After authoring**, write a `report:llm_analytics:<entity>` scratchpad entry recording the- `report_id` so the next run finds it (via `inbox-reports-retrieve`) without a title-search guess.--**Never retry an `emit-report` / `edit-report` call that may have succeeded** — a transport error-after the write commits, retried, double-files. If unsure whether a call landed, `inbox-reports-list`-to check before retrying.--## The pipeline may rewrite what you authored (accepted)--An authored report is a first-class report that coexists with pipeline reports. When future signals-consolidate around the same topic, the pipeline may **re-promote and re-research the report,-overwriting your authored `title`/`summary`**. This is accepted behavior, not a bug — there is no-pin. Author the finding, and let the inbox stay the source of truth for how it's currently framed.-Your durable record of "I filed this" is the `report:` scratchpad entry and the `report_id`, not the-title text.diff --git a/products/signals/skills/signals-scout-general/SKILL.md b/products/signals/skills/signals-scout-general/SKILL.mdindex c56acfef153c..6cb9ea04f0ba 100644--- a/products/signals/skills/signals-scout-general/SKILL.md+++ b/products/signals/skills/signals-scout-general/SKILL.md@@ -8,7 +8,7 @@ compatibility: >scratchpad-remember/forget) + signal_scout_report:write (for emit-report/edit-report,granted because this scout authors reports directly via the report channel), llm_skill:read, plus standardanalytics reads. Uses the signals-scout MCP family: project-profile-get, runs-list, runs-retrieve,- scratchpad-search, scratchpad-remember, scratchpad-forget, emit-report, edit-report.+ scratchpad-search, scratchpad-remember, scratchpad-forget, emit-report, edit-report, members-list.allowed_tools:- emit_report- edit_report@@ -97,12 +97,13 @@ Then, for each candidate finding:- **Author** a fresh report via `signals-scout-emit-report` when nothing in theinbox covers it (or a known issue has new evidence that changes the verdict).A fully-validated cross-product correlation is the natural fit. **Always set- `suggested_reviewers`** — resolve the owning person's GitHub login with- `org-member-get-github-login` (cache it under a `reviewer:` key). It's how the- report reaches a human; left empty, the report is assigned to nobody and is- likely missed. The report channel — the field schema, the safety × actionability- status mapping, reviewer routing, dedupe (it is **not** idempotent), and the edit- rules — lives in [`references/report.md`](references/report.md).+ `suggested_reviewers`** — resolve the owning person with `signals-scout-members-list`+ (each member carries a resolved `github_login`; cache it under a `reviewer:` key).+ It's how the report reaches a human; left empty, the report is assigned to nobody+ and is likely missed. 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 what's specific+ to a cross-product correlation.- **Remember** via `signals-scout-scratchpad-remember` if it's below the bar butworth carrying forward, or to record what you ruled out and why.- **Skip** if the scratchpad or inbox already covers it.@@ -118,7 +119,7 @@ the key prefix:| `addressed:` | Team-confirmed fix shipped or topic the team has moved on from. || `dedupe:` | Gates future runs on a specific issue / fingerprint so you don't re-file it. || `report:` | Records the `report_id` of a report you authored, keyed `report:<domain>:<entity>`, so the next run edits it instead of duplicating. |-| `reviewer:` | Caches a resolved owner (bare lowercase GitHub login), keyed `reviewer:<domain>:<area>`, so reports route to a human faster. |+| `reviewer:` | Caches a resolved owner (a `github_login` or `user_uuid`), keyed `reviewer:<domain>:<area>`, so reports route to a human faster. || `allowlist:` | Vetted entities the scout should never re-surface. || `not-in-use:` | Close-out memo for "product not in use on this team". |diff --git a/products/signals/skills/signals-scout-general/references/conventions.md b/products/signals/skills/signals-scout-general/references/conventions.mdindex 64248be13033..d502ce238771 100644--- a/products/signals/skills/signals-scout-general/references/conventions.md+++ b/products/signals/skills/signals-scout-general/references/conventions.md@@ -6,7 +6,7 @@ scratchpad entries, and noise patterns common across PostHog projects.## The four statesClassify every candidate finding against prior runs, the inbox, and the scratchpad-before you author a report (see [report.md](report.md) for the channel contract):+before you author a report (the harness prompt carries the report-channel contract):1. **Net new** — no prior run, no inbox report, and no scratchpad entry covers thistopic. → Author a report with `emit-report` if it clears the report bar.diff --git a/products/signals/skills/signals-scout-general/references/report.md b/products/signals/skills/signals-scout-general/references/report.mddeleted file mode 100644index f47a916bcdce..000000000000--- a/products/signals/skills/signals-scout-general/references/report.md+++ /dev/null@@ -1,179 +0,0 @@-# The report channel: `emit-report` / `edit-report`--The report channel is your output: you've already done the research, so you file a full-`SignalReport` into the inbox directly — no weak signals, no pipeline clustering. This reference-is the contract: the two tools, their fields, how to choose between authoring and editing, and the-two behaviors that make this channel different (it isn't idempotent, and the pipeline may later-rewrite what you authored).--> Like every `signals-scout-*` tool, **both report tools require the current `run_id`** (the-> run you're executing in) on every call — omitting it fails validation.--## Author or edit--| You have… | Use |-| --------------------------------------------------------------------------------------------------------------- | ------------- |-| A finished, well-formed finding nothing in the inbox covers — filed **1:1** with full control of title/summary. | `emit-report` |-| New information about a report that already exists (one you authored last run, or a pipeline report). | `edit-report` |--**Always search the inbox first** (`inbox-reports-list` → `inbox-reports-retrieve`): edit an-existing report rather than mint a near-duplicate. As the cross-product generalist, your natural-fit is the **fully-validated cross-product correlation** — one finding you've corroborated across-surfaces and would stand behind as a standalone inbox item. A scatter of small, weakly-correlated-observations is not a report — it's a sign you haven't found the finding yet; keep investigating or-record it in the scratchpad and move on.--Filing a report is a **high bar**. Author one only for a finding you'd own end-to-end as an inbox-item a human will act on. When you can't get there, a scratchpad note is the right home — never-file a half-formed report to fill space.--## `emit-report` — author a full report--Judges the report for safety, then persists it at the judged status.--| Field | Type | Notes |-| --------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `run_id` | string, required | The current run's id — same as every `signals-scout-*` tool. |-| `title` | string, ≤300, non-empty | The inbox headline. One specific, quantified line. |-| `summary` | string | The report body prose — hook → pattern → hypothesis → recommendation. See _Writing the summary_ below. |-| `evidence` | list, 1–50 | Each `{description, source_id}`. Becomes a bound signal row backing the report. `source_id` is the citable entity id. Hard cap of **50** — summarize/trim before calling; a longer list fails validation before the report is judged or persisted. |-| `actionability_explanation` | string | One sentence justifying the actionability call below. |-| `actionability` | enum | `immediately_actionable` / `requires_human_input` / `not_actionable`. You make this call — the channel does not re-research it. |-| `already_addressed` | bool, default `false` | Set when the underlying issue is already handled and you're filing for the record. |--**Status is decided for you, from safety × actionability:**--| Safety judge | `actionability` | Resulting status | Surfaces in inbox? |-| ------------ | ------------------------ | ---------------- | ------------------ |-| safe | `immediately_actionable` | `READY` | yes |-| safe | `requires_human_input` | `PENDING_INPUT` | yes |-| safe | `not_actionable` | `SUPPRESSED` | no |-| unsafe | (any) | `SUPPRESSED` | no |--Note the trap: `not_actionable` is **suppressed** (never surfaces). Reserve it for filing-for-the-record;-if you want a human to see it, it must be `immediately_actionable` or `requires_human_input`.--The result tells you what happened: `report_id` (always set when a report was persisted —-**even when suppressed**, so you can edit or dedup against it), `report_status` (the birth status —-`ready` / `pending_input` / `suppressed`), `emitted` (true only when it actually surfaced),-`safety_explanation`, and `skipped_reason` (set only when a preflight gate — the team's-AI-data-processing approval or the signals-scout source being enabled — stopped the call before any-report was created).--### Writing the `title` and `summary`--The `title` is the inbox headline and the `summary` is the body a human reads to decide whether to-act — write both for a busy reader scanning a feed of other reports.--- **`title`** — one specific, quantified line. Lead with what's wrong and the blast radius, not a- vague category. _"Checkout 500s spiked to 8% of sessions after the 14:00 deploy — ~1,200 users- affected"_, not _"Checkout errors"_.-- **`summary`** — a tight few paragraphs following hook → pattern → hypothesis → recommendation:- 1. **Hook** — what's happening, quantified ("error rate on the checkout funnel jumped from ~0.5%- to 8% of sessions between 14:00 and 15:30 UTC").- 2. **Pattern** — the shape that makes this signal, not noise ("the step that broke is the same one- a feature flag flipped at 14:00, and the errors are confined to users in that flag's rollout").- 3. **Hypothesis** — your best read of the cause.- 4. **Recommendation** — the concrete action that would resolve it.--Quantify ("~1,200 users") over qualitative ("many users"), and cite entity ids (issue ids, recording-ids, dashboard short_ids, flag keys) inline so a reviewer can pivot straight from prose to source.-Put the same citations in `evidence` so they back the report as bound signals.--### Opening a draft PR (autostart)--First, `suggested_reviewers` is **not** a PR field — set it whenever you can name a plausible owner,-PR or not. It's the routing lever and is covered in its own section below; the three fields in this-section are the **PR-only** ones.--A surfaced, immediately-actionable report can open a draft PR automatically. It's opt-in per report-via these fields; supply them only when the report is a concrete, fixable issue you'd want a PR for.--| Field | Type | Notes |-| ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `repository` | string | `"owner/repo"` targets that repo; the `NO_REPO` sentinel opts out; **omitting it** falls back to free-form selection across the team's repos — the slow path on a many-repo team (it spawns a selection sandbox), so pass `owner/repo` when you know it. |-| `priority` | `P0`-`P4` | Required for a PR. Pair with `priority_explanation`. |-| `priority_explanation` | string | Required when `priority` is set. |--Repo selection only runs when you signal PR intent — an explicit `repository`, or both `priority`-and `suggested_reviewers`. A report that supplies none of these just surfaces in the inbox (no repo-sandbox, no PR). Autostart no-ops unless the report is `immediately_actionable`, has a repo +-priority, and a reviewer qualifies — so these three PR fields are safe to omit for an informational-report. `suggested_reviewers` is not: set it whenever you can name a plausible owner (see the next-section), PR or not.--## `suggested_reviewers` — set it on every report (this is how it reaches a human)--`suggested_reviewers` is the **single most important routing field**. It is how a report reaches the-right person: the inbox orders by `is_suggested_reviewer`, so a reviewer's own reports float to the-top of _their_ inbox even when **no PR** is involved. **A report with an empty `suggested_reviewers`-is assigned to nobody — it lands in the shared inbox and is very likely to be missed.** So resolve and-set at least one reviewer on every report you author, including informational `requires_human_input`-ones.--Each entry must be a **bare, lowercase GitHub login** — no `@`, no display name (e.g. `octocat`, not-`@OctoCat`). Assignment matches the login against each user's linked GitHub login by exact, lowercased-comparison, so a mis-cased handle, an `@`-prefix, a display name, a team slug, or an email won't-assign to anyone. You rarely know the login outright, so resolve it — cheapest first:--1. **Scratchpad cache.** A `reviewer:<domain>:<area>` entry you (or a prior run) recorded — reuse it.-2. **Inbox precedent.** `inbox-reports-list` (filter by `source_product` + a free-text `search`) for a- comparable report on the same surface, then `inbox-report-artefacts-list` on it — the- `suggested_reviewers` artefact is where the routed reviewer lives (the report record itself doesn't- expose it). Reuse that reviewer for the same area.-3. **`org-member-get-github-login`** — the **canonical resolver, available on every run**. Identify the- owning **person** (by name/email via `org-members-list`, or `@me`), then pass their PostHog user- UUID to `org-member-get-github-login` to get their linked GitHub login. It returns null when the- person hasn't linked a GitHub account — then try the next plausible owner.--**Never guess a handle** — a wrong login mis-assigns the report, which is worse than leaving it open.-If you genuinely can't resolve any confident owner, author the report anyway (it still surfaces) but-treat that as the exception, not the norm. Once you've tied an area to an owner, write a-`reviewer:<domain>:<area>` scratchpad entry with the bare lowercase login so the next run routes-instantly.--**On `edit-report`:** reviewers are set at author time and `edit-report` can't change them — so the-one chance to route a report is when you `emit-report` it. If you're editing a report that landed with-no reviewer, `append_note` naming the owner you'd route it to so a human can pick it up; the durable-fix is to get `suggested_reviewers` right at emit.--## `edit-report` — update an existing report--Rewrite `title`/`summary` and/or append a note to a report that already exists. Pass `run_id` and-`report_id`, plus at least one of `title`, `summary`, `append_note`.--`edit-report` can target **any** of the team's inbox reports — not just ones a scout authored. That-makes it the right tool when a later run learns something about a report the pipeline (or another-scout) created. Two rules of good behavior:--- **Prefer `append_note` over rewriting** `title`/`summary` on a report you didn't author. A note is- additive and audit-friendly (it carries your scout as author); a rewrite silently overwrites a- human- or pipeline-authored headline.-- **Don't fight an in-flight pipeline.** A report the summary/research workflow is mid-run on can have- its fields overwritten under you. If a report is actively being worked, append a note rather than- rewriting.--## Dedup: the channel is NOT idempotent--`emit-report` is **not idempotent** — a retried call authors a _second_ report. There is no-server-side dedup key. The dedup story is two-sided and you own it:--1. **Before authoring**, `inbox-reports-list` for a prior report on the same topic (filter by- `search` / `status` / `source_product`). Pass `ordering=-updated_at` — the default ordering buckets- by your own reviewer-match and status first, so without it the most recent duplicate can sort below- older rows and you'd miss it. Found one? `edit-report` it instead of authoring a new one.-2. **After authoring**, write a `report:<domain>:<entity>` scratchpad entry recording the `report_id`- so the next run finds it (via `inbox-reports-retrieve`) without a title-search guess.--**Never retry an `emit-report` / `edit-report` call that may have succeeded** — a transport error-after the write commits, retried, double-files. If unsure whether a call landed, `inbox-reports-list`-to check before retrying.--## The pipeline may rewrite what you authored (accepted)--An authored report is a first-class report that coexists with pipeline reports. When future signals-consolidate around the same topic, the pipeline may **re-promote and re-research the report,-overwriting your authored `title`/`summary`**. This is accepted behavior, not a bug — there is no-pin. Author the finding, and let the inbox stay the source of truth for how it's currently framed.-Your durable record of "I filed this" is the `report:` scratchpad entry and the `report_id`, not the-title text.diff --git a/products/signals/skills/signals-scout-logs/SKILL.md b/products/signals/skills/signals-scout-logs/SKILL.mdindex 061637dabaeb..8e2587413331 100644--- a/products/signals/skills/signals-scout-logs/SKILL.md+++ b/products/signals/skills/signals-scout-logs/SKILL.md@@ -234,13 +234,13 @@ the closest matches). Then, for each candidate finding:service, one fresh message firing at scale — with concrete service / message / time-rangeevidence (the bar is confidence ≥ 0.85). Most logs reports are an investigation, not aone-line code fix, so default to `requires_human_input`. **Always set `suggested_reviewers`**- — resolve the owning person's GitHub login with `org-member-get-github-login` (cache it under- a `reviewer:logs:<service>` key). It's how the report reaches a human; left empty, the report- is assigned to nobody and is likely missed. After authoring, write a `report:logs:<service>`- scratchpad entry with the `report_id` so the next run edits it instead of duplicating. The- full report channel — field schema, safety × actionability status mapping, reviewer routing,- dedupe (it is **not** idempotent), and the edit rules — lives in- [`references/report.md`](references/report.md).+ — resolve the owning person with `signals-scout-members-list` (each member carries a resolved+ `github_login`; cache it under a `reviewer:logs:<service>` key). It's how the report reaches a+ human; left empty, the report is assigned to nobody and is likely missed. After authoring,+ write a `report:logs:<service>` scratchpad entry with the `report_id` so the next run edits it+ instead of duplicating. 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 logs-specific framing.- **Remember** via `signals-scout-scratchpad-remember` if it's below the bar but worthcarrying forward, or to record what you ruled out and why.- **Skip** with a one-line note if a scratchpad entry with a `noise:` or `addressed:` key@@ -299,8 +299,9 @@ Direct calls (read-only):before authoring so you edit instead of duplicating (`ordering=-updated_at`).- `inbox-report-artefacts-list` — a comparable report's artefact log, where the routed`suggested_reviewers` live (the report record doesn't expose them) — reviewer precedent.-- `org-members-list` / `org-member-get-github-login` — resolve a service's owner to a bare- GitHub login for `suggested_reviewers` (returns null when unlinked → try the next owner).+- `signals-scout-members-list` — this project's members with their resolved `github_login`, to+ route `suggested_reviewers` to a service's owner (null `github_login` → can't route, try the next+ owner). The in-run roster; the org-scoped resolver tools aren't available in a scout run.- `query-error-tracking-issues-list` — cross-check whether a log error already has an issue;error tracking owns those findings.diff --git a/products/signals/skills/signals-scout-logs/references/report.md b/products/signals/skills/signals-scout-logs/references/report.mddeleted file mode 100644index 9062792fd1be..000000000000--- a/products/signals/skills/signals-scout-logs/references/report.md+++ /dev/null@@ -1,184 +0,0 @@-# The report channel: `emit-report` / `edit-report`--The report channel is your output: you've already done the research, so you file a full-`SignalReport` into the inbox directly — no weak signals, no pipeline clustering. This reference-is the contract: the two tools, their fields, how to choose between authoring and editing, and the-two behaviors that make this channel different (it isn't idempotent, and the pipeline may later-rewrite what you authored).--> Like every `signals-scout-*` tool, **both report tools require the current `run_id`** (the-> run you're executing in) on every call — omitting it fails validation.--## Author or edit--| You have… | Use |-| --------------------------------------------------------------------------------------------------------------- | ------------- |-| A finished, well-formed finding nothing in the inbox covers — filed **1:1** with full control of title/summary. | `emit-report` |-| New information about a report that already exists (one you authored last run, or a pipeline report). | `edit-report` |--**Always search the inbox first** (`inbox-reports-list` → `inbox-reports-retrieve`): edit an-existing report rather than mint a near-duplicate. A logs shift is report-shaped when it's a-single, localized, validated change — one service's volume burst, one severity-distribution step,-one silent service, one fresh message pattern firing at scale — that you've corroborated and would-stand behind as a standalone inbox item. A scatter of small, weakly-correlated wobbles across many-services is not a report — it's a sign you haven't found the finding yet; keep investigating or-record it in the scratchpad and move on.--Filing a report is a **high bar**. Author one only for a finding you'd own end-to-end as an inbox-item a human will act on. When you can't get there, a scratchpad note is the right home — never-file a half-formed report to fill space.--## `emit-report` — author a full report--Judges the report for safety, then persists it at the judged status.--| Field | Type | Notes |-| --------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `run_id` | string, required | The current run's id — same as every `signals-scout-*` tool. |-| `title` | string, ≤300, non-empty | The inbox headline. One specific, quantified line. |-| `summary` | string | The report body prose — hook → pattern → hypothesis → recommendation. See _Writing the summary_ below. |-| `evidence` | list, 1–50 | Each `{description, source_id}`. Becomes a bound signal row backing the report. `source_id` is the citable entity id. Hard cap of **50** — summarize/trim before calling; a longer list fails validation before the report is judged or persisted. |-| `actionability_explanation` | string | One sentence justifying the actionability call below. |-| `actionability` | enum | `immediately_actionable` / `requires_human_input` / `not_actionable`. You make this call — the channel does not re-research it. |-| `already_addressed` | bool, default `false` | Set when the underlying issue is already handled and you're filing for the record. |-| `suggested_reviewers` | list of strings | Bare, lowercase GitHub logins. The **single most important routing field** — set on every report (PR or not). See the _`suggested_reviewers`_ section below for resolution steps. |--**Status is decided for you, from safety × actionability:**--| Safety judge | `actionability` | Resulting status | Surfaces in inbox? |-| ------------ | ------------------------ | ---------------- | ------------------ |-| safe | `immediately_actionable` | `READY` | yes |-| safe | `requires_human_input` | `PENDING_INPUT` | yes |-| safe | `not_actionable` | `SUPPRESSED` | no |-| unsafe | (any) | `SUPPRESSED` | no |--Note the trap: `not_actionable` is **suppressed** (never surfaces). Reserve it for filing-for-the-record;-if you want a human to see it, it must be `immediately_actionable` or `requires_human_input`.--The result tells you what happened: `report_id` (always set when a report was persisted —-**even when suppressed**, so you can edit or dedup against it), `report_status` (the birth status —-`ready` / `pending_input` / `suppressed`), `emitted` (true only when it actually surfaced),-`safety_explanation`, and `skipped_reason` (set only when a preflight gate — the team's-AI-data-processing approval or the signals-scout source being enabled — stopped the call before any-report was created).--### Writing the `title` and `summary`--The `title` is the inbox headline and the `summary` is the body a human reads to decide whether to-act — write both for a busy reader scanning a feed of other reports.--- **`title`** — one specific, quantified line. Lead with what's wrong, which service, and the blast- radius, not a vague category. _"`temporal-worker` error-log rate jumped from ~3% to 22% of its- volume after 14:00 UTC"_, not _"Log errors up"_.-- **`summary`** — a tight few paragraphs following hook → pattern → hypothesis → recommendation:- 1. **Hook** — what's happening, quantified ("`temporal-worker` error+fatal lines rose from- ~360/hr to ~2.6k/hr between 14:00 and 15:30 UTC, while its total volume held flat").- 2. **Pattern** — the shape that makes this signal, not noise ("the rise is confined to one- service and one message signature, and `top_events` shows `$exception` flat over the same- window — a caught-and-logged failure error tracking won't surface").- 3. **Hypothesis** — your best read of the cause.- 4. **Recommendation** — the concrete action that would resolve it.--Quantify ("~2.6k/hr") over qualitative ("a lot"), and cite entity ids (service names, message-signatures, alert ids, time ranges, trace ids) inline so a reviewer can pivot straight from prose to-source. Put the same citations in `evidence` so they back the report as bound signals.--### Opening a draft PR (autostart)--First, `suggested_reviewers` is **not** a PR field — set it whenever you can name a plausible owner,-PR or not. It's the routing lever and is covered in its own section below; the three fields in this-section are the **PR-only** ones.--A surfaced, immediately-actionable report can open a draft PR automatically. It's opt-in per report-via these fields; supply them only when the report is a concrete, fixable issue you'd want a PR for.--| Field | Type | Notes |-| ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `repository` | string | `"owner/repo"` targets that repo; the `NO_REPO` sentinel opts out; **omitting it** falls back to free-form selection across the team's repos — the slow path on a many-repo team (it spawns a selection sandbox), so pass `owner/repo` when you know it. |-| `priority` | `P0`-`P4` | Required for a PR. Pair with `priority_explanation`. |-| `priority_explanation` | string | Required when `priority` is set. |--Repo selection only runs when you signal PR intent — an explicit `repository`, or both `priority`-and `suggested_reviewers`. A report that supplies none of these just surfaces in the inbox (no repo-sandbox, no PR). Autostart no-ops unless the report is `immediately_actionable`, has a repo +-priority, and a reviewer qualifies — so these three PR fields are safe to omit for an informational-report. `suggested_reviewers` is not: set it whenever you can name a plausible owner (see the next-section), PR or not. A logs anomaly is usually a thing to investigate, not a one-line code fix, so-most logs reports want `requires_human_input` and a reviewer, not a PR.--## `suggested_reviewers` — set it on every report (this is how it reaches a human)--`suggested_reviewers` is the **single most important routing field**. It is how a report reaches the-right person: the inbox orders by `is_suggested_reviewer`, so a reviewer's own reports float to the-top of _their_ inbox even when **no PR** is involved. **A report with an empty `suggested_reviewers`-is assigned to nobody — it lands in the shared inbox and is very likely to be missed.** So resolve and-set at least one reviewer on every report you author, including informational `requires_human_input`-ones.--Each entry must be a **bare, lowercase GitHub login** — no `@`, no display name (e.g. `octocat`, not-`@OctoCat`). Assignment matches the login against each user's linked GitHub login by exact, lowercased-comparison, so a mis-cased handle, an `@`-prefix, a display name, a team slug, or an email won't-assign to anyone. You rarely know the login outright, so resolve it — cheapest first:--1. **Scratchpad cache.** A `reviewer:<domain>:<area>` entry you (or a prior run) recorded — reuse it.- For logs, key by the owning service (`reviewer:logs:<service>`).-2. **Inbox precedent.** `inbox-reports-list` (filter by `source_product` + a free-text `search`) for a- comparable report on the same service/surface, then `inbox-report-artefacts-list` on it — the- `suggested_reviewers` artefact is where the routed reviewer lives (the report record itself doesn't- expose it). Reuse that reviewer for the same area.-3. **`org-member-get-github-login`** — the **canonical resolver, available on every run**. Identify the- owning **person** (by name/email via `org-members-list`, or `@me`), then pass their PostHog user- UUID to `org-member-get-github-login` to get their linked GitHub login. It returns null when the- person hasn't linked a GitHub account — then try the next plausible owner.--**Never guess a handle** — a wrong login mis-assigns the report, which is worse than leaving it open.-If you genuinely can't resolve any confident owner, author the report anyway (it still surfaces) but-treat that as the exception, not the norm. Once you've tied a service to an owner, write a-`reviewer:logs:<service>` scratchpad entry with the bare lowercase login so the next run routes-instantly.--**On `edit-report`:** reviewers are set at author time and `edit-report` can't change them — so the-one chance to route a report is when you `emit-report` it. If you're editing a report that landed with-no reviewer, `append_note` naming the owner you'd route it to so a human can pick it up; the durable-fix is to get `suggested_reviewers` right at emit.--## `edit-report` — update an existing report--Rewrite `title`/`summary` and/or append a note to a report that already exists. Pass `run_id` and-`report_id`, plus at least one of `title`, `summary`, `append_note`.--`edit-report` can target **any** of the team's inbox reports — not just ones a scout authored. That-makes it the right tool when a later run learns something about a report the pipeline (or another-scout) created. Two rules of good behavior:--- **Prefer `append_note` over rewriting** `title`/`summary` on a report you didn't author. A note is- additive and audit-friendly (it carries your scout as author); a rewrite silently overwrites a- human- or pipeline-authored headline.-- **Don't fight an in-flight pipeline.** A report the summary/research workflow is mid-run on can have- its fields overwritten under you. If a report is actively being worked, append a note rather than- rewriting.--## Dedup: the channel is NOT idempotent--`emit-report` is **not idempotent** — a retried call authors a _second_ report. There is no-server-side dedup key. The dedup story is two-sided and you own it:--1. **Before authoring**, `inbox-reports-list` for a prior report on the same topic (filter by- `search` / `status` / `source_product`). Pass `ordering=-updated_at` — the default ordering buckets- by your own reviewer-match and status first, so without it the most recent duplicate can sort below- older rows and you'd miss it. Found one? `edit-report` it instead of authoring a new one.-2. **After authoring**, write a `report:logs:<service>` scratchpad entry recording the `report_id`- so the next run finds it (via `inbox-reports-retrieve`) without a title-search guess.--**Never retry an `emit-report` / `edit-report` call that may have succeeded** — a transport error-after the write commits, retried, double-files. If unsure whether a call landed, `inbox-reports-list`-to check before retrying.--## The pipeline may rewrite what you authored (accepted)--An authored report is a first-class report that coexists with pipeline reports. When future signals-consolidate around the same topic, the pipeline may **re-promote and re-research the report,-overwriting your authored `title`/`summary`**. This is accepted behavior, not a bug — there is no-pin. Author the finding, and let the inbox stay the source of truth for how it's currently framed.-Your durable record of "I filed this" is the `report:` scratchpad entry and the `report_id`, not the-title text.diff --git a/products/signals/skills/signals-scout-product-analytics/SKILL.md b/products/signals/skills/signals-scout-product-analytics/SKILL.mdindex 9382787af02d..aa7a11e44d14 100644--- a/products/signals/skills/signals-scout-product-analytics/SKILL.md+++ b/products/signals/skills/signals-scout-product-analytics/SKILL.md@@ -225,16 +225,17 @@ scratchpad (net-new / material-update / already-covered / addressed-or-noise), tuser) rejects the _whole_ `emit-report`, not just the reviewer.** So don't reflexively hand a raw`created_by` you're unsure about — prefer a cached login or a `created_by` you've already routed; ifyou can't confidently resolve an owner, author the report **unrouted** and `edit-report` reviewers in- later once you resolve one, rather than risk failing the emit. The org-scoped resolver tools are- usually absent from a scout run, so don't depend on them — see- [`references/report.md`](references/report.md). Routing is how the report reaches a human; left empty- it's assigned to nobody and likely missed, so resolve one when you safely can. After authoring, write a- rate-scoped `report:product_analytics:flow:<short_id>:<rate>` scratchpad entry (the affected- step/cohort/state, not just the `short_id`) with the `report_id` so the next run edits _this rate's_- report instead of duplicating — and a distinct rate on the same insight gets its own pointer. The- full report channel — field schema, safety × actionability status mapping, reviewer routing,- dedupe (it is **not** idempotent), and the edit rules — lives in- [`references/report.md`](references/report.md).+ later once you resolve one, rather than risk failing the emit. When the owner isn't already a+ `created_by` in your evidence, `signals-scout-members-list` gives this project's members with their+ resolved `github_login` (the org-scoped resolver tools aren't available in a scout run). Routing is+ how the report reaches a human; left empty it's assigned to nobody and likely missed, so resolve one+ when you safely can. After authoring, write a rate-scoped+ `report:product_analytics:flow:<short_id>:<rate>` scratchpad entry (the affected step/cohort/state,+ not just the `short_id`) with the `report_id` so the next run edits _this rate's_ report instead of+ duplicating — and a distinct rate on the same insight gets its own pointer. 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+ product-analytics-specific framing.- **Remember** if suggestive but below the bar (confidence < 0.65), or to refresh a baseline.- **Skip** if a `noise:` / `addressed:` / `dedupe:` entry, or an existing inbox report,already covers it.@@ -295,10 +296,10 @@ Direct (read-only):before authoring so you edit instead of duplicating (`ordering=-updated_at`).- `inbox-report-artefacts-list` — a comparable report's artefact log, where the routed`suggested_reviewers` live (the report record doesn't expose them) — reviewer precedent.-- `org-members-list` / `org-member-get-github-login` — resolve a flow / product-area owner to a- GitHub login for `suggested_reviewers`. These need organization scope, which a headless scout run- usually lacks, so they're often **absent from this scout's toolset** — prefer routing by the flow's- `created_by` `user_uuid` (resolved server-side) rather than relying on them.+- `signals-scout-members-list` — this project's members with their resolved `github_login`, to+ route `suggested_reviewers` to a flow / product-area owner. The in-run roster (the org-scoped+ resolver tools aren't available in a scout run) — but prefer routing by the flow's `created_by`+ `user_uuid` (resolved server-side) when your evidence already names it.Harness-level:diff --git a/products/signals/skills/signals-scout-product-analytics/references/report.md b/products/signals/skills/signals-scout-product-analytics/references/report.mddeleted file mode 100644index 4a2725d1b548..000000000000--- a/products/signals/skills/signals-scout-product-analytics/references/report.md+++ /dev/null@@ -1,243 +0,0 @@-# The report channel: `emit-report` / `edit-report`--The report channel is your output: you've already done the research, so you file a full-`SignalReport` into the inbox directly — no weak signals, no pipeline clustering. This reference-is the contract: the two tools, their fields, how to choose between authoring and editing, and the-two behaviors that make this channel different (it isn't idempotent, and the pipeline may later-rewrite what you authored).--> Like every `signals-scout-*` tool, **both report tools require the current `run_id`** (the-> run you're executing in) on every call — omitting it fails validation.--## Author or edit--| You have… | Use |-| --------------------------------------------------------------------------------------------------------------- | ------------- |-| A finished, well-formed finding nothing in the inbox covers — filed **1:1** with full control of title/summary. | `emit-report` |-| New information about a report that already exists (one you authored last run, or a pipeline report). | `edit-report` |--**Always search the inbox first** (`inbox-reports-list` → `inbox-reports-retrieve`): edit an-existing report rather than mint a near-duplicate. A product-analytics finding is report-shaped-when it's a single, localized, validated regression — one funnel step's conversion dropping, one-cohort's retention cliff, one flow's lifecycle composition tilting toward dormant — that you've-corroborated against the flow's seasonality-matched baseline with a steady entrant denominator,-and would stand behind as a standalone inbox item. A scatter of small, weakly-correlated wobbles-across many flows is not a report — it's a sign you haven't found the finding yet, or that the-move is a capture/volume problem that belongs to another scout; keep investigating or record it-in the scratchpad and move on.--Filing a report is a **high bar**. Author one only for a finding you'd own end-to-end as an inbox-item a human will act on. When you can't get there, a scratchpad note is the right home — never-file a half-formed report to fill space.--## `emit-report` — author a full report--Judges the report for safety, then persists it at the judged status.--| Field | Type | Notes |-| --------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `run_id` | string, required | The current run's id — same as every `signals-scout-*` tool. |-| `title` | string, ≤300, non-empty | The inbox headline. One specific, quantified line. |-| `summary` | string | The report body prose — hook → pattern → hypothesis → recommendation. See _Writing the summary_ below. |-| `evidence` | list, 1–50 | Each `{description, source_id}`. Becomes a bound signal row backing the report. `source_id` is the citable entity id. Hard cap of **50** — summarize/trim before calling; a longer list fails validation before the report is judged or persisted. |-| `actionability_explanation` | string | One sentence justifying the actionability call below. |-| `actionability` | enum | `immediately_actionable` / `requires_human_input` / `not_actionable`. You make this call — the channel does not re-research it. |-| `already_addressed` | bool, default `false` | Set when the underlying issue is already handled and you're filing for the record. |-| `suggested_reviewers` | list of objects | Each `{github_login?, user_uuid?}` (at least one per entry). The **single most important routing field** — set on every report (PR or not). See the _`suggested_reviewers`_ section below for resolution steps. |--**Status is decided for you, from safety × actionability:**--| Safety judge | `actionability` | Resulting status | Surfaces in inbox? |-| ------------ | ------------------------ | ---------------- | ------------------ |-| safe | `immediately_actionable` | `READY` | yes |-| safe | `requires_human_input` | `PENDING_INPUT` | yes |-| safe | `not_actionable` | `SUPPRESSED` | no |-| unsafe | (any) | `SUPPRESSED` | no |--Note the trap: `not_actionable` is **suppressed** (never surfaces). Reserve it for filing-for-the-record;-if you want a human to see it, it must be `immediately_actionable` or `requires_human_input`. A-behavioral regression is almost always an investigation, not a one-line code fix, so the natural-call here is `requires_human_input`.--The result tells you what happened: `report_id` (always set when a report was persisted —-**even when suppressed**, so you can edit or dedup against it), `report_status` (the birth status —-`ready` / `pending_input` / `suppressed`), `emitted` (true only when it actually surfaced),-`safety_explanation`, and `skipped_reason` (set only when a preflight gate — the team's-AI-data-processing approval or the signals-scout source being enabled — stopped the call before any-report was created).--### Writing the `title` and `summary`--The `title` is the inbox headline and the `summary` is the body a human reads to decide whether to-act — write both for a busy reader scanning a feed of other reports.--- **`title`** — one specific, quantified line. Lead with which flow, which step/cohort, and the- rate move, not a vague category. _"Activation funnel step-2 conversion fell 62%→48% over the last- 7d while step-1 entrants held steady (~5.2k/day)"_, not _"Funnel down"_.-- **`summary`** — a tight few paragraphs following hook → pattern → hypothesis → recommendation:- 1. **Hook** — what's happening, quantified ("the `signup → activated` funnel's step-2 conversion- dropped from a ~61% trailing-4-week median to 48% over the last complete week, while step-1- entrants held at ~5.2k/day").- 2. **Pattern** — the shape that makes this a regression, not noise ("the drop is broad across- platform and country breakdowns, the entrant denominator is steady, and no flow-definition- edit or running experiment touched the funnel — a real conversion regression, not a- measurement or capture artifact").- 3. **Hypothesis** — your best read of the cause.- 4. **Recommendation** — the concrete next step that would confirm or resolve it.--Quantify ("62%→48%", "~5.2k/day") over qualitative ("a lot"), and cite entity ids (the flow's-`short_id`, step events, cohort dates, breakdown segments, time ranges) inline so a reviewer can-pivot straight from prose to source. Put the same citations in `evidence` so they back the report-as bound signals.--### Opening a draft PR (autostart)--First, `suggested_reviewers` is **not** a PR field — set it whenever you can name a plausible owner,-PR or not. It's the routing lever and is covered in its own section below; the three fields in this-section are the **PR-only** ones.--A surfaced, immediately-actionable report can open a draft PR automatically. It's opt-in per report-via these fields; supply them only when the report is a concrete, fixable issue you'd want a PR for.--| Field | Type | Notes |-| ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `repository` | string | `"owner/repo"` targets that repo; the `NO_REPO` sentinel opts out; **omitting it** falls back to free-form selection across the team's repos — the slow path on a many-repo team (it spawns a selection sandbox), so pass `owner/repo` when you know it. |-| `priority` | `P0`-`P4` | Required for a PR. Pair with `priority_explanation`. P2 for a confirmed broad regression on a human-saved flow; P3 for a single-segment or suggestive move, and for anything on an `inferred` flow. |-| `priority_explanation` | string | Required when `priority` is set. |--Repo selection only runs when you signal PR intent — an explicit `repository`, or both `priority`-and `suggested_reviewers`. A report that supplies none of these just surfaces in the inbox (no repo-sandbox, no PR). Autostart no-ops unless the report is `immediately_actionable`, has a repo +-priority, and a reviewer qualifies — so these three PR fields are safe to omit for an informational-report. `suggested_reviewers` is not: set it whenever you can name a plausible owner (see the next-section), PR or not. A behavioral regression is usually a thing to investigate (which flag/release/-segment caused it), not a one-line code fix, so most product-analytics reports want-`requires_human_input` and a reviewer, not a PR.--## `suggested_reviewers` — set it on every report (this is how it reaches a human)--`suggested_reviewers` is the **single most important routing field**. It is how a report reaches the-right person: the inbox orders by `is_suggested_reviewer`, so a reviewer's own reports float to the-top of _their_ inbox even when **no PR** is involved. **A report with an empty `suggested_reviewers`-is assigned to nobody — it lands in the shared inbox and is very likely to be missed.** So resolve and-set at least one reviewer on every report you author, including informational `requires_human_input`-ones.--Each entry identifies one reviewer by **`github_login`**, **`user_uuid`**, or both:--- **`github_login`** — a **bare, lowercase GitHub login** — no `@`, no display name (e.g. `octocat`,- not `@OctoCat`). Assignment matches it against each user's linked GitHub login by exact, lowercased- comparison, so a mis-cased handle, an `@`-prefix, a display name, a team slug, or an email won't- assign to anyone.-- **`user_uuid`** — a **PostHog user UUID**. The server resolves it to that org member's linked GitHub- login for you (and it wins if you also pass a `github_login`). A `user_uuid` that isn't an org member- of this team **with a linked GitHub identity** is rejected (the whole call fails), so it never- silently drops. Use it whenever your evidence already names a PostHog user — the flow's `created_by`,- the insight owner, an account's CSM — so you route to them without ever looking up their handle.--So you have two routes. Product-analytics evidence almost always hands you the owning **person**-already — saved funnels/retention insights carry a `created_by` user UUID — so passing that-**`user_uuid`** straight through is usually the route. **But because resolution is fail-loud (an-unlinked `created_by` rejects the whole `emit-report`, per above), don't hand a `user_uuid` you're-unsure about:** a `created_by` belonging to a PM, a customer, or a departed user has no linked GitHub-identity and will fail the emit. Prefer a `created_by` you've already routed, or a cached login; if-you can't confidently resolve an owner, author the report **unrouted** and `edit-report` reviewers in-later (see below) rather than risk the emit. Otherwise resolve a `github_login`, cheapest first:--1. **Scratchpad cache.** A `reviewer:<domain>:<area>` entry you (or a prior run) recorded — reuse it.- For product-analytics, key by the owning flow / product area (`reviewer:product_analytics:<area>`).-2. **Inbox precedent.** `inbox-reports-list` (free-text `search`, optionally `source_product=signals_scout`- for prior scout-authored reports — **not** `product_analytics`, which never matches the channel's- signals) for a comparable report on the same flow/surface, then `inbox-report-artefacts-list` on it — the- `suggested_reviewers` artefact is where the routed reviewer lives (the report record itself doesn't- expose it). Reuse that reviewer for the same area.-3. **`org-members-list` / `org-member-get-github-login`** — only where the run has organization scope- (`organization_member:read`). A headless scout run is scoped to a single team and **typically does- not** carry that scope, so these tools are usually **absent from this scout's toolset** — don't- build the reviewer recipe around them. Where they _are_ available, `org-members-list` gives a- member's `user_uuid` (pass it straight through as `user_uuid` — simplest), and- `org-member-get-github-login` resolves a `user_uuid` to a GitHub login if you'd rather hand a- `github_login`. The flow's `created_by` UUID is usually the most convenient route — but it only- works when that user is an org member with a linked GitHub identity; a `created_by` that isn't- (a PM, customer, or departed user) fails the whole `emit-report`, so confirm or fall back per the- fail-loud caveat above rather than treating it as always safe.--**Never guess a handle** — a wrong login mis-assigns the report, which is worse than leaving it open.-If you genuinely can't resolve any confident owner, author the report anyway (it still surfaces, just-unrouted) and `edit-report` reviewers in later once you resolve one (see below). Once you've tied a-flow/area to an owner, write a `reviewer:product_analytics:<area>` scratchpad entry with the bare-lowercase login so the next run routes instantly.--**On `edit-report`:** `edit-report` now accepts `suggested_reviewers` too — setting them replaces the-report's reviewer list and re-runs autostart, so a report that surfaced routed to no one can be rescued-the moment you resolve an owner (and a now-actionable report with a repo + priority can open a draft-PR). An empty list is a no-op — it never clears the existing reviewers.--## `edit-report` — update an existing report--Rewrite `title`/`summary`, append a note, and/or set `suggested_reviewers` on a report that already-exists. Pass `run_id` and `report_id`, plus at least one of `title`, `summary`, `append_note`,-`suggested_reviewers`.--`edit-report` can target **any** of the team's inbox reports — not just ones a scout authored. That-makes it the right tool when a later run learns something about a report the pipeline (or another-scout) created. Rules of good behavior:--- **Prefer `append_note` over rewriting** `title`/`summary` on a report you didn't author. A note is- additive and audit-friendly (it carries your scout as author); a rewrite silently overwrites a- human- or pipeline-authored headline.-- **Don't fight an in-flight pipeline.** A report the summary/research workflow is mid-run on can have- its fields overwritten under you. If a report is actively being worked, append a note rather than- rewriting.-- **Rescue an unrouted report with `suggested_reviewers`.** Setting reviewers (same- `{github_login?, user_uuid?}` shape as `emit-report`) replaces the report's reviewer list and re-runs- autostart — so a report that surfaced routed to no one can be assigned to an owner you resolved later- (e.g. once you read the flow's `created_by`). An empty list is a no-op; it never clears existing- reviewers.-- **Only edit a report that's still live in the inbox.** `edit-report` rewrites `title`/`summary`,- appends a note, or sets reviewers — it **cannot change status**, so it can't reopen a `resolved` /- `suppressed` / `failed` report. Appending a relapse to a closed report buries a real, actionable- regression under an item that no longer surfaces. Check the matched report's `status` first: if it- isn't live, author a fresh report and repoint `report:product_analytics:flow:<short_id>` at the new id.--For this scout the common edit is a flow that's _still moving_: a funnel that kept sliding, a-retention cliff that deepened, or a flow that recovered then relapsed. When the report you authored-last run (found via the `report:product_analytics:flow:<short_id>` pointer) is **still live**,-`append_note` the fresh window's rate, baseline band, and entrant volumes onto it rather than filing-a second report. If that report has since gone `resolved`/`suppressed`/`failed`, a relapse is a-**new report** (it needs to surface and re-route), not a note on the dead one.--## Dedup: the channel is NOT idempotent--`emit-report` is **not idempotent** — a retried call authors a _second_ report. There is no-server-side dedup key. The dedup story is two-sided and you own it:--1. **The scratchpad pointer is the reliable dedup key.** After authoring, write a- `report:product_analytics:flow:<short_id>` entry recording the `report_id`; the next run- `inbox-reports-retrieve`s it directly — no search guess. This is the path that actually holds up.- **Key the pointer to the affected rate, not just the `short_id`:** one funnel/retention insight- carries several independent rates (different funnel steps, retention cohorts, lifecycle states), so- a pointer like `report:product_analytics:flow:<short_id>:step2` keeps a later drop on a _different_- step/cohort from being appended onto an unrelated report. Only `edit-report` when the matched report- covers the **same** rate; a genuinely distinct rate within the same insight is a fresh report.-2. **A keyword `inbox-reports-list` search is a noisy fallback** — use it only when no pointer exists.- On a busy project a broad term (e.g. `search=funnel`) returns hundreds of unrelated reports- (error-tracking funnel bugs, other scouts' funnel reports), and your flow's report can sit far down- the list (or be `failed`/stale and not float up). Search the flow's _specific_ distinguishing terms- (its name, the activation/step events, the `short_id`), pass `ordering=-updated_at` (the default- ordering buckets by your own reviewer-match and status first, so the most recent duplicate can- otherwise sort below older rows), and still confirm a hit with `inbox-reports-retrieve` before- treating it as the same flow. Found one? `edit-report` it instead of authoring a new one.--**Never retry an `emit-report` / `edit-report` call that may have succeeded** — a transport error-after the write commits, retried, double-files. If unsure whether a call landed, `inbox-reports-list`-to check before retrying.--## The pipeline may rewrite what you authored (accepted)--An authored report is a first-class report that coexists with pipeline reports. When future signals-consolidate around the same topic, the pipeline may **re-promote and re-research the report,-overwriting your authored `title`/`summary`**. This is accepted behavior, not a bug — there is no-pin. Author the finding, and let the inbox stay the source of truth for how it's currently framed.-Your durable record of "I filed this" is the `report:` scratchpad entry and the `report_id`, not the-title text.