: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): add closed report state (#124558)
Mikayla Thompson6009cffcaa72
diff --git a/docs/internal/signals-pr-lifecycle.md b/docs/internal/signals-pr-lifecycle.mdindex 3b8ba4366e82..25f879ff565d 100644--- a/docs/internal/signals-pr-lifecycle.md+++ b/docs/internal/signals-pr-lifecycle.md@@ -130,6 +130,10 @@ Interim query exhaustion and schedule expiry do not consume the final budget: frState, flag, definition, and attempt guards apply before querying and again when saving.Final results leave reports in Monitoring; authored-agent checks, report outcome aggregation, assessment, and follow-up research have separate execution paths.+The **Closed** report state (`closed`) means an implementation attempt ended without proving resolution. It is distinct from processing failure and from Resolved. It preserves the original Monitoring timestamp and attempt evidence. Closed reports remain readable, manually resolvable, reopenable, and archivable, but have no dedicated section in the inbox UI. Restoring an archived Closed report returns it to Closed. A Closed child does not count as successful completion of its parent plan, and child updates do not overwrite a parent's Closed outcome.++Closed reports still count as acted-on work for scout engagement and organization adoption. A new matching signal follows the existing recurrence path into a fresh linked report; the Closed attempt stays unchanged and supplies context for that report's research. That context preserves the unproven Closed outcome rather than describing the attempt as fixed. Closed reports are excluded from unclaimed-work selection, and child rollup preserves an archived parent's saved Closed outcome.+With `signals-report-metrics` enabled, research gathers short-window baselines before verification and prefers metric-based follow-up checks. It aims for practical 70-80% confidence in improvement, without claiming a calculated confidence score. Observed volume, recurrence, ingestion delay, and deployment timing justify the shortest useful query and wait. Frequent or high-volume checks can use 4-8 hours, allowing for several hours of deployment delay before the fix reaches users. Around 24 hours or several days require the corresponding activity or rollout evidence. Agent checks remain available when interpretation or unsupported measurements prevent a useful metric check. Missing activity is not success. These prompt preferences do not change execution, schema defaults, or final outcomes.The server refuses new Monitoring definitions when `signals-report-monitoring` is disabled or unavailable and omits the definition from check responses. Stored definitions remain intact. Research carries its definition-visibility decision into reconciliation, so flag recovery during a run does not replace an unchanged check or reset its approval and schedule. Existing definitions, charts, check schedules, and Resolved outcomes otherwise follow their current behavior.diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 35920f34ac94..d46815801d0b 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -11797,9 +11797,9 @@ snapshots:scenes-app-inbox-agent-steering--empty--light:hash: v1.k794b7964.8adf1aa893baffeccf09c959ceb43997a3d0dd7b802f915f683721bb3178811c.yiCitLDCxycb1PBAgQTZ4xqjtSr02cPmmNj0VOb8bu8scenes-app-inbox-badges--all-badges--dark:- hash: v1.k794b7964.c6bac996748791bbd88c8abc72d44e9172769986297ab0ac48fd23ec9edcc5b2.092bC5ezJqGKGs9AZe67qgtt9PQKNSYVgzXfH2iKrJg+ hash: v1.k794b7964.81beb23b0f5d86d2f034789d2e4b7c9fbc8d2604bc249676d7e69c656ffd5ddd.esG0tfBqbGNg3u_Rp7zU9zTtEGbc20Zlw8gp_MX-Kycscenes-app-inbox-badges--all-badges--light:- hash: v1.k794b7964.58da4d3170f8e7795f0e7c976674e55efad66d852d07d5b9fcdb01afcfc17891.H6sNsGilEijnYs7rdTtGX8wC3jL4D29WyUBvImXTFUs+ hash: v1.k794b7964.dbbc59f2220d651b8ba34d07ee113d912c3ab1404c245a5533c73c6b714ed809.kYcnjcB3M5smbeUGvt2jhhCc5WigaxdbMJ4swTjGPmoscenes-app-inbox-cards--agent-run-cards--dark:hash: v1.k794b7964.7cc4dbc1b4a83c8bf268f09c3d00e8b7603c512cdd0c3cc0d75f4b981e5dc5ab.wTpmY_L9kXga6yhoZsATY70EN3UhqZAs-YdxGBCZBWQscenes-app-inbox-cards--agent-run-cards--light:diff --git a/products/signals/backend/auto_start.py b/products/signals/backend/auto_start.pyindex 2bbe208b4426..84d310e8fcef 100644--- a/products/signals/backend/auto_start.py+++ b/products/signals/backend/auto_start.py@@ -619,7 +619,11 @@ def _duplicate_already_worked_on(*, team_id: int, chain: list[str]) -> str | Nonstatus = statuses.get(candidate)if status is None:continue- if candidate in with_work or status in {SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING}:+ if candidate in with_work or status in {+ SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,+ SignalReport.Status.MONITORING,+ }:return candidatereturn Nonediff --git a/products/signals/backend/facade/api.py b/products/signals/backend/facade/api.pyindex 314a5883193c..e8d1e19d29af 100644--- a/products/signals/backend/facade/api.py+++ b/products/signals/backend/facade/api.py@@ -626,7 +626,12 @@ def organization_acted_on_report(organization_id: "str | uuid.UUID") -> bool:"""return SignalReport.objects.filter(team__organization_id=organization_id,- status__in=[SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING, SignalReport.Status.SUPPRESSED],+ status__in=[+ SignalReport.Status.RESOLVED,+ SignalReport.Status.MONITORING,+ SignalReport.Status.CLOSED,+ SignalReport.Status.SUPPRESSED,+ ],).exists()diff --git a/products/signals/backend/implementation_pr.py b/products/signals/backend/implementation_pr.pyindex 7eed6fd49674..61fbf31244af 100644--- a/products/signals/backend/implementation_pr.py+++ b/products/signals/backend/implementation_pr.py@@ -49,7 +49,12 @@ if TYPE_CHECKING:# A report in one of these statuses is finished with its pull request. Anything else still holds# it open — a status this list doesn't know about keeps the PR, which is the safe direction._FINISHED_REPORT_STATUSES = frozenset(- {SignalReport.Status.RESOLVED, SignalReport.Status.SUPPRESSED, SignalReport.Status.DELETED}+ {+ SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,+ SignalReport.Status.SUPPRESSED,+ SignalReport.Status.DELETED,+ })_PULL_REQUEST_URL_BODY = (diff --git a/products/signals/backend/migrations/0214_closed_report_state.py b/products/signals/backend/migrations/0214_closed_report_state.pynew file mode 100644index 000000000000..621bd1a790ce--- /dev/null+++ b/products/signals/backend/migrations/0214_closed_report_state.py@@ -0,0 +1,51 @@+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [("signals", "0213_report_inbox_state_cache")]++ operations = [+ migrations.AlterField(+ model_name="signalreport",+ name="status",+ field=models.CharField(+ choices=[+ ("potential", "Potential"),+ ("candidate", "Candidate"),+ ("in_progress", "In Progress"),+ ("pending_input", "Pending Input"),+ ("ready", "Ready"),+ ("monitoring", "Monitoring"),+ ("resolved", "Resolved"),+ ("closed", "Closed"),+ ("failed", "Failed"),+ ("deleted", "Deleted"),+ ("suppressed", "Suppressed"),+ ],+ default="potential",+ max_length=20,+ ),+ ),+ migrations.AlterField(+ model_name="signalreport",+ name="status_before_suppression",+ field=models.CharField(+ blank=True,+ choices=[+ ("potential", "Potential"),+ ("candidate", "Candidate"),+ ("in_progress", "In Progress"),+ ("pending_input", "Pending Input"),+ ("ready", "Ready"),+ ("monitoring", "Monitoring"),+ ("resolved", "Resolved"),+ ("closed", "Closed"),+ ("failed", "Failed"),+ ("deleted", "Deleted"),+ ("suppressed", "Suppressed"),+ ],+ max_length=20,+ null=True,+ ),+ ),+ ]diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txtindex 75a9222ee199..2cea72f3c388 100644--- a/products/signals/backend/migrations/max_migration.txt+++ b/products/signals/backend/migrations/max_migration.txt@@ -1 +1 @@-0213_report_inbox_state_cache+0214_closed_report_statediff --git a/products/signals/backend/models.py b/products/signals/backend/models.pyindex 4e389142ae60..994d985c73f8 100644--- a/products/signals/backend/models.py+++ b/products/signals/backend/models.py@@ -357,6 +357,7 @@ class SignalReport(UUIDModel):READY = "ready"MONITORING = "monitoring"RESOLVED = "resolved"+ CLOSED = "closed", "Closed"FAILED = "failed"DELETED = "deleted"SUPPRESSED = "suppressed"@@ -606,7 +607,7 @@ class SignalReport(UUIDModel):self.status_before_suppression = Noneupdated_fields.add("status_before_suppression")- case (S.MONITORING, S.RESOLVED | S.READY):+ case (S.MONITORING, S.RESOLVED | S.READY | S.CLOSED):pass# Pipeline transitions@@ -662,7 +663,14 @@ class SignalReport(UUIDModel):# Reset to potential (from in_progress via actionability judge, from suppressed, or by user snooze)case (- S.IN_PROGRESS | S.PENDING_INPUT | S.SUPPRESSED | S.READY | S.MONITORING | S.RESOLVED | S.FAILED,+ S.IN_PROGRESS+ | S.PENDING_INPUT+ | S.SUPPRESSED+ | S.READY+ | S.MONITORING+ | S.RESOLVED+ | S.CLOSED+ | S.FAILED,S.POTENTIAL,):self.promoted_at = None@@ -684,7 +692,7 @@ class SignalReport(UUIDModel):# before suppression. Title/summary/error are already set from the earlier research run,# so they are preserved as-is. In-flight states (candidate/in_progress) are never restored# here — they have no live workflow to resume and instead route back through POTENTIAL above.- case (S.SUPPRESSED, S.PENDING_INPUT | S.READY | S.RESOLVED | S.FAILED):+ case (S.SUPPRESSED, S.PENDING_INPUT | S.READY | S.RESOLVED | S.CLOSED | S.FAILED):self.status_before_suppression = Noneupdated_fields.add("status_before_suppression")@@ -704,6 +712,7 @@ class SignalReport(UUIDModel):| S.READY| S.MONITORING| S.RESOLVED+ | S.CLOSED| S.FAILED,S.SUPPRESSED,):@@ -721,13 +730,14 @@ class SignalReport(UUIDModel):| S.READY| S.MONITORING| S.RESOLVED+ | S.CLOSED| S.FAILED| S.SUPPRESSED,S.DELETED,):pass- case (S.RESOLVED, S.READY):+ case (S.RESOLVED | S.CLOSED, S.READY):pass# Only researched reports can resolve@@ -735,7 +745,7 @@ class SignalReport(UUIDModel):# FAILED resolves too: a run that died in processing still describes real work, and# whoever fixed it needs a way to say so. Without this edge the only exit is a# dismissal, which used to make the report a sink for every later recurrence.- case (S.PENDING_INPUT | S.READY | S.FAILED, S.RESOLVED):+ case (S.PENDING_INPUT | S.READY | S.FAILED | S.CLOSED, S.RESOLVED):# Just pass through to status settingpass@@ -797,7 +807,7 @@ class SignalReport(UUIDModel):back through POTENTIAL to re-enter the pipeline."""S = self.Status- researched = {S.READY, S.PENDING_INPUT, S.RESOLVED, S.FAILED}+ researched = {S.READY, S.PENDING_INPUT, S.RESOLVED, S.CLOSED, S.FAILED}prior = self.status_before_suppressionif prior == S.MONITORING:return S.MONITORING if self._monitoring_enabled() else S.RESOLVED@@ -1153,7 +1163,11 @@ class SignalReportAssignment(TeamScopedRootMixin, UUIDModel):@propertydef work_state(self) -> SignalReportWorkState:- if self.report.status in {SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING}:+ if self.report.status in {+ SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,+ SignalReport.Status.MONITORING,+ }:return SignalReportWorkState.DONEfrom products.signals.backend.implementation_pr import fetch_implementation_prs_for_reportsdiff --git a/products/signals/backend/plan_rollup.py b/products/signals/backend/plan_rollup.pyindex 27d4f33d0aec..7e9d5e611206 100644--- a/products/signals/backend/plan_rollup.py+++ b/products/signals/backend/plan_rollup.py@@ -131,7 +131,10 @@ def _close_parent(if parent.status == SignalReport.Status.MONITORING and get_monitoring_enabled is not Noneelse None,)- if parent_status == SignalReport.Status.MONITORING:+ if parent_status in {SignalReport.Status.MONITORING, SignalReport.Status.CLOSED} or (+ parent_status == SignalReport.Status.SUPPRESSED+ and parent.status_before_suppression == SignalReport.Status.CLOSED+ ):return Falseif parent_status == target:return Falsediff --git a/products/signals/backend/pull_requests.py b/products/signals/backend/pull_requests.pyindex c1d60f53ef47..316b932296a5 100644--- a/products/signals/backend/pull_requests.py+++ b/products/signals/backend/pull_requests.py@@ -155,7 +155,8 @@ def link_pull_request(link.save(update_fields=["pull_request"])if (state_source != PullRequestStateSource.LEGACY_ASSIGNMENT- and report.status in {SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING}+ and report.status+ in {SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED, SignalReport.Status.MONITORING}and pr.state not in {SignalReportPullRequest.State.MERGED, SignalReportPullRequest.State.CLOSED}):report.save(update_fields=report.transition_to(SignalReport.Status.READY))diff --git a/products/signals/backend/ranking/inventory.py b/products/signals/backend/ranking/inventory.pyindex f901fa62c7aa..137f0d37fc01 100644--- a/products/signals/backend/ranking/inventory.py+++ b/products/signals/backend/ranking/inventory.py@@ -18,6 +18,7 @@ BORN_VISIBLE_STATUSES = (SignalReport.Status.PENDING_INPUT,SignalReport.Status.IN_PROGRESS,SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,SignalReport.Status.MONITORING,)diff --git a/products/signals/backend/report_assignments.py b/products/signals/backend/report_assignments.pyindex 515d3793bd73..f21b777153cc 100644--- a/products/signals/backend/report_assignments.py+++ b/products/signals/backend/report_assignments.py@@ -352,6 +352,7 @@ def _apply_pr_report_state(report: SignalReport, pr_state: str | None, *, merged# close. Suppressing on it would undo the resolution moments after the person made it.if target == SignalReport.Status.SUPPRESSED and report.status in {SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,SignalReport.Status.MONITORING,}:returndiff --git a/products/signals/backend/report_generation/research.py b/products/signals/backend/report_generation/research.pyindex f8481ad00fc0..e26fa5fc9d60 100644--- a/products/signals/backend/report_generation/research.py+++ b/products/signals/backend/report_generation/research.py@@ -6,7 +6,7 @@ import asyncioimport loggingfrom collections.abc import Sequencefrom html import escape-from typing import TYPE_CHECKING+from typing import TYPE_CHECKING, Literalfrom uuid import UUIDfrom pydantic import (@@ -763,25 +763,40 @@ def _render_existing_report_context(previous_report_id: str | None) -> str:)-def _render_resolved_report_context(resolved_title: str | None, resolved_summary: str | None) -> str:- if not resolved_title and not resolved_summary:+@frozen+class RecurrenceReportContext:+ title: str | None+ summary: str | None+ status: Literal["resolved", "closed"]+++def _render_recurrence_report_context(report: RecurrenceReportContext | None) -> str:+ if report is None or (not report.title and not report.summary):return ""- parts = [- "\n---\n\n## Previously closed report",- "",- "A very similar issue was covered by an earlier report that was marked as **fixed**. "+ outcome = (+ "An earlier report covered a very similar issue, but its implementation attempt ended as **Closed** "+ "without proving resolution. This signal is a recurrence, so investigate whether the attempted fix "+ "left the issue unresolved, addressed only part of it, or concerns a distinct problem. "+ "Use the prior investigation as context and establish what the evidence supports."+ if report.status == "closed"+ else "A very similar issue was covered by an earlier report that was marked as **fixed**. ""Verify this claim: it does not prove that a fix shipped. This signal is a recurrence, so it's a fresh report rather than a ""reopening of that one. Take the prior fix into account: figure out whether this is a regression of that ""fix, a new dimension of the same underlying issue, or a genuinely distinct problem, and say which in your "- "findings.",+ "findings."+ )+ parts = [+ "\n---\n\n## Previously closed report",+ "",+ outcome,"","The closed report was:",]- if resolved_title:- parts.append(f"- **Title:** {resolved_title}")- if resolved_summary:- parts.append(f"- **Summary:** {resolved_summary}")+ if report.title:+ parts.append(f"- **Title:** {report.title}")+ if report.summary:+ parts.append(f"- **Summary:** {report.summary}")return "\n".join(parts) + "\n"@@ -1210,8 +1225,7 @@ def build_initial_research_prompt(previous_finding: SignalFinding | None = None,has_business_knowledge: bool = False,metric_checks_enabled: bool = False,- resolved_report_title: str | None = None,- resolved_report_summary: str | None = None,+ recurrence_report: RecurrenceReportContext | None = None,linked_reports: list[LinkedReportContext] | None = None,steering_section: str = "",code_available: bool = True,@@ -1230,7 +1244,7 @@ def build_initial_research_prompt(report_context += f"**Summary:** {summary}\n\n"existing_report_context = _render_existing_report_context(previous_report_id)- resolved_report_context = _render_resolved_report_context(resolved_report_title, resolved_report_summary)+ recurrence_report_context = _render_recurrence_report_context(recurrence_report)linked_report_context = _render_linked_report_context(linked_reports or [])previous_finding_context = _render_previous_finding_context(previous_finding)investigation_instruction = (@@ -1255,7 +1269,7 @@ def build_initial_research_prompt({investigation_instruction.format(total_signals=total_signals)}{report_context}{existing_report_context}-{resolved_report_context}+{recurrence_report_context}{linked_report_context}---@@ -1741,8 +1755,7 @@ async def run_multi_turn_research(signal_report_id: str | None = None,spend_signal_id: str | None = None,has_business_knowledge: bool = False,- resolved_report_title: str | None = None,- resolved_report_summary: str | None = None,+ recurrence_report: RecurrenceReportContext | None = None,linked_reports: list[LinkedReportContext] | None = None,metrics_enabled: bool = False,monitoring_enabled: bool = False,@@ -1791,8 +1804,7 @@ async def run_multi_turn_research(previous_finding=first_previous,has_business_knowledge=has_business_knowledge,metric_checks_enabled=metrics_enabled,- resolved_report_title=resolved_report_title,- resolved_report_summary=resolved_report_summary,+ recurrence_report=recurrence_report,linked_reports=linked_reports,steering_section=steering_section,code_available=code_available,diff --git a/products/signals/backend/report_monitoring_attempts.py b/products/signals/backend/report_monitoring_attempts.pyindex 7ab8fdd66382..05d8ae9bd1ec 100644--- a/products/signals/backend/report_monitoring_attempts.py+++ b/products/signals/backend/report_monitoring_attempts.py@@ -66,7 +66,7 @@ def complete_implementation(report._transition_actor = attribution # type: ignore[attr-defined]report._transition_actor_user = actor_user # type: ignore[attr-defined]report._status_from_pr_state = from_pr_merge # type: ignore[attr-defined]- if report.status == SignalReport.Status.RESOLVED:+ if report.status in {SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED}:return Noneenabled = team_report_monitoring_enabled(team_id)if report.status == SignalReport.Status.MONITORING:diff --git a/products/signals/backend/scout_harness/inactivity.py b/products/signals/backend/scout_harness/inactivity.pyindex 310153b49274..6232a23d4580 100644--- a/products/signals/backend/scout_harness/inactivity.py+++ b/products/signals/backend/scout_harness/inactivity.py@@ -133,6 +133,7 @@ _ENGAGED_REPORT_STATUSES: frozenset[str] = frozenset({SignalReport.Status.RESOLVED,SignalReport.Status.MONITORING,+ SignalReport.Status.CLOSED,SignalReport.Status.DELETED,})diff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.pyindex dfdd87f82c96..21a94a0cc100 100644--- a/products/signals/backend/serializers.py+++ b/products/signals/backend/serializers.py@@ -2171,7 +2171,7 @@ class SignalReportSerializer(serializers.ModelSerializer):@extend_schema_field(serializers.ChoiceField(choices=SignalReportWorkState.choices))def get_work_state(self, obj: SignalReport) -> str:- if obj.status in {SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING}:+ if obj.status in {SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED, SignalReport.Status.MONITORING}:return "done"if any(pr.state in {"open", "draft", "unknown"} for pr in self._get_pull_requests(obj)):return "in_review"diff --git a/products/signals/backend/temporal/agentic/report.py b/products/signals/backend/temporal/agentic/report.pyindex 0c49756efb98..e78abb406868 100644--- a/products/signals/backend/temporal/agentic/report.py+++ b/products/signals/backend/temporal/agentic/report.py@@ -52,6 +52,7 @@ from products.signals.backend.report_generation.research import (LinkedReportContext,Priority,PriorityAssessment,+ RecurrenceReportContext,ReportResearchOutput,SignalFinding,run_multi_turn_research,@@ -328,15 +329,7 @@ def _load_previous_checks(team_id: int, report_id: str, *, monitoring_enabled: b]-async def _load_resolved_report_context(team_id: int, report_id: str) -> tuple[str | None, str | None]:- """Title/summary of the report claimed as fixed that this one recurred from, if any.-- When a signal that would have grouped into a report already closed as fixed spawns a fresh- report instead (such a report never reopens), the grouping pipeline writes a `recurrence_of`- report link. Legacy reports use symmetric `related_to` artefacts. The source makes that claim:- resolved, or dismissed as fixed (see recurrence.py). Handing it to the research agent lets it- judge regression vs. new dimension vs. distinct.- """+async def _load_recurrence_report_context(team_id: int, report_id: str) -> RecurrenceReportContext | None:related_ids: list[str] = []recurrence_ids: list[str] = []async for artefact in SignalReportArtefact.objects.filter(@@ -355,9 +348,9 @@ async def _load_resolved_report_context(team_id: int, report_id: str) -> tuple[scontinuerelated_ids = recurrence_ids or related_idsif not related_ids:- return None, None+ return Noneclosed_filter = await database_sync_to_async(report_status_filter)(- [SignalReport.Status.RESOLVED, SignalReport.Status.SUPPRESSED], team_id=team_id+ [SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED, SignalReport.Status.SUPPRESSED], team_id=team_id)async for candidate in (SignalReport.objects.filter(@@ -365,24 +358,33 @@ async def _load_resolved_report_context(team_id: int, report_id: str) -> tuple[sid__in=related_ids,team_id=team_id,)- .only("title", "summary", "status", "team")+ .only("title", "summary", "status", "status_before_suppression", "team").order_by("-created_at")):if await database_sync_to_async(_is_safety_suppressed, thread_sensitive=False)(str(candidate.id), team_id):continue- if (- await database_sync_to_async(lambda report=candidate: report.effective_status)()- == SignalReport.Status.RESOLVED- ):- return candidate.title, candidate.summary+ candidate_status = await database_sync_to_async(lambda report=candidate: report.effective_status)()+ if candidate_status in {+ SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,+ }:+ return RecurrenceReportContext(+ title=candidate.title,+ summary=candidate.summary,+ status="closed" if candidate_status == SignalReport.Status.CLOSED else "resolved",+ )# Only an archived candidate costs the dismissal read, and the newest match wins, so the# loop stops at the first one rather than reading every link.- if (- str(candidate.id) in recurrence_ids- and await database_sync_to_async(fixed_dismissal_at, thread_sensitive=False)(candidate) is not None+ if str(candidate.id) in recurrence_ids and (+ candidate.status_before_suppression == SignalReport.Status.CLOSED+ or await database_sync_to_async(fixed_dismissal_at, thread_sensitive=False)(candidate) is not None):- return candidate.title, candidate.summary- return None, None+ return RecurrenceReportContext(+ title=candidate.title,+ summary=candidate.summary,+ status="closed" if candidate.status_before_suppression == SignalReport.Status.CLOSED else "resolved",+ )+ return None# Kinds whose target carries context this report should start from. `duplicate_of` is absent@@ -1227,10 +1229,7 @@ async def _run_agentic_report(input: RunAgenticReportInput) -> RunAgenticReportOprevious_checks = await database_sync_to_async(_load_previous_checks, thread_sensitive=False)(input.team_id, input.report_id, monitoring_enabled=monitoring_enabled)- # 2b. Load the resolved report this one recurred from, if any, as extra research context- resolved_report_title, resolved_report_summary = await _load_resolved_report_context(- input.team_id, input.report_id- )+ recurrence_report = await _load_recurrence_report_context(input.team_id, input.report_id)# Load the reports this one follows up, depends on, or is a step of, so the agent starts# from their findings and pull requests instead of re-deriving them.linked_reports = await _load_linked_report_context(input.team_id, input.report_id)@@ -1262,8 +1261,7 @@ async def _run_agentic_report(input: RunAgenticReportInput) -> RunAgenticReportOsignal_report_id=input.report_id,spend_signal_id=input.signal_id,has_business_knowledge=has_bk,- resolved_report_title=resolved_report_title,- resolved_report_summary=resolved_report_summary,+ recurrence_report=recurrence_report,linked_reports=linked_reports,metrics_enabled=metrics_enabled,monitoring_enabled=monitoring_enabled,diff --git a/products/signals/backend/temporal/grouping.py b/products/signals/backend/temporal/grouping.pyindex e99801201b3f..b9179554595d 100644--- a/products/signals/backend/temporal/grouping.py+++ b/products/signals/backend/temporal/grouping.py@@ -919,12 +919,10 @@ async def assign_and_emit_signal_activity(input: AssignAndEmitSignalInput) -> Asdismissed_for_recurrence_at = (recurrence_dismissal_at(report) if report.status == SignalReport.Status.SUPPRESSED else None)- # Resolved reports are terminal — never reopen them. When a signal would have grouped- # into an already-resolved report, the issue it fixed has recurred (or a related one- # has), so we start a fresh report and link it to the resolved report via a- # `recurrence_of` report link. The research agent is later handed that- # resolved report as context (see report.py).- if report.effective_status == SignalReport.Status.RESOLVED or dismissed_for_recurrence_at is not None:+ if (+ report.effective_status in {SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED}+ or dismissed_for_recurrence_at is not None+ ):parent_report = reportinherit_content = not _is_safety_suppressed(str(parent_report.id), input.team_id)report = SignalReport.objects.create(diff --git a/products/signals/backend/test/test_agentic_report_activity.py b/products/signals/backend/test/test_agentic_report_activity.pyindex 52ca05050c6d..9987cdff6b4b 100644--- a/products/signals/backend/test/test_agentic_report_activity.py+++ b/products/signals/backend/test/test_agentic_report_activity.py@@ -70,7 +70,7 @@ from products.signals.backend.temporal.agentic.report import (RunAgenticReportInput,_load_linked_report_context,_load_previous_research,- _load_resolved_report_context,+ _load_recurrence_report_context,_parse_artefact_content,_parse_stored_charts,_parse_stored_metrics,@@ -305,23 +305,35 @@ def _build_signals() -> list[SignalData]:@pytest.mark.asyncio@pytest.mark.django_db@pytest.mark.parametrize(- ("parent_status", "dismissal_reason", "expected"),+ ("parent_status", "prior_status", "dismissal_reason", "expected"),[- (SignalReport.Status.RESOLVED, None, True),- (SignalReport.Status.SUPPRESSED, "already_fixed", True),- (SignalReport.Status.SUPPRESSED, "wrong_repo", False),+ (SignalReport.Status.RESOLVED, None, None, True),+ (SignalReport.Status.CLOSED, None, None, True),+ (SignalReport.Status.SUPPRESSED, SignalReport.Status.CLOSED, None, True),+ (SignalReport.Status.SUPPRESSED, None, "already_fixed", True),+ (SignalReport.Status.SUPPRESSED, None, "wrong_repo", False),# Archived because nobody wants to see it, not because it was fixed: there is no prior fix# to reason about, so the research agent is told nothing.- (SignalReport.Status.SUPPRESSED, "wontfix_intentional", False),+ (SignalReport.Status.SUPPRESSED, None, "wontfix_intentional", False),],)@pytest.mark.parametrize("typed_link", [False, True])@pytest.mark.parametrize("safety_verdicts", [[], [False], [True], [False, True], [True, False], ["invalid"]])-async def test_recurrence_context_comes_from_a_parent_closed_as_fixed(- ateam, parent_status, dismissal_reason, expected, typed_link, safety_verdicts-):+async def test_recurrence_context_preserves_the_predecessor_outcome(+ ateam: Team,+ parent_status: str,+ prior_status: str | None,+ dismissal_reason: str | None,+ expected: bool,+ typed_link: bool,+ safety_verdicts: list[bool | str],+) -> None:parent = await database_sync_to_async(SignalReport.objects.create)(- team=ateam, status=parent_status, title="stale chunk TypeError", summary="Imports fail after a deploy."+ team=ateam,+ status=parent_status,+ status_before_suppression=prior_status,+ title="stale chunk TypeError",+ summary="Imports fail after a deploy.",)if dismissal_reason is not None:await database_sync_to_async(SignalReportArtefact.append_dismissal)(@@ -349,13 +361,21 @@ async def test_recurrence_context_comes_from_a_parent_closed_as_fixed(attribution=ArtefactAttribution.system(),)- context = await _load_resolved_report_context(ateam.id, str(fork.id))+ context = await _load_recurrence_report_context(ateam.id, str(fork.id))safe = not safety_verdicts or safety_verdicts[-1] is True- valid_link = typed_link or parent_status == SignalReport.Status.RESOLVED- assert context == (- ("stale chunk TypeError", "Imports fail after a deploy.") if expected and safe and valid_link else (None, None)- )+ valid_link = typed_link or parent_status in {SignalReport.Status.RESOLVED, SignalReport.Status.CLOSED}+ if expected and safe and valid_link:+ assert context is not None+ assert context.title == "stale chunk TypeError"+ assert context.summary == "Imports fail after a deploy."+ assert context.status == (+ "closed"+ if parent_status == SignalReport.Status.CLOSED or prior_status == SignalReport.Status.CLOSED+ else "resolved"+ )+ else:+ assert context is Noneassert await _load_previous_research(ateam.id, str(fork.id)) is Nonediff --git a/products/signals/backend/test/test_assign_and_emit_signal.py b/products/signals/backend/test/test_assign_and_emit_signal.pyindex 3aced3b7ddc1..397ba8cec760 100644--- a/products/signals/backend/test/test_assign_and_emit_signal.py+++ b/products/signals/backend/test/test_assign_and_emit_signal.py@@ -455,6 +455,8 @@ async def test_ready_repromotes_to_candidate_on_a_bucket_regardless_of_weight(at"report_status,flag_result,recurs",[(SignalReport.Status.RESOLVED, False, True),+ (SignalReport.Status.CLOSED, False, True),+ (SignalReport.Status.CLOSED, True, True),(SignalReport.Status.MONITORING, False, True),(SignalReport.Status.MONITORING, RuntimeError("flag service unavailable"), True),(SignalReport.Status.MONITORING, True, False),diff --git a/products/signals/backend/test/test_plan_rollup.py b/products/signals/backend/test/test_plan_rollup.pyindex dbee061e3be0..1bb33fe7af68 100644--- a/products/signals/backend/test/test_plan_rollup.py+++ b/products/signals/backend/test/test_plan_rollup.py@@ -74,6 +74,14 @@ class TestPlanRollup(BaseTest):("both_resolved", ["resolved", "resolved"], SignalReport.Status.RESOLVED),("mixed_with_a_resolve", ["resolved", "suppressed"], SignalReport.Status.RESOLVED),("all_suppressed", ["suppressed", "suppressed"], SignalReport.Status.SUPPRESSED),+ (+ "closed_parent_keeps_failed_attempt",+ ["resolved"],+ SignalReport.Status.CLOSED,+ SignalReport.Status.CLOSED,+ ),+ ("archived_closed_parent_keeps_outcome", ["resolved"], "suppressed", "closed", True),+ ("archived_closed_parent_keeps_archive", ["suppressed"], "suppressed", "closed", True),("monitoring_parent_needs_manual_verification",["resolved"],@@ -83,9 +91,16 @@ class TestPlanRollup(BaseTest):])def test_a_plan_takes_the_verdict_of_its_steps(- self, _name: str, child_statuses: list[str], expected: str, parent_status: str = SignalReport.Status.READY+ self,+ _name: str,+ child_statuses: list[str],+ expected: str,+ parent_status: str = SignalReport.Status.READY,+ archive_parent: bool = False,) -> None:parent = self._report("plan", status=parent_status)+ if archive_parent:+ self._close(parent, SignalReport.Status.SUPPRESSED)children = [self._report(f"step-{index}") for index in range(len(child_statuses))]for child in children:self._part_of(child, parent)@@ -96,16 +111,19 @@ class TestPlanRollup(BaseTest):parent.refresh_from_db()assert parent.status == expected- if expected == SignalReport.Status.SUPPRESSED:+ if archive_parent:+ assert parent.status_before_suppression == parent_status+ elif expected == SignalReport.Status.SUPPRESSED:feedback = SignalReportArtefact.latest_content(team_id=self.team.id, report_id=str(parent.id), model=Dismissal)assert feedback is not Noneassert feedback.state == "suppressed"- def test_a_plan_stays_open_while_any_step_is(self):+ @parameterized.expand([("ready",), ("closed",)])+ def test_a_plan_stays_open_while_a_step_has_not_resolved(self, child_status: str) -> None:parent = self._report("plan")- done, still_open = self._report("done"), self._report("open")+ done, still_open = self._report("done"), self._report("unfinished", status=child_status)self._part_of(done, parent)self._part_of(still_open, parent)diff --git a/products/signals/backend/test/test_report_lifecycle.py b/products/signals/backend/test/test_report_lifecycle.pyindex 1cb3b407cd01..2cb710775411 100644--- a/products/signals/backend/test/test_report_lifecycle.py+++ b/products/signals/backend/test/test_report_lifecycle.py@@ -72,9 +72,10 @@ class TestReportMonitoringLifecycle(SimpleTestCase):assert report.status == SignalReport.Status.READYassert report.monitoring_started_at is None- def test_finishing_verification_preserves_the_implementation_time(self) -> None:+ @parameterized.expand([("resolved",), ("closed",)])+ def test_finishing_verification_preserves_the_implementation_time(self, target: str) -> None:merged_at = timezone.now() - timedelta(days=3)report = SignalReport(team_id=7, status=SignalReport.Status.MONITORING, monitoring_started_at=merged_at)- report.transition_to(SignalReport.Status.RESOLVED)- assert report.status == SignalReport.Status.RESOLVED+ report.transition_to(SignalReport.Status(target))+ assert report.status == targetassert report.monitoring_started_at == merged_atdiff --git a/products/signals/backend/test/test_research_prompt.py b/products/signals/backend/test/test_research_prompt.pyindex befa86f65ed9..158816211e0b 100644--- a/products/signals/backend/test/test_research_prompt.py+++ b/products/signals/backend/test/test_research_prompt.py@@ -2,6 +2,7 @@ import jsonimport loggingfrom dataclasses import replacefrom datetime import datetime+from typing import Literalfrom xml.etree import ElementTreeimport pytest@@ -18,6 +19,7 @@ from products.signals.backend.report_generation.research import (DataOnlySignalFindingUpdate,FixVerificationOutput,LinkedReportContext,+ RecurrenceReportContext,ReportPresentationOutput,SignalFinding,_render_linked_report_context,@@ -169,19 +171,25 @@ class TestBuildInitialResearchPrompt:for snippet in extra_checks:assert snippet in prompt- def test_resolved_report_context_present_when_provided(self):+ @pytest.mark.parametrize("parent_status", ["resolved", "closed"])+ def test_recurrence_report_context_preserves_outcome(self, parent_status: Literal["resolved", "closed"]) -> None:signal = _make_signal({})prompt = build_initial_research_prompt(signal,1,- resolved_report_title="fix(funnel): drop off after step 2",- resolved_report_summary="Users were falling out of the funnel.",+ recurrence_report=RecurrenceReportContext(+ title="fix(funnel): drop off after step 2",+ summary="Users were falling out of the funnel.",+ status=parent_status,+ ),)assert "## Previously closed report" in promptassert "fix(funnel): drop off after step 2" in promptassert "Users were falling out of the funnel." in prompt+ assert ("marked as **fixed**" in prompt) is (parent_status == "resolved")+ assert ("without proving resolution" in prompt) is (parent_status == "closed")- def test_resolved_report_context_absent_by_default(self):+ def test_recurrence_report_context_absent_by_default(self) -> None:signal = _make_signal({})prompt = build_initial_research_prompt(signal, 1)assert "## Previously closed report" not in promptdiff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.pyindex 7579132a0901..c8dc8a2574c4 100644--- a/products/signals/backend/test/test_scout_harness_api.py+++ b/products/signals/backend/test/test_scout_harness_api.py@@ -3,6 +3,7 @@ from __future__ import annotationsimport jsonfrom datetime import UTC, datetime, timedeltafrom decimal import Decimal+from ipaddress import ip_addressfrom typing import TYPE_CHECKINGfrom uuid import UUID, uuid4@@ -5934,6 +5935,9 @@ _LIGHTHOUSE_REPORT = {class TestScoutHarnessLighthouseAPI(APIBaseTest):def setUp(self) -> None:super().setUp()+ self.enterContext(+ patch("posthog.security.url_validation.resolve_host_ips", return_value={ip_address("93.184.216.34")})+ )# lighthouse-audit requires `signal_scout_internal:write` — session auth is rejected._authenticate_as_scout(self)diff --git a/products/signals/backend/test/test_scout_harness_tools.py b/products/signals/backend/test/test_scout_harness_tools.pyindex 26741c8ef71c..65d92217b8b6 100644--- a/products/signals/backend/test/test_scout_harness_tools.py+++ b/products/signals/backend/test/test_scout_harness_tools.py@@ -2,7 +2,9 @@ from __future__ import annotationsimport uuidimport dataclasses+from collections.abc import Iteratorfrom datetime import timedelta+from ipaddress import ip_addressfrom typing import TYPE_CHECKINGfrom urllib.parse import quote@@ -1964,6 +1966,11 @@ def _no_flag_payload():class TestLighthouseAudit:+ @pytest.fixture(autouse=True)+ def mock_target_dns(self) -> Iterator[None]:+ with patch("posthog.security.url_validation.resolve_host_ips", return_value={ip_address("93.184.216.34")}):+ yield+def _audit(self, payload: dict, *, url: str = "https://posthog.com/pricing", form_factor: str = "desktop"):response = MagicMock(status_code=200, content=b"{}")response.json.return_value = payloaddiff --git a/products/signals/backend/test/test_scout_inactivity.py b/products/signals/backend/test/test_scout_inactivity.pyindex 89250d4a2231..973f27ff270d 100644--- a/products/signals/backend/test/test_scout_inactivity.py+++ b/products/signals/backend/test/test_scout_inactivity.py@@ -215,6 +215,7 @@ class TestScoutInactivitySweep(BaseTest):# counts as consumption even when the merge never touched the app.("resolved_status", None, SignalReport.Status.RESOLVED, None),("monitoring_status", None, SignalReport.Status.MONITORING, None),+ ("closed_status", None, SignalReport.Status.CLOSED, None),# Reading is consumption: a report someone opens (or rates) is not a report nobody# wanted, even when they never resolve or dismiss it.("view_action", None, None, SignalReportAction.ActionType.VIEW),diff --git a/products/signals/backend/test/test_signal_report_api.py b/products/signals/backend/test/test_signal_report_api.pyindex a10e12716d43..306ee6035234 100644--- a/products/signals/backend/test/test_signal_report_api.py+++ b/products/signals/backend/test/test_signal_report_api.py@@ -1446,15 +1446,23 @@ class TestSignalReportListAPI(APIBaseTest):# --- status filter ---- def test_filter_by_resolved_status(self):- resolved = self._create_report(title="Resolved", status=SignalReport.Status.RESOLVED)+ @parameterized.expand([("resolved", "status"), ("closed", "status"), ("closed", "view")])+ def test_filter_by_completed_status(self, report_status: str, parameter: str) -> None:+ resolved = self._create_report(title="Completed attempt", status=report_status)self._create_report(title="Ready", status=SignalReport.Status.READY)+ self._create_report(title="Other outcome", status="closed" if report_status == "resolved" else "resolved")- response = self.client.get(self._list_url(status="resolved"))+ response = self.client.get(self._list_url(**{parameter: report_status}))assert response.status_code == status.HTTP_200_OKids = {r["id"] for r in response.json()["results"]}assert ids == {str(resolved.id)}+ for unclaimed in ("true", "false"):+ response = self.client.get(self._list_url(unclaimed=unclaimed))+ assert response.status_code == status.HTTP_200_OK+ ids = {row["id"] for row in response.json()["results"]}+ assert (str(resolved.id) in ids) is (unclaimed == "false")+@parameterized.expand([("disabled", False), ("enabled", True), ("unavailable", RuntimeError("flag service unavailable"))])@@ -4361,6 +4369,7 @@ class TestSignalReportSuppressionAPI(APIBaseTest):("ready", SignalReport.Status.READY, SignalReport.Status.READY),("pending_input", SignalReport.Status.PENDING_INPUT, SignalReport.Status.PENDING_INPUT),("resolved", SignalReport.Status.RESOLVED, SignalReport.Status.RESOLVED),+ ("closed", SignalReport.Status.CLOSED, SignalReport.Status.CLOSED),("failed", SignalReport.Status.FAILED, SignalReport.Status.FAILED),# In-flight / pre-research states have no live workflow, so restore re-enters the pipeline.("potential", SignalReport.Status.POTENTIAL, SignalReport.Status.POTENTIAL),diff --git a/products/signals/backend/views.py b/products/signals/backend/views.pyindex 671d3419e2d9..73b778c844a9 100644--- a/products/signals/backend/views.py+++ b/products/signals/backend/views.py@@ -344,7 +344,12 @@ _PULL_REQUEST_ID_PARAMETER = OpenApiParameter(PR_CI_STATUS_MAX_REPORTS = 100# Report statuses whose pull request is no longer open, so its CI is not worth a GitHub call._PR_CI_STATUS_TERMINAL_REPORT_STATUSES = frozenset(- {SignalReport.Status.FAILED, SignalReport.Status.SUPPRESSED, SignalReport.Status.RESOLVED}+ {+ SignalReport.Status.FAILED,+ SignalReport.Status.SUPPRESSED,+ SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,+ })@@ -793,6 +798,7 @@ _RESOLVABLE_STATUSES_BEFORE_SUPPRESSION = frozenset(SignalReport.Status.READY,SignalReport.Status.PENDING_INPUT,SignalReport.Status.RESOLVED,+ SignalReport.Status.CLOSED,SignalReport.Status.FAILED,})@@ -811,7 +817,7 @@ class SignalReportStateRequestSerializer(serializers.Serializer):help_text=("Target state for the report. Use 'suppressed' to dismiss the report from the inbox, ""'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. "- "Resolving is allowed from ready, pending_input, failed, or monitoring, "+ "Resolving is allowed from ready, pending_input, failed, closed, or monitoring, ""or from a suppressed report that previously held one of those statuses or resolved. ""Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). ""Dismissing or resolving closes the report's open implementation PR, if it has one. "@@ -1571,6 +1577,7 @@ class SignalReportViewSet("needs_decision","monitoring","resolved",+ "closed","dismissed","held_back","not_actionable",@@ -2045,7 +2052,7 @@ class SignalReportViewSet(else implementation_pr_report_filter(team_id=self.team.id, active_only=True))is_unclaimed = (- ~Q(status__in={SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING})+ ~Q(status__in={SignalReport.Status.RESOLVED, SignalReport.Status.MONITORING, SignalReport.Status.CLOSED})& ~reports_with_active_claim(team_id=self.team_id)& ~has_review_pr)@@ -2259,6 +2266,8 @@ class SignalReportViewSet(return queryset.filter(status=SignalReport.Status.READY).filter(self._implementation_pr_report_filter())if inbox_view == "resolved":return queryset.filter(status__in=self._resolved_read_statuses())+ if inbox_view == "closed":+ return queryset.filter(status=SignalReport.Status.CLOSED)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@@ -2289,6 +2298,7 @@ class SignalReportViewSet(When(status=SignalReport.Status.FAILED, then=Value(6)),When(status=SignalReport.Status.MONITORING, then=Value(6 if self._report_monitoring_enabled else 7)),When(status__in=self._resolved_read_statuses(), then=Value(7)),+ When(status=SignalReport.Status.CLOSED, then=Value(7)),When(status=SignalReport.Status.SUPPRESSED, then=Value(8)),When(status=SignalReport.Status.DELETED, then=Value(9)),default=Value(50),diff --git a/products/signals/dags/inbox_ranking/tests/test_dataset.py b/products/signals/dags/inbox_ranking/tests/test_dataset.pyindex 973bd7aa5f58..7f10e33f74f6 100644--- a/products/signals/dags/inbox_ranking/tests/test_dataset.py+++ b/products/signals/dags/inbox_ranking/tests/test_dataset.py@@ -543,6 +543,7 @@ class TestSpineInclusion(BaseTest):promoted = self._report(SignalReport.Status.POTENTIAL, promoted_at=BEFORE_CUTOFF)born_visible = self._report(SignalReport.Status.READY)monitoring = self._report(SignalReport.Status.MONITORING)+ closed = self._report(SignalReport.Status.CLOSED)promoted_after_cutoff = self._report(SignalReport.Status.READY, promoted_at=AFTER_SNAPSHOT_END)self._report(SignalReport.Status.POTENTIAL)self._report(SignalReport.Status.SUPPRESSED)@@ -553,7 +554,7 @@ class TestSpineInclusion(BaseTest):for report_id in SignalReport.objects.filter(spine_report_filter(SNAPSHOT_END)).values_list("id", flat=True)}- assert in_spine == {promoted, born_visible, monitoring}+ assert in_spine == {promoted, born_visible, monitoring, closed}assert promoted_after_cutoff not in in_spineassert created_after_cutoff not in in_spinediff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 7669d75f40f1..817415b74e6f 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -1526,6 +1526,7 @@ export interface ReviewerControlResponseApi {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed@@ -1540,6 +1541,7 @@ export const SignalReportStatusEnumApi = {Ready: 'ready',Monitoring: 'monitoring',Resolved: 'resolved',+ Closed: 'closed',Failed: 'failed',Deleted: 'deleted',Suppressed: 'suppressed',@@ -2230,6 +2232,7 @@ export interface ReportPlanStepApi {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed */@@ -2270,6 +2273,7 @@ export interface ReportPlanApi {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed */@@ -5196,7 +5200,7 @@ export const DismissalReasonEnumApi = {} as constexport interface SignalReportStateRequestApi {- /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.+ /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.** * `suppressed` - suppressed* * `potential` - potential@@ -5833,7 +5837,7 @@ export interface SignalReportCheckReplacementApi {}export interface SignalReportBulkStateRequestApi {- /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.+ /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.** * `suppressed` - suppressed* * `potential` - potentialdiff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex e15866405345..79c54adc8f80 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -1081,7 +1081,7 @@ export const SignalsReportsStateCreateBody = /* @__PURE__ */ zod.object({'\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring').describe(- "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"+ "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"),dismissal_reason: zod.enum([@@ -1357,7 +1357,7 @@ export const SignalsReportsBulkStateCreateBody = /* @__PURE__ */ zod.object({'\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring').describe(- "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"+ "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"),dismissal_reason: zod.enum([diff --git a/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx b/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsxindex 807a3d021e63..a1e70f7cada9 100644--- a/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx+++ b/products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx@@ -30,6 +30,7 @@ export const STATUS_TOOLTIPS: Partial<Record<SignalReportStatus, string>> = {[SignalReportStatus.CANDIDATE]: 'Queued for research. An agent will pick this up shortly.',[SignalReportStatus.POTENTIAL]: 'Gathering signals. The report will be queued once enough evidence accumulates.',[SignalReportStatus.RESOLVED]: 'This report has been resolved.',+ [SignalReportStatus.CLOSED]: 'This implementation attempt ended without proving resolution.',[SignalReportStatus.MONITORING]: 'Implementation is complete. Outcome verification is pending.',[SignalReportStatus.FAILED]: 'Research failed. The report may be retried automatically.',[SignalReportStatus.SUPPRESSED]: 'This report was dismissed and is out of your inbox.',@@ -43,6 +44,7 @@ export const STATUS_LABELS: Partial<Record<SignalReportStatus, string>> = {[SignalReportStatus.CANDIDATE]: 'Queued',[SignalReportStatus.POTENTIAL]: 'Gathering',[SignalReportStatus.RESOLVED]: 'Resolved',+ [SignalReportStatus.CLOSED]: 'Closed',[SignalReportStatus.MONITORING]: 'Monitoring',[SignalReportStatus.FAILED]: 'Failed',[SignalReportStatus.SUPPRESSED]: 'Dismissed',@@ -58,6 +60,7 @@ function inboxStatusBadgeType(status: SignalReportStatus): LemonTagType {return 'completion'case SignalReportStatus.PENDING_INPUT:case SignalReportStatus.MONITORING:+ case SignalReportStatus.CLOSED:return 'caution'case SignalReportStatus.IN_PROGRESS:return 'warning'diff --git a/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx b/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsxindex b44506d6a9cf..edbc890f8ab6 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetailActions.tsx@@ -194,7 +194,7 @@ export function useReportDetailActions(report: SignalReport): ReportDetailAction},]: []),- ...(report.status === SignalReportStatus.MONITORING+ ...([SignalReportStatus.MONITORING, SignalReportStatus.CLOSED].includes(report.status)? [{key: 'reopen',diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsxindex 1e72a23cb1fc..daa152b938c5 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx@@ -286,14 +286,23 @@ describe('ReportsTab', () => {// All the states load at once, so the naive wiring fires one `Inbox viewed` per state and// multiplies every visit in the activation funnel.- it('fires Inbox viewed once for the whole list', async () => {+ it.each([+ { name: 'the visible sections', counts: COUNT_BY_FILTER, total: 14, empty: false },+ {+ name: 'only hidden Closed reports',+ counts: [{ match: (params: URLSearchParams) => params.get('status') === 'closed', count: 3 }],+ total: 0,+ empty: true,+ },+ ])('fires Inbox viewed once for $name', async ({ counts, total, empty }) => {+ mockReportCounts(counts)render(<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 + Held back. Not actionable is staff-only triage.- expect(viewed[0][1]).toMatchObject({ tab: 'reports', total_count: 14, is_empty: false })+ expect(viewed[0][1]).toMatchObject({ tab: 'reports', total_count: total, is_empty: empty })})})diff --git a/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts b/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.tsindex d61acab334fc..c648a48ea4b1 100644--- a/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts+++ b/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts@@ -126,7 +126,7 @@ describe('inboxFiltersLogic', () => {scope: 'teammate:not-a-uuid',source: 'error_tracking,bogus_source',priority: 'P9,P1',- state: 'monitoring,bogus-state',+ state: 'monitoring,closed,bogus-state',// priority:desc has a valid field and direction but is not one of the offered sort options.sort: 'priority:desc',})diff --git a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.tsindex 1d88a00b09a8..9be22dca7be2 100644--- a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts+++ b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts@@ -1116,7 +1116,7 @@ describe('inboxReportDetailLogic', () => {expect(artefactRequests).toBe(beforeKickoff + 1)})- it.each([SignalReportStatus.RESOLVED, SignalReportStatus.SUPPRESSED])(+ it.each([SignalReportStatus.RESOLVED, SignalReportStatus.CLOSED, SignalReportStatus.SUPPRESSED])('refreshes Monitoring timing on lifecycle changes before stopping polling for %s',async (status) => {await expectLogic(logic).toFinishAllListeners()@@ -1154,22 +1154,24 @@ describe('inboxReportDetailLogic', () => {results: [{...check,- monitoring_timing:- reportStatus === SignalReportStatus.RESOLVED- ? undefined- : {- ...check.monitoring_timing,- state:- reportStatus === SignalReportStatus.SUPPRESSED- ? 'archived'- : requests > 1- ? 'window_ended'- : 'scheduled',- next_measurement_at:- requests > 1- ? null- : check.monitoring_timing?.next_measurement_at,- },+ monitoring_timing: [+ SignalReportStatus.RESOLVED,+ SignalReportStatus.CLOSED,+ ].includes(reportStatus)+ ? undefined+ : {+ ...check.monitoring_timing,+ state:+ reportStatus === SignalReportStatus.SUPPRESSED+ ? 'archived'+ : requests > 1+ ? 'window_ended'+ : 'scheduled',+ next_measurement_at:+ requests > 1+ ? null+ : check.monitoring_timing?.next_measurement_at,+ },},],}diff --git a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.ts b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.tsindex 87a1ac8ef584..762213738b97 100644--- a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.ts+++ b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.ts@@ -2167,6 +2167,7 @@ export const inboxReportDetailLogic = kea<inboxReportDetailLogicType>([const interval = setInterval(() => {if (values.report?.status !== SignalReportStatus.RESOLVED &&+ values.report?.status !== SignalReportStatus.CLOSED &&values.report?.status !== SignalReportStatus.SUPPRESSED &&values.report?.status !== SignalReportStatus.DELETED &&!values.reportChecksLoading &&diff --git a/products/signals/frontend/inbox/types.ts b/products/signals/frontend/inbox/types.tsindex b23f3b6cff5a..00d9401a331f 100644--- a/products/signals/frontend/inbox/types.ts+++ b/products/signals/frontend/inbox/types.ts@@ -178,6 +178,7 @@ export enum SignalReportStatus {READY = 'ready',MONITORING = 'monitoring',RESOLVED = 'resolved',+ CLOSED = 'closed',FAILED = 'failed',// Out-of-inbox terminal states (backend: SignalReport.Status). Excluded from every tab.DELETED = 'deleted',diff --git a/products/signals/frontend/inbox/utils/reportActions.test.ts b/products/signals/frontend/inbox/utils/reportActions.test.tsindex e302e501df5b..2bf099df0151 100644--- a/products/signals/frontend/inbox/utils/reportActions.test.ts+++ b/products/signals/frontend/inbox/utils/reportActions.test.ts@@ -7,6 +7,7 @@ describe('reportActions', () => {[SignalReportStatus.PENDING_INPUT, true],[SignalReportStatus.FAILED, true],[SignalReportStatus.MONITORING, true],+ [SignalReportStatus.CLOSED, true],[SignalReportStatus.POTENTIAL, false],[SignalReportStatus.CANDIDATE, false],[SignalReportStatus.IN_PROGRESS, false],@@ -22,6 +23,7 @@ describe('reportActions', () => {[SignalReportStatus.PENDING_INPUT, true, true],[SignalReportStatus.FAILED, true, true],[SignalReportStatus.MONITORING, true, false],+ [SignalReportStatus.CLOSED, true, false],[SignalReportStatus.RESOLVED, true, false],[SignalReportStatus.SUPPRESSED, true, false],] as const)('gates manual Monitoring for %s with server capability %s: %s', (status, enabled, expected) => {diff --git a/products/signals/frontend/inbox/utils/reportActions.ts b/products/signals/frontend/inbox/utils/reportActions.tsindex 087ba4975b35..131d484b234b 100644--- a/products/signals/frontend/inbox/utils/reportActions.ts+++ b/products/signals/frontend/inbox/utils/reportActions.ts@@ -45,6 +45,7 @@ export function canResolveReport(report: SignalReport): boolean {report.status === SignalReportStatus.READY ||report.status === SignalReportStatus.PENDING_INPUT ||report.status === SignalReportStatus.FAILED ||+ report.status === SignalReportStatus.CLOSED ||report.status === SignalReportStatus.MONITORING)}@@ -54,6 +55,7 @@ export function canMonitorReport(report: SignalReport, hasFollowUpChecks: booleahasFollowUpChecks &&'monitoring_started_at' in report &&canResolveReport(report) &&+ report.status !== SignalReportStatus.CLOSED &&report.status !== SignalReportStatus.MONITORING)}diff --git a/products/signals/frontend/inbox/utils/reportOrdering.ts b/products/signals/frontend/inbox/utils/reportOrdering.tsindex 4e6f6a5319fb..185c3c15749f 100644--- a/products/signals/frontend/inbox/utils/reportOrdering.ts+++ b/products/signals/frontend/inbox/utils/reportOrdering.ts@@ -22,6 +22,7 @@ const STATUS_RANK: Record<SignalReportStatus, number> = {[SignalReportStatus.FAILED]: 6,[SignalReportStatus.MONITORING]: 6,[SignalReportStatus.RESOLVED]: 7,+ [SignalReportStatus.CLOSED]: 7,[SignalReportStatus.SUPPRESSED]: 8,[SignalReportStatus.DELETED]: 9,}diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 11d057716249..b4cab4df4bae 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -79896,6 +79896,7 @@ export namespace Schemas {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed@@ -79911,6 +79912,7 @@ export namespace Schemas {Ready: 'ready',Monitoring: 'monitoring',Resolved: 'resolved',+ Closed: 'closed',Failed: 'failed',Deleted: 'deleted',Suppressed: 'suppressed',@@ -80472,6 +80474,7 @@ export namespace Schemas {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed */@@ -80512,6 +80515,7 @@ export namespace Schemas {* * `ready` - Ready* * `monitoring` - Monitoring* * `resolved` - Resolved+ * * `closed` - Closed* * `failed` - Failed* * `deleted` - Deleted* * `suppressed` - Suppressed */@@ -110289,7 +110293,7 @@ export namespace Schemas {} as const;export interface SignalReportBulkStateRequest {- /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.+ /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.** * `suppressed` - suppressed* * `potential` - potential@@ -110680,7 +110684,7 @@ export namespace Schemas {}export interface SignalReportStateRequest {- /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.+ /** Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.** * `suppressed` - suppressed* * `potential` - potentialdiff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex 1a75034eefc2..281e2a2aa827 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -904,7 +904,7 @@ export const SignalsReportsStateCreateBody = () => zod.object({'\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring').describe(- "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"+ "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"),dismissal_reason: zod.enum([@@ -1342,7 +1342,7 @@ export const SignalsReportsBulkStateCreateBody = () => zod.object({'\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring').describe(- "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"+ "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze\/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n\* `suppressed` - suppressed\n\* `potential` - potential\n\* `resolved` - resolved\n\* `monitoring` - monitoring"),dismissal_reason: zod.enum([diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-bulk-set-state.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-bulk-set-state.jsonindex a2479ff65e52..3b9b8b85d50c 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-bulk-set-state.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-bulk-set-state.json@@ -45,7 +45,7 @@"type": "number"},"state": {- "description": "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n* `suppressed` - suppressed\n* `potential` - potential\n* `resolved` - resolved\n* `monitoring` - monitoring",+ "description": "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n* `suppressed` - suppressed\n* `potential` - potential\n* `resolved` - resolved\n* `monitoring` - monitoring","enum": ["suppressed", "potential", "resolved", "monitoring"],"type": "string"}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-set-state.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-set-state.jsonindex 9ce4d36f7355..97918cb80e05 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-set-state.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-set-state.json@@ -41,7 +41,7 @@"type": "number"},"state": {- "description": "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n* `suppressed` - suppressed\n* `potential` - potential\n* `resolved` - resolved\n* `monitoring` - monitoring",+ "description": "Target state for the report. Use 'suppressed' to dismiss the report from the inbox, 'potential' to snooze/reopen it for later review, or 'resolved' when the report is finished. Resolving is allowed from ready, pending_input, failed, closed, or monitoring, or from a suppressed report that previously held one of those statuses or resolved. Resolving an already resolved report succeeds. Other statuses return 409 (skipped in bulk). Dismissing or resolving closes the report's open implementation PR, if it has one. Use 'monitoring' when implementation is complete and outcome verification is pending. Entry requires the organization rollout and snapshots this report's pending or active, unexpired checks. Without applicable checks the report resolves directly. Manual completion records caller attribution, stops remaining follow-up checks, and does not claim automatic verification or an evidence amendment.\n\n* `suppressed` - suppressed\n* `potential` - potential\n* `resolved` - resolved\n* `monitoring` - monitoring","enum": ["suppressed", "potential", "resolved", "monitoring"],"type": "string"}