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.

chore(signals): drop the confidence field from the scout emit surface (#104290)

posthog[bot]4f8c7d2d2b65
diff --git a/products/signals/backend/contracts.py b/products/signals/backend/contracts.py
index 9485e5034f2e..cb8dcaff33e2 100644
--- a/products/signals/backend/contracts.py
+++ b/products/signals/backend/contracts.py
@@ -329,9 +329,6 @@ class SignalsScoutSignalExtra(SignalExtraBase):
finding_id: str
skill_name: str
skill_version: int
- # Deprecated: scouts are no longer asked for a confidence score. Kept optional so historical
- # signals and any custom skill still sending one continue to validate.
- confidence: float | None = None
severity: ReportPriority | None = None
hypothesis: str | None = None
evidence: list[SignalsScoutEvidenceEntry]
diff --git a/products/signals/backend/migrations/0145_untrack_signalscoutemission_confidence.py b/products/signals/backend/migrations/0145_untrack_signalscoutemission_confidence.py
new file mode 100644
index 000000000000..91deb9a2888f
--- /dev/null
+++ b/products/signals/backend/migrations/0145_untrack_signalscoutemission_confidence.py
@@ -0,0 +1,15 @@
+from django.db import migrations
+
+from posthog.migration_helpers import untrack_field
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("signals", "0144_signalscoutrun_updated_at"),
+ ]
+
+ operations = [
+ # Phase 2: the field leaves model state while the column stays, so a pod on either release
+ # can still write an emission row. The column drop follows one deploy cycle later.
+ untrack_field("signalscoutemission", "confidence"),
+ ]
diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txt
index d76a43c65386..367311cd45cf 100644
--- a/products/signals/backend/migrations/max_migration.txt
+++ b/products/signals/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0144_signalscoutrun_updated_at
+0145_untrack_signalscoutemission_confidence
diff --git a/products/signals/backend/models.py b/products/signals/backend/models.py
index 1968ec310cfd..a8a85e84f986 100644
--- a/products/signals/backend/models.py
+++ b/products/signals/backend/models.py
@@ -2711,9 +2711,6 @@ class SignalScoutEmission(TeamScopedRootMixin, UUIDModel):
# upstream by `MAX_FINDING_DESCRIPTION_LENGTH` on the emit serializer and the emit_signal
# token cap, so it stays well clear of row-size concerns.
description = models.TextField()
- # Deprecated: the emit contract no longer asks for a confidence score, so new rows are NULL.
- # Retained until emits carrying one have tailed off.
- confidence = models.FloatField(null=True, blank=True)
severity = models.CharField(max_length=20, null=True, blank=True)
# Slug tags the scout attached to the finding (normalized lowercase kebab-case, capped at
# emit). This row is what feeds the per-scout tag-vocabulary feedback loop in the run prompt
diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.py
index 02ecfd431173..27e7f4694977 100644
--- a/products/signals/backend/scout_harness/serializers.py
+++ b/products/signals/backend/scout_harness/serializers.py
@@ -316,12 +316,6 @@ class SignalScoutEmissionSerializer(serializers.ModelSerializer):
description = serializers.CharField(
help_text="The emitted finding prose — the signal's `description` as surfaced to the inbox.",
)
- confidence = serializers.FloatField(
- min_value=0.0,
- max_value=1.0,
- allow_null=True,
- help_text="Deprecated and no longer set on new findings. Null unless the run supplied one.",
- )
severity = serializers.ChoiceField(
choices=[(p.value, p.value) for p in Priority],
allow_null=True,
@@ -343,7 +337,6 @@ class SignalScoutEmissionSerializer(serializers.ModelSerializer):
"run_id",
"finding_id",
"description",
- "confidence",
"severity",
"tags",
"source_id",
@@ -1314,13 +1307,6 @@ class EmitFindingRequestSerializer(serializers.Serializer):
max_length=MAX_FINDING_DESCRIPTION_LENGTH,
help_text="Canonical evidence-bundle prose. Becomes the signal's `description`.",
)
- confidence = serializers.FloatField(
- min_value=0.0,
- max_value=1.0,
- required=False,
- allow_null=True,
- help_text="Deprecated and ignored. Nothing reads it; omit it. Still range-checked when supplied.",
- )
evidence = serializers.ListField(
child=EvidenceEntrySerializer(),
max_length=20,
diff --git a/products/signals/backend/scout_harness/tools/emit.py b/products/signals/backend/scout_harness/tools/emit.py
index 00e6a9d11a35..c8cb32c249f6 100644
--- a/products/signals/backend/scout_harness/tools/emit.py
+++ b/products/signals/backend/scout_harness/tools/emit.py
@@ -119,7 +119,6 @@ async def emit_finding(
run: SignalScoutRun,
description: str,
evidence: list[EvidenceEntry],
- confidence: float | None = None,
hypothesis: str | None = None,
severity: str | None = None,
dedupe_keys: list[str] | None = None,
@@ -134,7 +133,7 @@ async def emit_finding(
Same (non-idempotent) emit behavior as `emit_finding_sync`.
"""
_assert_team_owns_run(team, run)
- _validate_inputs(description, confidence, evidence, finding_id)
+ _validate_inputs(description, evidence, finding_id)
finding_id = finding_id or _new_finding_id()
tags = normalize_tags(tags)
task_id = await database_sync_to_async(_resolve_task_id, thread_sensitive=False)(run)
@@ -145,7 +144,6 @@ async def emit_finding(
finding_id=finding_id,
skill_name=run.skill_name,
skill_version=run.skill_version,
- confidence=confidence,
evidence=evidence,
hypothesis=hypothesis,
severity=severity,
@@ -193,7 +191,6 @@ async def emit_finding(
run_id=run.id,
finding_id=finding_id,
description=description,
- confidence=confidence,
severity=severity,
source_id=source_id,
tags=tags,
@@ -211,7 +208,6 @@ def emit_finding_sync(
run: SignalScoutRun,
description: str,
evidence: list[EvidenceEntry],
- confidence: float | None = None,
hypothesis: str | None = None,
severity: str | None = None,
dedupe_keys: list[str] | None = None,
@@ -228,7 +224,7 @@ def emit_finding_sync(
from asgiref.sync import async_to_sync
_assert_team_owns_run(team, run)
- _validate_inputs(description, confidence, evidence, finding_id)
+ _validate_inputs(description, evidence, finding_id)
finding_id = finding_id or _new_finding_id()
tags = normalize_tags(tags)
task_id = _resolve_task_id(run)
@@ -239,7 +235,6 @@ def emit_finding_sync(
finding_id=finding_id,
skill_name=run.skill_name,
skill_version=run.skill_version,
- confidence=confidence,
evidence=evidence,
hypothesis=hypothesis,
severity=severity,
@@ -286,7 +281,6 @@ def emit_finding_sync(
run_id=run.id,
finding_id=finding_id,
description=description,
- confidence=confidence,
severity=severity,
source_id=source_id,
tags=tags,
@@ -343,14 +337,11 @@ def normalize_tags(tags: list[str] | None) -> list[str] | None:
def _validate_inputs(
description: str,
- confidence: float | None,
evidence: list[EvidenceEntry],
finding_id: str | None,
) -> None:
if not description or not description.strip():
raise InvalidEmitError("description must not be empty")
- if confidence is not None and not 0.0 <= confidence <= 1.0:
- raise InvalidEmitError(f"confidence must be in [0.0, 1.0], got {confidence}")
if len(evidence) > MAX_EVIDENCE_ENTRIES:
raise InvalidEmitError(f"evidence has {len(evidence)} entries, max is {MAX_EVIDENCE_ENTRIES}")
# Reject before defaulting — a generated id is a safe 36-char uuid; only a caller-supplied
@@ -378,7 +369,6 @@ def _build_extra(
finding_id: str,
skill_name: str,
skill_version: int,
- confidence: float | None,
evidence: list[EvidenceEntry],
hypothesis: str | None,
severity: str | None,
@@ -398,8 +388,6 @@ def _build_extra(
"skill_version": float(skill_version),
"evidence": [asdict(e) for e in evidence],
}
- if confidence is not None:
- extra["confidence"] = confidence
if task_id is not None:
extra["task_id"] = task_id
if hypothesis is not None:
@@ -426,7 +414,6 @@ def _record_emit(
run_id: Any,
finding_id: str,
description: str,
- confidence: float | None,
severity: str | None,
source_id: str,
tags: list[str] | None,
@@ -460,7 +447,6 @@ def _record_emit(
scout_run=run,
finding_id=finding_id,
description=description,
- confidence=confidence,
severity=severity,
source_id=source_id,
tags=tags or [],
diff --git a/products/signals/backend/scout_harness/views.py b/products/signals/backend/scout_harness/views.py
index 3186bb24350d..e8750d2aca10 100644
--- a/products/signals/backend/scout_harness/views.py
+++ b/products/signals/backend/scout_harness/views.py
@@ -1101,7 +1101,6 @@ class SignalScoutRunViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
team=self.team,
run=run,
description=data["description"],
- confidence=data.get("confidence"),
evidence=evidence,
hypothesis=data.get("hypothesis") or None,
severity=data.get("severity") or None,
diff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.py
index fb2bf474b32d..7bbe03d35ae0 100644
--- a/products/signals/backend/test/test_scout_harness_api.py
+++ b/products/signals/backend/test/test_scout_harness_api.py
@@ -287,7 +287,6 @@ class TestScoutHarnessRunsAPI(APIBaseTest):
def _make_emission(team: Team, run: SignalScoutRun, *, finding_id: str, **overrides) -> SignalScoutEmission:
defaults: dict = {
"description": "Checkout 500s post-deploy",
- "confidence": 0.85,
"severity": "P1",
"source_id": f"run:{run.id}:finding:{finding_id}",
}
@@ -311,7 +310,7 @@ class TestScoutHarnessRunEmissionsAPI(APIBaseTest):
assert first["run_id"] == str(run.id)
assert first["description"] == "Checkout 500s post-deploy"
assert "weight" not in first
- assert first["confidence"] == 0.85
+ assert "confidence" not in first
assert first["severity"] == "P1"
assert first["tags"] == ["cost-spike"]
assert first["source_id"] == f"run:{run.id}:finding:{newer.finding_id}"
@@ -807,7 +806,6 @@ class TestScoutHarnessEmitFindingAPI(APIBaseTest):
def _payload(self, **overrides) -> dict:
body: dict = {
"description": "Checkout 500s spike correlates with payment-flag rollout",
- "confidence": 0.7,
"evidence": [
{
"source_product": "error_tracking",
@@ -859,30 +857,18 @@ class TestScoutHarnessEmitFindingAPI(APIBaseTest):
assert response.status_code == status.HTTP_400_BAD_REQUEST
mock_emit.assert_not_called()
- def test_emit_finding_without_confidence_leaves_it_unset(self) -> None:
- # `confidence` is retired from the emit contract: an emit that omits it succeeds, keeps the
- # key out of the signal's `extra`, and records NULL on the emission row.
- run = _make_run(self.team)
- payload = self._payload()
- payload.pop("confidence")
- with patch("products.signals.backend.facade.api.emit_signal", new_callable=AsyncMock) as mock_emit:
- response = self.client.post(self._emit_signal_url(str(run.id)), data=payload, format="json")
- assert response.status_code == status.HTTP_200_OK
- assert mock_emit.await_args is not None
- assert "confidence" not in mock_emit.await_args.kwargs["extra"]
- assert SignalScoutEmission.objects.get(scout_run=run).confidence is None
-
- @parameterized.expand([("below_range", -0.1), ("above_range", 1.1)])
- def test_emit_finding_rejects_out_of_range_confidence(self, _name: str, confidence: float) -> None:
- # A custom scout still sending the retired field gets the same error it got before, not a
- # silently accepted value.
+ @parameterized.expand([("in_range", 0.7), ("out_of_range", 1.1)])
+ def test_emit_finding_ignores_retired_confidence_field(self, _name: str, confidence: float) -> None:
+ # A custom scout still sending the retired field must keep emitting: the serializer drops the
+ # unknown key, so no value reaches the signal's `extra`, whatever it holds.
run = _make_run(self.team)
with patch("products.signals.backend.facade.api.emit_signal", new_callable=AsyncMock) as mock_emit:
response = self.client.post(
self._emit_signal_url(str(run.id)), data=self._payload(confidence=confidence), format="json"
)
- assert response.status_code == status.HTTP_400_BAD_REQUEST
- mock_emit.assert_not_called()
+ assert response.status_code == status.HTTP_200_OK
+ assert mock_emit.await_args is not None
+ assert "confidence" not in mock_emit.await_args.kwargs["extra"]
def test_emit_finding_rejects_non_in_progress_run(self) -> None:
TaskRun = apps.get_model("tasks", "TaskRun")
diff --git a/products/signals/backend/test/test_scout_harness_tools.py b/products/signals/backend/test/test_scout_harness_tools.py
index 77d9cbf97b04..6f6bbc14126d 100644
--- a/products/signals/backend/test/test_scout_harness_tools.py
+++ b/products/signals/backend/test/test_scout_harness_tools.py
@@ -848,38 +848,29 @@ class TestValidateEmitInputs:
def test_empty_description_raises(self) -> None:
with pytest.raises(InvalidEmitError, match="description"):
- _validate_inputs("", 0.5, [], None)
+ _validate_inputs("", [], None)
def test_whitespace_only_description_raises(self) -> None:
with pytest.raises(InvalidEmitError, match="description"):
- _validate_inputs(" \n\t", 0.5, [], None)
-
- @pytest.mark.parametrize("confidence", [-0.1, 1.1])
- def test_confidence_out_of_range_raises(self, confidence: float) -> None:
- with pytest.raises(InvalidEmitError, match="confidence"):
- _validate_inputs("ok", confidence, [], None)
-
- def test_omitted_confidence_passes(self) -> None:
- # The field is retired, so an emit that sends nothing must not trip the range check.
- _validate_inputs("ok", None, [], None)
+ _validate_inputs(" \n\t", [], None)
def test_too_many_evidence_entries_raises(self) -> None:
many = [EvidenceEntry(source_product="logs", summary=f"e{i}") for i in range(MAX_EVIDENCE_ENTRIES + 1)]
with pytest.raises(InvalidEmitError, match="evidence"):
- _validate_inputs("ok", 0.5, many, None)
+ _validate_inputs("ok", many, None)
def test_at_capacity_evidence_passes(self) -> None:
many = [EvidenceEntry(source_product="logs", summary=f"e{i}") for i in range(MAX_EVIDENCE_ENTRIES)]
# Should not raise.
- _validate_inputs("ok", 0.5, many, None)
+ _validate_inputs("ok", many, None)
def test_overlong_finding_id_raises(self) -> None:
with pytest.raises(InvalidEmitError, match="finding_id"):
- _validate_inputs("ok", 0.5, [], "x" * (MAX_FINDING_ID_LENGTH + 1))
+ _validate_inputs("ok", [], "x" * (MAX_FINDING_ID_LENGTH + 1))
def test_finding_id_at_capacity_passes(self) -> None:
# Should not raise — and a generated 36-char uuid is always well under the cap.
- _validate_inputs("ok", 0.5, [], "x" * MAX_FINDING_ID_LENGTH)
+ _validate_inputs("ok", [], "x" * MAX_FINDING_ID_LENGTH)
class TestNormalizeTags:
@@ -942,7 +933,6 @@ class TestBuildEmitExtra:
finding_id="finding-uuid",
skill_name="signals-scout-errors",
skill_version=2,
- confidence=0.7,
evidence=[EvidenceEntry(source_product="error_tracking", summary="500s on /checkout")],
hypothesis=None,
severity=None,
@@ -959,7 +949,6 @@ class TestBuildEmitExtra:
assert extra["task_run_id"] == "task-run-uuid"
assert extra["finding_id"] == "finding-uuid"
assert extra["skill_name"] == "signals-scout-errors"
- assert extra["confidence"] == 0.7
assert extra["evidence"] == [
{"source_product": "error_tracking", "summary": "500s on /checkout", "entity_id": None}
]
@@ -968,26 +957,6 @@ class TestBuildEmitExtra:
for opt in ("task_id", "hypothesis", "severity", "dedupe_keys", "time_range", "mcp_trace_id", "tags"):
assert opt not in extra
- def test_extra_omits_confidence_when_not_supplied(self) -> None:
- # Retired field: absent from `extra` rather than a null the pydantic contract would carry.
- extra = _build_extra(
- run_id="run-uuid",
- task_run_id="task-run-uuid",
- task_id=None,
- finding_id="finding-uuid",
- skill_name="signals-scout-errors",
- skill_version=2,
- confidence=None,
- evidence=[EvidenceEntry(source_product="error_tracking", summary="500s on /checkout")],
- hypothesis=None,
- severity=None,
- dedupe_keys=None,
- time_range=None,
- mcp_trace_id=None,
- tags=None,
- )
- assert "confidence" not in extra
-
def test_skill_version_cast_to_float(self) -> None:
extra = self._minimal()
# SignalsScoutSignalExtra.skill_version is float in posthog/schema.py.
@@ -1002,7 +971,6 @@ class TestBuildEmitExtra:
finding_id="finding-uuid",
skill_name="signals-scout-errors",
skill_version=1,
- confidence=0.9,
evidence=[EvidenceEntry(source_product="logs", summary="bursts of 500s", entity_id="log-1")],
hypothesis="checkout post-deploy regression",
severity="P1",
@@ -1105,7 +1073,6 @@ async def test_emit_finding_happy_path_calls_emit_signal_with_deterministic_sour
team=ateam_emit,
run=arun_emit,
description="Checkout 500s post-deploy",
- confidence=0.85,
evidence=evidence,
hypothesis="post-deploy regression",
finding_id="f-happy",
@@ -1139,7 +1106,6 @@ async def test_emit_finding_validation_error_does_not_emit(ateam_emit, arun_emit
team=ateam_emit,
run=arun_emit,
description="", # empty -> validation error
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
)
@@ -1159,7 +1125,6 @@ async def test_emit_finding_propagates_emit_signal_exception(ateam_emit, arun_em
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-fails",
)
@@ -1173,7 +1138,6 @@ async def test_emit_finding_auto_generates_finding_id_when_not_provided(ateam_em
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
)
@@ -1198,7 +1162,6 @@ async def test_emit_finding_returns_skipped_when_ai_processing_not_approved(arun
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-not-approved",
)
@@ -1227,7 +1190,6 @@ async def test_emit_finding_returns_skipped_when_source_disabled(arun_emit, atea
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-source-off",
)
@@ -1250,7 +1212,6 @@ async def test_emit_finding_returns_skipped_when_scout_emit_disabled(arun_emit,
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-dry-run",
)
@@ -1274,7 +1235,6 @@ async def test_emit_finding_fails_closed_when_config_missing(arun_emit, ateam_em
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-no-config",
)
@@ -1297,7 +1257,6 @@ async def test_emit_finding_records_tally_on_run(ateam_emit, arun_emit):
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id=fid,
)
@@ -1317,7 +1276,6 @@ async def test_emit_finding_persists_emission_rows(ateam_emit, arun_emit):
team=ateam_emit,
run=arun_emit,
description="Checkout 500s post-deploy",
- confidence=0.85,
evidence=[EvidenceEntry(source_product="error_tracking", summary="500s on /checkout")],
severity="P1",
finding_id="f-emit",
@@ -1330,7 +1288,6 @@ async def test_emit_finding_persists_emission_rows(ateam_emit, arun_emit):
assert emission.team_id == ateam_emit.id
assert emission.finding_id == "f-emit"
assert emission.description == "Checkout 500s post-deploy"
- assert emission.confidence == 0.85
assert emission.severity == "P1"
assert emission.tags == ["post-deploy-regression"]
assert emission.source_id == f"run:{arun_emit.id}:finding:f-emit"
@@ -1346,7 +1303,6 @@ async def test_emit_finding_normalizes_tags_into_extra_and_emission_row(ateam_em
team=ateam_emit,
run=arun_emit,
description="Checkout 500s post-deploy",
- confidence=0.85,
evidence=[EvidenceEntry(source_product="error_tracking", summary="500s on /checkout")],
finding_id="f-tags",
tags=["Cost Spike", "cost_spike", "silent-failure"],
@@ -1366,7 +1322,6 @@ async def test_emit_finding_without_tags_omits_extra_field_and_defaults_row_empt
team=ateam_emit,
run=arun_emit,
description="Checkout 500s post-deploy",
- confidence=0.85,
evidence=[EvidenceEntry(source_product="error_tracking", summary="500s on /checkout")],
finding_id="f-no-tags",
)
@@ -1391,7 +1346,6 @@ async def test_emit_finding_skip_does_not_record_tally(arun_emit, ateam_emit):
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-skip",
)
@@ -1416,7 +1370,6 @@ async def test_emit_finding_succeeds_when_tally_write_fails(ateam_emit, arun_emi
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-tally-fail",
)
@@ -1447,7 +1400,6 @@ async def test_emit_finding_fails_closed_when_config_deleted_then_recreated(arun
team=ateam_emit,
run=arun_emit,
description="d",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
finding_id="f-recreated-config",
)
@@ -1479,7 +1431,6 @@ async def test_emit_finding_rejects_team_run_mismatch(aorganization_emit, ateam_
team=other_team,
run=arun_emit, # owned by ateam_emit, not other_team
description="should be rejected",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
)
mock_emit.assert_not_called()
@@ -1510,7 +1461,6 @@ def test_emit_finding_sync_rejects_team_run_mismatch(db) -> None:
team=other_team,
run=run,
description="should be rejected",
- confidence=0.5,
evidence=[EvidenceEntry(source_product="logs", summary="x")],
)
mock_emit.assert_not_called()
diff --git a/products/signals/backend/test/test_scout_slack_delivery.py b/products/signals/backend/test/test_scout_slack_delivery.py
index e4127c8beef9..67ba501ed9d7 100644
--- a/products/signals/backend/test/test_scout_slack_delivery.py
+++ b/products/signals/backend/test/test_scout_slack_delivery.py
@@ -116,7 +116,6 @@ class TestScoutSlackDelivery(BaseTest):
scout_run=run,
finding_id="checkout/500s",
description=description,
- confidence=0.84,
severity="P1",
tags=["checkout", "regression"],
source_id=f"run:{run.id}:finding:checkout-500s",
diff --git a/products/signals/backend/test/test_signal_scout_models.py b/products/signals/backend/test/test_signal_scout_models.py
index 2620b4d959da..9c09649caca2 100644
--- a/products/signals/backend/test/test_signal_scout_models.py
+++ b/products/signals/backend/test/test_signal_scout_models.py
@@ -106,7 +106,6 @@ class TestSignalScoutModels(_ScoutTeamScopedTestMixin, BaseTest):
run_id=run.id,
finding_id="finding-1",
description="A finding",
- confidence=0.8,
severity="P1",
source_id=f"run:{run.id}:finding:finding-1",
tags=["checkout"],
@@ -147,7 +146,6 @@ class TestSignalScoutModels(_ScoutTeamScopedTestMixin, BaseTest):
run_id=run.id,
finding_id="finding-1",
description="A finding",
- confidence=0.8,
severity="P1",
source_id=f"run:{run.id}:finding:finding-1",
tags=["checkout"],
@@ -276,7 +274,6 @@ class TestSignalScoutModels(_ScoutTeamScopedTestMixin, BaseTest):
run_id=run.id,
finding_id="finding-1",
description="A finding",
- confidence=0.8,
severity="P1",
source_id=f"run:{run.id}:finding:finding-1",
tags=[],
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index 16793af37bb2..0964d3d80c05 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -1429,7 +1429,6 @@ export interface SignalsScoutSignalExtraApi {
finding_id: string
skill_name: string
skill_version: number
- confidence?: number | null
severity?: ReportPriorityApi | null
hypothesis?: string | null
evidence: SignalsScoutEvidenceEntryApi[]
@@ -4665,13 +4664,6 @@ export interface SignalScoutEmissionApi {
finding_id: string
/** The emitted finding prose — the signal's `description` as surfaced to the inbox. */
description: string
- /**
- * Deprecated and no longer set on new findings. Null unless the run supplied one.
- * @minimum 0
- * @maximum 1
- * @nullable
- */
- confidence: number | null
/** Optional severity tag — one of P0, P1, P2, P3, P4 — or null if the run didn't set one.
*
* * `P0` - P0
@@ -4869,13 +4861,6 @@ export interface EmitFindingRequestApi {
* @maxLength 50000
*/
description: string
- /**
- * Deprecated and ignored. Nothing reads it; omit it. Still range-checked when supplied.
- * @minimum 0
- * @maximum 1
- * @nullable
- */
- confidence?: number | null
/**
* Citations supporting the finding. Capped at 20 entries.
* @maxItems 20
diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.ts
index bd1c0631e3ae..54a2676cde0f 100644
--- a/products/signals/frontend/generated/api.zod.ts
+++ b/products/signals/frontend/generated/api.zod.ts
@@ -1794,9 +1794,6 @@ export const SignalsScoutEmitReportBody = /* @__PURE__ */ zod
*/
export const signalsScoutEmitSignalBodyDescriptionMax = 50000
-export const signalsScoutEmitSignalBodyConfidenceMin = 0
-export const signalsScoutEmitSignalBodyConfidenceMax = 1
-
export const signalsScoutEmitSignalBodyEvidenceMax = 20
export const signalsScoutEmitSignalBodyTagsItemMax = 50
@@ -1811,12 +1808,6 @@ export const SignalsScoutEmitSignalBody = /* @__PURE__ */ zod
.string()
.max(signalsScoutEmitSignalBodyDescriptionMax)
.describe("Canonical evidence-bundle prose. Becomes the signal's `description`."),
- confidence: zod
- .number()
- .min(signalsScoutEmitSignalBodyConfidenceMin)
- .max(signalsScoutEmitSignalBodyConfidenceMax)
- .nullish()
- .describe('Deprecated and ignored. Nothing reads it; omit it. Still range-checked when supplied.'),
evidence: zod
.array(
zod
diff --git a/products/signals/frontend/inbox/types.ts b/products/signals/frontend/inbox/types.ts
index 7025d577eda0..c8082c6915e9 100644
--- a/products/signals/frontend/inbox/types.ts
+++ b/products/signals/frontend/inbox/types.ts
@@ -468,8 +468,6 @@ export interface SignalScoutEmission {
run_id: string
finding_id: string
description: string
- /** Deprecated: no longer set on new findings. Null on anything emitted since it was retired. */
- confidence?: number | null
severity: SignalReportPriority | null
/** Slug tags the scout attached to this finding (lowercase kebab-case, e.g. `cost-spike`). */
tags: string[]
diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yaml
index f0dab3c57ebf..8f2094b24e8f 100644
--- a/products/signals/mcp/tools.yaml
+++ b/products/signals/mcp/tools.yaml
@@ -1006,10 +1006,10 @@ tools:
title: List a scout run's emitted findings
description: >
Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its
- `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the deterministic
- `source_id` (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see
- *what* a run actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`).
- Strictly team-scoped — a run UUID belonging to another team returns 404.
+ `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic `source_id`
+ (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see *what* a run
+ actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`). Strictly
+ team-scoped — a run UUID belonging to another team returns 404.
scout-runs-findings-summary:
operation: signals_scout_runs_findings_summary
enabled: false
@@ -1051,12 +1051,12 @@ tools:
description: >
Return the team's recently emitted scout findings across *every* `SignalScoutRun`, newest first — the
cross-run counterpart to `scout-runs-emissions-list` (which is scoped to one run). Each row carries its
- `run_id`, `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the
- deterministic `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer "what has the fleet
- surfaced lately?" in one call instead of listing runs and fanning out an emissions request per run. Pass
- `skill_name` to scope to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive
- upper bound on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to
- walk back past the cap. Capped at 200 rows (default 50). Strictly team-scoped.
+ `run_id`, `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic
+ `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer "what has the fleet surfaced lately?"
+ in one call instead of listing runs and fanning out an emissions request per run. Pass `skill_name` to scope
+ to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on
+ `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past
+ the cap. Capped at 200 rows (default 50). Strictly team-scoped.
scout-runs-retrieve:
operation: signals_scout_runs_retrieve
enabled: true
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 417fdf068a4c..1114a43180a2 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -10203,7 +10203,7 @@
}
},
"scout-runs-emissions-list": {
- "description": "Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see *what* a run actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`). Strictly team-scoped — a run UUID belonging to another team returns 404.",
+ "description": "Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see *what* a run actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`). Strictly team-scoped — a run UUID belonging to another team returns 404.",
"category": "Signals",
"feature": "signals",
"summary": "List a scout run's emitted findings",
@@ -10231,7 +10231,7 @@
}
},
"scout-runs-recent-emissions": {
- "description": "Return the team's recently emitted scout findings across *every* `SignalScoutRun`, newest first — the cross-run counterpart to `scout-runs-emissions-list` (which is scoped to one run). Each row carries its `run_id`, `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer \"what has the fleet surfaced lately?\" in one call instead of listing runs and fanning out an emissions request per run. Pass `skill_name` to scope to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past the cap. Capped at 200 rows (default 50). Strictly team-scoped.",
+ "description": "Return the team's recently emitted scout findings across *every* `SignalScoutRun`, newest first — the cross-run counterpart to `scout-runs-emissions-list` (which is scoped to one run). Each row carries its `run_id`, `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer \"what has the fleet surfaced lately?\" in one call instead of listing runs and fanning out an emissions request per run. Pass `skill_name` to scope to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past the cap. Capped at 200 rows (default 50). Strictly team-scoped.",
"category": "Signals",
"feature": "signals",
"summary": "List recent emitted findings across all scout runs",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 078fc25b933b..b348b7d0925b 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -10775,7 +10775,7 @@
}
},
"scout-runs-emissions-list": {
- "description": "Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see *what* a run actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`). Strictly team-scoped — a run UUID belonging to another team returns 404.",
+ "description": "Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`) that joins back to the underlying signal. Use this to see *what* a run actually surfaced, not just how many (`emitted_count`) or which ids (`emitted_finding_ids`). Strictly team-scoped — a run UUID belonging to another team returns 404.",
"category": "Signals",
"feature": "signals",
"summary": "List a scout run's emitted findings",
@@ -10803,7 +10803,7 @@
}
},
"scout-runs-recent-emissions": {
- "description": "Return the team's recently emitted scout findings across *every* `SignalScoutRun`, newest first — the cross-run counterpart to `scout-runs-emissions-list` (which is scoped to one run). Each row carries its `run_id`, `description` (the finding text as surfaced), `confidence`, `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer \"what has the fleet surfaced lately?\" in one call instead of listing runs and fanning out an emissions request per run. Pass `skill_name` to scope to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past the cap. Capped at 200 rows (default 50). Strictly team-scoped.",
+ "description": "Return the team's recently emitted scout findings across *every* `SignalScoutRun`, newest first — the cross-run counterpart to `scout-runs-emissions-list` (which is scoped to one run). Each row carries its `run_id`, `description` (the finding text as surfaced), `severity`, `tags`, and the deterministic `source_id` (`run:<run_id>:finding:<finding_id>`). Use this to answer \"what has the fleet surfaced lately?\" in one call instead of listing runs and fanning out an emissions request per run. Pass `skill_name` to scope to a single scout, and `date_from` / `date_to` (ISO-8601, inclusive lower / exclusive upper bound on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past the cap. Capped at 200 rows (default 50). Strictly team-scoped.",
"category": "Signals",
"feature": "signals",
"summary": "List recent emitted findings across all scout runs",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 7a85eabf827c..e0bc7f5b493e 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -33691,13 +33691,6 @@ export namespace Schemas {
* @maxLength 50000
*/
description: string;
- /**
- * Deprecated and ignored. Nothing reads it; omit it. Still range-checked when supplied.
- * @minimum 0
- * @maximum 1
- * @nullable
- */
- confidence?: number | null;
/**
* Citations supporting the finding. Capped at 20 entries.
* @maxItems 20
@@ -83284,7 +83277,6 @@ export namespace Schemas {
finding_id: string;
skill_name: string;
skill_version: number;
- confidence?: number | null;
severity?: ReportPriority | null;
hypothesis?: string | null;
evidence: SignalsScoutEvidenceEntry[];
@@ -86770,13 +86762,6 @@ export namespace Schemas {
finding_id: string;
/** The emitted finding prose — the signal's `description` as surfaced to the inbox. */
description: string;
- /**
- * Deprecated and no longer set on new findings. Null unless the run supplied one.
- * @minimum 0
- * @maximum 1
- * @nullable
- */
- confidence: number | null;
/** Optional severity tag — one of P0, P1, P2, P3, P4 — or null if the run didn't set one.
*
* * `P0` - P0
diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.ts
index f0002a5baeeb..9f1d02024edc 100644
--- a/services/mcp/src/generated/signals/api.ts
+++ b/services/mcp/src/generated/signals/api.ts
@@ -2321,9 +2321,6 @@ export const SignalsScoutEmitSignalParams = () => zod.object({
export const signalsScoutEmitSignalBodyDescriptionMax = 50000
-export const signalsScoutEmitSignalBodyConfidenceMin = 0
-export const signalsScoutEmitSignalBodyConfidenceMax = 1
-
export const signalsScoutEmitSignalBodyEvidenceMax = 20
export const signalsScoutEmitSignalBodyTagsItemMax = 50
@@ -2338,12 +2335,6 @@ export const SignalsScoutEmitSignalBody = () => zod
.string()
.max(signalsScoutEmitSignalBodyDescriptionMax)
.describe("Canonical evidence-bundle prose. Becomes the signal's `description`."),
- confidence: zod
- .number()
- .min(signalsScoutEmitSignalBodyConfidenceMin)
- .max(signalsScoutEmitSignalBodyConfidenceMax)
- .nullish()
- .describe('Deprecated and ignored. Nothing reads it; omit it. Still range-checked when supplied.'),
evidence: zod
.array(
zod
diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.ts
index 908e5813a602..3ed7c907f570 100644
--- a/services/mcp/src/tools/generated/signals.ts
+++ b/services/mcp/src/tools/generated/signals.ts
@@ -1100,9 +1100,6 @@ const scoutEmitSignal = (): ToolBase<ReturnType<typeof ScoutEmitSignalSchema>, S
if (params.description !== undefined) {
body['description'] = params.description
}
- if (params.confidence !== undefined) {
- body['confidence'] = params.confidence
- }
if (params.evidence !== undefined) {
body['evidence'] = params.evidence
}
@@ -2053,9 +2050,6 @@ const signalsScoutEmitSignal = (): ToolBase<
if (params.description !== undefined) {
body['description'] = params.description
}
- if (params.confidence !== undefined) {
- body['confidence'] = params.confidence
- }
if (params.evidence !== undefined) {
body['evidence'] = params.evidence
}