:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): opt the general scout into the report channel (#66923)
Andrew Maguire960ee672bb7d
diff --git a/products/signals/skills/AGENTS.md b/products/signals/skills/AGENTS.mdindex 66d02a396248..0c2afa469a59 100644--- a/products/signals/skills/AGENTS.md+++ b/products/signals/skills/AGENTS.md@@ -34,10 +34,15 @@ agent-enabled team's `LLMSkill` rows by `scout_harness/lazy_seed.py` — see- `signals-scout-general/` — cross-product generalist. Looks for cross-productcorrelations and surfaces no specialist covers, rather than deep-diving a single- product. Carries two progressively-disclosed references: `references/emit.md` (the- emit contract) and `references/conventions.md` (scratchpad key prefixes + the- four-states dedupe 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.+ product. The first canonical scout on the **report channel** (its frontmatter+ `allowed_tools` lists `emit_report` / `edit_report`): it authors fully-validated+ correlations 1:1 as `SignalReport`s directly, rather than firing weak `emit_signal`+ findings for the pipeline to cluster. Carries two progressively-disclosed references:+ `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.- `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 /@@ -224,14 +229,23 @@ prompt. References (siblings of `SKILL.md`) are progressively disclosed viarecurring token cost on every run — and push detail into references that are onlyread when needed.-The generalist (`signals-scout-general`) carries two references the rest of the-fleet also reasons in terms of:+The generalist (`signals-scout-general`) is **report-only** — it authors `SignalReport`s+directly and does not `emit_signal`, so it carries two references:-- **`references/emit.md`** — the emit contract: required/recommended fields, the- confidence rubric, severity mapping, dedupe keys, `finding_id`- idempotency, and a worked example.-- **`references/conventions.md`** — the four-states dedupe classifier, scratchpad+- **`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 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 referencesdiff --git a/products/signals/skills/authoring-scouts/SKILL.md b/products/signals/skills/authoring-scouts/SKILL.mdindex d9dc82ad71b7..56244dbf69dd 100644--- a/products/signals/skills/authoring-scouts/SKILL.md+++ b/products/signals/skills/authoring-scouts/SKILL.md@@ -19,11 +19,23 @@ metadata:# Authoring Signals scoutsA **scout** is a scheduled agent that wakes on its own interval, looks at one PostHog-project, decides what's genuinely worth surfacing, and emits it as a **finding** into-the Signals inbox — or closes out empty, which is a real outcome. PostHog ships a fleet-of **canonical scouts** (a cross-product generalist plus per-surface specialists). This-skill helps you and your agent **adapt those canonical scouts to a specific project**, or-**author new scouts from scratch** for a use case the fleet doesn't cover.+project, decides what's genuinely worth surfacing, and outputs it into the Signals inbox —+or closes out empty, which is a real outcome. PostHog ships a fleet of **canonical scouts**+(a cross-product generalist plus per-surface specialists). This skill helps you and your+agent **adapt those canonical scouts to a specific project**, or **author new scouts from+scratch** for a use case the fleet doesn't cover.++Scouts come in **two output channels**, picked per scout via its frontmatter `allowed_tools`:++- **Signal-emitting** (the default, most of the fleet) — fires weak **findings** via+ `emit-signal` that the pipeline groups, dedupes, and may promote into a report.+- **Report-authoring** — lists `emit_report` / `edit_report` in `allowed_tools` and writes a+ full inbox **report** 1:1 directly, skipping the pipeline, for a scout whose natural output is+ one well-formed report. The canonical generalist (`signals-scout-general`) is the first scout+ on this channel. See the report-channel reference below.++The channel changes the scout's **Decide** section and which references it bundles, but not+the rest of its anatomy — orient, discriminator, explore, memory, disqualifiers are the same.A scout is just an `LLMSkill` whose name starts with `signals-scout-`. The harnessdiscovers scouts by globbing `signals-scout-*` over the project's skills, loads the body@@ -195,8 +207,9 @@ surfaces change.points, not a rigid checklist.- **Disqualifiers** listing this project's known noise (single-user quirks, dev-envbursts, allowlisted entities).-- A **Decide** section calibrated against the emit contract (confidence ≥ 0.65 to emit;- below that, write memory).+- A **Decide** section calibrated against the scout's channel — for a signal scout, the emit+ contract (confidence ≥ 0.65 to emit; below that, write memory); for a report scout, the+ report contract (author 1:1 only for a finding it'd own end-to-end, set `suggested_reviewers`).- **Save-memory** guidance using the scratchpad prefixes so the scout gets smarter each run.- A lean body (push depth into `references/`) — every line is a recurring token cost onevery run.diff --git a/products/signals/skills/authoring-scouts/references/emit-contract.md b/products/signals/skills/authoring-scouts/references/emit-contract.mdindex 0deecd31c8b0..08f61d869a66 100644--- a/products/signals/skills/authoring-scouts/references/emit-contract.md+++ b/products/signals/skills/authoring-scouts/references/emit-contract.md@@ -1,10 +1,11 @@# The emit contractHow a scout calls `signals-scout-emit-signal`, and how to write a scout's **Decide**-section so it emits well-calibrated findings. This mirrors the contract the canonical fleet-runs on (`signals-scout-general/references/emit.md`) — author your scout so its findings-fit this shape. The harness validates request shape but does **not** grade prose quality;-that's on the scout.+section so it emits well-calibrated findings. This is the contract the signal-emitting fleet+runs 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.## Fieldsdiff --git a/products/signals/skills/authoring-scouts/references/scout-anatomy.md b/products/signals/skills/authoring-scouts/references/scout-anatomy.mdindex 0e374923b0df..4bdcb840a9d2 100644--- a/products/signals/skills/authoring-scouts/references/scout-anatomy.md+++ b/products/signals/skills/authoring-scouts/references/scout-anatomy.md@@ -123,9 +123,10 @@ close-out), 3 (orient), 7 (decide), 8 (disqualifiers), and 10 (close out). Secti## References-The generalist carries two references the rest of the fleet reasons in terms of —-`references/emit.md` (the emit contract) and `references/conventions.md` (the four-states-classifier + scratchpad vocab). For a **per-team** scout you usually don't need to bundle+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+[`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 depth(a long SQL cookbook, a taxonomy of fingerprints) that would bloat the body. Attach bundleddiff --git a/products/signals/skills/exploring-scouts/SKILL.md b/products/signals/skills/exploring-scouts/SKILL.mdindex a48e927f4aa2..97d7d5611118 100644--- a/products/signals/skills/exploring-scouts/SKILL.md+++ b/products/signals/skills/exploring-scouts/SKILL.md@@ -34,6 +34,15 @@ performing** — entirely through read-only MCP tools. It is the observability cthe `authoring-scouts` skill (which teaches writing and tuning) and to the`inbox-exploration` skill (which covers the inbox reports scouts feed into).+**Scouts come in two output channels — know which one you're looking at.** Most scouts+**emit weak findings** (`emit_signal`) that the pipeline groups into reports; their output shows+up as `emitted_count` / `emitted_finding_ids` on a run. A few scouts (those listing+`emit_report` / `edit_report` in `allowed_tools` — the canonical generalist `signals-scout-general`+is the first) **author or edit inbox reports 1:1 directly**, skipping the pipeline; their output+shows up as `emitted_report_ids` / `edited_report_ids` instead, and **their `emitted_count` stays+0 even on a productive run**. Don't read `emitted_count: 0` as "did nothing" without checking the+report columns and the run summary first.+There are six things you can observe about the fleet, each with its own tool:| What you want to know | Tool | What it tells you |@@ -157,7 +166,9 @@ call out anything anomalous (never run, last run errored, stuck in dry-run for aEach summary row carries `run_id`, `skill_name`, `skill_version`, `status`, `started_at`,`completed_at`, `emitted_count` (how many findings the run emitted), `emitted_finding_ids` (their-ids), `task_url` (a deep-link into the Tasks UI for the full transcript), and the `summary` prose.+ids), `emitted_report_ids` / `edited_report_ids` (reports a report-authoring scout wrote or edited+directly — see the report-channel note below), `task_url` (a deep-link into the Tasks UI for the+full transcript), and the `summary` prose.Lead with the `summary` when narrating to the user — it's the scout's own plain-language close-out —and always offer the `task_url` for the full reasoning.@@ -198,15 +209,24 @@ you with tool _names_ but no idea what the scout actually queried. Fetch the **fthe script reassemble each call (it groups by `toolCallId`, keeps the richest `rawInput`, andattaches the completion's `rawOutput`/`status`).-**Whether a run emitted is a first-class field: `emitted_count`.** `emitted_count > 0` means the-run surfaced that many findings; `emitted_count: 0` means it closed out empty. Don't parse the prose-`summary` for this any more — a phrase like "already emitted P1 … did not re-emit" describes a-_prior_ run, so substring-matching the summary for "emitted" is unreliable, whereas `emitted_count`-is the authoritative tally. `emitted_finding_ids` lists the `finding_id`s behind that count, in emit-order; each maps to a `Signal` with `source_id = run:<run_id>:finding:<finding_id>`, giving a-reliable run → finding link. See [`references/scout-data-model.md`](references/scout-data-model.md)-for the run-to-finding link and how an emitted finding rides through grouping into the-`source_product: "signals_scout"` inbox filter.+**Whether a run emitted is a first-class field: `emitted_count`.** For a **signal scout**,+`emitted_count > 0` means the run surfaced that many findings and `emitted_count: 0` means it closed+out empty. Don't parse the prose `summary` for this any more — a phrase like "already emitted P1 …+did not re-emit" describes a _prior_ run, so substring-matching the summary for "emitted" is+unreliable, whereas `emitted_count` is the authoritative tally. `emitted_finding_ids` lists the+`finding_id`s behind that count, in emit order; each maps to a `Signal` with+`source_id = run:<run_id>:finding:<finding_id>`, giving a reliable run → finding link. See+[`references/scout-data-model.md`](references/scout-data-model.md) for the run-to-finding link and+how an emitted finding rides through grouping into the `source_product: "signals_scout"` inbox+filter.++**For a report-authoring scout, `emitted_count` is the wrong field — it stays 0.** A report scout+(`emit_report` / `edit_report` in `allowed_tools`) doesn't emit weak findings; it writes reports+directly, tallied on the run as **`emitted_report_ids`** (reports it authored via `emit_report`) and+**`edited_report_ids`** (reports it mutated via `edit_report`). So a productive report-scout run+reads `emitted_count: 0` with a non-empty `emitted_report_ids` and a summary like+`Report authored: <id>`. Check those columns (and the inbox report itself via+`inbox-reports-retrieve`) before concluding a report scout did nothing.**To go from a run straight to the _reports_ its findings produced**, call`signals-scout-runs-emission-reports` with the run's `run_id` instead of re-deriving the link by@@ -449,6 +469,11 @@ disabled) or failed.(or read `emitted_count` per run) to find what emitted, without parsing the prose `summary`. The`source_product: "signals_scout"` inbox filter lists the _reports_ the fleet surfaced; an emptyresult there means it hasn't emitted yet (scouts hold a high bar), not that the filter is broken.+- **Check the output channel before judging a report scout.** A report-authoring scout+ (`emit_report` / `edit_report` in `allowed_tools`, e.g. `signals-scout-general`) leaves+ `emitted_count: 0` even when productive — its work is in `emitted_report_ids` / `edited_report_ids`+ and the inbox report it wrote. `runs-list?emitted=true` and emit-% health metrics key off+ `emitted_count`, so they undercount report scouts; judge those by their report columns instead.- **A ~30-min run that `failed` is usually a timeout, not a broken scout.** Completed runs finishin a couple of minutes. Most often the scout over-investigated and ran the full budget (the fleetself-corrects by writing "tight-run recipe" scratchpad entries) — but some are false timeoutsdiff --git a/products/signals/skills/signals-scout-general/SKILL.md b/products/signals/skills/signals-scout-general/SKILL.mdindex b63d8940691c..bd28054d5e2a 100644--- a/products/signals/skills/signals-scout-general/SKILL.md+++ b/products/signals/skills/signals-scout-general/SKILL.md@@ -9,9 +9,13 @@ description: >of the specialists over time.compatibility: >Runs as the PostHog Signals scout in a Claude sandbox with PostHog MCP scopes: signal_scout:read + signal_scout_internal:write (for- scratchpad-remember/forget and emit-signal), llm_skill:read, plus standard analytics reads. Uses the- signals-scout MCP family: project-profile-get, runs-list, runs-retrieve,- scratchpad-search, scratchpad-remember, scratchpad-forget, emit-signal.+ 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 standard+ analytics reads. Uses the signals-scout MCP family: project-profile-get, runs-list, runs-retrieve,+ scratchpad-search, scratchpad-remember, scratchpad-forget, emit-report, edit-report.+allowed_tools:+ - emit_report+ - edit_reportmetadata:owner_team: signals---@@ -19,8 +23,14 @@ metadata:# Signals scoutYou are a Signals scout. Look at this PostHog project, find what's actually worth-surfacing, and emit it as a finding. Skip what's noise. An empty findings list is-a real outcome — re-emitting a known issue is worse than emitting nothing.+surfacing, and file it as a report in the inbox. Skip what's noise. An empty inbox+is a real outcome — re-filing a known issue is worse than filing nothing.++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 report 1:1+end-to-end rather than firing weak signals for a pipeline to cluster. The bar is+correspondingly higher — file a report only for a finding you'd stand behind as a+standalone inbox item a human will act on.## Orient@@ -68,7 +78,7 @@ Pick what looks interesting and follow it. The coverage map says what's live; thscratchpad tells you what's normal; recent runs tell you what's already covered.Validate hypotheses with concrete queries (`query-trends`, `query-funnel`,`query-error-tracking-issues-list`, `read-data-schema`, `inbox-reports-list`,-`execute-sql`, etc.) before emitting.+`execute-sql`, etc.) before authoring a report.When sibling specialists are running, leave a surface they cover in depth to them ona future tick — the `skill_name`s on recent runs in `signals-scout-runs-list` show@@ -80,27 +90,41 @@ beat: work across it instead of narrowing to one corner.## Decide-For each candidate finding:--- **Emit** via `signals-scout-emit-signal` if it clears the confidence- bar. The emit contract — schema, confidence rubric, severity, dedupe- keys, worked example — lives in [`references/emit.md`](references/emit.md).+Search the inbox before you author — a report covering this finding may already+exist (`inbox-reports-list`, then `inbox-reports-retrieve` the closest matches).+Then, for each candidate finding:++- **Edit** the existing report via `signals-scout-edit-report` when the inbox+ already covers the topic — append a note with your fresh evidence, or rewrite+ the title/summary on a report you authored. This is the default when a match+ exists; don't mint a near-duplicate.+- **Author** a fresh report via `signals-scout-emit-report` when nothing in the+ inbox 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).- **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 already covers it.+- **Skip** if the scratchpad or inbox already covers it.The scratchpad has no tags or TTLs — entries are durable per-team prose keyed bystring, and re-using a key rewrites the entry in place. Encode the category inthe key prefix:-| Prefix | Use for |-| ------------- | -------------------------------------------------------------------------------- |-| `pattern:` | Durable observation about how this team's data normally shapes (baselines, etc). |-| `noise:` | Patterns to ignore (single-user, dev-only, recurring with no fix path). |-| `addressed:` | Team-confirmed fix shipped or topic the team has moved on from. |-| `dedupe:` | Gates future emits on a specific issue / fingerprint / finding id. |-| `allowlist:` | Vetted entities the scout should never re-surface. |-| `not-in-use:` | Close-out memo for "product not in use on this team". |+| Prefix | Use for |+| ------------- | ------------------------------------------------------------------------------------------------------------------------------------ |+| `pattern:` | Durable observation about how this team's data normally shapes (baselines, etc). |+| `noise:` | Patterns to ignore (single-user, dev-only, recurring with no fix path). |+| `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. |+| `allowlist:` | Vetted entities the scout should never re-surface. |+| `not-in-use:` | Close-out memo for "product not in use on this team". |Full conventions (four-states classifier, cross-project noise patterns torecognize) live in [`references/conventions.md`](references/conventions.md).@@ -114,6 +138,6 @@ not to ceremonially rotate lenses.## Close out-If you emitted findings, summarize in one paragraph: what + why. If you didn't,-one sentence is enough. The harness writes your summary to the run row;+If you authored or edited reports, summarize in one paragraph: what + why. If you+didn't, one sentence is enough. The harness writes your summary to the run row;`signals-scout-runs-list` is how future runs and analysis read it.diff --git a/products/signals/skills/signals-scout-general/references/conventions.md b/products/signals/skills/signals-scout-general/references/conventions.mdindex 044878c357a3..64248be13033 100644--- a/products/signals/skills/signals-scout-general/references/conventions.md+++ b/products/signals/skills/signals-scout-general/references/conventions.md@@ -5,24 +5,23 @@ scratchpad entries, and noise patterns common across PostHog projects.## The four states-Classify every candidate finding against prior runs and the scratchpad before-emitting:+Classify 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):-1. **Net new** — no prior run mentions this topic, no scratchpad entry covers it.- → Emit if it clears the confidence bar (≥ 0.65; see- [emit.md](emit.md)).+1. **Net new** — no prior run, no inbox report, and no scratchpad entry covers this+ topic. → Author a report with `emit-report` if it clears the report bar.-2. **Material update on a prior run** — a prior run covered the topic, but you- have new evidence: a different source corroborating, a fresh deploy- correlation, contradicting data, a meaningful escalation in scope.- → **Emit fresh, citing the prior `finding_id` in the description and the- evidence list** (`source_product: signals_scout`, `entity_id: <prior_id>`).- The inbox groups by dedupe key.+2. **Material update on an existing report** — a report already covers the topic+ (one you authored last run, or a pipeline report), but you have new evidence: a+ different source corroborating, a fresh deploy correlation, contradicting data, a+ meaningful escalation in scope. → **`edit-report` it** — `append_note` with the+ fresh evidence, or rewrite `title`/`summary` on a report you authored. Don't mint+ a near-duplicate.-3. **Same fact already covered** — a prior run already emitted with the same- evidence shape. → Skip. Optionally rewrite an existing scratchpad entry- confirming the topic stayed quiet (same key + new content = idempotent- refresh).+3. **Same fact already covered** — an existing report already captures the same+ evidence shape, nothing has changed. → Skip. Optionally rewrite an existing+ scratchpad entry confirming the topic stayed quiet (same key + new content =+ idempotent refresh).4. **Already-addressed or noise** — a scratchpad entry has `addressed:` /`noise:` / `dedupe:` prefix and names the issue id with a "team aware" note.@@ -33,16 +32,17 @@ emitting:The scratchpad has no tags. Encode the category in the **key prefix** so futureruns can find an entry with a single `text=` search:-| Prefix | Use for |-| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `pattern:` | Durable observation about how this team's data normally shapes (baselines, etc). |-| `noise:` | Patterns to ignore (single-user, dev-only, recurring with no fix path). |-| `addressed:` | Team-confirmed fix shipped or topic the team has moved on from. |-| `dedupe:` | Gates future emits on a specific issue / fingerprint / finding id. |-| `allowlist:` | Vetted entities the scout should never re-surface. |-| `not-in-use:` | Close-out memo for "product not in use on this team". |-| `mcp-gap:` | Scout-noticed gap in the MCP surface worth raising in a future review. |-| `report:` | A report this scout authored via the report channel — stores the `report_id` so the next run edits/dedups against it instead of re-filing (opt-in scouts only). |+| Prefix | Use for |+| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |+| `pattern:` | Durable observation about how this team's data normally shapes (baselines, etc). |+| `noise:` | Patterns to ignore (single-user, dev-only, recurring with no fix path). |+| `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. |+| `allowlist:` | Vetted entities the scout should never re-surface. |+| `not-in-use:` | Close-out memo for "product not in use on this team". |+| `mcp-gap:` | Scout-noticed gap in the MCP surface worth raising in a future review. |+| `report:` | A report this scout authored — stores the `report_id`, keyed `report:<domain>:<entity>`, so the next run edits/dedups against it instead of re-filing. |+| `reviewer:` | A resolved owner (bare lowercase GitHub login), keyed `reviewer:<domain>:<area>`, so the next run sets `suggested_reviewers` without re-resolving. |Format: `<prefix>:<domain>:<entity>` (e.g. `pattern:error_tracking:baseline`,`noise:logs:rabbitmq-deploy-window`, `dedupe:csp_violations:a1b2c3d4`).@@ -58,15 +58,15 @@ Re-using a key updates the entry in place and refreshes `updated_at` — that'sthe idempotent refresh pattern. Use it to confirm a quiet observation withoutduplicating entries.-## When to write a scratchpad entry vs emit+## When to author a report vs write a scratchpad entry| Situation | Action || ------------------------------------------------------------------- | ----------------------------------------------------------------------- |-| Confirmed real signal, not yet emitted by anyone. | Emit (new). |-| Confirmed real signal, prior run covered it, you have new evidence. | Emit (cite prior `finding_id`). |-| Pattern observed but `confidence < 0.65`. | Scratchpad entry with `pattern:` prefix. |+| Confirmed, well-formed finding no existing report covers. | Author a report (`emit-report`). |+| Existing report covers it and you have new evidence. | `edit-report` (append a note, or rewrite a report you authored). |+| Pattern observed but you can't yet stand behind it as a 1:1 report. | Scratchpad entry with `pattern:` prefix; keep investigating. || Investigated and ruled out; would waste a future run if rechecked. | Scratchpad entry with `noise:` or `addressed:` prefix. |-| Scratchpad already covers this; no change. | Skip; note in summary. |+| Scratchpad or inbox already covers this; no change. | Skip; note in summary. || Issue currently quiet but worth re-checking later. | Rewrite the existing entry (same key) with fresh timestamp + condition. |## Entry shape that pays off@@ -107,7 +107,7 @@ escalation:- **KEA store-path errors with single-session reach** — frontend logic statequirks; not user-impacting unless distinct_user counts climb.- **Pre-known upstream provider errors** (Anthropic / OpenAI rate limits, etc.)- — already covered by past scratchpad entries; don't re-emit unless volume or+ — already covered by past scratchpad entries; don't re-file unless volume orshape changes meaningfully.The team's scratchpad extends this list per-project as the scout learns.diff --git a/products/signals/skills/signals-scout-general/references/emit.md b/products/signals/skills/signals-scout-general/references/emit.mddeleted file mode 100644index 6d79feb09a7c..000000000000--- a/products/signals/skills/signals-scout-general/references/emit.md+++ /dev/null@@ -1,180 +0,0 @@-# Emit: how to call `signals-scout-emit-signal`--Read this before your first emit. The harness validates request shape but doesn't-grade prose quality — that's on you.--## Required fields--| Field | Type | Constraint |-| ------------- | ------ | --------------- |-| `description` | string | non-empty prose |-| `confidence` | float | `[0.0, 1.0]` |-| `evidence` | list | 0-20 entries |--## Recommended fields (use them; the inbox uses them)--| Field | Type | When |-| -------------- | ---------------------- | -------------------------------------------------------------------- |-| `hypothesis` | string | Always — one-line root-cause hypothesis the finding tests. |-| `severity` | `P0`-`P4` | Always — informational; calibrates downstream review. |-| `dedupe_keys` | list of strings | Always — see "Dedupe keys" below. |-| `time_range` | `{date_from, date_to}` | When the finding has a clear window (burst, deploy, experiment). |-| `finding_id` | string | Always — stable trace id (not a dedupe key); see "Finding ID" below. |-| `mcp_trace_id` | string | When you used MCP queries you'd want a reviewer to replay. |--## Description prose contract--The description becomes the inbox surface and the dedupe target. A busy human-reads it in a feed of 30 other findings. Aim for one tight paragraph (3-6-sentences):--1. **Hook** — what's happening, quantified.- _"High-volume UndefinedTable errors started firing at 11:31 UTC today — 434- occurrences across 434 distinct users."_--2. **Pattern** — the shape that makes this signal not noise.- _"One occurrence per user, all on the same fingerprint, confined to a 2-hour- window — indicates a per-request server path, not a stray exception."_--3. **Hypothesis** — what you think the cause is.- _"Likely an ORM query against a `PropertyAccessControl` model whose Postgres- migration didn't ship to this environment."_--4. **Lineage** — if a prior run touched a related topic, cite its `finding_id`.--5. **Recommendation** — what action would resolve it.--Quantify ("434 users") over qualitative ("many users"). Cite entity IDs (issue-ids, recording ids, dashboard ids) inline so a human can pivot straight from-prose to source.--## Confidence rubric (epistemic certainty)--`confidence` is your certainty the finding is _real_. It is the emit gate: a-finding you can't stand behind belongs in the scratchpad, not the inbox. You do-not rank findings yourself — the inbox handles ordering once you emit.--| Range | Use when |-| ----------- | ----------------------------------------------------------------------------------------- |-| `0.85-1.00` | Multiple corroborating queries; pattern unambiguous; verified not in inbox or scratchpad. |-| `0.65-0.84` | One strong query + plausible hypothesis; minor unknowns remain. |-| `0.40-0.64` | Suggestive pattern with material gaps you'd want a human to validate. |-| `0.00-0.39` | Don't emit. Gather more evidence or skip. |--If you can't get to `confidence ≥ 0.65`, prefer a scratchpad entry over emitting.--## Severity mapping--`P0`-`P4` is informational only — no automated routing — but use it consistently:--| Severity | Meaning |-| -------- | --------------------------------------------------------------------- |-| `P0` | Active critical impact (data loss, total outage, security exposure). |-| `P1` | Active material impact (errors hitting many users, billing affected). |-| `P2` | Confirmed issue, contained scope or non-urgent mitigation path. |-| `P3` | Suspected issue or minor confirmed issue. |-| `P4` | Curiosity / FYI. |--## Evidence list shape--Each entry: `{source_product, summary, entity_id?}`. The harness caps at 20.--- `source_product` — short string identifying where the citation came from. Common- values: `error_tracking`, `session_replay`, `logs`, `feature_flag`, `experiment`,- `web_analytics`, `data_warehouse`, `query_runs`, `signals_scout` (cite a prior- run / finding), `inbox` (cite a SignalReport).-- `summary` — one sentence on _why this evidence supports the finding_.-- `entity_id` — the citable id. Pin issue UUIDs, recording IDs, dashboard- short_ids, insight short_ids, prior `scout_run_id`s, prior `finding_id`s.--Include a citation for every concrete claim in the description.--## Dedupe keys--Stable strings the inbox uses to group related findings across runs and sources.-Format: `<kind>:<entity_id>` or `<kind>:<entity_id>:<qualifier>`.--Common kinds: `error_tracking_issue:<id>`, `experiment:<id>`, `feature_flag:<key>`,-`warehouse_source:<id>`, `dashboard:<id>`, `insight:<short_id>`,-`missing_migration:<table_name>`, `traffic_anomaly:<event_name>`.--Include 1-2 keys per finding. Multiple is fine when a finding spans entities.--## Finding ID--`finding_id` is a stable, human-readable trace id — it ties the emitted signal-back to the run that produced it (stored in the signal's `source_id` metadata). It-is **not** a dedupe key: `emit_signal` dedupes on its own generated `document_id`-(and your `dedupe_keys`), never on `finding_id`. Re-calling emit with the same-`finding_id` writes a _second_ signal — so never retry an emit that may already-have succeeded. Format: `<topic>-<entity>-<date>` is a safe default.--Examples:--- `missing-migration-access-control-propertyaccesscontrol-2026-05-01`-- `experiment-checkout-flow-conversion-drop-2026-04-29`-- `warehouse-stripe-charges-stuck-2026-04-30`--Stable, human-readable, dated. A recurrence on a later day becomes a new finding-(cite the prior `finding_id` in the description).--## Worked example--Real finding from a shadow run on 2026-05-01:--```yaml-finding_id: missing-migration-access-control-propertyaccesscontrol-2026-05-01-confidence: 0.9-severity: P1-hypothesis: >- A new access_control.PropertyAccessControl model is referenced in production- code paths without its Postgres migration applied — every per-request ORM- check hits the missing table.-evidence:- - source_product: error_tracking- entity_id: 019de34e-e2a3-7e53-80d0-8ccdd0866a36- summary: >- Primary issue UndefinedTable on access_control_propertyaccesscontrol —- 434 occurrences across 434 distinct users between 11:31 and 13:22 UTC.- - source_product: error_tracking- entity_id: 019de34e-48ea-7e12-b76a-106d06e2f153- summary: >- POST /api/environments/1/query/HogQLQuery/ returning 500, first seen at- 11:30:49Z — same window, likely same root cause.- - source_product: signals_scout- entity_id: 019de09b-bd36-78a7-b3ff-fba34c252187- summary: >- Prior run on 2026-04-30 surfaced the same class of bug (signals refactor- missing migration) — internal-only blast radius. Today's pattern is the- end-user-facing equivalent.-time_range:- date_from: 2026-05-01T11:31:30Z- date_to: 2026-05-01T13:22:02Z-dedupe_keys:- - error_tracking_issue:019de34e-e2a3-7e53-80d0-8ccdd0866a36- - missing_migration:access_control_propertyaccesscontrol-description: |- High-volume UndefinedTable / ProgrammingError: relation- "access_control_propertyaccesscontrol" does not exist started firing at- 2026-05-01T11:31:30Z (issue 019de34e-e2a3-7e53-80d0-8ccdd0866a36, active, no- assignee). 434 occurrences across 434 distinct users between 11:31 and 13:22- UTC — one hit per user indicates a per-request code path (likely an ORM check- on the new access_control.PropertyAccessControl model). Continuation of- yesterday's signals-backend refactor cluster (run- 019de09b-bd36-78a7-b3ff-fba34c252187, internal-only) but with much wider- blast radius. Recommend confirming the migration adding- access_control_propertyaccesscontrol is in the deployed set, running it, then- verifying the issue stops firing. None of these are in the inbox.-```--Why this is a good finding:--- **Quantified hook**: 434/434 in a precise 2-hour window.-- **Pattern explained**: "one hit per user" rules out alternatives.-- **Lineage**: cites prior run id; the inbox groups them.-- **Recommendation**: actionable.-- **Evidence**: diverse sources strengthen confidence.-- **Dedupe keys**: both issue-id and topic-keyed, dedupes either way.-- **Severity**: P1 justified by 434-user blast.-- **Confidence 0.9**: pattern unambiguous; remaining uncertainty is "did the- migration actually not ship, or is something else mocking this table?"diff --git a/products/signals/skills/signals-scout-general/references/report.md b/products/signals/skills/signals-scout-general/references/report.mdnew file mode 100644index 000000000000..f47a916bcdce--- /dev/null+++ b/products/signals/skills/signals-scout-general/references/report.md@@ -0,0 +1,179 @@+# 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.