: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): prefer metric follow-up checks and shorter windows (#118717)
Mikayla Thompson6a6c79ff8d4c
diff --git a/docs/internal/signals-pr-lifecycle.md b/docs/internal/signals-pr-lifecycle.mdindex 823005497fc0..d60b9ee4d7cb 100644--- a/docs/internal/signals-pr-lifecycle.md+++ b/docs/internal/signals-pr-lifecycle.md@@ -57,13 +57,15 @@ Protected research runs require analytics access before a person can resume or w## Monitoring metric definitions-With `signals-report-monitoring` enabled, a metric check can include an optional `config.monitoring` definition. It records the target's `reference_period_minutes`, an explicit `threshold_scaling` policy, and `baseline_period_minutes` when a baseline is supplied. These periods are independent of the soak, run interval, expiry, and any future Monitoring deadline. No existing check receives an inferred definition.+Research should make every effort to complete `config.monitoring` for each metric check using the research evidence. If required facts remain unknown, explain what is missing in the rationale instead of inventing values. The definition records the target's `reference_period_minutes`, an explicit `threshold_scaling` policy, and `baseline_period_minutes` when a baseline is supplied. These periods are independent of the soak, run interval, expiry, and any future Monitoring deadline. No existing check receives an inferred definition.The definition describes a measurement from Monitoring start through the observation time. A `linear` target scales by elapsed minutes divided by reference minutes and requires a single additive event count or property sum without a formula. Session-level sums are excluded because a session can contribute to more than one chart bucket. A `fixed` target keeps its bound as the observation period grows, including for percentages, averages, distinct counts, or explicitly fixed custom targets. Display format alone never selects the policy. The baseline retains its own measured period and is not presented as an observation from Monitoring.Expected impact keeps the activity chart visible and collapses the target period, scaling policy, baseline, and minimum wait under measurement details. Dynamic chart boundaries refresh at minute intervals so repeated views can reuse cached results. Bucket granularity follows the full displayed range and stays within the 1,000-point budget. The chart preserves date-range filters and spans one reference period on each side of Monitoring start, or now before Monitoring starts, extending through now if necessary. Start and now markers separate the surrounding activity from future dates, whose values remain empty. Compatible charts show target reference lines: additive linear targets scale to a full chart bucket, and fixed rates or property averages/quantiles retain their level. Fixed totals, distinct counts, unknown aggregations, linear calendar intervals longer than a day, and linear day buckets with unequal daylight-saving durations receive no reference line. These references do not impose per-bucket pass/fail rules. This read-time chart does not evaluate the Monitoring target or save a check result. The stored bounded query and whole-window comparison retain their existing Resolved execution meaning. Monitoring execution, scaled comparisons, saved interim observations, and final outcomes remain separate work.-The server refuses new Monitoring definitions when the flag 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.+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.## Inbox value summarydiff --git a/products/signals/backend/report_generation/AGENTS.md b/products/signals/backend/report_generation/AGENTS.mdindex 2049d8cd0cce..1e1d83bb0e97 100644--- a/products/signals/backend/report_generation/AGENTS.md+++ b/products/signals/backend/report_generation/AGENTS.md@@ -82,7 +82,7 @@ In production, the `update` path is triggered automatically when a `ready` reporThis module is intentionally prompt-orchestration only.Production persistence is handled outside `run_multi_turn_research()`, in the caller activity, so this module stays isolated from report DB writes.-Monitoring metric definitions are offered only with `signals-report-monitoring` enabled. The shared writer validates the reference period, scaling policy, and baseline period. Disabled research contexts omit stored Monitoring definitions. Read [Monitoring metric definitions](../../../../docs/internal/signals-pr-lifecycle.md#monitoring-metric-definitions) when changing this contract; execution and final outcomes ship separately.+Monitoring metric definitions are offered only with `signals-report-monitoring` enabled. The shared writer validates the reference period, scaling policy, and baseline period. Disabled research contexts omit stored Monitoring definitions. When metrics are enabled, the research, presentation, and verification prompts prefer supported metric checks and evidence-backed shorter windows. Read [Monitoring metric definitions](../../../../docs/internal/signals-pr-lifecycle.md#monitoring-metric-definitions) when changing this contract; execution and final outcomes ship separately.Fix verification is best-effort. Generation failures do not fail completed research, but cancellation still does.Presentation receives the current follow-up checks as untrusted evidence. When verification proposes metric checks, it can return a separate `checks_summary` with Expected impact prose aligned with those goals and baselines, preserving other sections and chart markers. The transition applies that summary only if the matching check reconciliation succeeds. Omitted waits inherit the referenced check’s wait before generating the verification note. Invalid optional check specs leave the presentation summary and existing checks intact.diff --git a/products/signals/backend/report_generation/research.py b/products/signals/backend/report_generation/research.pyindex 08ee8c206b25..90d5a8eee635 100644--- a/products/signals/backend/report_generation/research.py+++ b/products/signals/backend/report_generation/research.py@@ -340,15 +340,58 @@ its executable part.Return a check only when it meets the bar stated for its kind below, and none otherwise. A replay towatch, a test to run, a diff to read, or a step to perform by hand stays prose only.-`soak_hours` is how long after the report is resolved to wait before checking. Default-{default_soak} hours, which covers a deploy plus a day of traffic. Say longer when the fix only-reaches users slowly — a mobile release, a cached client bundle, a weekly batch.+{scheduling_guidance}"""-_METRIC_CHECK_GUIDANCE = """- Use `kind: "metric_threshold"` when the `outcome` section comes down to one number a query can- measure: a rate that should drop, a count that should stay under a bound, a latency that should- come back down. All three of these must hold. The `outcome` section names one metric, one baseline- you actually measured this session, and one comparison that decides the question. The comparison+_DEFAULT_CHECK_SCHEDULING_GUIDANCE = """`soak_hours` is how long after the report is resolved to wait before checking. Default+{default_soak} hours, which covers a deploy plus a day of traffic. Say longer when the fix only+reaches users slowly — a mobile release, a cached client bundle, a weekly batch."""++_METRIC_FIRST_RESEARCH_GUIDANCE = """## Prepare metric-based follow-up checks++While researching, identify a metric that existing instrumentation can measure to provide useful+evidence that a future fix worked. Prefer scoped error counts, failure rates, conversion, or latency+from supported event or action queries. A metric need not prove every aspect of the fix to be useful.++Measure a baseline and inspect recent activity volume, recurrence frequency, and ingestion delay.+Use that evidence to identify the shortest useful follow-up window. Run the suitable shorter query+and measure its baseline now, because the final verification turn cannot do more research. Preserve+its filters and aggregation. Do not invent instrumentation, baselines, or thresholds. Missing data+or absent traffic must not count as success. These follow-up preferences do not lower the evidence+standards for diagnosing the issue or assessing its safety."""++_METRIC_FIRST_PRESENTATION_GUIDANCE = """## Metrics for follow-up checks++For a metric intended for an executable follow-up check, use the shortest useful query window+established during research instead of automatically using the default 14-day window. Preserve+its verified filters, aggregation, and measured baseline. Choose an interval that fits the query+window. Do not shorten a query without evidence or invent a baseline for the shorter period."""++_METRIC_FIRST_SCHEDULING_GUIDANCE = """Design post-fix follow-up verification for roughly 70-80% confidence that the issue improved,+accepting some remaining uncertainty. This is a practical evidence standard, not a calculated+confidence score. Do not require statistical significance or near-certainty, and do not report an+invented confidence percentage. Baselines and thresholds must still come from the research.++Choose the shortest useful observation window based on observed activity, recurrence frequency,+ingestion delay, and deployment timing. Allow for a deployment delay of several hours before the+fix reaches users. Consider 4-8 hours for frequent failures or high-volume flows, around 24 hours+when a day of activity is needed, and several days only when low volume,+rollout timing, or a known batch cycle justifies the wait. Do not choose seven days merely because+it is conventional.++Explicitly set `soak_hours` and explain the chosen window in the check's rationale. Keep the query+window and comparison consistent with that duration. Shortening only the wait does not shorten a+longer measurement query. For existing whole-window execution, the query window must fit entirely+after the fix; do not include pre-fix data. This guidance changes check authoring, not execution+or final-outcome rules. Preserve still-valid existing checks unless new evidence warrants revision.++Missing data, absent traffic, or a failed query must not count as evidence of recovery. Prefer a+rate with a verified denominator when available. If a metric check cannot distinguish improvement+from missing activity, explain that limitation and use an agent check when that lane is available,+or return no executable check. Do not return an unsupported metric just to avoid an agent check."""++_METRIC_CHECK_GUIDANCE = """- {metric_selection} All three of these must hold. The `outcome` section names one metric, one baseline+ you actually measured this session, and one comparison that {comparison_role}. The comparisonis a bound a number either satisfies or does not: at most X, at least X, or between X and Y. Themeasurement is a query. Do not invent a baseline or a threshold: if the session did not establishone, return no metric check. The `config` is@@ -360,27 +403,27 @@ _METRIC_CHECK_GUIDANCE = """- Use `kind: "metric_threshold"` when the `outcome`Do not use a per-interval goal: the executor compares the whole query window. A spec naminganything else is dropped."""-_MONITORING_METRIC_CHECK_GUIDANCE = """- This organization can define Monitoring metric checks. When the evidence establishes the periods and- scaling policy, include `config.monitoring` with `reference_period_minutes`, `threshold_scaling`, and- `baseline_period_minutes`. The reference period is the period the comparison target describes; the+_MONITORING_METRIC_CHECK_GUIDANCE = """- Make every effort to complete `config.monitoring` for each metric check using the research evidence.+ Include `reference_period_minutes`, `threshold_scaling`, and `baseline_period_minutes` whenever+ the evidence supports all required fields. The reference period is the period the comparison target describes; thebaseline period is the actual period you measured. Both are positive whole minutes, at most 366 days.They are independent of soak_hours and the run schedule. Monitoring observations will cover Monitoringstart through the observation time. Choose `linear` only for one additive event count or property sumwithout a formula: the target scales by elapsed minutes / reference_period_minutes. Choose `fixed`explicitly for rates, averages, distinct counts, or other targets that keep the same bound. Never inferscaling from the number's display format. Supply the baseline period whenever baseline_value is present.- If these facts are unknown, omit monitoring rather than invent them. Preserve the bounded relative query+ If required facts remain unknown, explain what is missing in the rationale and omit monitoring rather+ than invent them. Preserve the bounded relative queryand whole-window comparison for existing Resolved behavior. This only defines the measurement; it doesnot enable interim execution or decide a final outcome."""-_AGENT_CHECK_GUIDANCE = """- Use `kind: "agent"` when no single number settles the claim but a later run can establish it by- reading the project's data, such as re-reading an error issue's recent events. It needs no metric,+_AGENT_CHECK_GUIDANCE = """- {agent_selection} It needs no metric,baseline, or comparison. The `config` is`{{"instructions": "<what a later run must establish>", "probe_hints": ["<issue id>", "<service>"]}}`.Say in `instructions` what result means the fix held and what result means it did not."""_METRIC_ONLY_CHECK_GUIDANCE = """- Only `metric_threshold` checks can run on this project, because it has no scout to run an- `agent` check. Do not return an `agent` check. When no metric settles the claim, return no check."""+ `agent` check. Do not return an `agent` check. {no_metric_guidance}"""class FixVerificationOutput(BaseModel):@@ -919,7 +962,10 @@ def _render_previous_metrics_context(previous_metrics: list[ReportMetric]) -> streturn ("## Impact metrics this report already shows\n\n""Re-send each metric whose bounded event/action query still matches the updated observation, "- "optionally refresh its observed snapshot, move a metric still on an older window to the standard 14-day daily window, and omit stale, snapshot-only, or queryless metrics. "+ "optionally refresh its observed snapshot, and omit stale, snapshot-only, or queryless metrics. "+ "Preserve evidence-backed shorter windows for follow-up metrics. Change such a window only when "+ "new research establishes a better measurement period and its baseline. Use the standard 14-day "+ "daily window only as a default when the evidence establishes no better window. ""Omitting a metric removes it.\n\n"f"```json\n{rendered}\n```")@@ -1055,6 +1101,7 @@ def build_initial_research_prompt(previous_report_id: str | None = None,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,linked_reports: list[LinkedReportContext] | None = None,@@ -1087,6 +1134,7 @@ def build_initial_research_prompt("described below.")+ checks_block = f"\n{_METRIC_FIRST_RESEARCH_GUIDANCE}\n" if metric_checks_enabled else ""bk_block = f"\n{_BUSINESS_KNOWLEDGE_BLOCK}\n" if has_business_knowledge else ""# Rendered by `report_steering.load_research_steering`, which reads the notes the team left the# scout fleet. Empty for a team that left none, so a quiet project pays nothing for the section.@@ -1102,7 +1150,7 @@ def build_initial_research_prompt(---{_RESEARCH_PROTOCOL}-{bk_block}{steering_block}+{checks_block}{bk_block}{steering_block}---## Signal 1 of {total_signals}@@ -1302,6 +1350,7 @@ Do not edit report reviewers or GitHub assignments through tools. Return your de""")if metrics_enabled:visual_sections.append(_REPORT_METRICS_GUIDANCE)+ visual_sections.append(_METRIC_FIRST_PRESENTATION_GUIDANCE)previous_metrics_context = _render_previous_metrics_context(previous_metrics or [])if previous_metrics_context:visual_sections.append(previous_metrics_context)@@ -1348,6 +1397,33 @@ def build_fix_verification_prompt(can run it, because nothing would ever run a check with no scout behind it. With neither, the turn writes prose only and the`checks` field never reaches the schema, so the model is not offered a channel it cannot use."""+ prefer_metric_checks = metric_checks_enabled+ metric_selection = (+ 'Prefer `kind: "metric_threshold"` whenever a supported query provides reasonably direct evidence of '+ "meaningful improvement. Prefer a narrowly scoped metric over a broad metric requiring interpretation."+ if prefer_metric_checks+ else 'Use `kind: "metric_threshold"` when the `outcome` section comes down to one number a query can\n'+ " measure: a rate that should drop, a count that should stay under a bound, a latency that should\n"+ " come back down."+ )+ agent_selection = (+ 'Use `kind: "agent"` only when interpreting the evidence is essential or the required measurement cannot '+ "be expressed as a supported metric query. Explain that limitation in the check's rationale."+ if prefer_metric_checks+ else 'Use `kind: "agent"` when no single number settles the claim but a later run can establish it by\n'+ " reading the project's data, such as re-reading an error issue's recent events."+ )+ scheduling_guidance = (+ _METRIC_FIRST_SCHEDULING_GUIDANCE+ if prefer_metric_checks+ else _DEFAULT_CHECK_SCHEDULING_GUIDANCE.format(default_soak=DEFAULT_CHECK_SOAK_HOURS)+ )+ metric_method_guidance = (+ "For executable outcome checks, prefer a useful metric over further agentic interpretation when it meets "+ "the practical confidence target below."+ if prefer_metric_checks+ else "Do not force a product metric when another method gives better evidence."+ )schema_dict = FixVerificationOutput.model_json_schema()kinds = [guidance@@ -1365,9 +1441,23 @@ def build_fix_verification_prompt(schema_dict.get("$defs", {}).pop(definition, None)checks_section = ("\n\n"- + CHECKS_GUIDANCE.format(default_soak=DEFAULT_CHECK_SOAK_HOURS).strip()+ + CHECKS_GUIDANCE.format(scheduling_guidance=scheduling_guidance).strip()+ "\n\n"- + "\n".join(kind.format() for kind in kinds)+ + "\n".join(+ kind.format(+ metric_selection=metric_selection,+ comparison_role="provides useful evidence of improvement"+ if prefer_metric_checks+ else "decides the question",+ agent_selection=agent_selection,+ no_metric_guidance=(+ "When the evidence supports no useful metric check, return no check."+ if prefer_metric_checks+ else "When no metric settles the claim, return no check."+ ),+ )+ for kind in kinds+ )if kindselse "")@@ -1403,7 +1493,7 @@ Each section must state:- What result supports the conclusion.- What result is inconclusive.-Choose the most direct method supported by the research. It can be a query, test, log search, replay, code review, or manual check. Include the details needed to perform the check, such as known commands, inputs, IDs, filters, or time bounds. Do not force a product metric when another method gives better evidence.+Choose the most direct method supported by the research. It can be a query, test, log search, replay, code review, or manual check. Include the details needed to perform the check, such as known commands, inputs, IDs, filters, or time bounds. {metric_method_guidance}State the observed baseline and comparison criterion when the research established them. Missing data, insufficient traffic, and failed checks are inconclusive. They do not show that the issue is resolved.@@ -1534,6 +1624,7 @@ async def run_multi_turn_research(previous_report_id=previous_report_id,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,linked_reports=linked_reports,diff --git a/products/signals/backend/test/test_agentic_report_activity.py b/products/signals/backend/test/test_agentic_report_activity.pyindex 0c337f5717d8..dffccaa768c0 100644--- a/products/signals/backend/test/test_agentic_report_activity.py+++ b/products/signals/backend/test/test_agentic_report_activity.py@@ -1637,7 +1637,7 @@ async def test_run_multi_turn_research_requests_verification_note_as_the_final_apatch("products.tasks.backend.facade.agents.MultiTurnSession.start",AsyncMock(return_value=(session, first_finding)),- ),+ ) as start_session,patch("products.signals.backend.task_run_artefacts.aappend_task_run_artefact", new_callable=AsyncMock),patch("products.signals.backend.report_generation.research.logger.exception") as log_exception,):@@ -1651,6 +1651,7 @@ async def test_run_multi_turn_research_requests_verification_note_as_the_final_aMock(team_id=1),signal_report_id="report-id",metrics_enabled=_name in ("malformed_optional_checks", "revised_metric_summary"),+ monitoring_enabled=_name == "revised_metric_summary",)assert result.effective_findings() == [first_finding]assert result.effective_actionability() == actionability_result@@ -1676,6 +1677,12 @@ async def test_run_multi_turn_research_requests_verification_note_as_the_final_aelse:assert result.verification_note is None+ preferred = _name in ("malformed_optional_checks", "revised_metric_summary")+ assert ("## Prepare metric-based follow-up checks" in start_session.call_args.kwargs["prompt"]) is preferred+ prompts = {call.kwargs["label"]: call.args[0] for call in session.send_followup.await_args_list}+ assert ("## Metrics for follow-up checks" in prompts["presentation"]) is preferred+ if "fix_verification" in prompts:+ assert ("70-80% confidence" in prompts["fix_verification"]) is preferredlabels = [call.kwargs["label"] for call in session.send_followup.await_args_list]assert labels == expected_labelsif failure is asyncio.CancelledError:diff --git a/products/signals/backend/test/test_research_prompt.py b/products/signals/backend/test/test_research_prompt.pyindex 7df30cd58781..6fe0110b6932 100644--- a/products/signals/backend/test/test_research_prompt.py+++ b/products/signals/backend/test/test_research_prompt.py@@ -101,6 +101,15 @@ class TestRenderSignalForResearch:class TestBuildInitialResearchPrompt:+ @pytest.mark.parametrize("metric_checks_enabled", [False, True])+ def test_short_window_baseline_research_requires_metrics(self, metric_checks_enabled: bool) -> None:+ prompt = build_initial_research_prompt(+ _make_signal({}),+ 1,+ metric_checks_enabled=metric_checks_enabled,+ )+ assert ("## Prepare metric-based follow-up checks" in prompt) is metric_checks_enabled+@pytest.mark.parametrize("has_bk, expected_present, extra_checks",[@@ -278,12 +287,25 @@ class TestBuildInitialResearchPrompt:class TestBuildFixVerificationPrompt:- @pytest.mark.parametrize("monitoring_enabled", [True, False])- def test_monitoring_metric_authoring_is_offered_only_when_enabled(self, monitoring_enabled: bool) -> None:- prompt = build_fix_verification_prompt(metric_checks_enabled=True, monitoring_enabled=monitoring_enabled)- assert ("reference_period_minutes" in prompt) is monitoring_enabled- assert ("threshold_scaling" in prompt) is monitoring_enabled- assert ("baseline_period_minutes" in prompt) is monitoring_enabled+ @pytest.mark.parametrize("metric_checks_enabled", [False, True])+ @pytest.mark.parametrize("monitoring_enabled", [False, True])+ @pytest.mark.parametrize("agent_checks_enabled", [False, True])+ def test_monitoring_metric_authoring_is_offered_only_when_enabled(+ self, metric_checks_enabled: bool, monitoring_enabled: bool, agent_checks_enabled: bool+ ) -> None:+ prompt = build_fix_verification_prompt(+ metric_checks_enabled=metric_checks_enabled,+ monitoring_enabled=monitoring_enabled,+ agent_checks_enabled=agent_checks_enabled,+ )+ preferred = metric_checks_enabled+ for field in ("reference_period_minutes", "threshold_scaling", "baseline_period_minutes"):+ assert (field in prompt) is (metric_checks_enabled and monitoring_enabled)+ assert ("70-80% confidence" in prompt) is preferred+ assert ('Prefer `kind: "metric_threshold"`' in prompt) is preferred+ assert ("4-8 hours" in prompt) is preferred+ assert ("Default\n24 hours" in prompt) is (not preferred and (metric_checks_enabled or agent_checks_enabled))+ assert ('Use `kind: "agent"`' in prompt) is agent_checks_enableddef test_reresearch_reviews_approved_checks_without_gating_them(self):prompt = build_fix_verification_prompt(@@ -448,6 +470,11 @@ def _make_chart() -> ReportChart:class TestBuildReportPresentationPrompt:+ @pytest.mark.parametrize("metrics_enabled", [False, True])+ def test_short_followup_query_guidance_requires_metrics(self, metrics_enabled: bool) -> None:+ prompt = build_report_presentation_prompt(1, metrics_enabled=metrics_enabled)+ assert ("## Metrics for follow-up checks" in prompt) is metrics_enabled+def test_observation_prompt_never_authors_goal_fields(self):prompt = build_report_presentation_prompt(2, metrics_enabled=True)assert '"goal_value"' not in prompt@@ -554,7 +581,9 @@ class TestBuildReportPresentationPrompt:"value_at": "2026-08-29T12:00:00Z","value_format": "count","unit": "users",- "query": trends_metric_query(series=[{"kind": "EventsNode", "event": "$exception", "math": "dau"}]),+ "query": trends_metric_query(+ series=[{"kind": "EventsNode", "event": "$exception", "math": "dau"}], date_from="-8h"+ ),"comparison": {"value": 11, "label": "Previous period"},})@@ -564,6 +593,12 @@ class TestBuildReportPresentationPrompt:assert '"comparison"' not in promptassert "Previous period" not in prompt+ presentation = build_report_presentation_prompt(1, metrics_enabled=True, previous_metrics=[metric])+ assert "## Metrics for follow-up checks" in presentation+ assert "Preserve evidence-backed shorter windows for follow-up metrics" in presentation+ assert "move a metric still on an older window" not in presentation+ assert '"date_from": "-8h"' in presentation+class TestReportPresentationOutputCharts:# Title, summary, and charts arrive as one response, so a chart that fails validation used to