: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): let scouts record inconclusive check verdicts (#108330)
posthog[bot]cf19699b8b6a
diff --git a/products/signals/ARCHITECTURE.md b/products/signals/ARCHITECTURE.mdindex 8c0fa78280ee..fcfb32e126e0 100644--- a/products/signals/ARCHITECTURE.md+++ b/products/signals/ARCHITECTURE.md@@ -482,7 +482,7 @@ The activity log shows PR references as title links with repository, number, and| `commit` | `{"repository": "owner/repo", "branch": "...", "commit_sha": "...", "message": "...", "note"?: "..."}` — one pushed commit || `task_run` | `{"task_id": "...", "run_id"?: "...", "product": "...", "type": "..."}` — a task run associated with the report (see below) || `note` | `{"note": "...", "author"?: "..."}` — free-form note (markdown allowed) |-| `check_result` | `{"check_id": "...", "kind": "...", "title": "...", "outcome": "passed"\|"failed"\|"errored", "explanation": "...", "observed_value"?, "baseline_value"?, "threshold"?, "run_id"?}` — one run of a report check |+| `check_result` | `{"check_id": "...", "kind": "...", "title": "...", "outcome": "passed"\|"failed"\|"errored"\|"inconclusive", "explanation": "...", "reason"?, "observed_value"?, "baseline_value"?, "threshold"?, "run_id"?}` — one run of a report check || `report_link` | `{"kind": "depends_on"\|"part_of"\|"follow_up_of"\|"duplicate_of"\|"recurrence_of", "report_id": "...", "reason"?: "..."}` — a typed, directed link to another report in the same project (see Typed report links) || `autostart_skip` | `{"skip_reason": "duplicate_of"\|"blocked_by_dependency"\|"plan_parent", "linked_report_id"?: "...", "detail": "..."}` — a link gate held automatic implementation back (see Typed report links) |diff --git a/products/signals/backend/report_check_agent.py b/products/signals/backend/report_check_agent.pyindex ea1891fc3688..38a87affacbe 100644--- a/products/signals/backend/report_check_agent.py+++ b/products/signals/backend/report_check_agent.py@@ -163,8 +163,9 @@ def build_check_run_note(check: SignalReportCheck, config: AgentCheckConfig) ->lines += ["",f"Finish by calling `scout-check-record-result` with check_id `{check.id}` and an outcome of "- "`passed` (the expectation still holds), `failed` (it does not), or `errored` (you could not "- "establish either). That call is the only thing that closes the check.",+ "`passed` (the evidence meets the bar and the expectation holds), `failed` (it meets the bar "+ "and the expectation does not hold), `inconclusive` with a `reason` (the evidence cannot settle "+ "it), or `errored` (a tool or model call failed). That call is the only thing that closes the check.",]return "\n".join(lines)diff --git a/products/signals/backend/scout_harness/AGENTS.md b/products/signals/backend/scout_harness/AGENTS.mdindex fdb0b3de14e7..749984a3563a 100644--- a/products/signals/backend/scout_harness/AGENTS.md+++ b/products/signals/backend/scout_harness/AGENTS.md@@ -66,7 +66,7 @@ In production it is driven by `SignalsScoutCoordinatorWorkflow` (periodic tick eThose stages have no `SignalScoutRun`, so `created_by_run` cannot name them. They stamp `SignalScratchpad.created_by_identity` instead — a `pipeline:*` string from `../pipeline_identity.py`, resolved server-side from the token's bound task (its `ai_stage`, written once at run creation) rather than passed in, since a writer that could name itself could name a scout's skill. `_to_entry` reads it as `created_by_skill` when there is no run, so `scout-scratchpad-search` attributes every entry the same way. Like `created_by_run` it is written on create only, so an upsert keeps the original author.- `notes.py` — `list_notes` / `leave_note` / `delete_note` backed by the `SignalScoutNote` model: steering notes humans (or other agents) leave for the fleet over the public MCP surface (`scout-notes-*` tools), the inbound counterpart to the scratchpad. A note targets one scout by `skill_name` or the whole fleet (blank), optionally expiring via `expires_at`; the run prompt's _Notes left for you_ section directs every scout to `scout-notes-list` its own notes in step 1 and treat them as advisory steering. A third audience is a stage of the report pipeline, addressed through the reserved `pipeline:*` family (`PIPELINE_AUDIENCES`, holding `pipeline:report-research` today): a pseudo-target riding the same `skill_name` column, allowlisted at write time so an unrecognized one is rejected instead of silently steering no one, and skipping the scout-skill lookup because a stage has no `LLMSkill` row. `list_notes` matches `skill_name` exactly, so no scout ever sees a pipeline note; the research loader in `../report_steering.py` pastes the `pipeline:report-research` notes and tells the run to search the rest with `text`. `validate_note_target`, the shared write-time rule, and the audience constants live in `../note_targets.py`, an import-light module, because the Django admin form calls the rule at registry load and importing anything under `tools/` runs that package's `__init__`, which pulls in every harness tool. Unlike the scratchpad there is no sandbox-only write gate, but writes still demand skill-authoring-level authorization (keys need `llm_skill:write` on top of `signal_scout:write`, and every writer must clear the `llm_skill` RBAC editor bar) — so a note-writer could already steer the fleet by editing its skills, and notes add no new steering power. Four more writers derive rows from inbox activity. `../dismissal_notes.py`: judging an inbox report with a note (dismiss, snooze, or restore) also leaves it here as an `origin=report_dismissal` note, targeted at the scout that authored the report, so a reviewer's verdict reaches the scout without it having to re-find the report. Resolving does not, since that says the report did its job rather than that filing it was wrong. `../discussion_notes.py`: opening a discussion on a report (the inbox "Discuss" action, which kicks off a Q&A task) also leaves the user's question here as an `origin=report_discussion` note, targeted at the authoring scout — framed as context to weigh or ignore, not a verdict, so the scout can fold a durable preference/correction into its scratchpad or dismiss it as noise. `../feedback_notes.py`: the thumbs rating at the end of a report body ("Was this report useful?") carries its optional note here as an `origin=report_feedback` note, targeted at the authoring scout. Unlike a dismissal it never falls back to a fleet-wide note — feedback is a verdict on one scout's own report, so with no resolvable authoring scout nothing is forwarded and the call is a no-op — and it never changes the report's state; the analytics event the client fires stays the durable record of the rating. `../reviewer_correction_notes.py`: a user-attributed reviewer edit that changes the set (adding or removing a suggested reviewer) also leaves an `origin=report_reviewer_correction` note, and it is the only derived origin addressed to more than one scout — every live scout that emitted or edited the report (`resolve_touching_scout_skills`, since an editing scout may be the one that put the reviewers there) plus every scout whose `reviewer:` memory names a removed login (`_memory_holders`, one exact-term search under the `reviewer:` key prefix), ordered emitting scout first and capped at `MAX_NOTE_TARGETS`, so a scout still routing on a stale login hears about the correction. A report no live scout touched falls back to the fleet-wide blank dismissals use, but only when no holder resolved, since a run reads the fleet-wide notes alongside its own and a holder would hear the same edit twice. An impersonated edit forwards nothing, matching the reviewer-corrections project profile, which excludes impersonated activity rows for the same reason. Logins are shape-checked against GitHub's login rule before rendering and capped per edit (`MAX_CORRECTION_LOGINS`), because both write paths into the reviewers artefact accept any string of any length and the value lands in a backtick span every scout reads. Repeated edits coalesce: a login already sent to a target in the same direction inside `SUPPRESSION_WINDOW` is left out of the next note, keyed on direction so a removal still corrects an addition made hours earlier. Like a dismissal it may fall back fleet-wide, and unlike discuss/feedback it does not demand the `signal_scout:write` / `llm_skill:write` key scopes, because the logins already reach scouts through the report's reviewers artefact and the project profile. All four paths re-check the same steering gate (token `scoped_teams`, canonical-project access, and the `llm_skill` editor bar) since the dismiss, discuss, feedback, and reviewer-edit actions need only `task:write`, and all forward only on the canonical team. The discuss and feedback paths additionally demand the `signal_scout:write` / `llm_skill:write` key scopes: a dismissal's text reaches runs anyway through the reports API, whereas the note is the only path a discussion question or feedback note takes to a scout, so a `task:write` credential must not open it alone. The discuss path is triggered from the tasks viewset (which holds the request the gate reads) through `facade/api.py:forward_report_discussion_note`, never from the tasks facade. On the read side, every derived origin quotes report content (report id, title, the note text), so `SignalScoutNoteViewSet.list` withholds them from any caller failing the reports read gate (`_may_read_reports`); both that gate and `../report_steering.py` read the list off `SignalScoutNote.derived_origins()` rather than naming the kinds, so a newly added origin is withheld from the moment it exists. The derived rows are context with a TTL; the `dismissal` artefact / discussion task / feedback analytics event / reviewer `suggested_reviewers` artefact + `suggested_reviewers_changed` activity-log row stays the record of truth. Notes reach two surfaces outside the fleet, both through `../report_steering.py`. `load_report_steering` puts no note text into the description of the self-driving implementation task; it renders a short nudge that tells the run to pull notes (`scout-notes-list`) and fleet memory (`scout-scratchpad-search`) itself, because the report author already read the notes and most of them do not apply to a code change. `load_research_steering` pastes only the `pipeline:report-research` audience into the report-research prompt and nudges the run to search every other origin by entity (`list_notes` `text`), because the derived ones are feedback on exactly the judgment that stage is about to make; that run is read-only, already holds the report's raw signals, and writes back only to the report on the same team.- `structured_output.py` — `record_structured_output` (+ `_sync`): the structured-output channel, next to signals and reports. Opt-in via `SignalScoutConfig.structured_output_schema` (a JSON Schema describing ONE record, validated at config-write time by `validate_structured_output_schema` — which also rejects non-local `$ref`/`$dynamicRef`, and every validator here uses a no-retrieval registry, so a user-controlled schema can never make the worker fetch a URL; null = channel off, and the record endpoint fails closed). Setting the schema is skill-authoring-level steering (schema `description` fields are free prose rendered verbatim into a privileged prompt), so the config viewset gates it behind `llm_skill:write` + the `llm_skill` editor bar, like scout notes; clearing it stays on the base config scope. Records validate against the dispatch-time schema snapshot the runner stamps on the run row (`metadata["structured_output_schema"]`), so a mid-run schema edit can't reject records matching what the run was shown — while clearing the config schema mid-run still fails the channel closed (re-checked inside the capacity-reservation transaction with the config row locked, so a clear racing a submit serializes cleanly). Each submitted record is validated against the schema (all-or-nothing per call — an invalid record fails the batch with nothing written) and written into the team's own project as a `$scout_structured_output` event via one `capture_batch_internal` call (person processing off, deterministic uuid over `(run, batch index, subject, payload)` so a resubmitted batch collapses at ingestion while in-batch duplicates stay distinct). The events ARE the record — there is no Postgres row store, so past records are read like any events (insights, HogQL) and retention follows event retention — which is also why a delivery failure fails the call (`StructuredOutputDeliveryError` → 503) with an instruction to retry — the events carry a stable timestamp (the run's `created_at`) alongside the deterministic uuid, so the dedupe sorting key (`toDate(timestamp)` is part of it) stays identical across retries even past UTC midnight — and why the channel fails loudly for a dry-run `emit=False` scout, an org without AI-processing consent (mirroring `emit._preflight_emit_gates`), or a disabled `signals_scout` source instead of suppressing quietly (the runner also withholds the prompt section and schema snapshot when `emit` is off). Cardinality is the scout's call — the schema describes one record; a run may submit one, one per judged entity, or a batch (caps: `MAX_RECORDS_PER_CALL` per call, `MAX_RECORDS_PER_RUN` per run via the `structured_output_count` counter on `run.metadata`, reserved under the run-row lock before the forward — it counts accepted batches, so failed or retried forwards still spend cap). The prompt renders the exact configured schema in a per-run `# Structured output` section only when the channel is live, so the prompt and the validator can never describe two different contracts.- - `checks.py` — `record_check_result`: the only way a scout run closes the report check it was dispatched to answer (`agent`-kind `SignalReportCheck`, dispatched by `../report_check_agent.py` with `triggered_by="check"`). The verdict goes through the check executor's own funnel (`../report_check_execution.record_check_verdict`), so an agent result advances or retires its check by the same rules a measured one does, and lands on the report as a `check_result` artefact attributed to the run's task. Binding is what keeps the tool narrow: it admits only a check whose resolved lane is this run's own skill and that is still waiting on a dispatch (`dispatched_at` set), so the widest thing a run can do is answer the question it was asked. Deliberately NOT gated on `allowed_tools` like the report channel — the dispatch binding is the gate, so the fallback lane needs no frontmatter change to answer a check. A run that never calls it leaves the check stamped, and the coordinator records an errored result once the result window passes.+ - `checks.py` — `record_check_result`: the only way a scout run closes the report check it was dispatched to answer (`agent`-kind `SignalReportCheck`, dispatched by `../report_check_agent.py` with `triggered_by="check"`). The verdict goes through the check executor's own funnel (`../report_check_execution.record_check_verdict`), so an agent result advances or retires its check by the same rules a measured one does, and lands on the report as a `check_result` artefact attributed to the run's task. Binding is what keeps the tool narrow: it admits only a check whose resolved lane is this run's own skill and that is still waiting on a dispatch (`dispatched_at` set), so the widest thing a run can do is answer the question it was asked. Deliberately NOT gated on `allowed_tools` like the report channel — the dispatch binding is the gate, so the fallback lane needs no frontmatter change to answer a check. It takes `inconclusive` with a required `reason` for a run whose tools worked but whose evidence cannot settle the claim, so `errored` stays a real tool or model failure. The prompt tells a run to record `passed` or `failed` when the evidence meets the check's stated bar. A run that never calls it leaves the check stamped, and the coordinator records an errored result once the result window passes.The same module holds the authoring tools — `create_report_check` / `list_report_checks` / `cancel_report_check`, exposed as `scout-report-check-create` / `-list` / `-cancel` — which are the other direction: a run that surfaces something whose fix will show in data writes the re-measurement down instead of leaving a note for a future run to find. They write through `../report_check_authoring.create_check`, the one place a check row is written, so a scout-written check obeys the same per-report cap, the same metric-query copy, and the same bounds as one written through the REST endpoint, and is attributed to the run's task like every other scout write. Unlike `record_check_result` these ARE gated on the report channel (`signal_scout_report:write` plus the `edit_report` `allowed_tools` opt-in, through `_resolve_in_progress_run`), because a check is a write on a report rather than an answer to a question the coordinator already asked. Their actions resolve the run through `_resolve_own_in_progress_run`, which also refuses a sandbox token minted for a different run, and create and cancel pass `_preflight_emit_gates` first, so a dry-run scout writes no check.- `profile.py` — `project_profile_*` tools that read the deterministic `SignalProjectProfile` snapshot.- `runs.py` — `runs_*` tools that read past `SignalScoutRun` rows for dedupe and cross-skill awareness.diff --git a/products/signals/backend/scout_harness/prompt.py b/products/signals/backend/scout_harness/prompt.pyindex ef1b1dd0daa8..1ec0896e1e54 100644--- a/products/signals/backend/scout_harness/prompt.py+++ b/products/signals/backend/scout_harness/prompt.py@@ -1210,10 +1210,23 @@ in these instructions. If what you find contradicts what it expects, that contraverdict, so record it.Close the run by calling `scout-check-record-result` with the `check_id` from the block, an-`outcome` of `passed`, `failed`, or `errored`, and an `explanation` a person reading the report will-understand. Record what you actually established: `failed` retires the check, so it is for a-conclusion rather than a suspicion, and `errored` is the honest answer when you could not settle it-either way. Nothing else closes the check, so a run that investigates and does not call the tool+`outcome`, and an `explanation` a person reading the report will understand. Record what you+actually established:++- `passed` or `failed` when the evidence meets the bar the check states. Do not ask for more+ certainty than the check asks for. `failed` retires the check, so it is for a conclusion rather+ than a suspicion.+- `inconclusive` when your tools worked but the evidence cannot settle the question. Give a+ `reason`: `awaiting_data` when the data can still arrive (a rollout lag, a soak not complete, too+ few samples so far), and the check looks again later. `unmeasurable` when the data the check+ needs is not captured. `needs_manual_verification` when only a person or another environment can+ verify it. `no_fix_to_measure` only when nothing was changed to fix the claim, so no window after a+ fix exists. A report resolved without a pull request still has one: it starts when the report+ resolved.+- `errored` only when a tool, a query, or a model call failed and stopped you. An unsettled+ question is `inconclusive`, not `errored`.++Nothing else closes the check, so a run that investigates and does not call the toolleaves the report with an unanswered follow-up. Say in your run summary what you recorded."""diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.pyindex e1fa575437a0..b1edeacbecdc 100644--- a/products/signals/backend/scout_harness/serializers.py+++ b/products/signals/backend/scout_harness/serializers.py@@ -704,17 +704,25 @@ class RecordCheckResultRequestSerializer(serializers.Serializer):check_id = serializers.UUIDField(help_text="The check this run was dispatched to answer, as given in the run note.")outcome = serializers.ChoiceField(- choices=[- (outcome.value, outcome.label)- for outcome in (- SignalReportCheck.Outcome.PASSED,- SignalReportCheck.Outcome.FAILED,- SignalReportCheck.Outcome.ERRORED,- )- ],+ choices=SignalReportCheck.Outcome.choices,help_text=(- "`passed` when the expectation still holds, `failed` when it does not, and `errored` when you "- "could not establish either. `failed` retires the check, so use it for a conclusion, not a suspicion."+ "`passed` when the evidence meets the check's stated bar and the expectation holds, `failed` when "+ "the evidence meets the bar and the expectation does not hold. `inconclusive` when your tools "+ "worked but the evidence cannot settle the question; give a `reason`. `errored` only when a tool, "+ "query, or model call failed. `failed` retires the check, so use it for a conclusion, not a suspicion."+ ),+ )+ reason = serializers.ChoiceField(+ choices=SignalReportCheck.InconclusiveReason.choices,+ required=False,+ allow_null=True,+ help_text=(+ "Required with `inconclusive`, and refused with any other outcome. `awaiting_data`: the data can "+ "still arrive (a rollout lag, a soak not complete, too few samples so far), so the check looks again "+ "later. `unmeasurable`: the data the check needs is not captured. `needs_manual_verification`: only "+ "a person or another environment can verify it. `no_fix_to_measure`: nothing was changed to fix the "+ "claim, so no window after a fix exists. A report resolved without a pull request still has a window "+ "that starts when it resolved. Every reason except `awaiting_data` ends the check."),)explanation = serializers.CharField(@@ -730,6 +738,14 @@ class RecordCheckResultRequestSerializer(serializers.Serializer):help_text="The number you measured, when the check came down to one. Leave it out otherwise.",)+ def validate(self, attrs: dict[str, Any]) -> dict[str, Any]:+ is_inconclusive = attrs["outcome"] == SignalReportCheck.Outcome.INCONCLUSIVE+ if is_inconclusive and not attrs.get("reason"):+ raise serializers.ValidationError({"reason": "An `inconclusive` outcome needs a reason."})+ if not is_inconclusive and attrs.get("reason"):+ raise serializers.ValidationError({"reason": "Only an `inconclusive` outcome takes a reason."})+ return attrs+class RecordCheckResultResponseSerializer(serializers.Serializer):"""Outcome of an accepted `scout-check-record-result` call."""diff --git a/products/signals/backend/scout_harness/tools/checks.py b/products/signals/backend/scout_harness/tools/checks.pyindex 05745bdd4b20..3fcbb09e45bd 100644--- a/products/signals/backend/scout_harness/tools/checks.py+++ b/products/signals/backend/scout_harness/tools/checks.py@@ -24,6 +24,7 @@ from __future__ import annotationsimport uuidfrom datetime import datetime+from typing import get_argsfrom django.db.models.functions import Coalescefrom django.utils import timezone@@ -36,13 +37,20 @@ from products.signals.backend.models import SignalReport, SignalReportCheck, Sigfrom products.signals.backend.report_check_agent import AGENT_CHECK_RESULT_WINDOW, resolve_check_skill_namefrom products.signals.backend.report_check_authoring import CheckCreationError, cancel_check, create_checkfrom products.signals.backend.report_check_execution import CheckVerdict, record_check_verdict-from products.signals.backend.report_checks import AgentCheckConfig, parse_check_config+from products.signals.backend.report_checks import (+ AgentCheckConfig,+ CheckInconclusiveReason,+ CheckOutcome,+ parse_check_config,+)from products.signals.backend.scout_harness.tools.emit import _preflight_emit_gates, _resolve_task_idMAX_CHECK_EXPLANATION_LENGTH = 1_000# Rows one `scout-report-check-list` call returns. A report carries at most five open checks, so# this only bounds the terminal ones a long-lived report accumulates.MAX_CHECKS_LISTED = 50+_OUTCOMES = get_args(CheckOutcome)+_INCONCLUSIVE_REASONS = get_args(CheckInconclusiveReason)class InvalidCheckResultError(ValueError):@@ -140,19 +148,29 @@ def record_check_result(outcome: str,explanation: str,observed_value: float | None = None,+ reason: str | None = None,) -> RecordCheckResultResult:"""Close one dispatched `agent` check with the verdict this run reached.The verdict goes through the executor's funnel, the same one the deterministic lane writesthrough, so an agent result advances or retires its check by exactly the rules a measured onedoes: a breach is terminal, an error retries and retires after three, and a pass re-arms a- recurring check.+ recurring check. An `inconclusive` verdict needs a `reason`, and only `awaiting_data` keeps the+ check open for another look."""trimmed = explanation.strip()if not trimmed:raise InvalidCheckResultError("explanation must say what you established")- if outcome not in {"passed", "failed", "errored"}:- raise InvalidCheckResultError(f"outcome must be `passed`, `failed`, or `errored`, not `{outcome}`")+ if outcome not in _OUTCOMES:+ raise InvalidCheckResultError(+ f"outcome must be `passed`, `failed`, `errored`, or `inconclusive`, not `{outcome}`"+ )+ if outcome == "inconclusive" and reason not in _INCONCLUSIVE_REASONS:+ raise InvalidCheckResultError(+ f"an `inconclusive` outcome needs a reason: one of {', '.join(f'`{r}`' for r in _INCONCLUSIVE_REASONS)}"+ )+ if outcome != "inconclusive" and reason is not None:+ raise InvalidCheckResultError(f"a `{outcome}` outcome takes no reason, only `inconclusive` does")check = _resolve_dispatched_check(team, run, check_id)record_check_verdict(@@ -163,6 +181,7 @@ def record_check_result(# Only meaningful when the run measured something; an investigation that read a stack# trace has no number and says so by leaving it out.observed_value=observed_value,+ reason=reason, # type: ignore[arg-type]),# Attributed to the run's task, the way every other artefact an agent writes is, so the# report's log names what produced the verdict rather than the system that scheduled it.diff --git a/products/signals/backend/scout_harness/views.py b/products/signals/backend/scout_harness/views.pyindex 4cd343222a30..88358fd4a609 100644--- a/products/signals/backend/scout_harness/views.py+++ b/products/signals/backend/scout_harness/views.py@@ -1774,7 +1774,8 @@ class SignalScoutRunViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):"and what to establish; this call is the only thing that records the answer, so a run that ""investigates and says nothing leaves the check unanswered. The verdict lands on the report as a ""`check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a "- "recurring one, and `errored` retries it, so send the outcome you actually reached rather than "+ "recurring one, and `errored` retries it. `inconclusive` with the `awaiting_data` reason looks "+ "again later, and any other reason ends the check. Send the outcome you actually reached rather than ""the one that closes the loop. A run may close the check it was dispatched for, or a check on its own ""scout that is due or waiting on a run."),@@ -1823,6 +1824,7 @@ class SignalScoutRunViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):outcome=data["outcome"],explanation=data["explanation"],observed_value=data.get("observed_value"),+ reason=data.get("reason"),)except InvalidCheckResultError as exc:raise exceptions.ValidationError({"detail": str(exc)})diff --git a/products/signals/backend/test/test_report_checks.py b/products/signals/backend/test/test_report_checks.pyindex 173ff5cbf507..b3e227668248 100644--- a/products/signals/backend/test/test_report_checks.py+++ b/products/signals/backend/test/test_report_checks.py@@ -1356,7 +1356,36 @@ class TestCheckResultTool(APIBaseTest):with self.assertRaises(InvalidCheckResultError):self._record(other_check)- @parameterized.expand([("blank_explanation", {"explanation": " "}), ("unknown_outcome", {"outcome": "maybe"})])+ @parameterized.expand(+ [+ ("awaiting_data_looks_again", "awaiting_data", SignalReportCheck.Status.ACTIVE),+ ("unmeasurable_ends_the_check", "unmeasurable", SignalReportCheck.Status.INCONCLUSIVE),+ ]+ )+ def test_an_inconclusive_verdict_records_its_reason(self, _name: str, reason: str, expected_status: str) -> None:+ check = self._check()++ result = self._record(check, outcome="inconclusive", reason=reason, explanation="No traffic since the fix.")++ assert result.check_status == expected_status+ check.refresh_from_db()+ assert check.last_outcome == SignalReportCheck.Outcome.INCONCLUSIVE+ assert check.last_outcome_reason == reason+ assert check.consecutive_errors == 0+ artefact = SignalReportArtefact.objects.get(+ report=self.report, type=SignalReportArtefact.ArtefactType.CHECK_RESULT+ )+ assert f'"reason":"{reason}"' in artefact.content++ @parameterized.expand(+ [+ ("blank_explanation", {"explanation": " "}),+ ("unknown_outcome", {"outcome": "maybe"}),+ ("inconclusive_without_a_reason", {"outcome": "inconclusive"}),+ ("inconclusive_with_an_unknown_reason", {"outcome": "inconclusive", "reason": "tired"}),+ ("a_reason_on_another_outcome", {"outcome": "errored", "reason": "awaiting_data"}),+ ]+ )def test_a_malformed_verdict_is_refused(self, _name, overrides) -> None:check = self._check()diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 57a40d670dec..e4594a5cc661 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -5068,17 +5068,19 @@ export interface SignalScoutRunDetailApi {}/**- * * `passed` - Passed- * * `failed` - Failed- * * `errored` - Errored- */-export type RecordCheckResultRequestOutcomeEnumApi =- (typeof RecordCheckResultRequestOutcomeEnumApi)[keyof typeof RecordCheckResultRequestOutcomeEnumApi]--export const RecordCheckResultRequestOutcomeEnumApi = {- Passed: 'passed',- Failed: 'failed',- Errored: 'errored',+ * * `awaiting_data` - Awaiting Data+ * * `unmeasurable` - Unmeasurable+ * * `needs_manual_verification` - Needs Manual Verification+ * * `no_fix_to_measure` - No Fix To Measure+ */+export type SignalReportCheckInconclusiveReasonEnumApi =+ (typeof SignalReportCheckInconclusiveReasonEnumApi)[keyof typeof SignalReportCheckInconclusiveReasonEnumApi]++export const SignalReportCheckInconclusiveReasonEnumApi = {+ AwaitingData: 'awaiting_data',+ Unmeasurable: 'unmeasurable',+ NeedsManualVerification: 'needs_manual_verification',+ NoFixToMeasure: 'no_fix_to_measure',} as const/**@@ -5087,12 +5089,20 @@ export const RecordCheckResultRequestOutcomeEnumApi = {export interface RecordCheckResultRequestApi {/** The check this run was dispatched to answer, as given in the run note. */check_id: string- /** `passed` when the expectation still holds, `failed` when it does not, and `errored` when you could not establish either. `failed` retires the check, so use it for a conclusion, not a suspicion.+ /** `passed` when the evidence meets the check's stated bar and the expectation holds, `failed` when the evidence meets the bar and the expectation does not hold. `inconclusive` when your tools worked but the evidence cannot settle the question; give a `reason`. `errored` only when a tool, query, or model call failed. `failed` retires the check, so use it for a conclusion, not a suspicion.** * `passed` - Passed* * `failed` - Failed- * * `errored` - Errored */- outcome: RecordCheckResultRequestOutcomeEnumApi+ * * `errored` - Errored+ * * `inconclusive` - Inconclusive */+ outcome: SignalReportCheckOutcomeEnumApi+ /** Required with `inconclusive`, and refused with any other outcome. `awaiting_data`: the data can still arrive (a rollout lag, a soak not complete, too few samples so far), so the check looks again later. `unmeasurable`: the data the check needs is not captured. `needs_manual_verification`: only a person or another environment can verify it. `no_fix_to_measure`: nothing was changed to fix the claim, so no window after a fix exists. A report resolved without a pull request still has a window that starts when it resolved. Every reason except `awaiting_data` ends the check.+ *+ * * `awaiting_data` - Awaiting Data+ * * `unmeasurable` - Unmeasurable+ * * `needs_manual_verification` - Needs Manual Verification+ * * `no_fix_to_measure` - No Fix To Measure */+ reason?: SignalReportCheckInconclusiveReasonEnumApi | null/*** One or two sentences on what you looked at and what it showed. This is what a person reads on the report, so write it for them, with the numbers or entities you checked.* @maxLength 1000diff --git a/products/signals/frontend/generated/api.ts b/products/signals/frontend/generated/api.tsindex bcd0c0f7836a..eb1d32afe682 100644--- a/products/signals/frontend/generated/api.ts+++ b/products/signals/frontend/generated/api.ts@@ -1706,7 +1706,7 @@ export const getSignalsScoutRecordCheckResultUrl = (projectId: string, runId: st}/**- * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it, so send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.+ * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it. `inconclusive` with the `awaiting_data` reason looks again later, and any other reason ends the check. Send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.* @summary Record the verdict on a report check*/export const signalsScoutRecordCheckResult = async (diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex 74f2a7fb30fd..4aa728e3e4f4 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -1354,7 +1354,7 @@ export const SignalsScoutRubricsUpdateBody = /* @__PURE__ */ zod.object({})/**- * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it, so send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.+ * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it. `inconclusive` with the `awaiting_data` reason looks again later, and any other reason ends the check. Send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.* @summary Record the verdict on a report check*/export const signalsScoutRecordCheckResultBodyExplanationMax = 1000@@ -1363,10 +1363,25 @@ export const SignalsScoutRecordCheckResultBody = /* @__PURE__ */ zod.object({check_id: zod.uuid().describe('The check this run was dispatched to answer, as given in the run note.'),outcome: zod- .enum(['passed', 'failed', 'errored'])- .describe('\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored')+ .enum(['passed', 'failed', 'errored', 'inconclusive']).describe(- '`passed` when the expectation still holds, `failed` when it does not, and `errored` when you could not establish either. `failed` retires the check, so use it for a conclusion, not a suspicion.\n\n\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored'+ '\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored\n\* `inconclusive` - Inconclusive'+ )+ .describe(+ "`passed` when the evidence meets the check's stated bar and the expectation holds, `failed` when the evidence meets the bar and the expectation does not hold. `inconclusive` when your tools worked but the evidence cannot settle the question; give a `reason`. `errored` only when a tool, query, or model call failed. `failed` retires the check, so use it for a conclusion, not a suspicion.\n\n\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored\n\* `inconclusive` - Inconclusive"+ ),+ reason: zod+ .union([+ zod+ .enum(['awaiting_data', 'unmeasurable', 'needs_manual_verification', 'no_fix_to_measure'])+ .describe(+ '\* `awaiting_data` - Awaiting Data\n\* `unmeasurable` - Unmeasurable\n\* `needs_manual_verification` - Needs Manual Verification\n\* `no_fix_to_measure` - No Fix To Measure'+ ),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Required with `inconclusive`, and refused with any other outcome. `awaiting_data`: the data can still arrive (a rollout lag, a soak not complete, too few samples so far), so the check looks again later. `unmeasurable`: the data the check needs is not captured. `needs_manual_verification`: only a person or another environment can verify it. `no_fix_to_measure`: nothing was changed to fix the claim, so no window after a fix exists. A report resolved without a pull request still has a window that starts when it resolved. Every reason except `awaiting_data` ends the check.\n\n\* `awaiting_data` - Awaiting Data\n\* `unmeasurable` - Unmeasurable\n\* `needs_manual_verification` - Needs Manual Verification\n\* `no_fix_to_measure` - No Fix To Measure'),explanation: zod.string()diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex 65638499bea8..425f94253f01 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -517,16 +517,21 @@ tools:description: >Close the follow-up check your run was dispatched to answer, and only that check. A report check says whathad to stay true after the report was acted on; your run note carries its `check_id` and what to establish.- Pass the `run_id`, the `check_id`, an `outcome` of `passed` (it still holds), `failed` (it does not), or- `errored` (you could not settle it either way), and an `explanation` a person reading the report will- understand. The verdict lands on the report as a `check_result` entry in the inbox. Record what you- established rather than what closes the loop: `failed` retires the check, `passed` re-arms a recurring one,- and `errored` retries it. Nothing else closes a check, so a run that investigates and never calls this- leaves the report with an unanswered follow-up. You may also record a check on your own scout whose- `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or `stale`. The call is refused for- a check on another scout, a `pending` check whose report has not resolved, a check that is not due yet, a- `paused` check whose report is suppressed or whose horizon passed, a check your run already answered, and a- check the coordinator measures itself.+ Pass the `run_id`, the `check_id`, an `outcome`, and an `explanation` a person reading the report will+ understand. Use `passed` or `failed` when the evidence meets the bar the check states. Use `inconclusive`+ with a `reason` when your tools worked but the evidence cannot settle the question: `awaiting_data` (the+ data can still arrive, so the check looks again later), `unmeasurable` (the data is not captured),+ `needs_manual_verification` (only a person or another environment can verify it), or `no_fix_to_measure`+ (nothing was changed to fix the claim; a report resolved without a pull request still has a window that+ starts when it resolved). Use `errored` only when a tool, a query, or a model call failed. The verdict lands+ on the report as a `check_result` entry in the inbox. Record what you established rather than what closes+ the loop: `failed` retires the check, `passed` re-arms a recurring one, `errored` retries it, and+ `inconclusive` ends it unless the reason is `awaiting_data`. Nothing else closes a check, so a run that+ investigates and never calls this leaves the report with an unanswered follow-up. You may also record a+ check on your own scout whose `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or+ `stale`. The call is refused for a check on another scout, a `pending` check whose report has not resolved,+ a check that is not due yet, a `paused` check whose report is suppressed or whose horizon passed, a check+ your run already answered, and a check the coordinator measures itself.scout-config-create:operation: signals_scout_config_createenabled: truediff --git a/products/signals/skills/authoring-scouts/references/report-checks.md b/products/signals/skills/authoring-scouts/references/report-checks.mdindex d6bbabd48fec..15c951d921c3 100644--- a/products/signals/skills/authoring-scouts/references/report-checks.md+++ b/products/signals/skills/authoring-scouts/references/report-checks.md@@ -56,8 +56,10 @@ Config fields:- `probe_hints` — up to five concrete places to look: an issue id, a service name, the query to repeat.- `skill_name` — the scout that answers the check. Leave it unset and the check goes to the fleet's follow-up scout.-The check is dispatched as a scout run, which closes it with `scout-check-record-result` (`passed`, `failed`, or `errored`, plus an explanation).+The check is dispatched as a scout run, which closes it with `scout-check-record-result` (`passed`, `failed`, `inconclusive`, or `errored`, plus an explanation).+The run records `passed` or `failed` when the evidence meets the bar the check states, `inconclusive` with a reason when its tools worked but the evidence cannot settle the question, and `errored` only when a tool or model call failed.A run that ends without recording a result is scored `errored` and retried.+So write `instructions` that state the bar: what a pass looks like, and what a fail looks like.The text in `instructions` and `probe_hints` reaches the run as evidence, not as instructions it obeys.@@ -70,11 +72,14 @@ The text in `instructions` and `probe_hints` reaches the run as evidence, not as## Statuses and what each verdict does`pending` and `active` are the open states.-`passed`, `failed`, `errored`, `expired`, and `cancelled` are terminal: a terminal check never reschedules, so a claim still worth watching needs a new check.+`passed`, `failed`, `errored`, `inconclusive`, `expired`, and `cancelled` are terminal: a terminal check never reschedules, so a claim still worth watching needs a new check.- **`passed`** re-arms only a recurring check that has runs left. Otherwise the check is done.- **`failed`** always retires the check.- **`errored`** retries. Three consecutive errored runs retire the check as misconfigured.+- **`inconclusive`** does not spend the error budget. Its `reason` decides what happens next:+ - `awaiting_data` looks again after 24 hours, then 72 hours, then 7 days. After three looks, or when the next look falls past the horizon, the check ends as `inconclusive`.+ - `unmeasurable`, `needs_manual_verification`, and `no_fix_to_measure` end the check as `inconclusive` at once, because waiting does not help.- **`cancelled`** comes from `scout-report-check-cancel`, for a check no longer worth running. Verdicts already recorded stay on the report, and a finished check cannot be cancelled.A **failed `metric_threshold` check on a resolved report re-surfaces**: the breach is emitted as a signal and the pipeline files a fresh report linked back to the resolved one.diff --git a/products/signals/skills/signals-scout-inbox-validation/SKILL.md b/products/signals/skills/signals-scout-inbox-validation/SKILL.mdindex 12e7ec35a3c3..57a9b9cb6bd3 100644--- a/products/signals/skills/signals-scout-inbox-validation/SKILL.md+++ b/products/signals/skills/signals-scout-inbox-validation/SKILL.md@@ -42,7 +42,7 @@ A run dispatched for a check says so at the end of your prompt, in a `# The checThree rules specific to that mode:-- **Record what you established, not what tidies up.** `passed` means the expectation still holds, `failed` means it does not and retires the check, and `errored` means you could not settle it either way. An `errored` verdict that says what blocked you is more useful than a guess, because the check retries after one.+- **Record what you established, not what tidies up.** Record `passed` or `failed` when the evidence meets the bar the check states, and do not ask for more certainty than the check asks for. `failed` retires the check. Record `inconclusive` with a `reason` when your tools worked but the evidence cannot settle the question. Record `errored` only when a tool, a query, or a model call failed. An honest `inconclusive` that says what is missing is more useful than a guess.- **The explanation is read by a person on the report.** Write the numbers or entities you actually looked at, the way you would write a report's evidence line, not "validated, looks fine".- **A failed check is not automatically a report.** The verdict lands on the report by itself. Author a fresh report on top only when the failure is a live problem worth someone's attention now, by the same bar the rest of this skill applies. Say in your close-out what you recorded and whether you also filed anything.@@ -113,7 +113,7 @@ One more sweep: a fix can fail before the check you just attached ever runs. A rThe checks are the main layer. This is the second, independent one, and it is cheap because several fit in one run. A check tests the expectation its author wrote down when the report was fresh; a spot check re-derives the probes today, with the sibling reports and fresh signals in view, so the two fail differently. It is also the only thing that measures the checks: a spot check that fails on a report whose check passed is a false pass, and nothing else can find one.-**Cap 2 per run**, after the checks are attached, and only when budget remains. Pick from resolved reports whose merge is past its soak and that carry **no active check**: either every check on the report has finished (`scout-report-check-list` shows `passed`, `failed`, `errored`, or `expired`), or it never got one. Prefer a report whose check `passed`, since agreement there is what you are testing, and vary the pick across runs rather than taking the newest each time. Never spot-check a report with a check still `active` or `pending`: that verdict is on its way. Never spot-check one with a fresh `failed` verdict either, or one covered by a `dedupe:` / `report:` / `noise:` / `spotcheck:` entry: the failure is already on the report, or you already looked.+**Cap 2 per run**, after the checks are attached, and only when budget remains. Pick from resolved reports whose merge is past its soak and that carry **no active check**: either every check on the report has finished (`scout-report-check-list` shows `passed`, `failed`, `errored`, `inconclusive`, or `expired`), or it never got one. Prefer a report whose check `passed`, since agreement there is what you are testing, and vary the pick across runs rather than taking the newest each time. Never spot-check a report with a check still `active` or `pending`: that verdict is on its way. Never spot-check one with a fresh `failed` verdict either, or one covered by a `dedupe:` / `report:` / `noise:` / `spotcheck:` entry: the failure is already on the report, or you already looked.Re-derive the probes from the report's signals and metrics as the attach steps describe, measure the baseline and the post-soak window yourself, and do not read the check's own numbers first. Then run the probe ladder below and land on a row of the verdict table. A spot check records nothing on the check: it writes a `spotcheck:` entry, authors a report only for a failed verdict by the rules in Decide, and writes `spotcheck-disagree:` when its verdict contradicts a passed check, saying what the check measured and what you measured. Run the sibling-report and `related_to` sweep before authoring, the same as for a dispatched check.@@ -134,20 +134,24 @@ The dispatch section at the top of this file says when you are in this mode. Run### Verdict table-| Post-soak observation | Verdict | Action |-| ----------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------- |-| Entities quiet / rate at or near zero vs baseline | **Held** | `passed`; close-out sentence |-| Rate down materially but nonzero, with a declining tail | Deploy lag | `errored`, saying the fix is still landing — the check looks again itself |-| Same entity firing at a comparable-to-baseline rate, flat or rising | **Failed** | `failed`; author a report when it is worth attention now |-| Entities quiet but fresh signals / a sibling report describe the same problem | **Failed (moved)** | `failed`; author on the weaker basis, citing both reports |-| Surface has no fresh traffic at all (quiet ≠ fixed — check a denominator) | Inconclusive | `errored`, naming the missing denominator |-| Baseline too small to measure (a handful of occurrences ever) | Held (weak) | `passed`, saying the basis is weak |+| Post-soak observation | Verdict | Action |+| ----------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------ |+| Entities quiet / rate at or near zero vs baseline | **Held** | `passed`; close-out sentence |+| Rate down materially but nonzero, with a declining tail | Deploy lag | `inconclusive`, reason `awaiting_data`, saying the fix is still landing |+| Same entity firing at a comparable-to-baseline rate, flat or rising | **Failed** | `failed`; author a report when it is worth attention now |+| Entities quiet but fresh signals / a sibling report describe the same problem | **Failed (moved)** | `failed`; author on the weaker basis, citing both reports |+| Surface has no fresh traffic at all (quiet ≠ fixed — check a denominator) | Inconclusive | `inconclusive`, reason `awaiting_data`, naming the missing denominator |+| The data the check needs is not captured anywhere you can query | Unmeasurable | `inconclusive`, reason `unmeasurable`, naming what is missing |+| Only a person, a device, or another environment can verify the claim | Manual | `inconclusive`, reason `needs_manual_verification`, naming who or what can verify it |+| Nothing was changed to fix the claim, so no window after a fix exists | No fix | `inconclusive`, reason `no_fix_to_measure` |+| A tool, a query, or a model call failed and stopped the probe | Errored | `errored`, naming the failure |+| Baseline too small to measure (a handful of occurrences ever) | Held (weak) | `passed`, saying the basis is weak |Tiny baselines are common on auto-generated fix reports — a single transient error becomes a report, a PR, and a resolution. Post-fix silence can't strongly confirm those; record them as passed with the weak basis stated rather than claiming validation you don't have. The one strong signal a tiny baseline _can_ give: the exact fingerprint recurring post-soak after a fix that specifically targeted it — that's report-worthy, P3.-An `errored` verdict re-arms the same check about six hours out and costs it one of its three retries, so use it for a look that could settle later (deploy lag, no denominator yet) and not for one that never will. Attaching a second check to buy more soak only doubles the runs, because the original is still active.+An `awaiting_data` verdict looks again after 24 hours, then 72 hours, then 7 days, and then ends the check as `inconclusive`. It does not spend the error budget. Every other `inconclusive` reason ends the check at once, so use `awaiting_data` only for a look that could settle later (deploy lag, no denominator yet). An `errored` verdict re-arms the check about six hours out and costs it one of its three retries, so keep it for a real failure. Attaching a second check to buy more soak only doubles the runs, because the original is still active.-On a spot check the same rows map to memory instead of a check verdict: **Held** and **Held (weak)** are a `spotcheck:` entry; **Failed** and **Failed (moved)** are a `spotcheck:` entry plus a report by the rules in Decide; **Deploy lag** and **Inconclusive** are a `spotcheck:` entry saying why, with no second pass, because the report's own check is the one that looks again.+On a spot check the same rows map to memory instead of a check verdict: **Held** and **Held (weak)** are a `spotcheck:` entry; **Failed** and **Failed (moved)** are a `spotcheck:` entry plus a report by the rules in Decide; the rows with reason `awaiting_data` (**Deploy lag**, and **Inconclusive** with no denominator yet) attach an `agent` check by step 5 of the attach phase, with `next_run_at` = now + 24h and the baseline you measured in its instructions. A spot-checked report carries no active check, so this new check is the only thing that looks again later. Then write a `spotcheck:` entry that names the check. The other inconclusive rows are a `spotcheck:` entry saying why, with no second pass, because waiting does not help.### Save memory as you godiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex c0a2657fa81c..0fd0c414fc3b 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -10517,7 +10517,7 @@}},"scout-check-record-result": {- "description": "Close the follow-up check your run was dispatched to answer, and only that check. A report check says what had to stay true after the report was acted on; your run note carries its `check_id` and what to establish. Pass the `run_id`, the `check_id`, an `outcome` of `passed` (it still holds), `failed` (it does not), or `errored` (you could not settle it either way), and an `explanation` a person reading the report will understand. The verdict lands on the report as a `check_result` entry in the inbox. Record what you established rather than what closes the loop: `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it. Nothing else closes a check, so a run that investigates and never calls this leaves the report with an unanswered follow-up. You may also record a check on your own scout whose `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or `stale`. The call is refused for a check on another scout, a `pending` check whose report has not resolved, a check that is not due yet, a `paused` check whose report is suppressed or whose horizon passed, a check your run already answered, and a check the coordinator measures itself.",+ "description": "Close the follow-up check your run was dispatched to answer, and only that check. A report check says what had to stay true after the report was acted on; your run note carries its `check_id` and what to establish. Pass the `run_id`, the `check_id`, an `outcome`, and an `explanation` a person reading the report will understand. Use `passed` or `failed` when the evidence meets the bar the check states. Use `inconclusive` with a `reason` when your tools worked but the evidence cannot settle the question: `awaiting_data` (the data can still arrive, so the check looks again later), `unmeasurable` (the data is not captured), `needs_manual_verification` (only a person or another environment can verify it), or `no_fix_to_measure` (nothing was changed to fix the claim; a report resolved without a pull request still has a window that starts when it resolved). Use `errored` only when a tool, a query, or a model call failed. The verdict lands on the report as a `check_result` entry in the inbox. Record what you established rather than what closes the loop: `failed` retires the check, `passed` re-arms a recurring one, `errored` retries it, and `inconclusive` ends it unless the reason is `awaiting_data`. Nothing else closes a check, so a run that investigates and never calls this leaves the report with an unanswered follow-up. You may also record a check on your own scout whose `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or `stale`. The call is refused for a check on another scout, a `pending` check whose report has not resolved, a check that is not due yet, a `paused` check whose report is suppressed or whose horizon passed, a check your run already answered, and a check the coordinator measures itself.","category": "Signals","feature": "signals","summary": "Record the verdict on a report check",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 6418827abf02..f1689e7d8996 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -11122,7 +11122,7 @@}},"scout-check-record-result": {- "description": "Close the follow-up check your run was dispatched to answer, and only that check. A report check says what had to stay true after the report was acted on; your run note carries its `check_id` and what to establish. Pass the `run_id`, the `check_id`, an `outcome` of `passed` (it still holds), `failed` (it does not), or `errored` (you could not settle it either way), and an `explanation` a person reading the report will understand. The verdict lands on the report as a `check_result` entry in the inbox. Record what you established rather than what closes the loop: `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it. Nothing else closes a check, so a run that investigates and never calls this leaves the report with an unanswered follow-up. You may also record a check on your own scout whose `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or `stale`. The call is refused for a check on another scout, a `pending` check whose report has not resolved, a check that is not due yet, a `paused` check whose report is suppressed or whose horizon passed, a check your run already answered, and a check the coordinator measures itself.",+ "description": "Close the follow-up check your run was dispatched to answer, and only that check. A report check says what had to stay true after the report was acted on; your run note carries its `check_id` and what to establish. Pass the `run_id`, the `check_id`, an `outcome`, and an `explanation` a person reading the report will understand. Use `passed` or `failed` when the evidence meets the bar the check states. Use `inconclusive` with a `reason` when your tools worked but the evidence cannot settle the question: `awaiting_data` (the data can still arrive, so the check looks again later), `unmeasurable` (the data is not captured), `needs_manual_verification` (only a person or another environment can verify it), or `no_fix_to_measure` (nothing was changed to fix the claim; a report resolved without a pull request still has a window that starts when it resolved). Use `errored` only when a tool, a query, or a model call failed. The verdict lands on the report as a `check_result` entry in the inbox. Record what you established rather than what closes the loop: `failed` retires the check, `passed` re-arms a recurring one, `errored` retries it, and `inconclusive` ends it unless the reason is `awaiting_data`. Nothing else closes a check, so a run that investigates and never calls this leaves the report with an unanswered follow-up. You may also record a check on your own scout whose `run_state` in `scout-report-check-list` is `due`, `queued`, `running`, or `stale`. The call is refused for a check on another scout, a `pending` check whose report has not resolved, a check that is not due yet, a `paused` check whose report is suppressed or whose horizon passed, a check your run already answered, and a check the coordinator measures itself.","category": "Signals","feature": "signals","summary": "Record the verdict on a report check",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 3665e5cdc7b0..95da4748d209 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -86956,17 +86956,19 @@ export namespace Schemas {}/**- * * `passed` - Passed- * * `failed` - Failed- * * `errored` - Errored+ * * `awaiting_data` - Awaiting Data+ * * `unmeasurable` - Unmeasurable+ * * `needs_manual_verification` - Needs Manual Verification+ * * `no_fix_to_measure` - No Fix To Measure*/- export type RecordCheckResultRequestOutcomeEnum = typeof RecordCheckResultRequestOutcomeEnum[keyof typeof RecordCheckResultRequestOutcomeEnum];+ export type SignalReportCheckInconclusiveReasonEnum = typeof SignalReportCheckInconclusiveReasonEnum[keyof typeof SignalReportCheckInconclusiveReasonEnum];- export const RecordCheckResultRequestOutcomeEnum = {- Passed: 'passed',- Failed: 'failed',- Errored: 'errored',+ export const SignalReportCheckInconclusiveReasonEnum = {+ AwaitingData: 'awaiting_data',+ Unmeasurable: 'unmeasurable',+ NeedsManualVerification: 'needs_manual_verification',+ NoFixToMeasure: 'no_fix_to_measure',} as const;/**@@ -86975,12 +86977,20 @@ export namespace Schemas {export interface RecordCheckResultRequest {/** The check this run was dispatched to answer, as given in the run note. */check_id: string;- /** `passed` when the expectation still holds, `failed` when it does not, and `errored` when you could not establish either. `failed` retires the check, so use it for a conclusion, not a suspicion.+ /** `passed` when the evidence meets the check's stated bar and the expectation holds, `failed` when the evidence meets the bar and the expectation does not hold. `inconclusive` when your tools worked but the evidence cannot settle the question; give a `reason`. `errored` only when a tool, query, or model call failed. `failed` retires the check, so use it for a conclusion, not a suspicion.** * `passed` - Passed* * `failed` - Failed- * * `errored` - Errored */- outcome: RecordCheckResultRequestOutcomeEnum;+ * * `errored` - Errored+ * * `inconclusive` - Inconclusive */+ outcome: SignalReportCheckOutcomeEnum;+ /** Required with `inconclusive`, and refused with any other outcome. `awaiting_data`: the data can still arrive (a rollout lag, a soak not complete, too few samples so far), so the check looks again later. `unmeasurable`: the data the check needs is not captured. `needs_manual_verification`: only a person or another environment can verify it. `no_fix_to_measure`: nothing was changed to fix the claim, so no window after a fix exists. A report resolved without a pull request still has a window that starts when it resolved. Every reason except `awaiting_data` ends the check.+ *+ * * `awaiting_data` - Awaiting Data+ * * `unmeasurable` - Unmeasurable+ * * `needs_manual_verification` - Needs Manual Verification+ * * `no_fix_to_measure` - No Fix To Measure */+ reason?: SignalReportCheckInconclusiveReasonEnum | null;/*** One or two sentences on what you looked at and what it showed. This is what a person reads on the report, so write it for them, with the numbers or entities you checked.* @maxLength 1000diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex 976e7c90e3ae..62d611cceb4c 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -1632,7 +1632,7 @@ export const SignalsScoutRunsRetrieveParams = () => zod.object({})/**- * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it, so send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.+ * Close the follow-up check this run was dispatched to answer. The run note carries the check id and what to establish; this call is the only thing that records the answer, so a run that investigates and says nothing leaves the check unanswered. The verdict lands on the report as a `check_result` entry people read in the inbox. `failed` retires the check, `passed` re-arms a recurring one, and `errored` retries it. `inconclusive` with the `awaiting_data` reason looks again later, and any other reason ends the check. Send the outcome you actually reached rather than the one that closes the loop. A run may close the check it was dispatched for, or a check on its own scout that is due or waiting on a run.* @summary Record the verdict on a report check*/export const SignalsScoutRecordCheckResultParams = () => zod.object({@@ -1650,10 +1650,25 @@ export const SignalsScoutRecordCheckResultBody = () => zod.object({check_id: zod.string().describe('The check this run was dispatched to answer, as given in the run note.'),outcome: zod- .enum(['passed', 'failed', 'errored'])- .describe('\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored')+ .enum(['passed', 'failed', 'errored', 'inconclusive']).describe(- '`passed` when the expectation still holds, `failed` when it does not, and `errored` when you could not establish either. `failed` retires the check, so use it for a conclusion, not a suspicion.\n\n\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored'+ '\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored\n\* `inconclusive` - Inconclusive'+ )+ .describe(+ "`passed` when the evidence meets the check's stated bar and the expectation holds, `failed` when the evidence meets the bar and the expectation does not hold. `inconclusive` when your tools worked but the evidence cannot settle the question; give a `reason`. `errored` only when a tool, query, or model call failed. `failed` retires the check, so use it for a conclusion, not a suspicion.\n\n\* `passed` - Passed\n\* `failed` - Failed\n\* `errored` - Errored\n\* `inconclusive` - Inconclusive"+ ),+ reason: zod+ .union([+ zod+ .enum(['awaiting_data', 'unmeasurable', 'needs_manual_verification', 'no_fix_to_measure'])+ .describe(+ '\* `awaiting_data` - Awaiting Data\n\* `unmeasurable` - Unmeasurable\n\* `needs_manual_verification` - Needs Manual Verification\n\* `no_fix_to_measure` - No Fix To Measure'+ ),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Required with `inconclusive`, and refused with any other outcome. `awaiting_data`: the data can still arrive (a rollout lag, a soak not complete, too few samples so far), so the check looks again later. `unmeasurable`: the data the check needs is not captured. `needs_manual_verification`: only a person or another environment can verify it. `no_fix_to_measure`: nothing was changed to fix the claim, so no window after a fix exists. A report resolved without a pull request still has a window that starts when it resolved. Every reason except `awaiting_data` ends the check.\n\n\* `awaiting_data` - Awaiting Data\n\* `unmeasurable` - Unmeasurable\n\* `needs_manual_verification` - Needs Manual Verification\n\* `no_fix_to_measure` - No Fix To Measure'),explanation: zod.string()diff --git a/services/mcp/src/tools/generated/signals.ts b/services/mcp/src/tools/generated/signals.tsindex dd3b913d3f60..f88cede45845 100644--- a/services/mcp/src/tools/generated/signals.ts+++ b/services/mcp/src/tools/generated/signals.ts@@ -745,6 +745,9 @@ const scoutCheckRecordResult = (): ToolBase<if (params.outcome !== undefined) {body['outcome'] = params.outcome}+ if (params.reason !== undefined) {+ body['reason'] = params.reason+ }if (params.explanation !== undefined) {body['explanation'] = params.explanation}