Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(signals): surface scout emit-skip remediation and eligibility (#68005)

posthog[bot]e5dc52b7ee8c
diff --git a/products/signals/backend/scout_harness/profile/builders.py b/products/signals/backend/scout_harness/profile/builders.py
index dad1f2745661..6b8b458a3170 100644
--- a/products/signals/backend/scout_harness/profile/builders.py
+++ b/products/signals/backend/scout_harness/profile/builders.py
@@ -7,7 +7,8 @@ the tools layer dumps it into the `SignalProjectProfile.payload` jsonb column.
Sections fall into three layers. **Capability / configured (sticky)** — `project_context`,
`products_in_use`, `product_intents`, `integrations`, `external_data_sources`,
-`signal_source_configs`. Answers "what's turned on." **Aggregated recency** —
+`signal_source_configs`, `emit_eligibility` (whether findings can reach the inbox at all).
+Answers "what's turned on." **Aggregated recency** —
`recent_activity` (per-scope counts off the activity log, cross-cutting orientation
across every entity type). **Per-entity recent inventory** — `recent_dashboards`,
`recent_surveys`, `recent_feature_flags`, `recent_experiments`, `recent_alerts`,
@@ -69,7 +70,7 @@ logger = logging.getLogger(__name__)
# rows whose `source_version` doesn't match the current build, so adding a new key here
# (or restructuring an existing one) without bumping the version would silently mix old
# and new shapes in the cache.
-INVENTORY_SOURCE_VERSION = "v7"
+INVENTORY_SOURCE_VERSION = "v8"
# Top-events ClickHouse query bounds. 7d is short enough to spot recent bursts and long
# enough to stabilize counts on low-traffic teams; 50 covers the long tail without
@@ -127,6 +128,7 @@ def build_inventory(team: Team) -> Inventory:
"integrations": _integrations(team),
"external_data_sources": _external_data_sources(team),
"signal_source_configs": _signal_source_configs(team),
+ "emit_eligibility": _emit_eligibility(team),
"existing_inbox_reports": _existing_inbox_reports(team),
"recent_activity": _recent_activity(team),
"recent_reviewer_corrections": _recent_reviewer_corrections(team),
@@ -248,6 +250,40 @@ def _signal_source_configs(team: Team) -> dict[str, list[dict[str, str]]]:
return {"enabled": enabled, "disabled": disabled}
+def _emit_eligibility(team: Team) -> dict[str, Any]:
+ """Whether scout findings can actually reach the inbox for this team.
+
+ Mirrors the team/org-level half of the shared emit preflight (`_preflight_emit_gates`) so a
+ scout can read it at cold start and quick-close before doing throwaway work whose output would
+ be silently dropped. Both the signal and report channels gate on the same two conditions: the
+ org must have approved AI data processing, and the `signals_scout` source must be enabled.
+ `remediation` reuses the emit path's authoritative pointers so the profile and the skip
+ response never drift.
+ """
+ # Deferred to break the profile↔tools import cycle: `tools/__init__` eagerly imports
+ # `tools.profile`, which imports this `profile` package, so a module-level import here would
+ # re-enter a half-initialized `profile` package during `tools` package init.
+ from products.signals.backend.scout_harness.tools.emit import ( # noqa: PLC0415
+ SOURCE_PRODUCT,
+ SOURCE_TYPE,
+ remediation_for_skip,
+ )
+
+ ai_processing_approved = bool(team.organization.is_ai_data_processing_approved)
+ source_enabled = SignalSourceConfig.is_source_enabled(team.id, SOURCE_PRODUCT, SOURCE_TYPE)
+ can_emit = ai_processing_approved and source_enabled
+ # Point at the first failing gate, matching the preflight's check order.
+ blocking_reason = (
+ None if can_emit else ("ai_processing_not_approved" if not ai_processing_approved else "source_disabled")
+ )
+ return {
+ "ai_processing_approved": ai_processing_approved,
+ "source_enabled": source_enabled,
+ "can_emit": can_emit,
+ "remediation": remediation_for_skip(blocking_reason),
+ }
+
+
def _existing_inbox_reports(team: Team) -> dict[str, Any]:
"""Counts of existing inbox reports grouped by `status`.
diff --git a/products/signals/backend/scout_harness/profile/schema.py b/products/signals/backend/scout_harness/profile/schema.py
index 7e3620479b7a..51c202a997b4 100644
--- a/products/signals/backend/scout_harness/profile/schema.py
+++ b/products/signals/backend/scout_harness/profile/schema.py
@@ -62,6 +62,24 @@ class SignalSourceConfigs(_Section):
disabled: list[SignalSourceConfigEntry]
+class EmitEligibility(_Section):
+ """Whether a scout's findings can actually reach the inbox for this team.
+
+ Both the signal channel (`emit_signal`) and the report channel (`emit_report`) pass the
+ same team/org-level preflight gates: the organization must have approved AI data processing
+ and the `signals_scout` signal source must be enabled. When either is off, every emit is
+ silently dropped — so a scout can read this at cold start and quick-close instead of doing
+ throwaway investigation whose output never surfaces. `remediation` is the one-line next step
+ when `can_emit` is False. Per-scout state (the config's dry-run `emit` toggle) is not covered
+ here — this is the team-wide floor, not a single scout's config.
+ """
+
+ ai_processing_approved: bool
+ source_enabled: bool
+ can_emit: bool
+ remediation: str | None
+
+
class StatusCount(_Section):
status: str
count: int
@@ -266,6 +284,7 @@ class Inventory(_Section):
integrations: list[IntegrationEntry]
external_data_sources: list[ExternalDataSourceEntry]
signal_source_configs: SignalSourceConfigs
+ emit_eligibility: EmitEligibility
existing_inbox_reports: ExistingInboxReports
recent_activity: RecentActivity
recent_reviewer_corrections: RecentReviewerCorrections
diff --git a/products/signals/backend/scout_harness/prompt.py b/products/signals/backend/scout_harness/prompt.py
index 32b707059883..4b8c80dfd177 100644
--- a/products/signals/backend/scout_harness/prompt.py
+++ b/products/signals/backend/scout_harness/prompt.py
@@ -651,4 +651,12 @@ would otherwise take 4-5 discovery calls. Treat it as ground truth: it's
computed from authoritative tables, distinct from the scout-inferred notes
in `signals-scout-scratchpad-search`.
+Check `emit_eligibility.can_emit` first. If it's `false`, nothing you emit this
+run can reach the inbox. This profile is cached (up to ~1h), so an admin may have
+just fixed the gate — before acting, re-fetch once with `force_refresh=true` to
+confirm against the live state. If it's still `false`, read
+`emit_eligibility.remediation` for the one-line reason and next step, note it in
+your run summary, and close out immediately rather than investigating findings
+that would be silently dropped.
+
{tail}"""
diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.py
index c1194436fab7..d4c9a36d81f3 100644
--- a/products/signals/backend/scout_harness/serializers.py
+++ b/products/signals/backend/scout_harness/serializers.py
@@ -572,6 +572,14 @@ class EmitFindingResponseSerializer(serializers.Serializer):
allow_null=True,
help_text="`ai_processing_not_approved` | `source_disabled` | null when emitted normally.",
)
+ remediation = serializers.CharField(
+ allow_null=True,
+ help_text=(
+ "One-line, actionable next step when `skipped_reason` is set and the block is fixable "
+ "(e.g. an org admin must approve AI data processing). Null when emitted normally or the "
+ "skip isn't something the scout can act on."
+ ),
+ )
# --- Report authoring (emit_report / edit_report) --------------------------
@@ -720,6 +728,14 @@ class EmitReportResponseSerializer(serializers.Serializer):
allow_null=True,
help_text="When the safety judge suppressed the report, why; null when safe.",
)
+ remediation = serializers.CharField(
+ allow_null=True,
+ help_text=(
+ "One-line, actionable next step when `skipped_reason` is set and the block is fixable "
+ "(e.g. an org admin must approve AI data processing). Null when the report was authored "
+ "or the skip isn't something the scout can act on."
+ ),
+ )
class EditReportRequestSerializer(serializers.Serializer):
@@ -831,6 +847,29 @@ class SignalSourceConfigsBucketsSerializer(serializers.Serializer):
)
+class EmitEligibilitySerializer(serializers.Serializer):
+ """`inventory.emit_eligibility` — whether scout findings can reach the inbox for this team."""
+
+ ai_processing_approved = serializers.BooleanField(
+ help_text="Whether the organization has approved AI data processing (an org-level gate on all scout emits).",
+ )
+ source_enabled = serializers.BooleanField(
+ help_text="Whether the `signals_scout` signal source is enabled for this team.",
+ )
+ can_emit = serializers.BooleanField(
+ help_text=(
+ "True only when both team/org-level gates pass, so scout findings (signal and report "
+ "channels alike) actually reach the inbox. When False, every emit is silently dropped — "
+ "quick-close instead of doing throwaway investigation. Does not account for a scout's "
+ "own dry-run `emit` toggle, which is per-config, not team-wide."
+ ),
+ )
+ remediation = serializers.CharField(
+ allow_null=True,
+ help_text="One-line next step to unblock emits when `can_emit` is False; null when emits can flow.",
+ )
+
+
class InboxReportStatusBucketSerializer(serializers.Serializer):
"""One bucket in `inventory.existing_inbox_reports.by_status`."""
@@ -1225,6 +1264,13 @@ class ProjectProfileInventorySerializer(serializers.Serializer):
signal_source_configs = SignalSourceConfigsBucketsSerializer(
help_text="Signal source configs split into enabled / disabled buckets.",
)
+ emit_eligibility = EmitEligibilitySerializer(
+ help_text=(
+ "Whether scout findings can actually reach the inbox for this team — the org-level AI "
+ "data-processing consent gate and the `signals_scout` source toggle, plus a one-line "
+ "remediation pointer. Read at cold start to quick-close before doing throwaway work."
+ ),
+ )
existing_inbox_reports = ExistingInboxReportsSerializer(
help_text="Counts of reports already in the inbox, grouped by status.",
)
diff --git a/products/signals/backend/scout_harness/tools/emit.py b/products/signals/backend/scout_harness/tools/emit.py
index fb74b626e591..f665418f5bb0 100644
--- a/products/signals/backend/scout_harness/tools/emit.py
+++ b/products/signals/backend/scout_harness/tools/emit.py
@@ -102,11 +102,17 @@ class EmitResult:
- "scout_emit_disabled": the scout's config has emit=False (dry-run)
- "ai_processing_not_approved": team's organization has not approved AI processing
- "source_disabled": SignalSourceConfig disables the signals_scout source for this team
+
+ `remediation` carries a one-line, scout-actionable next step whenever the skip is one the
+ scout can act on (see `EMIT_SKIP_REMEDIATION`); None when emitted normally or nothing is
+ actionable. It exists so a gate-skipped emit isn't a dead end — the scout learns why its
+ finding was dropped and how to unblock it instead of burning the run producing a lost finding.
"""
finding_id: str
emitted: bool
skipped_reason: str | None
+ remediation: str | None = None
async def emit_finding(
@@ -169,7 +175,9 @@ async def emit_finding(
preflight,
extra={**attempt_extra, "skipped_reason": preflight},
)
- return EmitResult(finding_id=finding_id, emitted=False, skipped_reason=preflight)
+ return EmitResult(
+ finding_id=finding_id, emitted=False, skipped_reason=preflight, remediation=remediation_for_skip(preflight)
+ )
# Deferred to keep the harness module import lightweight — emitting is an opt-in path here.
from products.signals.backend.facade.api import emit_signal
@@ -263,7 +271,9 @@ def emit_finding_sync(
preflight,
extra={**attempt_extra, "skipped_reason": preflight},
)
- return EmitResult(finding_id=finding_id, emitted=False, skipped_reason=preflight)
+ return EmitResult(
+ finding_id=finding_id, emitted=False, skipped_reason=preflight, remediation=remediation_for_skip(preflight)
+ )
from products.signals.backend.facade.api import emit_signal
@@ -527,3 +537,35 @@ def _preflight_emit_gates(team: Team, run: SignalScoutRun) -> str | None:
if not SignalSourceConfig.is_source_enabled(team.id, SOURCE_PRODUCT, SOURCE_TYPE):
return "source_disabled"
return None
+
+
+# One-line, scout-actionable next step for each preflight skip reason. A gate-skipped emit
+# otherwise hands back a bare reason code with no remediation — the scout can't tell whether the
+# block is fixable (an org-level consent gate) or terminal, so it burns a full run producing a
+# finding that is silently dropped before the inbox with no way to know why or how to fix it.
+# `None` for reasons the scout itself can't act on (e.g. a config deleted mid-run).
+EMIT_SKIP_REMEDIATION: dict[str, str | None] = {
+ "scout_config_missing": None,
+ "scout_emit_disabled": (
+ "This scout is in dry-run: its config has emit disabled. Enable emit on the scout's config "
+ "(scout/config `emit=true`) for its findings to reach the inbox."
+ ),
+ "ai_processing_not_approved": (
+ "This organization has not approved AI data processing, so no scout finding can reach the "
+ "inbox. An org admin must turn on the 'Enable PostHog features that use third-party AI "
+ "services' toggle in Organization settings → AI service providers."
+ ),
+ "source_disabled": (
+ "The signals_scout source is disabled for this team, so findings are dropped before the "
+ "inbox. Re-enable it in the Signals source configuration."
+ ),
+}
+
+
+def remediation_for_skip(skipped_reason: str | None) -> str | None:
+ """One-line next step for a preflight skip reason, or None when emitted normally / nothing the
+ scout can act on. Keeps the pointer authoritative in one place so the emit skip response and the
+ project-profile eligibility section never drift."""
+ if skipped_reason is None:
+ return None
+ return EMIT_SKIP_REMEDIATION.get(skipped_reason)
diff --git a/products/signals/backend/scout_harness/tools/report.py b/products/signals/backend/scout_harness/tools/report.py
index 8f58c220894d..5870eb048b9b 100644
--- a/products/signals/backend/scout_harness/tools/report.py
+++ b/products/signals/backend/scout_harness/tools/report.py
@@ -51,6 +51,7 @@ from products.signals.backend.scout_harness.tools.emit import (
_assert_team_owns_run,
_preflight_emit_gates,
_resolve_task_id,
+ remediation_for_skip,
)
from products.signals.backend.scout_report import (
MAX_REPORT_SIGNALS,
@@ -111,6 +112,9 @@ class EmitReportResult:
`report_id` even when it was suppressed). `emitted` means it actually surfaced in the inbox
(status READY or PENDING_INPUT); a safety-suppressed or not-actionable report has emitted=False.
`skipped_reason` is set only when a preflight gate stopped the call before any report was created.
+ `remediation` carries a one-line, scout-actionable next step for that skip (see
+ `EMIT_SKIP_REMEDIATION`) so a gate-skipped report isn't a dead end — the scout learns why its
+ report was dropped and how to unblock it rather than losing a full run to a silent skip.
"""
report_id: str | None
@@ -118,6 +122,7 @@ class EmitReportResult:
emitted: bool
skipped_reason: str | None
safety_explanation: str | None
+ remediation: str | None = None
@dataclass(frozen=True)
@@ -186,7 +191,12 @@ def _normalize_repository(repository: str | None) -> str | None:
def _gate_skip_result(preflight: str) -> EmitReportResult:
logger.warning("signals_scout.emit_report: skipped %s", preflight, extra={"skipped_reason": preflight})
return EmitReportResult(
- report_id=None, status=None, emitted=False, skipped_reason=preflight, safety_explanation=None
+ report_id=None,
+ status=None,
+ emitted=False,
+ skipped_reason=preflight,
+ safety_explanation=None,
+ remediation=remediation_for_skip(preflight),
)
diff --git a/products/signals/backend/scout_harness/views.py b/products/signals/backend/scout_harness/views.py
index 0b6687e2901e..6f985f900405 100644
--- a/products/signals/backend/scout_harness/views.py
+++ b/products/signals/backend/scout_harness/views.py
@@ -767,6 +767,7 @@ class SignalScoutRunViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
"finding_id": result.finding_id,
"emitted": result.emitted,
"skipped_reason": result.skipped_reason,
+ "remediation": result.remediation,
}
).data,
status=status.HTTP_200_OK,
@@ -885,6 +886,7 @@ class SignalScoutRunViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
"emitted": result.emitted,
"skipped_reason": result.skipped_reason,
"safety_explanation": result.safety_explanation,
+ "remediation": result.remediation,
}
).data,
status=status.HTTP_200_OK,
diff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.py
index a6ac507f3034..bc3e110f37b5 100644
--- a/products/signals/backend/test/test_scout_harness_api.py
+++ b/products/signals/backend/test/test_scout_harness_api.py
@@ -888,6 +888,7 @@ class TestAgentHarnessProjectProfileAPI(APIBaseTest):
"integrations",
"external_data_sources",
"signal_source_configs",
+ "emit_eligibility",
"existing_inbox_reports",
"recent_activity",
"recent_dashboards",
diff --git a/products/signals/backend/test/test_scout_harness_profile.py b/products/signals/backend/test/test_scout_harness_profile.py
index 3a7ebf4f845c..f372ca27f8aa 100644
--- a/products/signals/backend/test/test_scout_harness_profile.py
+++ b/products/signals/backend/test/test_scout_harness_profile.py
@@ -36,6 +36,7 @@ from products.signals.backend.scout_harness.profile.builders import (
RECENT_ACTIVITY_WINDOW_DAYS,
REVIEWER_CORRECTIONS_WINDOW_DAYS,
_business_knowledge,
+ _emit_eligibility,
_existing_inbox_reports,
_external_data_sources,
_integrations,
@@ -194,6 +195,39 @@ class TestSignalSourceConfigs(BaseTest):
assert result["disabled"][0]["source_product"] == "linear"
+class TestEmitEligibility(BaseTest):
+ def test_can_emit_when_ai_approved_and_source_on(self) -> None:
+ # Default org has AI processing approved; scout source is fail-open (no disabled row).
+ result = _emit_eligibility(self.team)
+ assert result["ai_processing_approved"] is True
+ assert result["source_enabled"] is True
+ assert result["can_emit"] is True
+ assert result["remediation"] is None
+
+ def test_blocked_with_remediation_when_ai_not_approved(self) -> None:
+ # Mutate through team.organization — the exact instance the builder reads — so the change is
+ # visible regardless of Django's per-instance FK caching.
+ self.team.organization.is_ai_data_processing_approved = False
+ self.team.organization.save()
+ result = _emit_eligibility(self.team)
+ assert result["ai_processing_approved"] is False
+ assert result["can_emit"] is False
+ # The remediation must be actionable, not a bare reason code — this is the reported symptom.
+ assert result["remediation"] and "AI data processing" in result["remediation"]
+
+ def test_blocked_with_remediation_when_source_disabled(self) -> None:
+ SignalSourceConfig.objects.create(
+ team=self.team,
+ source_product=SignalSourceConfig.SourceProduct.SIGNALS_SCOUT,
+ source_type=SignalSourceConfig.SourceType.CROSS_SOURCE_ISSUE,
+ enabled=False,
+ )
+ result = _emit_eligibility(self.team)
+ assert result["source_enabled"] is False
+ assert result["can_emit"] is False
+ assert result["remediation"] and "source" in result["remediation"]
+
+
class TestExistingInboxReports(BaseTest):
def test_groups_by_status_excluding_deleted_and_suppressed(self) -> None:
SignalReport.objects.create(team=self.team, status=SignalReport.Status.POTENTIAL)
@@ -707,6 +741,7 @@ class TestBuildInventory(BaseTest):
"integrations",
"external_data_sources",
"signal_source_configs",
+ "emit_eligibility",
"existing_inbox_reports",
"recent_activity",
"recent_reviewer_corrections",
diff --git a/products/signals/backend/test/test_scout_harness_tools.py b/products/signals/backend/test/test_scout_harness_tools.py
index 8c5a40ee3dd3..6ef9cdcdf9b1 100644
--- a/products/signals/backend/test/test_scout_harness_tools.py
+++ b/products/signals/backend/test/test_scout_harness_tools.py
@@ -852,6 +852,8 @@ async def test_emit_finding_returns_skipped_when_ai_processing_not_approved(arun
assert result.emitted is False
assert result.skipped_reason == "ai_processing_not_approved"
+ # The skip must carry an actionable next step so the scout isn't blocked with a dead end.
+ assert result.remediation and "AI data processing" in result.remediation
mock_emit.assert_not_called()
diff --git a/products/signals/backend/test/test_scout_report_api.py b/products/signals/backend/test/test_scout_report_api.py
index b35062bb7d01..5cbbbf46ab70 100644
--- a/products/signals/backend/test/test_scout_report_api.py
+++ b/products/signals/backend/test/test_scout_report_api.py
@@ -120,6 +120,9 @@ class TestScoutReportAPI(APIBaseTest):
body = response.json()
assert body["skipped_reason"] == "ai_processing_not_approved"
assert body["report_id"] is None
+ # A gate-skipped report must hand back an actionable next step, not a bare reason code —
+ # otherwise the scout is blocked with a dead end and loses the whole run's work.
+ assert body["remediation"] and "AI data processing" in body["remediation"]
# Gate stops before judging or persisting.
judge_mock.assert_not_awaited()
embed_mock.assert_not_called()
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index 045cd84d1187..e7ef327219ef 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -650,6 +650,23 @@ export interface SignalSourceConfigsBucketsApi {
disabled: SignalSourceConfigEntryApi[]
}
+/**
+ * `inventory.emit_eligibility` — whether scout findings can reach the inbox for this team.
+ */
+export interface EmitEligibilityApi {
+ /** Whether the organization has approved AI data processing (an org-level gate on all scout emits). */
+ ai_processing_approved: boolean
+ /** Whether the `signals_scout` signal source is enabled for this team. */
+ source_enabled: boolean
+ /** True only when both team/org-level gates pass, so scout findings (signal and report channels alike) actually reach the inbox. When False, every emit is silently dropped — quick-close instead of doing throwaway investigation. Does not account for a scout's own dry-run `emit` toggle, which is per-config, not team-wide. */
+ can_emit: boolean
+ /**
+ * One-line next step to unblock emits when `can_emit` is False; null when emits can flow.
+ * @nullable
+ */
+ remediation: string | null
+}
+
/**
* One bucket in `inventory.existing_inbox_reports.by_status`.
*/
@@ -1087,6 +1104,8 @@ export interface ProjectProfileInventoryApi {
external_data_sources: ExternalDataSourceEntryApi[]
/** Signal source configs split into enabled / disabled buckets. */
signal_source_configs: SignalSourceConfigsBucketsApi
+ /** Whether scout findings can actually reach the inbox for this team — the org-level AI data-processing consent gate and the `signals_scout` source toggle, plus a one-line remediation pointer. Read at cold start to quick-close before doing throwaway work. */
+ emit_eligibility: EmitEligibilityApi
/** Counts of reports already in the inbox, grouped by status. */
existing_inbox_reports: ExistingInboxReportsApi
/** Per-scope counts off the activity log over the recent-activity window — cross-cutting orientation across every entity type (surveys, feature flags, experiments, dashboards, insights, cohorts, notebooks, actions, etc.). Each scope reports `edits` (total log entries), `users` (distinct user count), and `last_edit` (ISO-8601). Use to triage which scope a team has been working in lately before drilling down via the per-entity readers or `activity-log-list`. */
@@ -1523,6 +1542,11 @@ export interface EmitReportResponseApi {
* @nullable
*/
safety_explanation: string | null
+ /**
+ * One-line, actionable next step when `skipped_reason` is set and the block is fixable (e.g. an org admin must approve AI data processing). Null when the report was authored or the skip isn't something the scout can act on.
+ * @nullable
+ */
+ remediation: string | null
}
/**
@@ -1613,6 +1637,11 @@ export interface EmitFindingResponseApi {
* @nullable
*/
skipped_reason: string | null
+ /**
+ * One-line, actionable next step when `skipped_reason` is set and the block is fixable (e.g. an org admin must approve AI data processing). Null when emitted normally or the skip isn't something the scout can act on.
+ * @nullable
+ */
+ remediation: string | null
}
/**
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 403c8ee27805..0315528efcb6 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -18320,6 +18320,23 @@ export namespace Schemas {
Disabled: 'disabled',
} as const;
+ /**
+ * `inventory.emit_eligibility` — whether scout findings can reach the inbox for this team.
+ */
+ export interface EmitEligibility {
+ /** Whether the organization has approved AI data processing (an org-level gate on all scout emits). */
+ ai_processing_approved: boolean;
+ /** Whether the `signals_scout` signal source is enabled for this team. */
+ source_enabled: boolean;
+ /** True only when both team/org-level gates pass, so scout findings (signal and report channels alike) actually reach the inbox. When False, every emit is silently dropped — quick-close instead of doing throwaway investigation. Does not account for a scout's own dry-run `emit` toggle, which is per-config, not team-wide. */
+ can_emit: boolean;
+ /**
+ * One-line next step to unblock emits when `can_emit` is False; null when emits can flow.
+ * @nullable
+ */
+ remediation: string | null;
+ }
+
/**
* One citation attached to a finding. Mirrors `SignalsScoutEvidenceEntry`.
*/
@@ -18408,6 +18425,11 @@ export namespace Schemas {
* @nullable
*/
skipped_reason: string | null;
+ /**
+ * One-line, actionable next step when `skipped_reason` is set and the block is fixable (e.g. an org admin must approve AI data processing). Null when emitted normally or the skip isn't something the scout can act on.
+ * @nullable
+ */
+ remediation: string | null;
}
/**
@@ -18499,6 +18521,11 @@ export namespace Schemas {
* @nullable
*/
safety_explanation: string | null;
+ /**
+ * One-line, actionable next step when `skipped_reason` is set and the block is fixable (e.g. an org admin must approve AI data processing). Null when the report was authored or the skip isn't something the scout can act on.
+ * @nullable
+ */
+ remediation: string | null;
}
export interface EnableWarehouseBackfillRequest {
@@ -44292,6 +44319,8 @@ export namespace Schemas {
external_data_sources: ExternalDataSourceEntry[];
/** Signal source configs split into enabled / disabled buckets. */
signal_source_configs: SignalSourceConfigsBuckets;
+ /** Whether scout findings can actually reach the inbox for this team — the org-level AI data-processing consent gate and the `signals_scout` source toggle, plus a one-line remediation pointer. Read at cold start to quick-close before doing throwaway work. */
+ emit_eligibility: EmitEligibility;
/** Counts of reports already in the inbox, grouped by status. */
existing_inbox_reports: ExistingInboxReports;
/** Per-scope counts off the activity log over the recent-activity window — cross-cutting orientation across every entity type (surveys, feature flags, experiments, dashboards, insights, cohorts, notebooks, actions, etc.). Each scope reports `edits` (total log entries), `users` (distinct user count), and `last_edit` (ISO-8601). Use to triage which scope a team has been working in lately before drilling down via the per-entity readers or `activity-log-list`. */