: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): remove scout creation confirmation (#99142)
Andrew Maguire8c57906ed0c0
diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex 86c901d90340..b42d4b0e9d9c 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -516,11 +516,6 @@ tools:fields. Reusing the name for a different definition returns a conflict.exclude_params:- suggestion_id- confirmed_action:- message: >- About to create scout '{name}', a persistent automation that can run unattended on its configured- schedule and write reports to the inbox when enabled with emit on. Reply 'confirm' to create it.- action_label: create scoutscout-edit-report:operation: signals_scout_edit_reportenabled: truediff --git a/products/signals/skills/AGENTS.md b/products/signals/skills/AGENTS.mdindex bd2322c83874..f3ec1cf3d158 100644--- a/products/signals/skills/AGENTS.md+++ b/products/signals/skills/AGENTS.md@@ -63,10 +63,10 @@ A scout is a skill that holds a `SignalScoutConfig`. The harness globs `signals-There is no sampling. Each scout has its own `SignalScoutConfig` row (one per `(team, skill_name)`) carrying a `run_interval_minutes` schedule (default 1440 = every 24 hours) and a `last_run_at` stamp. Every tick the coordinator:1. Bounds candidates to the teams enrolled via the `signals-scout` feature flag's JSON payload allowlist (`guaranteed_team_ids` minus `skip_team_ids`, `_participating_teams` → `_enrolled_team_ids`). Editing the payload in the flag UI enrolls or drains a team next tick — no manual seed.-2. Auto-registers a config for any `signals-scout-*` skill missing one (`scout_harness/config_registry.register_missing_configs`) — on an enrolled team, authoring a skill is enough to get a scout. For custom scouts, `scout-create-prepare` validates and signs the skill and config, then `scout-create-execute` creates them after the user confirms; `scout-config-create` remains the lower-level way to register a config for an existing skill.+2. Auto-registers a config for any `signals-scout-*` skill missing one (`scout_harness/config_registry.register_missing_configs`) — on an enrolled team, authoring a skill is enough to get a scout. For custom scouts, `scout-create` validates and creates the skill and config in one call; `scout-config-create` remains the lower-level way to register a config for an existing skill.3. Dispatches every enabled scout whose schedule is due (`last_run_at is None`, or `now - last_run_at >= run_interval_minutes`), most-overdue first, capped at `MAX_RUNS_PER_TICK` per tick. Each due scout becomes one `RunSignalsScoutWorkflow` child run; `last_run_at` is advanced for everything dispatched.-Pausing a scout is `enabled=False` on its config; slowing it is a larger `run_interval_minutes`. Both are tunable via the `scout-config-update` MCP tool, and settable for a new custom scout via the nested `config` object on `scout-create-prepare`. See `scout_coordinator._collect_planned_runs` for the exact due-check.+Pausing a scout is `enabled=False` on its config; slowing it is a larger `run_interval_minutes`. Both are tunable via the `scout-config-update` MCP tool, and settable for a new custom scout via the nested `config` object on `scout-create`. See `scout_coordinator._collect_planned_runs` for the exact due-check.### Authoring a new scoutdiff --git a/products/signals/skills/authoring-scouts/SKILL.md b/products/signals/skills/authoring-scouts/SKILL.mdindex 94a2b93d202e..a654d2e78752 100644--- a/products/signals/skills/authoring-scouts/SKILL.md+++ b/products/signals/skills/authoring-scouts/SKILL.md@@ -34,7 +34,7 @@ A scout is an `LLMSkill` that holds a `SignalScoutConfig`.The harness loads the body **verbatim** as the agent's system prompt, and progressively reads any bundled reference files on demand.**The config row is what makes a skill a scout.** Any valid skill name works, so the `signals-scout-` prefix is optional.The prefix controls one thing: the coordinator globs `signals-scout-*` to auto-register a config for a skill that has none.-A skill with any other name needs its config created alongside it, which is what `scout-create-prepare` / `-execute` does.+A skill with any other name needs its config created alongside it, which is what `scout-create` does.## The job before the writing@@ -67,10 +67,10 @@ There are two independent decisions: **what** you're building, and **where** it### Where-| Path | Mechanism | Use when |-| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |-| **Per-team** (the common user path) | Prepare a new runnable scout via `posthog:scout-create-prepare`, show its confirmation message, wait for the user to type `confirm`, then call `posthog:scout-create-execute`; edit its prompt or files later via `posthog:skill-update` / `-file-create`, and tune its runtime config via `posthog:scout-config-update`. | Customizing for one project. The harness globs the row in on the next tick; canonical sync leaves your edited ("diverged") row alone. |-| **Canonical** (PostHog contributors) | Edit disk under `products/signals/skills/signals-scout-*/`, lint/build, open a PR. | Improving a scout for _every_ enrolled project. `lazy_seed` mirrors it onto all enrolled teams on the next tick. |+| Path | Mechanism | Use when |+| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |+| **Per-team** (the common user path) | Create a new runnable scout via `posthog:scout-create`; edit its prompt or files later via `posthog:skill-update` / `-file-create`, and tune its runtime config via `posthog:scout-config-update`. | Customizing for one project. The harness globs the row in on the next tick; canonical sync leaves your edited ("diverged") row alone. |+| **Canonical** (PostHog contributors) | Edit disk under `products/signals/skills/signals-scout-*/`, lint/build, open a PR. | Improving a scout for _every_ enrolled project. `lazy_seed` mirrors it onto all enrolled teams on the next tick. |**Adapting-in-place tradeoff:** editing a canonical scout's row for your team marks it **diverged** — you stop receiving upstream improvements to that scout.If you only need an _additional_ behavior, prefer authoring a **new, differently-named** scout (`signals-scout-<your-scope>`) and leaving the canonical one intact.@@ -110,8 +110,7 @@ A measurement scout is exempt too, but only for the measure it invents: a subjec## Run posture (config)A scout's schedule and emit behavior live on its `SignalScoutConfig`, separate from the skill body.-For a **brand-new scout**, pass these settings in the nested `config` object of the `posthog:scout-create-prepare` call, including creating it disabled or in dry-run **before it ever runs**.-Show the returned confirmation message, wait for the user to type `confirm`, then call `posthog:scout-create-execute` with the returned `confirmation_hash` and that literal confirmation.+For a **brand-new scout**, pass these settings in the nested `config` object of the `posthog:scout-create` call, including creating it disabled or in dry-run **before it ever runs**.The endpoint creates the skill and config atomically, always opts the scout into the report channel, and safely re-applies config fields when the same definition is retried.Otherwise the coordinator auto-registers an enabled config on the default every-24-hours schedule on its next tick (up to ~30 min).For an **existing scout**, tune with `posthog:scout-config-update` (find the `id` via `-config-list`):@@ -211,7 +210,7 @@ The standard loop is **dogfood → run once ready → inspect**:1. Dogfood the discriminator + explore patterns yourself against the live project (above).Refine the body until the logic holds on real data — this is the cheap, iterable part.-2. Create the scout and its config together via `posthog:scout-create-prepare` → `-execute` (schedule and the default `emit=true` go in the nested `config`), then spend one `-run-now` to watch the whole scout execute end-to-end.+2. Create the scout and its config together via `posthog:scout-create` (schedule and the default `emit=true` go in the nested `config`), then spend one `-run-now` to watch the whole scout execute end-to-end.Leave `run_interval_minutes` at a sustainable value — you no longer need a short interval to force an early run.3. After the run finishes, read what it did: `posthog:inbox-reports-list` (the reports it actually wrote), `posthog:scout-runs-list` (run summaries), `-runs-retrieve` (full reasoning for one run), and `-scratchpad-search` (the durable memory it wrote).4. If it needs work, go back to dogfooding the queries by hand for the iteration — only spend another `-run-now` once you've batched a meaningful change worth a fresh end-to-end run.@@ -224,7 +223,7 @@ Treat suggestions as input, not instructions — the owner decides.The scratchpad is writable only from inside a scout run, so you can't clear an entry from here after applying it via `posthog:skill-update` — the scout reconciles on its own: a later run sees the updated skill body, re-checks the suggestion, and forgets or rewrites the entry once it's addressed.(Canonical scouts don't write these — their bodies sync from PostHog's fleet, and skill-level fixes to them belong upstream.)-**Want to be extra careful?** Set `emit=false` to dry-run first — pass `emit=false` in the nested `config` at `scout-create-prepare` time (or flip it later with `-config-update`), then trigger it with `-run-now`: it runs and logs what it _would_ have written (visible via `-runs-list` / `-runs-retrieve`) without writing to the inbox.+**Want to be extra careful?** Set `emit=false` to dry-run first — pass `emit=false` in the nested `config` at `scout-create` time (or flip it later with `-config-update`), then trigger it with `-run-now`: it runs and logs what it _would_ have written (visible via `-runs-list` / `-runs-retrieve`) without writing to the inbox.Inspect, refine, then flip `emit=true` and run it again.Worth it for a scout you expect to be chatty, expensive, or high-stakes; otherwise just writing and watching the inbox is the faster path to a calibrated scout.diff --git a/products/signals/skills/authoring-scouts/references/lifecycle-and-testing.md b/products/signals/skills/authoring-scouts/references/lifecycle-and-testing.mdindex 4d9e53c59089..0808cf406a79 100644--- a/products/signals/skills/authoring-scouts/references/lifecycle-and-testing.md+++ b/products/signals/skills/authoring-scouts/references/lifecycle-and-testing.md@@ -9,8 +9,7 @@ How scouts get discovered, scheduled, and dispatched; the two distribution paths- **Config.** Each scout has one `SignalScoutConfig` per `(project, skill_name)` carrying `run_interval_minutes` (default 1440), `enabled`, `emit`, `network_access` (`trusted` default, `full` for scouts that read arbitrary external sites), and a `last_run_at` stamp.A config is **auto-registered** the first time the coordinator sees a `signals-scout-*` skill without one, so authoring a prefixed skill is enough to get a scout.A skill named anything else needs its config created with it.- Prepare a fresh per-team scout and its config together with `posthog:scout-create-prepare`; the nested `config` object sets its schedule, emit posture, and destinations before it can run.- Show the returned confirmation message, wait for the user to type `confirm`, then call `posthog:scout-create-execute` with the returned `confirmation_hash` and that literal confirmation.+ Create a fresh per-team scout and its config together with `posthog:scout-create`; the nested `config` object sets its schedule, emit posture, and destinations before it can run.The lower-level `posthog:scout-config-create` remains available when a skill already exists without a config.Config responses also carry the scout's `description`, read live from the skill's frontmatter — not a config field you set.- **Coordinator.** A periodic Temporal workflow ticks (~every 30 min).@@ -26,7 +25,7 @@ Config responses expose `status` and `pause_reason` read-only; writes flow throuSlowing it = a larger `run_interval_minutes`.Dry-running it = `emit=false`.Letting it reach sites outside the trusted-domain allowlist = `network_access="full"`.-All of these via `posthog:scout-config-update` (get the `id` from `-config-list`), or set at creation time in the nested `config` object passed to `posthog:scout-create-prepare`.+All of these via `posthog:scout-config-update` (get the `id` from `-config-list`), or set at creation time in the nested `config` object passed to `posthog:scout-create`.## Path A — per-team (skills store)@@ -40,11 +39,8 @@ posthog:skill-list {"search": "signals-scout"}# Read a canonical scout to use as a templateposthog:skill-get {"skill_name": "signals-scout-error-tracking"}-# New scout from scratch: prepare the complete definition and config.-posthog:scout-create-prepare {"name": "signals-scout-<scope>", "description": "...", "body": "...", "config": {"run_interval_minutes": 120}}--# Show the returned message and wait for the user to type `confirm`, then execute.-posthog:scout-create-execute {"confirmation_hash": "<returned-hash>", "confirmation": "confirm"}+# New scout from scratch: create the complete definition and config.+posthog:scout-create {"name": "signals-scout-<scope>", "description": "...", "body": "...", "config": {"run_interval_minutes": 120}}# Adapt an existing per-team scout — use the SMALLEST primitive (find/replace, not full-body)posthog:skill-get {"skill_name": "signals-scout-<scope>"} # get current version first@@ -99,7 +95,7 @@ There's no free test run, and it's slow (async, one run per call): firing the saThe loop is **dogfood → run once ready → inspect**:1. Dogfood the discriminator + explore patterns yourself against the live project (above), refining the body until the logic holds — the cheap, iterable part.-2. Create the scout and its config together via `posthog:scout-create-prepare` → `-execute` (the default `emit=true` goes in the nested `config`), leaving `run_interval_minutes` at a sustainable value — no short-interval trick needed.+2. Create the scout and its config together via `posthog:scout-create` (the default `emit=true` goes in the nested `config`), leaving `run_interval_minutes` at a sustainable value — no short-interval trick needed.Then spend one `-run-now` to watch the whole scout execute end-to-end, and inspect once it finishes:- `posthog:inbox-reports-list` — the reports it actually wrote.- `posthog:scout-runs-list` — run summaries.diff --git a/products/signals/skills/authoring-scouts/references/scout-anatomy.md b/products/signals/skills/authoring-scouts/references/scout-anatomy.mdindex 7d9ce3bc1e8c..467a7a84d026 100644--- a/products/signals/skills/authoring-scouts/references/scout-anatomy.md+++ b/products/signals/skills/authoring-scouts/references/scout-anatomy.md@@ -18,7 +18,7 @@ Any valid skill name works: lowercase letters, numbers, and hyphens.The `SignalScoutConfig` row is what makes a skill a scout.Name it in lowercase kebab-case after the surface or question the scout watches: `error-tracking`, `checkout-funnel`, `mcp-feedback`.The canonical fleet keeps the `signals-scout-` prefix, and a per-team scout can use it too.-The prefix only controls whether the coordinator auto-registers a config for a skill that has none, so a scout named anything else comes in through `scout-create-prepare` / `-execute`, which writes the skill and its config in one call.+The prefix only controls whether the coordinator auto-registers a config for a skill that has none, so a scout named anything else comes in through `scout-create`, which writes the skill and its config in one call.## Frontmatterdiff --git a/products/signals/skills/working-with-scouts/SKILL.md b/products/signals/skills/working-with-scouts/SKILL.mdindex b8c37c669db4..995e6596719c 100644--- a/products/signals/skills/working-with-scouts/SKILL.md+++ b/products/signals/skills/working-with-scouts/SKILL.md@@ -73,7 +73,7 @@ When you want something watched, pick the cheapest path that gets it watched —| A canonical scout already covers the surface | Nothing to build — confirm it's enabled, and leave it a **note** if you want its attention pointed somewhere specific. || The surface is covered but you want a temporary or specific focus | Leave a **note** (optionally with `expires_at`) — "watch the EU signup funnel this week", "we shipped a new checkout Tuesday, shifts after that are expected". || A covered scout keeps missing (or over-reporting) something structural | **Adapt** it — a disqualifier, threshold, or scope edit via `authoring-scouts`. Prefer a new differently-named scout for purely additive behavior, since editing a canonical scout's row marks it diverged and stops upstream improvements. |-| No scout covers it (a custom event, a niche funnel, an external system) | **Author a custom scout** via `authoring-scouts` (`posthog:scout-create-prepare` → user confirms → `-execute`). |+| No scout covers it (a custom event, a niche funnel, an external system) | **Author a custom scout** via `authoring-scouts` (`posthog:scout-create`). || You want a recurring **metric**, not reports — a subjective quality/classification score no query can compute | **Author a measurement scout** on the structured-output channel: it judges a sample every run and records schema-validated `$scout_structured_output` events you chart in insights (and a workflow can act on), filing a report only on a material shift. See the recurring measurement / LLM-judge pattern in `authoring-scouts`. || You want an answer _now_, once | Don't use a scout at all — just query the data directly. Scouts are for standing watches, not one-off questions. |diff --git a/products/signals/skills/working-with-scouts/references/delegation-recipes.md b/products/signals/skills/working-with-scouts/references/delegation-recipes.mdindex ccb0c7c03476..0249c90da6d7 100644--- a/products/signals/skills/working-with-scouts/references/delegation-recipes.md+++ b/products/signals/skills/working-with-scouts/references/delegation-recipes.md@@ -95,7 +95,7 @@ Reports reach people via `suggested_reviewers` — the inbox floats a report toFor a scout you expect to be chatty, expensive, or high-stakes:-1. Create it with **both** `enabled: false` and `emit: false` in the nested config at `posthog:scout-create-prepare` time.+1. Create it with **both** `enabled: false` and `emit: false` in the nested config at `posthog:scout-create` time.`emit: false` (dry-run) makes it log what it _would_ report without touching the inbox; `enabled: false` matters too, because a fresh enabled config has no `last_run_at` and the coordinator treats it as immediately due — it could burn a scheduled run (or 409 your manual one) before your controlled test.2. Spend one `posthog:scout-run-now` (it works on a disabled scout), then read the run via `exploring-scouts` to see what it would have written.Runs are metered against the project's daily budget — dogfood the queries by hand for iteration and save real runs for end-to-end checks.diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 3dcc2a248b42..10556e54759c 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -9734,12 +9734,12 @@"readOnlyHint": false}},- "scout-create-execute": {- "description": "Step 2 of 2 for create scout. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.",+ "scout-create": {+ "description": "Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.","category": "Signals","feature": "signals",- "summary": "Create a scout (execute)",- "title": "Create a scout (execute)",+ "summary": "Create a scout",+ "title": "Create a scout","required_scopes": ["llm_skill:write", "signal_scout:write"],"annotations": {"destructiveHint": false,@@ -9748,20 +9748,6 @@"readOnlyHint": false}},- "scout-create-prepare": {- "description": "Step 1 of 2 for create scout. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.",- "category": "Signals",- "feature": "signals",- "summary": "Create a scout (prepare)",- "title": "Create a scout (prepare)",- "required_scopes": ["llm_skill:write", "signal_scout:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },"scout-edit-report": {"description": "The report channel's edit half: rewrite a report's `title`/`summary`, append a note, and/or set its `suggested_reviewers`. Can target ANY of the project's inbox reports, not just scout-authored ones — the edit is attributed to this scout. Setting reviewers is how you rescue a report that surfaced routed to no one: it replaces the reviewer list and re-runs autostart, so a report missing a qualifying reviewer can open a draft PR. Each reviewer is a `github_login` and/or a PostHog `user_uuid` (resolved server-side to the linked GitHub login). Prefer `append_note` over rewriting a report you didn't author (additive and audit-friendly); title/summary edits are best-effort, since the pipeline may later re-research and overwrite them. Optional `append_evidence` adds observations to the report's evidence rail, each becoming a bound signal that moves the report's signal count and weight — use it for a new observation a reader should be able to check, and `append_note` for commentary. Optional `charts` is the full set of queries the inbox renders on the report — it replaces the report's charts rather than adding to them (omit it to leave them alone), so read the report first when you mean to add one. NOT idempotent — a retried `append_note` appends a second note. Opt-in: only available to scouts that list `edit_report` in their skill's `allowed_tools`.","category": "Signals",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 1e8d82ed35ab..08d8d7637787 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -10306,12 +10306,12 @@"readOnlyHint": false}},- "scout-create-execute": {- "description": "Step 2 of 2 for create scout. Verifies the confirmation_hash from -prepare and the literal \"confirm\" string typed by the user, then performs the action. ONLY call this after the user has explicitly typed \"confirm\" in chat. Original action: Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.",+ "scout-create": {+ "description": "Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.","category": "Signals","feature": "signals",- "summary": "Create a scout (execute)",- "title": "Create a scout (execute)",+ "summary": "Create a scout",+ "title": "Create a scout","required_scopes": ["llm_skill:write", "signal_scout:write"],"annotations": {"destructiveHint": false,@@ -10320,20 +10320,6 @@"readOnlyHint": false}},- "scout-create-prepare": {- "description": "Step 1 of 2 for create scout. Validates the arguments and returns a signed confirmation_hash plus a message to surface to the user. The user must reply with the literal word \"confirm\" before you call the matching -execute tool with the hash. Original action: Create a custom scout skill and its runnable config in one atomic call. Any valid skill name works and the `signals-scout-` prefix is optional. Pass the complete markdown prompt in `body`; include project-specific event or signal names, thresholds, investigation steps, and report criteria there. The server always grants the report-channel tools. Optional `files` bundle reference material, while `config` controls the rolling or cron schedule, enabled and dry-run posture, and typed output destinations such as Slack (a channel to post into, or users to DM directly). Repeating the same definition is safe and applies any supplied config fields. Reusing the name for a different definition returns a conflict.",- "category": "Signals",- "feature": "signals",- "summary": "Create a scout (prepare)",- "title": "Create a scout (prepare)",- "required_scopes": ["llm_skill:write", "signal_scout:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },"scout-edit-report": {"description": "The report channel's edit half: rewrite a report's `title`/`summary`, append a note, and/or set its `suggested_reviewers`. Can target ANY of the project's inbox reports, not just scout-authored ones — the edit is attributed to this scout. Setting reviewers is how you rescue a report that surfaced routed to no one: it replaces the reviewer list and re-runs autostart, so a report missing a qualifying reviewer can open a draft PR. Each reviewer is a `github_login` and/or a PostHog `user_uuid` (resolved server-side to the linked GitHub login). Prefer `append_note` over rewriting a report you didn't author (additive and audit-friendly); title/summary edits are best-effort, since the pipeline may later re-research and overwrite them. Optional `append_evidence` adds observations to the report's evidence rail, each becoming a bound signal that moves the report's signal count and weight — use it for a new observation a reader should be able to check, and `append_note` for commentary. Optional `charts` is the full set of queries the inbox renders on the report — it replaces the report's charts rather than adding to them (omit it to leave them alone), so read the report first when you mean to add one. NOT idempotent — a retried `append_note` appends a second note. Opt-in: only available to scouts that list `edit_report` in their skill's `allowed_tools`.","category": "Signals",diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.tsindex 2f28f3664317..4633164adcd2 100644--- a/services/mcp/src/tools/generated/signals.ts+++ b/services/mcp/src/tools/generated/signals.ts@@ -4,12 +4,6 @@ import { z } from 'zod'import type { Schemas } from '@/api/generated'import * as orvalSchemas from '@/generated/signals/api'import { normalizeParamAliases } from '@/tools/cast-helpers'-import { getConfirmedActionRuntime } from '@/tools/confirmed-action-registry'-import {- executeConfirmedAction,- prepareConfirmedAction,- type PrepareConfirmedActionResult,-} from '@/tools/confirmed-action-runtime'import {withPostHogUrl,withAgentNote,@@ -770,51 +764,11 @@ const ScoutCreateSchema = () => {return SignalsScoutCreateBody}-const ScoutCreateSchemaExecute = z.strictObject({- confirmation_hash: z- .string()- .describe('The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.'),- confirmation: z.string().describe('The literal string "confirm", typed by the user in chat. Required to proceed.'),-})--const scoutCreatePrepare = (): ToolBase<ReturnType<typeof ScoutCreateSchema>, PrepareConfirmedActionResult> => ({- name: 'scout-create-prepare',+const scoutCreate = (): ToolBase<ReturnType<typeof ScoutCreateSchema>, Schemas.SignalScoutCreateResponse> => ({+ name: 'scout-create',schema: ScoutCreateSchema(),handler: async (context: Context, params: z.infer<ReturnType<typeof ScoutCreateSchema>>) => {- const __runtime = getConfirmedActionRuntime()- const __scopeProjectId = await context.stateManager.getProjectId()- return await prepareConfirmedAction(context, {- args: params,- purpose: 'scout-create',- actionLabel: 'create scout',- messageTemplate:- "About to create scout '{name}', a persistent automation that can run unattended on its configured schedule and write reports to the inbox when enabled with emit on. Reply 'confirm' to create it.\n",- codec: __runtime.codec,- stash: __runtime.stash,- boundScope: { projectId: String(__scopeProjectId) },- })- },-})--const scoutCreateExecute = (): ToolBase<typeof ScoutCreateSchemaExecute, Schemas.SignalScoutCreateResponse> => ({- name: 'scout-create-execute',- schema: ScoutCreateSchemaExecute,- handler: async (context: Context, confirmationParams: z.infer<typeof ScoutCreateSchemaExecute>) => {- const __runtime = getConfirmedActionRuntime()- const __scopeProjectId = await context.stateManager.getProjectId()- const __guard = await executeConfirmedAction<z.infer<ReturnType<typeof ScoutCreateSchema>>>(context, {- incomingArgs: confirmationParams,- purpose: 'scout-create',- codec: __runtime.codec,- ledger: __runtime.ledger,- stash: __runtime.stash,- expectedScope: { projectId: String(__scopeProjectId) },- })- if (!__guard.ok) {- return __guard.result as never- }- const params = __guard.verifiedArgs- const projectId = __scopeProjectId+ const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.name !== undefined) {body['name'] = params.name@@ -2047,8 +2001,7 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {'scout-config-list': scoutConfigList,'scout-config-sync': scoutConfigSync,'scout-config-update': scoutConfigUpdate,- 'scout-create-prepare': scoutCreatePrepare,- 'scout-create-execute': scoutCreateExecute,+ 'scout-create': scoutCreate,'scout-edit-report': scoutEditReport,'scout-emit-report': scoutEmitReport,'scout-emit-signal': scoutEmitSignal,diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-execute.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-execute.jsondeleted file mode 100644index f9e863b2ae53..000000000000--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-execute.json+++ /dev/null@@ -1,16 +0,0 @@-{- "$schema": "https://json-schema.org/draft/2020-12/schema",- "additionalProperties": false,- "properties": {- "confirmation": {- "description": "The literal string \"confirm\", typed by the user in chat. Required to proceed.",- "type": "string"- },- "confirmation_hash": {- "description": "The confirmation_hash returned by the matching -prepare tool. Pass it back verbatim.",- "type": "string"- }- },- "required": ["confirmation_hash", "confirmation"],- "type": "object"-}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create.jsonsimilarity index 100%rename from services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.jsonrename to services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create.jsondiff --git a/services/mcp/tests/unit/confirmed-action-runtime.test.ts b/services/mcp/tests/unit/confirmed-action-runtime.test.tsindex c91d5aba1bac..2382cff53eb0 100644--- a/services/mcp/tests/unit/confirmed-action-runtime.test.ts+++ b/services/mcp/tests/unit/confirmed-action-runtime.test.ts@@ -107,15 +107,15 @@ describe('prepareConfirmedAction', () => {it('keeps the hash small and constant-size regardless of args size', async () => {// The args live in the stash, not the token. If someone regresses to- // signing them inline, a large payload (a scout body + files) makes+ // signing them inline, a large payload (a resource body + files) makes// the hash tens of kilobytes that the model must relay verbatim —// this catches that by preparing ~200 KB of args.const codec = makeCodec()const { stash } = makeStash()const result = await prepareConfirmedAction(makeContext('did-1'), {- args: { name: 'signals-scout-big', body: 'x'.repeat(200_000) },- purpose: 'scout-create',- actionLabel: 'create scout',+ args: { name: 'resource-big', body: 'x'.repeat(200_000) },+ purpose: 'resource-create',+ actionLabel: 'create resource',messageTemplate: 'msg',codec,stash,@@ -132,8 +132,8 @@ describe('prepareConfirmedAction', () => {await expect(prepareConfirmedAction(makeContext('did-1'), {args: { body: 'x'.repeat(1_100_000) },- purpose: 'scout-create',- actionLabel: 'create scout',+ purpose: 'resource-create',+ actionLabel: 'create resource',messageTemplate: 'msg',codec,stash,@@ -159,8 +159,8 @@ describe('prepareConfirmedAction', () => {for (let i = 0; i < 23; i++) {await prepareConfirmedAction(makeContext('did-1'), {args,- purpose: 'scout-create',- actionLabel: 'create scout',+ purpose: 'resource-create',+ actionLabel: 'create resource',messageTemplate: 'msg',codec,stash,@@ -169,8 +169,8 @@ describe('prepareConfirmedAction', () => {await expect(prepareConfirmedAction(makeContext('did-1'), {args,- purpose: 'scout-create',- actionLabel: 'create scout',+ purpose: 'resource-create',+ actionLabel: 'create resource',messageTemplate: 'msg',codec,stash,