: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): separate held-back reports from dismissals in the inbox (#114746)
posthog[bot]e07a6531b798
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 0cb12723dc5d..97439d45d973 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -10877,9 +10877,9 @@ snapshots:scenes-app-inbox-cards--pull-request-cards--light:hash: v1.k794b7964.19291313347041d3b8311d7a7e9b97ee8e60b7ccca476b1b3c43945a006de3fe.Lf3Mkhh7fJ5mnyomCZa2-Jcw4fOG4rgHZ5udu8CQNxgscenes-app-inbox-cards--report-card-states--dark:- hash: v1.k794b7964.dcc78e425e574bf9030a756c6331a31c4e92411a68a005327a641140e2f81748.WEJlDN0QU3p3TJSVYoNVJBA-Kl6AIqAoMDi3z-l3wio+ hash: v1.k794b7964.b987dc8b9a750647567259b3cfb6f65c1fc03c82294e599942d85f394182ec5f.tJh2uAs0GnyekhEbDh2gi3yZAm6ydVS4Tp8YEAowHccscenes-app-inbox-cards--report-card-states--light:- hash: v1.k794b7964.46f8d12e3e39f21fbaf8eadd5df0831f7a65d9bd9ccc9d32331cd9eaaba29b0b.cVSFUcP-VTn5y8l3454O1Mrle9C_AH-Uc9Iq1yI5ZH4+ hash: v1.k794b7964.9c2c8b7a61f3d6fe6458f5afe15a67853ea97e254845153e90f509825005d198.RvW7_RoKgKvw53_qILf_KlMrjJHTkgMjTT8jRCsp6Kkscenes-app-inbox-cards--report-card-with-impact--dark:hash: v1.k794b7964.b1c7935b8f5bf3606bf17317d4b766db18716f571e5863a1a9bfca5274ea7d57.seV0a7y3Ag51yKQZbjfaUaBwnrjezpYZFG2GnCJTnWMscenes-app-inbox-cards--report-card-with-impact--light:diff --git a/products/signals/backend/models.py b/products/signals/backend/models.pyindex aaf8ee54afc9..65a4ce084af6 100644--- a/products/signals/backend/models.py+++ b/products/signals/backend/models.py@@ -68,6 +68,15 @@ class SignalReportWorkState(models.TextChoices):DONE = "done", "Done"+class SignalReportSuppressionSource(models.TextChoices):+ # Who or what took a suppressed report out of the inbox, derived from its artefacts. Only+ # DISMISSED means someone chose it; the rest are verdicts nobody has reviewed yet.+ DISMISSED = "dismissed", "Dismissed"+ SAFETY_JUDGE = "safety_judge", "Safety judge"+ NOT_ACTIONABLE = "not_actionable", "Not actionable"+ SYSTEM = "system", "System"++def signal_source_type_choices() -> list[tuple[str, str | Promise]]:# Callable so growing the enum doesn't generate a no-op migration.return list(SignalSourceConfig.SourceType.choices)diff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.pyindex d9569aa3e907..06953d78539c 100644--- a/products/signals/backend/serializers.py+++ b/products/signals/backend/serializers.py@@ -50,7 +50,13 @@ if TYPE_CHECKING:from products.signals.backend.implementation_pr import ImplementationPrfrom products.signals.backend.report_claims import ReportClaim-from .artefact_schemas import NON_WRITABLE_ARTEFACT_TYPES, RankingScore, SourceSuggestion, priority_from_judgment+from .artefact_schemas import (+ NON_WRITABLE_ARTEFACT_TYPES,+ ActionabilityChoice,+ RankingScore,+ SourceSuggestion,+ priority_from_judgment,+)from .briefing_reports import SUMMARY_LEAD_LIMIT, summary_leadfrom .daily_limit import reports_generated_today, team_day_startfrom .models import (@@ -64,6 +70,7 @@ from .models import (SignalReportCheck,SignalReportPullRequest,SignalReportRefund,+ SignalReportSuppressionSource,SignalReportTrackerIssue,SignalReportWorkState,SignalSourceConfig,@@ -1241,6 +1248,22 @@ class SignalReportSerializer(serializers.ModelSerializer):dismissal_note = serializers.SerializerMethodField(help_text="Free-form note captured alongside the dismissal reason (when present).",)+ suppression_source = serializers.SerializerMethodField(+ help_text=(+ "Who or what suppressed the report. Null unless status is suppressed. `dismissed`: a person or "+ "agent dismissed it, it was merged into another report, or its pull request closed without "+ "merging; dismissal_reason says which when one was given. `safety_judge`: the safety judge "+ "marked it unsafe. `not_actionable`: the actionability judge marked it not actionable. "+ "`system`: suppressed by the pipeline for another reason. Every value except `dismissed` is "+ "a verdict nobody has reviewed, listed by the `held_back` inbox view."+ ),+ )+ suppression_explanation = serializers.SerializerMethodField(+ help_text=(+ "The judge's explanation when suppression_source is `safety_judge` or `not_actionable`. "+ "Null otherwise, or when the judge gave none."+ ),+ )repo_slug = serializers.SerializerMethodField(help_text=("`organization/repository` the report's work targets, from the latest repo-selection "@@ -1350,6 +1373,8 @@ class SignalReportSerializer(serializers.ModelSerializer):"already_addressed","dismissal_reason","dismissal_note",+ "suppression_source",+ "suppression_explanation","repo_slug","is_suggested_reviewer","source_products",@@ -1458,6 +1483,58 @@ class SignalReportSerializer(serializers.ModelSerializer):value = data.get("note")return value if isinstance(value, str) and value else None+ def _get_safety_artefact_data(self, obj: SignalReport) -> dict | None:+ prefetched = getattr(obj, "prefetched_safety_artefacts", None)+ if prefetched is not None:+ art = prefetched[0] if prefetched else None+ else:+ art = (+ obj.artefacts.filter(type=SignalReportArtefact.ArtefactType.SAFETY_JUDGMENT)+ .order_by("-created_at")+ .first()+ )+ if art is None:+ return None+ try:+ data = json.loads(art.content)+ except (json.JSONDecodeError, TypeError, ValueError):+ return None+ return data if isinstance(data, dict) else None++ def _has_dismissal_artefact(self, obj: SignalReport) -> bool:+ prefetched = getattr(obj, "prefetched_dismissal_artefacts", None)+ if prefetched is not None:+ return bool(prefetched)+ return obj.artefacts.filter(type=SignalReportArtefact.ArtefactType.DISMISSAL).exists()++ def _suppression(self, obj: SignalReport) -> tuple[SignalReportSuppressionSource, str | None] | None:+ # Mirrors the `dismissed` / `held_back` inbox views: a dismissal artefact means someone chose+ # it, so it wins over any verdict the report also carries.+ if obj.status != SignalReport.Status.SUPPRESSED:+ return None+ if self._has_dismissal_artefact(obj):+ return SignalReportSuppressionSource.DISMISSED, None+ safety = self._get_safety_artefact_data(obj)+ if safety is not None and safety.get("choice") is False:+ explanation = safety.get("explanation")+ return SignalReportSuppressionSource.SAFETY_JUDGE, explanation if isinstance(explanation, str) else None+ actionability = self._get_actionability_artefact_data(obj)+ if actionability is not None and actionability.get("actionability") == ActionabilityChoice.NOT_ACTIONABLE:+ explanation = actionability.get("explanation")+ return SignalReportSuppressionSource.NOT_ACTIONABLE, explanation if isinstance(explanation, str) else None+ return SignalReportSuppressionSource.SYSTEM, None++ @extend_schema_field(serializers.ChoiceField(choices=SignalReportSuppressionSource.choices, allow_null=True))+ def get_suppression_source(self, obj: SignalReport) -> str | None:+ suppression = self._suppression(obj)+ return suppression[0].value if suppression is not None else None++ @extend_schema_field(serializers.CharField(allow_null=True))+ def get_suppression_explanation(self, obj: SignalReport) -> str | None:+ suppression = self._suppression(obj)+ explanation = suppression[1] if suppression is not None else None+ return explanation or None+def _get_repo_selection_artefact_data(self, obj: SignalReport) -> dict | None:prefetched = getattr(obj, "prefetched_repo_selection_artefacts", None)if prefetched is not None:diff --git a/products/signals/backend/test/test_signal_report_api.py b/products/signals/backend/test/test_signal_report_api.pyindex d83557954a51..36164917b731 100644--- a/products/signals/backend/test/test_signal_report_api.py+++ b/products/signals/backend/test/test_signal_report_api.py@@ -1984,6 +1984,7 @@ class TestSignalReportListAPI(APIBaseTest):addressed = self._create_report(title="Already addressed")self._actionability_artefact(addressed, actionability="immediately_actionable", already_addressed=True)dismissed = self._create_report(title="Dismissed", status=SignalReport.Status.SUPPRESSED)+ self._dismissal_artefact(dismissed, reason="wontfix_irrelevant")response = self.client.get(self._list_url(view="actionable", scope="entire_project", sort="priority"))@@ -2361,6 +2362,60 @@ class TestSignalReportListAPI(APIBaseTest):assert row["dismissal_reason"] is Noneassert row["dismissal_note"] is None+ @parameterized.expand(+ [+ ("person_dismissal", "dismissal", "dismissed", "dismissed", None),+ ("dismissal_wins_over_verdict", "dismissal_and_unsafe", "dismissed", "dismissed", None),+ ("safety_judge", "unsafe", "safety_judge", "held_back", "Asks to disable a safety control."),+ ("not_actionable", "not_actionable", "not_actionable", "held_back", "Too vague to act on."),+ ("no_artefact", "none", "system", "held_back", None),+ ]+ )+ def test_suppression_source_splits_dismissed_from_held_back(+ self, _name, setup, expected_source, expected_view, expected_explanation+ ):+ report = self._create_report(status=SignalReport.Status.SUPPRESSED)+ if setup in {"dismissal", "dismissal_and_unsafe"}:+ self._dismissal_artefact(report, reason="analysis_wrong")+ if setup in {"unsafe", "dismissal_and_unsafe"}:+ SignalReportArtefact.objects.create(+ team=self.team,+ report=report,+ type=SignalReportArtefact.ArtefactType.SAFETY_JUDGMENT,+ content=json.dumps({"choice": False, "explanation": "Asks to disable a safety control."}),+ )+ if setup == "not_actionable":+ SignalReportArtefact.objects.create(+ team=self.team,+ report=report,+ type=SignalReportArtefact.ArtefactType.ACTIONABILITY_JUDGMENT,+ content=json.dumps(+ {+ "explanation": "Too vague to act on.",+ "actionability": "not_actionable",+ "already_addressed": False,+ }+ ),+ )+ open_report = self._create_report(title="Open")++ listed = {+ view: [+ row["id"]+ for row in self.client.get(self._list_url(view=view, scope="entire_project")).json()["results"]+ ]+ for view in ("dismissed", "held_back")+ }+ assert listed[expected_view] == [str(report.id)]+ assert listed["dismissed" if expected_view == "held_back" else "held_back"] == []++ rows = {+ row["id"]: row for row in self.client.get(self._list_url(include_all_statuses="true")).json()["results"]+ }+ assert rows[str(report.id)]["suppression_source"] == expected_source+ assert rows[str(report.id)]["suppression_explanation"] == expected_explanation+ assert rows[str(open_report.id)]["suppression_source"] is None+def test_list_uses_latest_dismissal_artefact_by_created_at(self):report = self._create_report(status=SignalReport.Status.SUPPRESSED)self._dismissal_artefact(report, reason="report_unclear", created_at=timezone.now() - timedelta(days=1))diff --git a/products/signals/backend/views.py b/products/signals/backend/views.pyindex 47ffba70d9f7..9231a8e6e23f 100644--- a/products/signals/backend/views.py+++ b/products/signals/backend/views.py@@ -1111,7 +1111,17 @@ class SignalReportViewSet("oldest": "created_at,status,-updated_at",}_INBOX_VIEWS = frozenset(- {"actionable", "needs_input", "needs_decision", "monitoring", "resolved", "dismissed", "not_actionable", "all"}+ {+ "actionable",+ "needs_input",+ "needs_decision",+ "monitoring",+ "resolved",+ "dismissed",+ "held_back",+ "not_actionable",+ "all",+ })_SIGNAL_REPORT_ORDERING_FIELDS: dict[str, str] = {"status": "pipeline_status_rank",@@ -1366,7 +1376,7 @@ class SignalReportViewSet(if (self.action in self._SUPPRESSED_VISIBLE_ACTIONSor self._include_all_statuses_requested()- or self.request.query_params.get("view") in {"dismissed", "all"}+ or self.request.query_params.get("view") in {"dismissed", "held_back", "all"}):return self._FILTERABLE_STATUSESreturn self._DEFAULT_STATUSES@@ -1693,8 +1703,17 @@ class SignalReportViewSet(return queryset.filter(status=SignalReport.Status.READY).filter(self._implementation_pr_report_filter())if inbox_view == "resolved":return queryset.filter(status=SignalReport.Status.RESOLVED)- if inbox_view == "dismissed":- return queryset.filter(status=SignalReport.Status.SUPPRESSED)+ if inbox_view in {"dismissed", "held_back"}:+ # Every path that suppresses a report on someone's behalf writes a dismissal artefact: a+ # person or agent dismissing it, a merge, a closed pull request. A suppressed report with+ # none was held back by a judge, and nobody has looked at it yet.+ has_dismissal = Exists(+ SignalReportArtefact.objects.filter(+ report_id=OuterRef("id"), type=SignalReportArtefact.ArtefactType.DISMISSAL+ )+ )+ queryset = queryset.filter(status=SignalReport.Status.SUPPRESSED)+ return queryset.filter(has_dismissal if inbox_view == "dismissed" else ~has_dismissal)if inbox_view == "not_actionable":return queryset.filter(latest_actionability=ActionabilityChoice.NOT_ACTIONABLE.value)return queryset@@ -1852,6 +1871,13 @@ class SignalReportViewSet().order_by("-created_at")[:1],to_attr="prefetched_repo_selection_artefacts",),+ Prefetch(+ "artefacts",+ queryset=SignalReportArtefact.objects.filter(+ type=SignalReportArtefact.ArtefactType.SAFETY_JUDGMENT+ ).order_by("-created_at")[:1],+ to_attr="prefetched_safety_artefacts",+ ),)def _prefetch_signal_report_ranking_score(self, queryset):@@ -2272,8 +2298,12 @@ class SignalReportViewSet(required=False,description=("Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, "- "not_actionable, or all. Each view applies the corresponding status, actionability, and "- "implementation-PR filters. needs_decision also includes failed reports without a judgment."+ "held_back, not_actionable, or all. Each view applies the corresponding status, actionability, and "+ "implementation-PR filters. needs_decision also includes failed reports without a judgment. "+ "dismissed and held_back split the suppressed reports: dismissed holds the ones a person or agent "+ "dismissed, merged, or whose pull request closed without merging; held_back holds the ones the "+ "safety or actionability judge suppressed before anyone saw them. Each row's suppression_source "+ "says which."),),OpenApiParameter(diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 3f3c38f492b2..e492048008e6 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -389,6 +389,16 @@ export interface ReportSourceSuggestionApi {reason: string}+export type SignalReportSuppressionSourceEnumApi =+ (typeof SignalReportSuppressionSourceEnumApi)[keyof typeof SignalReportSuppressionSourceEnumApi]++export const SignalReportSuppressionSourceEnumApi = {+ Dismissed: 'dismissed',+ SafetyJudge: 'safety_judge',+ NotActionable: 'not_actionable',+ System: 'system',+} as const+export type SignalReportAssignmentPrStateEnumApi =(typeof SignalReportAssignmentPrStateEnumApi)[keyof typeof SignalReportAssignmentPrStateEnumApi]@@ -689,6 +699,13 @@ export interface SignalReportListApi {* @nullable*/readonly dismissal_note: string | null+ /** Who or what suppressed the report. Null unless status is suppressed. `dismissed`: a person or agent dismissed it, it was merged into another report, or its pull request closed without merging; dismissal_reason says which when one was given. `safety_judge`: the safety judge marked it unsafe. `not_actionable`: the actionability judge marked it not actionable. `system`: suppressed by the pipeline for another reason. Every value except `dismissed` is a verdict nobody has reviewed, listed by the `held_back` inbox view. */+ readonly suppression_source: SignalReportSuppressionSourceEnumApi | null+ /**+ * The judge's explanation when suppression_source is `safety_judge` or `not_actionable`. Null otherwise, or when the judge gave none.+ * @nullable+ */+ readonly suppression_explanation: string | null/*** `organization/repository` the report's work targets, from the latest repo-selection artefact (when present). Lets list cards show repository context without a per-card fetch.* @nullable@@ -910,6 +927,13 @@ export interface SignalReportApi {* @nullable*/readonly dismissal_note: string | null+ /** Who or what suppressed the report. Null unless status is suppressed. `dismissed`: a person or agent dismissed it, it was merged into another report, or its pull request closed without merging; dismissal_reason says which when one was given. `safety_judge`: the safety judge marked it unsafe. `not_actionable`: the actionability judge marked it not actionable. `system`: suppressed by the pipeline for another reason. Every value except `dismissed` is a verdict nobody has reviewed, listed by the `held_back` inbox view. */+ readonly suppression_source: SignalReportSuppressionSourceEnumApi | null+ /**+ * The judge's explanation when suppression_source is `safety_judge` or `not_actionable`. Null otherwise, or when the judge gave none.+ * @nullable+ */+ readonly suppression_explanation: string | null/*** `organization/repository` the report's work targets, from the latest repo-selection artefact (when present). Lets list cards show repository context without a per-card fetch.* @nullable@@ -7592,7 +7616,7 @@ export type SignalsReportsListParams = {*/use_priority_preference?: boolean/**- * Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment.+ * Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, held_back, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment. dismissed and held_back split the suppressed reports: dismissed holds the ones a person or agent dismissed, merged, or whose pull request closed without merging; held_back holds the ones the safety or actionability judge suppressed before anyone saw them. Each row's suppression_source says which.*/view?: string}diff --git a/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx b/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsxindex 60f65e2a978a..063492eebf57 100644--- a/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx+++ b/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx@@ -1,5 +1,7 @@import { LemonTag, LemonTagType, Tooltip } from '@posthog/lemon-ui'+import type { SignalReportSuppressionSourceEnumApi } from 'products/signals/frontend/generated/api.schemas'+import { SignalReportActionability, SignalReportStatus } from '../../types'/**@@ -68,9 +70,20 @@ function inboxStatusBadgeType(status: SignalReportStatus): LemonTagType {}}-export function SignalReportStatusBadge({ status }: { status: SignalReportStatus }): JSX.Element {- const label = STATUS_LABELS[status] ?? status- const tooltip = STATUS_TOOLTIPS[status] ?? status+export function SignalReportStatusBadge({+ status,+ suppressionSource,+}: {+ status: SignalReportStatus+ /** A suppressed report nobody dismissed reads as held back, not as dismissed. */+ suppressionSource?: SignalReportSuppressionSourceEnumApi | null+}): JSX.Element {+ const heldBack =+ status === SignalReportStatus.SUPPRESSED && !!suppressionSource && suppressionSource !== 'dismissed'+ const label = heldBack ? 'Held back' : (STATUS_LABELS[status] ?? status)+ const tooltip = heldBack+ ? 'A safety or actionability check removed this report before anyone reviewed it.'+ : (STATUS_TOOLTIPS[status] ?? status)return (<Tooltip title={tooltip}>diff --git a/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx b/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsxindex 5abf6b456a2b..97407fef4fc4 100644--- a/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx+++ b/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx@@ -337,6 +337,17 @@ export const ReportCardStates: Story = {summary: 'The flow works as designed.',})}/>+ <ReportCard+ report={makeReport({+ title: 'Held back by the safety check',+ priority: 'P2',+ status: SignalReportStatus.SUPPRESSED,+ suppression_source: 'safety_judge',+ suppression_explanation: 'The report asks to turn off a safety control.',+ source_products: ['github'],+ summary: 'Nobody has reviewed this verdict yet.',+ })}+ /></Stack>),}diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsxindex e232d3a7c21c..e9bad158bc6a 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx@@ -224,6 +224,37 @@ describe('ReportCard', () => {expect(logic.values.selectedReportIds).toEqual([])})+ test.each([+ [+ "a person's reason",+ { suppression_source: 'dismissed', dismissal_reason: 'analysis_wrong' },+ "Agent's analysis is wrong",+ ],+ [+ 'the safety verdict',+ { suppression_source: 'safety_judge', suppression_explanation: 'Asks to disable a check.' },+ 'Held back by safety check',+ ],+ ['the actionability verdict', { suppression_source: 'not_actionable' }, 'Judged not actionable'],+ ['a system suppression', { suppression_source: 'system' }, 'Held back automatically'],+ ] as const)('labels a suppressed row with %s', (_name, overrides, label) => {+ cleanup()+ render(<ReportCard report={makeReport('r-2', { status: SignalReportStatus.SUPPRESSED, ...overrides })} />)++ expect(screen.getByText(label)).toBeInTheDocument()+ })++ it('shows no reason chip on a dismissed row without a reason', () => {+ cleanup()+ render(+ <ReportCard+ report={makeReport('r-2', { status: SignalReportStatus.SUPPRESSED, suppression_source: 'dismissed' })}+ />+ )++ expect(screen.queryByText(/Held back|Judged not actionable/)).not.toBeInTheDocument()+ })+it('locks the selection while a bulk action is running', () => {const setState = jest.spyOn(api.signalReports, 'setState').mockReturnValue(new Promise<never>(() => {}))act(() => {diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.tsxindex 40c7c695368d..267ea1c9dc34 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.tsx@@ -21,7 +21,7 @@ import {SignalReportStatus,SignalSourceProduct,} from '../../types'-import { dismissalReasonLabel, DismissalFeedback, isResolveReason } from '../../utils/dismissalReasons'+import { dismissalReasonLabel, DismissalFeedback, heldBackLabel, isResolveReason } from '../../utils/dismissalReasons'import { inboxReportDetailUrl } from '../../utils/inboxReportUrls'import {deriveHeadline,@@ -199,11 +199,14 @@ function ReportCardRaw({// on dismissed rows, and a resolve reason on rows resolved by hand. A report that was dismissed,// restored, then resolved by a merged PR keeps its old dismissal artefact, so a resolved row only// shows a reason that describes a resolve (see `isResolveReason`). The dedicated billing badge- // already marks refunded reports, so skip the duplicate chip there.+ // already marks refunded reports, so skip the duplicate chip there. A dismissed row that nobody+ // dismissed was held back by a judge, so it shows that verdict, with its explanation as the tooltip.const outcomeLabel =!isRefunded && (isDismissed || (isResolved && isResolveReason(report.dismissal_reason)))- ? dismissalReasonLabel(report.dismissal_reason)+ ? (dismissalReasonLabel(report.dismissal_reason) ??+ (isDismissed ? heldBackLabel(report.suppression_source) : null)): null+ const outcomeTooltip = report.dismissal_note || report.suppression_explanation || undefinedconst cardBodyClassName = clsx('flex min-w-0 flex-1 items-start gap-3 text-left text-inherit no-underline',@@ -272,13 +275,16 @@ function ReportCardRaw({{!hasPr &&!redesign &&!isStatusRedundantWithActionability(report.status, report.actionability) && (- <SignalReportStatusBadge status={report.status} />+ <SignalReportStatusBadge+ status={report.status}+ suppressionSource={report.suppression_source}+ />)}{!hasPr && !redesign && report.actionability && (<SignalReportActionabilityBadge actionability={report.actionability} />)}{outcomeLabel && (- <Tooltip title={report.dismissal_note || undefined}>+ <Tooltip title={outcomeTooltip}><LemonTagsize="small"icon={diff --git a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx b/products/signals/frontend/inbox/components/detail/ReportDetail.tsxindex 77adfc83c407..5d498d5b9970 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetail.tsx@@ -81,7 +81,7 @@ export function ReportDetailBadges({<><SignalReportPriorityBadge priority={report.priority} explanation={priorityExplanation} />{!isStatusRedundantWithActionability(report.status, report.actionability) && (- <SignalReportStatusBadge status={report.status} />+ <SignalReportStatusBadge status={report.status} suppressionSource={report.suppression_source} />)}<SignalReportActionabilityBadgeactionability={report.actionability}diff --git a/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx b/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsxindex 58d9846db12c..0c5a5afa050e 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx@@ -101,11 +101,13 @@ export function useReportDetailActions(report: SignalReport): ReportDetailAction}const onRestoreClick = async (): Promise<void> => {- // Prefer the mounted Dismissed list logic so it optimistically drops the row and fixes its- // count + view badge synchronously (it also fires the API call + toast). Navigate straight back.+ // Prefer the mounted list logic of the state the report sits in, Dismissed or Held back, so it+ // optimistically drops the row and fixes its count + view badge synchronously (it also fires+ // the API call + toast). Navigate straight back.+ const sectionKey = report.suppression_source === 'dismissed' ? 'dismissed' : 'held-back'const dismissedList = reportListLogic.findMounted({- sectionKey: 'dismissed',- listParams: INBOX_REPORT_SECTION_LIST_PARAMS.dismissed,+ sectionKey,+ listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey],})if (dismissedList) {// The list logic fires the `restore` analytics; just drive navigation here.@@ -113,7 +115,7 @@ export function useReportDetailActions(report: SignalReport): ReportDetailActionrouter.actions.push(urls.inbox(activeTab))return}- // Fallback for a deep-linked detail with no mounted Dismissed list (e.g. cold load), and for+ // Fallback for a deep-linked detail with no mounted list for its state (e.g. cold load), and for// the flag-off Archive list, which mounts under the `resolved` key and so isn't found above.setIsRestoring(true)try {diff --git a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx b/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsxindex 3b3794521993..a355279d116b 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx@@ -113,7 +113,9 @@ function ReportDetailMeta({return (<div className="flex items-center gap-x-2 gap-y-1.5 flex-wrap text-xs text-tertiary leading-none select-none">- {showStatus && <SignalReportStatusBadge status={report.status} />}+ {showStatus && (+ <SignalReportStatusBadge status={report.status} suppressionSource={report.suppression_source} />+ )}<SignalReportActionabilityBadgeactionability={report.actionability}explanation={actionabilityExplanation}diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsxindex a35f18acacb6..a7f5ed3bd656 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx@@ -39,7 +39,8 @@ interface SectionCountStub {const COUNT_BY_FILTER: SectionCountStub[] = [{ match: (p) => p.get('has_implementation_pr') === 'true', count: 4 },{ match: (p) => p.get('view') === 'needs_decision', count: 7 },- { match: (p) => (p.get('status') ?? '').includes('suppressed'), count: 2 },+ { match: (p) => p.get('view') === 'dismissed', count: 2 },+ { match: (p) => p.get('view') === 'held_back', count: 1 },]// Only `ready` + `not_actionable` reports: the pipeline's actionability judgment leaves the status@@ -136,8 +137,8 @@ describe('ReportsTab', () => {await waitFor(() => {const viewed = (posthog.capture as jest.Mock).mock.calls.filter(([event]) => event === INBOX_EVENTS.VIEWED)expect(viewed).toHaveLength(1)- // Needs decision + Review and merge + Resolved + Dismissed. Not actionable is staff-only triage.- expect(viewed[0][1]).toMatchObject({ tab: 'reports', total_count: 13, is_empty: false })+ // Needs decision + Review and merge + Resolved + Dismissed + Held back. Not actionable is staff-only triage.+ expect(viewed[0][1]).toMatchObject({ tab: 'reports', total_count: 14, is_empty: false })})})diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsxindex 10ca9f72e70f..1be27dea17b3 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx@@ -42,7 +42,7 @@ import { useSelectableReportList } from '../useSelectableReportList'* surfaced nothing worth acting on. The empty-state verdict is a separate question, answered over* the states the current user can actually see.*/-const COUNTED_SECTION_KEYS = ['needs-decision', 'monitoring', 'resolved', 'dismissed'] as const+const COUNTED_SECTION_KEYS = ['needs-decision', 'monitoring', 'resolved', 'dismissed', 'held-back'] as consttype CountedSectionKey = (typeof COUNTED_SECTION_KEYS)[number]@@ -86,7 +86,7 @@ function useSectionState(sectionKey: InboxReportSectionKey): SectionListState {}/**- * Every state's count and loaded rows, keyed by state. All five logics are mounted regardless of+ * Every state's count and loaded rows, keyed by state. All six logics are mounted regardless of* who is looking or which states the filter selects, so the hooks never change shape when the* staff flag resolves or a checkbox toggles; callers decide which states matter to them.*/@@ -96,6 +96,7 @@ function useSectionStates(): Record<InboxReportSectionKey, SectionListState> {'needs-decision': useSectionState('needs-decision'),resolved: useSectionState('resolved'),dismissed: useSectionState('dismissed'),+ 'held-back': useSectionState('held-back'),'not-actionable': useSectionState('not-actionable'),}}diff --git a/products/signals/frontend/inbox/components/useReportImpressions.ts b/products/signals/frontend/inbox/components/useReportImpressions.tsindex ac6a013dccbd..767d98e7b91b 100644--- a/products/signals/frontend/inbox/components/useReportImpressions.ts+++ b/products/signals/frontend/inbox/components/useReportImpressions.ts@@ -40,6 +40,7 @@ export function useReportImpressions(rows: MergedReportRow[], selectedSections:'needs-decision': useSectionImpressionState('needs-decision'),resolved: useSectionImpressionState('resolved'),dismissed: useSectionImpressionState('dismissed'),+ 'held-back': useSectionImpressionState('held-back'),'not-actionable': useSectionImpressionState('not-actionable'),}// The list stays mounted (hidden) while a report/scout detail is open, so gate impressions on thediff --git a/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts b/products/signals/frontend/inbox/logics/inboxFiltersLogic.tsindex a748827c4d80..a47d02dcdbb1 100644--- a/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts+++ b/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts@@ -301,7 +301,7 @@ export interface inboxFiltersLogicValues {sortDirection: InboxSortDirectionsortField: InboxSortFieldsourceProductFilter: string[]- stateFilter: ('dismissed' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved')[]+ stateFilter: ('dismissed' | 'held-back' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved')[]timeWindowAvailable: booleanvisibleStateFilter: InboxReportSectionKey[]}@@ -391,7 +391,7 @@ export interface inboxFiltersLogicActions {source: string}toggleState: (state: InboxReportSectionKey) => {- state: 'dismissed' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved'+ state: 'dismissed' | 'held-back' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved'}}@@ -419,7 +419,14 @@ export interface inboxFiltersLogicMeta {) => InboxCreatedWindow | nullisRedesign: (featureFlags: FeatureFlagsSet) => booleanvisibleStateFilter: (- stateFilter: ('dismissed' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved')[],+ stateFilter: (+ | 'dismissed'+ | 'held-back'+ | 'monitoring'+ | 'needs-decision'+ | 'not-actionable'+ | 'resolved'+ )[],user: UserType | null) => InboxReportSectionKey[]}diff --git a/products/signals/frontend/inbox/logics/reportListLogic.ts b/products/signals/frontend/inbox/logics/reportListLogic.tsindex a7c539a7d368..c8d9027578b5 100644--- a/products/signals/frontend/inbox/logics/reportListLogic.ts+++ b/products/signals/frontend/inbox/logics/reportListLogic.ts@@ -92,8 +92,10 @@ export const INBOX_REPORT_SECTION_LIST_PARAMS: Record<InboxReportSectionKey, Rep'needs-decision': { view: 'needs_decision' },// Fixed by a merged implementation PR, or resolved by a person. Terminal, not restorable.resolved: { status: 'resolved' },- // Dismissed by a person, or suppressed because its PR closed without merging. Restorable.- dismissed: { status: 'suppressed' },+ // Dismissed by a person or agent, or suppressed because its PR closed without merging. Restorable.+ dismissed: { view: 'dismissed' },+ // Suppressed by the safety or actionability judge, with no dismissal from anyone.+ 'held-back': { view: 'held_back' },'not-actionable': { actionability: 'not_actionable' },}@@ -349,7 +351,7 @@ export interface reportListLogicActions {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface reportListLogicMeta {- key: 'dismissed' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved'+ key: 'dismissed' | 'held-back' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved'__keaTypeGenInternalSelectorTypes: {primarySectionKey: (featureFlags: FeatureFlagsSet) => InboxReportSectionKeyscopeReviewerUuid: (scope: InboxScope, user: UserType | null) => string | undefineddiff --git a/products/signals/frontend/inbox/types.ts b/products/signals/frontend/inbox/types.tsindex da30391bb056..edbb239c78c7 100644--- a/products/signals/frontend/inbox/types.ts+++ b/products/signals/frontend/inbox/types.ts@@ -10,6 +10,7 @@ import {type SignalReportAssignmentPrStateEnumApi,type SignalReportRefundApi,type SignalReportStateRequestApi,+ type SignalReportSuppressionSourceEnumApi,type SignalScoutEmissionApi,type SignalScoutRunSummaryApi,type SignalUserAutonomyConfigApi,@@ -137,6 +138,10 @@ export interface SignalReport {dismissal_reason?: string | null/** Free-form note from the latest dismissal artefact (when archived). */dismissal_note?: string | null+ /** Who or what suppressed the report: a person (`dismissed`) or a judge's verdict. Null unless suppressed. */+ suppression_source?: SignalReportSuppressionSourceEnumApi | null+ /** The judge's explanation for a held-back report, when it gave one. */+ suppression_explanation?: string | null/** The report's PR refund, when one exists (one refund per report, ever). */refund?: SignalReportRefundApi | null/** Non-null when the report is system-marked never-billable (PostHog-system origin) — its PR is free. */@@ -297,6 +302,7 @@ export const INBOX_REPORT_SECTION_KEYS = ['needs-decision','resolved','dismissed',+ 'held-back','not-actionable',] as constexport type InboxReportSectionKey = (typeof INBOX_REPORT_SECTION_KEYS)[number]@@ -312,6 +318,7 @@ export const INBOX_REPORT_SECTION_LABEL: Record<InboxReportSectionKey, string> ='needs-decision': 'Needs decision',resolved: 'Resolved',dismissed: 'Dismissed',+ 'held-back': 'Held back','not-actionable': 'Not actionable',}@@ -321,7 +328,9 @@ export const INBOX_REPORT_SECTION_DESCRIPTION: Record<InboxReportSectionKey, str'needs-decision': 'Reports an agent can act on that have no pull request yet.',resolved: 'Reports fixed by a merged pull request, or marked resolved.',dismissed:- 'Reports you dismissed, and reports whose pull request was closed without merging. Most can be restored to your inbox.',+ 'Reports a person or agent dismissed, and reports whose pull request was closed without merging. Most can be restored to your inbox.',+ 'held-back':+ 'Reports a safety or actionability check removed before anyone reviewed them. Each one shows why it was held back.','not-actionable':'Reports judged not actionable because they are too vague, lack supporting evidence, or describe expected behavior.',}@@ -379,6 +388,7 @@ export const INBOX_SECTION_LEGACY_TAB: Record<InboxReportSectionKey, InboxFlatLi'not-actionable': 'not-actionable',resolved: 'archived',dismissed: 'archived',+ 'held-back': 'archived',}/**diff --git a/products/signals/frontend/inbox/utils/dismissalReasons.ts b/products/signals/frontend/inbox/utils/dismissalReasons.tsindex 0c330b447ca5..40c9dc7c9e3a 100644--- a/products/signals/frontend/inbox/utils/dismissalReasons.ts+++ b/products/signals/frontend/inbox/utils/dismissalReasons.ts@@ -1,3 +1,5 @@+import type { SignalReportSuppressionSourceEnumApi } from 'products/signals/frontend/generated/api.schemas'+// Port of `packages/agent/packages/agent-contracts/src/dismissal-reasons.ts`. Canonical reason codes recorded when a// report is dismissed or resolved. Values are persisted on dismissal artefacts by the backend `state`// action – add or reorder options here only, and keep the values in sync with desktop and with@@ -81,6 +83,19 @@ const EXTRA_DISMISSAL_REASON_LABELS: Record<string, string> = {merged: 'Merged into another report',}+// Why a report nobody dismissed left the inbox, keyed by the backend's `suppression_source`.+// `dismissed` has no entry: those rows show the person's reason, or nothing when none was given.+const HELD_BACK_LABELS: Partial<Record<SignalReportSuppressionSourceEnumApi, string>> = {+ safety_judge: 'Held back by safety check',+ not_actionable: 'Judged not actionable',+ system: 'Held back automatically',+}++/** Chip label for a suppressed report that no person or agent dismissed, or null. */+export function heldBackLabel(source: SignalReportSuppressionSourceEnumApi | null | undefined): string | null {+ return source ? (HELD_BACK_LABELS[source] ?? null) : null+}+/** Human label for a persisted reason code, or the raw code if it's not a known option. */export function dismissalReasonLabel(value: string | null | undefined): string | null {if (!value) {diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex 8606ae37b81d..eef5834b50a9 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -256,25 +256,28 @@ tools:search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers,`unclaimed`, and `assignee=me`. Claimed reports remain actionable and visible; use `unclaimed=true` to pickwork that has no owner and no draft, open, or unknown PR. Some statuses are hidden by default (currently- suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status. Do this- when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` /- `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses- are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's- full work log, including signal findings, judgments, and log entries, is readable via- inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by- '-is_suggested_reviewer,status,-updated_at' by default. To answer "what should I look at next", pass- `view=actionable` with `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready,- actionable reports that have no implementation PR yet, at or above the requesting user's personal- PR-generation threshold, falling back to the project threshold. `use_priority_preference` selects which- priorities to include, and does not order them, so pass `sort=priority` to put P0 first; the default- ordering can put a recently updated P4 above an older P0. Without `limit` a page holds up to 100 reports,- each with its summary. The other views are `needs_input` (waiting on a human), `needs_decision` (failed- reports, plus actionable ready or pending-input reports without an implementation PR), `monitoring` (an- implementation PR is open), `resolved`, `dismissed`, `not_actionable`, and `all`. Narrow by reviewer with- `scope=for_me`, or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every- report. `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving- reports for one source record — e.g. what the inbox already investigated for a specific support ticket —- pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket:+ suppressed); pass `include_all_statuses=true` to list reports in every status. Do this when deduplicating+ against the full inbox state, and read each row's `status` (plus `suppression_source`, `dismissal_reason`,+ and `dismissal_note` on suppressed rows) before acting. A suppressed row's `suppression_source` says whether+ someone dismissed it (`dismissed`) or a judge held it back before anyone saw it (`safety_judge`,+ `not_actionable`, `system`). For picking up work, filter to `ready` — earlier statuses are still moving+ through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log,+ including signal findings, judgments, and log entries, is readable via inbox-report-artefacts-list; read it+ before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at'+ by default. To answer "what should I look at next", pass `view=actionable` with+ `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready, actionable reports that+ have no implementation PR yet, at or above the requesting user's personal PR-generation threshold, falling+ back to the project threshold. `use_priority_preference` selects which priorities to include, and does not+ order them, so pass `sort=priority` to put P0 first; the default ordering can put a recently updated P4+ above an older P0. Without `limit` a page holds up to 100 reports, each with its summary. The other views+ are `needs_input` (waiting on a human), `needs_decision` (failed reports, plus actionable ready or+ pending-input reports without an implementation PR), `monitoring` (an implementation PR is open),+ `resolved`, `dismissed` (suppressed by a person, an agent, a merge, or a closed PR), `held_back` (suppressed+ by a judge, with nobody's review yet), `not_actionable`, and `all`. Narrow by reviewer with `scope=for_me`,+ or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every report.+ `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving reports+ for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that+ record's id as `source_id` together with exactly one `source_product` (for a support ticket:`source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` toinclude dismissed ones. Each row includes typed impact metric metadata and any accessible cached snapshot,but omits live query definitions and comparisons. Queryless legacy or malformed metrics are always redacted.@@ -302,6 +305,8 @@ tools:- already_addressed- dismissal_reason- dismissal_note+ - suppression_source+ - suppression_explanation- signal_count- total_weight- source_productsdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 824ca4cf41d2..bfef200ed8b7 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -6987,7 +6987,7 @@}},"inbox-reports-list": {- "description": "List signal reports for the current project. A signal report is a cluster of related observations (signals) that PostHog has aggregated into a single issue or trend. Reports surface in the Inbox. Supports filtering by status (potential, candidate, in_progress, pending_input, ready, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers, `unclaimed`, and `assignee=me`. Claimed reports remain actionable and visible; use `unclaimed=true` to pick work that has no owner and no draft, open, or unknown PR. Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status. Do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log, including signal findings, judgments, and log entries, is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To answer \"what should I look at next\", pass `view=actionable` with `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready, actionable reports that have no implementation PR yet, at or above the requesting user's personal PR-generation threshold, falling back to the project threshold. `use_priority_preference` selects which priorities to include, and does not order them, so pass `sort=priority` to put P0 first; the default ordering can put a recently updated P4 above an older P0. Without `limit` a page holds up to 100 reports, each with its summary. The other views are `needs_input` (waiting on a human), `needs_decision` (failed reports, plus actionable ready or pending-input reports without an implementation PR), `monitoring` (an implementation PR is open), `resolved`, `dismissed`, `not_actionable`, and `all`. Narrow by reviewer with `scope=for_me`, or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every report. `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones. Each row includes typed impact metric metadata and any accessible cached snapshot, but omits live query definitions and comparisons. Queryless legacy or malformed metrics are always redacted. Listing reports does not execute metric queries.",+ "description": "List signal reports for the current project. A signal report is a cluster of related observations (signals) that PostHog has aggregated into a single issue or trend. Reports surface in the Inbox. Supports filtering by status (potential, candidate, in_progress, pending_input, ready, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers, `unclaimed`, and `assignee=me`. Claimed reports remain actionable and visible; use `unclaimed=true` to pick work that has no owner and no draft, open, or unknown PR. Some statuses are hidden by default (currently suppressed); pass `include_all_statuses=true` to list reports in every status. Do this when deduplicating against the full inbox state, and read each row's `status` (plus `suppression_source`, `dismissal_reason`, and `dismissal_note` on suppressed rows) before acting. A suppressed row's `suppression_source` says whether someone dismissed it (`dismissed`) or a judge held it back before anyone saw it (`safety_judge`, `not_actionable`, `system`). For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log, including signal findings, judgments, and log entries, is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To answer \"what should I look at next\", pass `view=actionable` with `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready, actionable reports that have no implementation PR yet, at or above the requesting user's personal PR-generation threshold, falling back to the project threshold. `use_priority_preference` selects which priorities to include, and does not order them, so pass `sort=priority` to put P0 first; the default ordering can put a recently updated P4 above an older P0. Without `limit` a page holds up to 100 reports, each with its summary. The other views are `needs_input` (waiting on a human), `needs_decision` (failed reports, plus actionable ready or pending-input reports without an implementation PR), `monitoring` (an implementation PR is open), `resolved`, `dismissed` (suppressed by a person, an agent, a merge, or a closed PR), `held_back` (suppressed by a judge, with nobody's review yet), `not_actionable`, and `all`. Narrow by reviewer with `scope=for_me`, or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every report. `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones. Each row includes typed impact metric metadata and any accessible cached snapshot, but omits live query definitions and comparisons. Queryless legacy or malformed metrics are always redacted. Listing reports does not execute metric queries.","category": "Signals","feature": "signals","summary": "List signal reports",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 220385d86cb1..2647221b1c93 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -7184,7 +7184,7 @@}},"inbox-reports-list": {- "description": "List signal reports for the current project. A signal report is a cluster of related observations (signals) that PostHog has aggregated into a single issue or trend. Reports surface in the Inbox. Supports filtering by status (potential, candidate, in_progress, pending_input, ready, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers, `unclaimed`, and `assignee=me`. Claimed reports remain actionable and visible; use `unclaimed=true` to pick work that has no owner and no draft, open, or unknown PR. Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status. Do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log, including signal findings, judgments, and log entries, is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To answer \"what should I look at next\", pass `view=actionable` with `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready, actionable reports that have no implementation PR yet, at or above the requesting user's personal PR-generation threshold, falling back to the project threshold. `use_priority_preference` selects which priorities to include, and does not order them, so pass `sort=priority` to put P0 first; the default ordering can put a recently updated P4 above an older P0. Without `limit` a page holds up to 100 reports, each with its summary. The other views are `needs_input` (waiting on a human), `needs_decision` (failed reports, plus actionable ready or pending-input reports without an implementation PR), `monitoring` (an implementation PR is open), `resolved`, `dismissed`, `not_actionable`, and `all`. Narrow by reviewer with `scope=for_me`, or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every report. `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones. Each row includes typed impact metric metadata and any accessible cached snapshot, but omits live query definitions and comparisons. Queryless legacy or malformed metrics are always redacted. Listing reports does not execute metric queries.",+ "description": "List signal reports for the current project. A signal report is a cluster of related observations (signals) that PostHog has aggregated into a single issue or trend. Reports surface in the Inbox. Supports filtering by status (potential, candidate, in_progress, pending_input, ready, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers, `unclaimed`, and `assignee=me`. Claimed reports remain actionable and visible; use `unclaimed=true` to pick work that has no owner and no draft, open, or unknown PR. Some statuses are hidden by default (currently suppressed); pass `include_all_statuses=true` to list reports in every status. Do this when deduplicating against the full inbox state, and read each row's `status` (plus `suppression_source`, `dismissal_reason`, and `dismissal_note` on suppressed rows) before acting. A suppressed row's `suppression_source` says whether someone dismissed it (`dismissed`) or a judge held it back before anyone saw it (`safety_judge`, `not_actionable`, `system`). For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log, including signal findings, judgments, and log entries, is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To answer \"what should I look at next\", pass `view=actionable` with `use_priority_preference=true`, `sort=priority`, and `limit=10`: that returns ready, actionable reports that have no implementation PR yet, at or above the requesting user's personal PR-generation threshold, falling back to the project threshold. `use_priority_preference` selects which priorities to include, and does not order them, so pass `sort=priority` to put P0 first; the default ordering can put a recently updated P4 above an older P0. Without `limit` a page holds up to 100 reports, each with its summary. The other views are `needs_input` (waiting on a human), `needs_decision` (failed reports, plus actionable ready or pending-input reports without an implementation PR), `monitoring` (an implementation PR is open), `resolved`, `dismissed` (suppressed by a person, an agent, a merge, or a closed PR), `held_back` (suppressed by a judge, with nobody's review yet), `not_actionable`, and `all`. Narrow by reviewer with `scope=for_me`, or `scope=teammate` plus `teammate_uuid`; the default `scope=entire_project` searches every report. `priority`, `source_product`, and `scout` each take a comma-separated list. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones. Each row includes typed impact metric metadata and any accessible cached snapshot, but omits live query definitions and comparisons. Queryless legacy or malformed metrics are always redacted. Listing reports does not execute metric queries.","category": "Signals","feature": "signals","summary": "List signal reports",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex e692f1562dc9..9398ff6ced04 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -72375,6 +72375,16 @@ export namespace Schemas {reason: string;}+ export type SignalReportSuppressionSourceEnum = typeof SignalReportSuppressionSourceEnum[keyof typeof SignalReportSuppressionSourceEnum];+++ export const SignalReportSuppressionSourceEnum = {+ Dismissed: 'dismissed',+ SafetyJudge: 'safety_judge',+ NotActionable: 'not_actionable',+ System: 'system',+ } as const;+export type SignalReportAssignmentPrStateEnum = typeof SignalReportAssignmentPrStateEnum[keyof typeof SignalReportAssignmentPrStateEnum];@@ -72658,6 +72668,13 @@ export namespace Schemas {* @nullable*/readonly dismissal_note: string | null;+ /** Who or what suppressed the report. Null unless status is suppressed. `dismissed`: a person or agent dismissed it, it was merged into another report, or its pull request closed without merging; dismissal_reason says which when one was given. `safety_judge`: the safety judge marked it unsafe. `not_actionable`: the actionability judge marked it not actionable. `system`: suppressed by the pipeline for another reason. Every value except `dismissed` is a verdict nobody has reviewed, listed by the `held_back` inbox view. */+ readonly suppression_source: SignalReportSuppressionSourceEnum | null;+ /**+ * The judge's explanation when suppression_source is `safety_judge` or `not_actionable`. Null otherwise, or when the judge gave none.+ * @nullable+ */+ readonly suppression_explanation: string | null;/*** `organization/repository` the report's work targets, from the latest repo-selection artefact (when present). Lets list cards show repository context without a per-card fetch.* @nullable@@ -93869,6 +93886,13 @@ export namespace Schemas {* @nullable*/readonly dismissal_note: string | null;+ /** Who or what suppressed the report. Null unless status is suppressed. `dismissed`: a person or agent dismissed it, it was merged into another report, or its pull request closed without merging; dismissal_reason says which when one was given. `safety_judge`: the safety judge marked it unsafe. `not_actionable`: the actionability judge marked it not actionable. `system`: suppressed by the pipeline for another reason. Every value except `dismissed` is a verdict nobody has reviewed, listed by the `held_back` inbox view. */+ readonly suppression_source: SignalReportSuppressionSourceEnum | null;+ /**+ * The judge's explanation when suppression_source is `safety_judge` or `not_actionable`. Null otherwise, or when the judge gave none.+ * @nullable+ */+ readonly suppression_explanation: string | null;/*** `organization/repository` the report's work targets, from the latest repo-selection artefact (when present). Lets list cards show repository context without a per-card fetch.* @nullable@@ -126559,7 +126583,7 @@ export namespace Schemas {*/use_priority_preference?: boolean;/**- * Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment.+ * Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, held_back, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment. dismissed and held_back split the suppressed reports: dismissed holds the ones a person or agent dismissed, merged, or whose pull request closed without merging; held_back holds the ones the safety or actionability judge suppressed before anyone saw them. Each row's suppression_source says which.*/view?: string;};diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex b00d72478165..13b7c478c2c9 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -151,7 +151,7 @@ export const SignalsReportsListQueryParams = () => zod.object({.string().optional().describe(- 'Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment.'+ "Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, held_back, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment. dismissed and held_back split the suppressed reports: dismissed holds the ones a person or agent dismissed, merged, or whose pull request closed without merging; held_back holds the ones the safety or actionability judge suppressed before anyone saw them. Each row's suppression_source says which."),})diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.tsindex 4e5e314e12b1..c826442f6ba8 100644--- a/services/mcp/src/tools/generated/signals.ts+++ b/services/mcp/src/tools/generated/signals.ts@@ -447,6 +447,8 @@ const inboxReportsList = (): ToolBase<'already_addressed','dismissal_reason','dismissal_note',+ 'suppression_source',+ 'suppression_explanation','signal_count','total_weight','source_products',diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.jsonindex 7ac057294d4d..f727682ad5ee 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.json@@ -115,7 +115,7 @@"type": "boolean"},"view": {- "description": "Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment.",+ "description": "Apply an inbox view: actionable, needs_input, needs_decision, monitoring, resolved, dismissed, held_back, not_actionable, or all. Each view applies the corresponding status, actionability, and implementation-PR filters. needs_decision also includes failed reports without a judgment. dismissed and held_back split the suppressed reports: dismissed holds the ones a person or agent dismissed, merged, or whose pull request closed without merging; held_back holds the ones the safety or actionability judge suppressed before anyone saw them. Each row's suppression_source says which.","type": "string"}},