Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(signals): flag scout runs that close out as not in use (#115169)

posthog[bot]a3aa2f4c9ea4
diff --git a/products/signals/ARCHITECTURE.md b/products/signals/ARCHITECTURE.md
index d246edfa7bd8..956f79e8f03c 100644
--- a/products/signals/ARCHITECTURE.md
+++ b/products/signals/ARCHITECTURE.md
@@ -719,7 +719,7 @@ Thin bridge from a Tasks `TaskRun` to the scout skill that ran inside it: one sc
**Run provenance is stamped, not re-derived.** `harness_prompt_version` (a hash of `scout_harness/prompt.py` plus the imported constants its templates render, identifying the prompt build), `report_channel` (`none`/`emit`/`edit`/`both`, since the prompt branches on the two report capabilities separately), `skill_origin`, and `github_guidance` are written at run creation because none can be reconstructed later: the harness prompt carries no version history, `allowed_tools` is editable, and a seeded canonical skill row becomes `custom` as soon as a team edits it. Together they let a model or prompt A/B compare only runs that were given the same prompt shape. All four ride the `signals_scout_run_started` / `_finished` events too, which is where that readout happens. `triggered_by` is stamped the same way but only when it is not `schedule`, so absence reads as the default path; the workflow trigger's cooldown reads it back to tell its own prior fires apart from scheduled patrols and human "Run now" presses.
-**Run metadata is derived, never self-reported.** `metadata.derived` answers "what kind of run was this?" (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`) and is computed server-side at finalize by `scout_harness/derived_metadata.py` from the run's own settled output. Asking the scout to declare these instead would make each flag only as reliable as the model remembering to write it, so the column stays queryable precisely because nothing in it is agent-authored. An absent `derived` region is unknown rather than all-false: the run predates the field, never reached finalize, or its stamp failed (best-effort, logged). `MultiTurnSession` owns the `TaskRun` lifecycle; the `on_task_run_created` hook attaches the `TaskRun` to the bridge row before the agent's first turn.
+**Run metadata is derived, never self-reported.** `metadata.derived` answers "what kind of run was this?" (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, `has_not_in_use_closeout`) and is computed server-side at finalize by `scout_harness/derived_metadata.py` from the run's own settled output. Asking the scout to declare these instead would make each flag only as reliable as the model remembering to write it, so the column stays queryable precisely because nothing in it is agent-authored. An absent `derived` region is unknown rather than all-false: the run predates the field, never reached finalize, or its stamp failed (best-effort, logged). `MultiTurnSession` owns the `TaskRun` lifecycle; the `on_task_run_created` hook attaches the `TaskRun` to the bridge row before the agent's first turn.
**Tasks UI cross-link.** Run serializers expose a computed `task_url` field on `scout-runs-list` and `scout-runs-retrieve` MCP responses — `/project/{team_id}/tasks/{task_run.task_id}?runId={task_run_id}`. `task_url` is `null` for rows whose `task_run` link is missing (rows aborted before `MultiTurnSession.start()` returned).
diff --git a/products/signals/backend/scout_harness/AGENTS.md b/products/signals/backend/scout_harness/AGENTS.md
index 567914eea9b0..29c2048155af 100644
--- a/products/signals/backend/scout_harness/AGENTS.md
+++ b/products/signals/backend/scout_harness/AGENTS.md
@@ -102,8 +102,9 @@ In production it is driven by `SignalsScoutCoordinatorWorkflow` (periodic tick e
Kept free of the temporalio stack so it stays cheap to import on the API path; both the coordinator and the metadata endpoint import from here so the reported caps never drift from what dispatch allows. `resolve_team_metadata()` backs the metadata viewset;
`seed_config_layers_for_team()` lets the on-demand `sync` endpoint seed the same launch posture.
- `derived_metadata.py`
- Computes the `metadata["derived"]` region on the run row at finalize: booleans the harness reads back off the run's own settled output (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`). Deliberately server-derived rather than scout-reported, so a flag can't be omitted or contradicted by the model, and computed in one place at finalize rather than stamped incrementally at each emit/edit site.
+ Computes the `metadata["derived"]` region on the run row at finalize: booleans the harness reads back off the run's own settled output (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, `has_not_in_use_closeout`). Deliberately server-derived rather than scout-reported, so a flag can't be omitted or contradicted by the model, and computed in one place at finalize rather than stamped incrementally at each emit/edit site.
`has_self_improvement` classifies authored report titles through `tools/report.is_self_improvement_title`, the same predicate the lifecycle events use, so the run row and the event stream can never disagree. `has_self_validation` reads both follow-up mechanisms: a report check the run's task created or recorded a verdict on, or the run window against the skill-namespaced `followup:` scratchpad keys, since working that queue means writing to it. Creating a check counts where creating a queue entry does not, because a check is the validation being scheduled rather than a note asking a future run to do it. The field name stays put while scouts move from the queue onto checks, so dashboards built on it keep meaning "a run that checked whether a past fix held".
+ `has_not_in_use_closeout` cannot read the run window, because `not-in-use:` keys are not skill-namespaced and sibling scouts on one team run at the same time. The scratchpad `remember` view instead counts each `not-in-use:` write on the run its sandbox token is bound to (`metadata.not_in_use_writes`), never the body `run_id`, and finalize reads that counter plus the run's output columns.
- `run_costs.py`
What a run spent on model calls, for the staff-only cost readout in the roster's run tooltips.
A scout run is a Tasks run, so its `$ai_generation` events land in the internal AI observability project stamped with `task_origin_product = 'signals_scout'` and the run's `task_run_id`; the sum per run comes from `tasks.facade.billing.get_local_task_run_token_costs`, which is keyed on the origin product rather than on `ai_product` — scout runs report `ai_product = 'signals_scout'`, so the desktop read's `posthog_code` filter priced every one of them at zero, and a report's pipeline stages report a different value per stage again.
@@ -156,7 +157,7 @@ In production it is driven by `SignalsScoutCoordinatorWorkflow` (periodic tick e
All five are attached to both lifecycle events via `_attach_run_shape_props`, since that is where the A/B readout happens, and `github_guidance` and `business_knowledge_maintained` are resolved in `arun_signals_scout` rather than inside `_spawn_and_run` so the failure and cancellation paths can report them too.
New runner-known run dimensions belong here, not grown as ad-hoc columns.
`run_note` is the one key that is neither a dimension nor runner-resolved: the one-off steering a person typed on the `configs/<id>/run/` trigger, kept verbatim because it is the only record of why a manual run behaved differently from the scheduled ones around it. It is prose, not a value to group by.
- The nested `derived` object is written once at finalize by `derived_metadata.py` and holds booleans the harness computes from the run's own settled output (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`), so "what kind of run was this?" is a field lookup rather than a parse of the prose `summary`.
+ The nested `derived` object is written once at finalize by `derived_metadata.py` and holds booleans the harness computes from the run's own settled output (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, `has_not_in_use_closeout`), so "what kind of run was this?" is a field lookup rather than a parse of the prose `summary`.
Nothing in the column is scout-authored: a self-reported flag would only be as reliable as the model remembering to write it, which is what makes this column safe to query directly.
Both regions surface on the run serializers / `scout-runs-*` MCP tools, with one exception: the dispatch-time `structured_output_schema` snapshot is stripped on the way out (`RunMetadataField.to_representation`) — it exists for record validation, and repeating up to 20 KB of schema per row would bloat every run listing.
A missing `derived` region is unknown rather than all-false: the run predates the field, died before finalize, or its stamp failed (best-effort and logged, since observability must not fail a run that already committed its output). The flags read the authored reports' current state at finalize rather than an emit-time snapshot, so a title or chart changed after the emit is what lands; the emit-time record stays on the report lifecycle events.
diff --git a/products/signals/backend/scout_harness/derived_metadata.py b/products/signals/backend/scout_harness/derived_metadata.py
index 330360462af5..9a0616c58b9d 100644
--- a/products/signals/backend/scout_harness/derived_metadata.py
+++ b/products/signals/backend/scout_harness/derived_metadata.py
@@ -33,6 +33,7 @@ from products.signals.backend.models import (
)
from products.signals.backend.scout_harness.prompt import FOLLOWUP_KEY_PREFIX
from products.signals.backend.scout_harness.tools.report import is_self_improvement_title
+from products.signals.backend.scout_harness.tools.scratchpad import NOT_IN_USE_WRITES_KEY
from products.signals.backend.scout_harness.tools.structured_output import STRUCTURED_OUTPUT_COUNT_KEY
logger = logging.getLogger(__name__)
@@ -49,6 +50,7 @@ DERIVED_FLAG_KEYS = (
"has_chart",
"has_self_validation",
"has_structured_output",
+ "has_not_in_use_closeout",
)
@@ -60,6 +62,7 @@ def build_derived_flags(*, run: SignalScoutRun, team_id: int) -> dict[str, bool]
the row so every query here is anchored to the canonical team the caller resolved.
"""
emitted_ids = run.emitted_report_ids or []
+ metadata = run.metadata or {}
authored_titles, authored_charts = _authored_report_facts(team_id=team_id, report_ids=emitted_ids)
return {
"has_emit_report": bool(emitted_ids),
@@ -80,7 +83,14 @@ def build_derived_flags(*, run: SignalScoutRun, team_id: int) -> dict[str, bool]
# server-side observation, not a scout self-report. It counts accepted batches —
# a batch whose event delivery then failed still registers here, which the
# flood-breaker semantics of the counter accept (see STRUCTURED_OUTPUT_COUNT_KEY).
- "has_structured_output": bool((run.metadata or {}).get(STRUCTURED_OUTPUT_COUNT_KEY)),
+ "has_structured_output": bool(metadata.get(STRUCTURED_OUTPUT_COUNT_KEY)),
+ # The remember endpoint bumps the counter for the run its sandbox token is bound to, so
+ # the write is attributed when it happens. Any output means the run was not pointless.
+ "has_not_in_use_closeout": bool(metadata.get(NOT_IN_USE_WRITES_KEY))
+ and not emitted_ids
+ and not run.edited_report_ids
+ and not run.emitted_count
+ and not metadata.get(STRUCTURED_OUTPUT_COUNT_KEY),
}
diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.py
index fe8fc79dd502..17c02ae0ffcf 100644
--- a/products/signals/backend/scout_harness/serializers.py
+++ b/products/signals/backend/scout_harness/serializers.py
@@ -300,7 +300,9 @@ class SignalScoutRunSummarySerializer(serializers.Serializer):
"scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; "
"absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's "
"own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, "
- "`has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use "
+ "`has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, "
+ "`has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` "
+ "scratchpad entry and produced no report, finding, or structured output). Use "
"`derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. "
"Note the flags describe the reports the run authored as they stand now, so charts "
"attached to someone else's report via an edit are not counted. A missing `derived` "
diff --git a/products/signals/backend/scout_harness/tools/scratchpad.py b/products/signals/backend/scout_harness/tools/scratchpad.py
index f59699ecf8ef..eeb8db580632 100644
--- a/products/signals/backend/scout_harness/tools/scratchpad.py
+++ b/products/signals/backend/scout_harness/tools/scratchpad.py
@@ -13,6 +13,7 @@ are only true for a while, mirroring `notes.py`.
from __future__ import annotations
import re
+import logging
from collections.abc import Sequence
from dataclasses import asdict, dataclass
from datetime import datetime
@@ -23,10 +24,18 @@ from django.db.models import Q, QuerySet, TextField, Value
from django.db.models.functions import Left
from django.utils import timezone
-from products.signals.backend.models import SignalScratchpad
+from products.signals.backend.models import SignalScoutRun, SignalScratchpad
from products.signals.backend.scout_harness.prompt import FOLLOWUP_KEY_PREFIX
from products.signals.backend.scout_harness.tools.runs import _build_task_url
+logger = logging.getLogger(__name__)
+
+# Key prefix a scout writes when its quick close-out finds the product it watches is not in use.
+NOT_IN_USE_KEY_PREFIX = "not-in-use:"
+# `SignalScoutRun.metadata` key counting the run's `not-in-use:` writes. It is the source of the
+# `derived.has_not_in_use_closeout` flag.
+NOT_IN_USE_WRITES_KEY = "not_in_use_writes"
+
# Defensive cap on search results.
DEFAULT_SCRATCHPAD_SEARCH_LIMIT = 20
MAX_SCRATCHPAD_SEARCH_LIMIT = 1000
@@ -199,6 +208,30 @@ def remember(
return _to_entry(row)
+def record_not_in_use_write(*, run_id: str, team_id: int) -> None:
+ """Count a `not-in-use:` scratchpad write against the run that made it.
+
+ The caller resolves `run_id` from the sandbox token, never from the request body. The keys
+ are not skill-namespaced and sibling scouts on one team run at the same time, so a read of
+ the run window at finalize could credit one scout's close-out to another scout's run.
+
+ Best-effort: the memory write has already committed, so a failure here is logged and the
+ write stays.
+ """
+ try:
+ with transaction.atomic():
+ run = SignalScoutRun.objects.for_team(team_id).select_for_update().filter(pk=run_id).first()
+ if run is None:
+ return
+ metadata = dict(run.metadata or {})
+ existing = metadata.get(NOT_IN_USE_WRITES_KEY)
+ metadata[NOT_IN_USE_WRITES_KEY] = (existing if isinstance(existing, int) else 0) + 1
+ run.metadata = metadata
+ run.save(update_fields=["metadata"])
+ except Exception:
+ logger.exception("signals_scout.scratchpad: failed to record not-in-use write for run %s", run_id)
+
+
def _upsert_entry(
*, team_id: int, key: str, content: str, run_id: str | None, identity: str | None, expires_at: datetime | None
) -> SignalScratchpad:
diff --git a/products/signals/backend/scout_harness/views.py b/products/signals/backend/scout_harness/views.py
index 9c3fe6d95eeb..56a838ec95c5 100644
--- a/products/signals/backend/scout_harness/views.py
+++ b/products/signals/backend/scout_harness/views.py
@@ -242,8 +242,10 @@ from products.signals.backend.scout_harness.tools.runs import (
search_recent_runs,
)
from products.signals.backend.scout_harness.tools.scratchpad import (
+ NOT_IN_USE_KEY_PREFIX,
InvalidScratchpadError,
forget,
+ record_not_in_use_write,
remember,
search_scratchpad,
)
@@ -2092,8 +2094,14 @@ class SignalScratchpadViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
# bound to. A scout copies `run_id` out of its prompt by hand and a share of those copies
# arrive truncated, which used to cost the entry its run link; the token binding is the
# server's own record of which run is writing, so lineage survives the typo.
+ is_not_in_use = data["key"].startswith(NOT_IN_USE_KEY_PREFIX)
+ sandbox_run_id = (
+ run_id_for_sandbox_task(task_id=_sandbox_bound_task_id(request), team_id=team_id)
+ if run_id is None or is_not_in_use
+ else None
+ )
if run_id is None:
- run_id = run_id_for_sandbox_task(task_id=_sandbox_bound_task_id(request), team_id=team_id)
+ run_id = sandbox_run_id
try:
entry = remember(
team_id=team_id,
@@ -2108,6 +2116,10 @@ class SignalScratchpadViewSet(TeamAndOrgViewSetMixin, viewsets.GenericViewSet):
)
except InvalidScratchpadError as exc:
raise exceptions.ValidationError({"detail": str(exc)})
+ # Attributed to the token's run, not the body's: a body `run_id` can name any run on the
+ # project, including a sibling scout's.
+ if is_not_in_use and sandbox_run_id is not None:
+ record_not_in_use_write(run_id=sandbox_run_id, team_id=team_id)
return Response(ScratchpadEntrySerializer(entry.as_dict()).data, status=status.HTTP_200_OK)
@validated_request(
diff --git a/products/signals/backend/test/test_scout_harness_api.py b/products/signals/backend/test/test_scout_harness_api.py
index 1f2ccca19355..093fc7c505ae 100644
--- a/products/signals/backend/test/test_scout_harness_api.py
+++ b/products/signals/backend/test/test_scout_harness_api.py
@@ -78,6 +78,8 @@ from products.signals.backend.scout_harness.team_limits import MAX_RUNS_PER_TEAM
from products.signals.backend.scout_harness.tools import structured_output as structured_output_tool
from products.signals.backend.scout_harness.tools.lighthouse import MAX_AUDITS_PER_RUN, RUN_AUDIT_COUNT_KEY
from products.signals.backend.scout_harness.tools.profile import compute_project_profile
+from products.signals.backend.scout_harness.tools.scratchpad import NOT_IN_USE_WRITES_KEY
+from products.signals.backend.scout_harness.tools.structured_output import STRUCTURED_OUTPUT_COUNT_KEY
from products.signals.backend.scout_harness.trial_state import initial_trial_state
from products.signals.backend.temporal.signal_queries import fetch_report_ids_for_source_ids
from products.skills.backend.models.skills import LLMSkill, LLMSkillOwner
@@ -2405,6 +2407,31 @@ class TestScoutHarnessScratchpadAPI(APIBaseTest):
row = SignalScratchpad.objects.get(team=self.team, key="k1")
assert str(row.created_by_run_id) == str(named.id)
+ @parameterized.expand(
+ [
+ ("not_in_use_key", "not-in-use:feature-flags", None, 1),
+ ("not_in_use_key_body_names_a_sibling_run", "not-in-use:feature-flags", "sibling", 1),
+ ("pattern_key", "pattern:feature-flags:baseline", None, None),
+ ]
+ )
+ def test_remember_counts_not_in_use_writes_against_the_sandbox_run(
+ self, _name: str, key: str, body_run: str | None, expected: int | None
+ ) -> None:
+ sandbox_run = _make_run(self.team)
+ sibling_run = _make_run(self.team)
+ _authenticate_as_scout(self, sandbox_task_id=sandbox_run.task_run.task_id)
+ body: dict = {"key": key, "content": "Product is off for this project."}
+ if body_run == "sibling":
+ body["run_id"] = str(sibling_run.id)
+
+ response = self.client.post(self._list_url(), data=body, format="json")
+
+ assert response.status_code == status.HTTP_200_OK, response.json()
+ sandbox_run.refresh_from_db()
+ sibling_run.refresh_from_db()
+ assert (sandbox_run.metadata or {}).get(NOT_IN_USE_WRITES_KEY) == expected
+ assert NOT_IN_USE_WRITES_KEY not in (sibling_run.metadata or {})
+
class TestScoutHarnessNotesAPI(APIBaseTest):
# Session auth throughout — unlike the scratchpad, the notes surface is deliberately on the
@@ -5352,6 +5379,7 @@ class TestScoutRunDerivedMetadata(APIBaseTest):
"has_chart",
"has_self_validation",
"has_structured_output",
+ "has_not_in_use_closeout",
}
@parameterized.expand(
@@ -5377,6 +5405,37 @@ class TestScoutRunDerivedMetadata(APIBaseTest):
assert flags["has_emit_report"] is authored
assert flags["has_edit_report"] is not authored
+ @parameterized.expand(
+ [
+ ("closed_out_empty", {NOT_IN_USE_WRITES_KEY: 1}, {}, True),
+ (
+ "closed_out_but_emitted_a_report",
+ {NOT_IN_USE_WRITES_KEY: 1},
+ {"emitted_report_ids": [str(uuid4())]},
+ False,
+ ),
+ (
+ "closed_out_but_edited_a_report",
+ {NOT_IN_USE_WRITES_KEY: 1},
+ {"edited_report_ids": [str(uuid4())]},
+ False,
+ ),
+ ("closed_out_but_emitted_a_finding", {NOT_IN_USE_WRITES_KEY: 1}, {"emitted_count": 1}, False),
+ (
+ "closed_out_but_recorded_structured_output",
+ {NOT_IN_USE_WRITES_KEY: 1, STRUCTURED_OUTPUT_COUNT_KEY: 3},
+ {},
+ False,
+ ),
+ ("no_not_in_use_write", {}, {}, False),
+ ]
+ )
+ def test_not_in_use_closeout_needs_the_write_and_no_output(
+ self, _name: str, metadata: dict, output: dict, expected: bool
+ ) -> None:
+ run = _make_run(self.team, metadata=metadata, **output)
+ assert self._stamp(run)["has_not_in_use_closeout"] is expected
+
@parameterized.expand(
[
# An entry that predates the run and was written during it: the queue was worked.
diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.ts
index b87f2635724d..9cc357f741b0 100644
--- a/products/signals/frontend/generated/api.schemas.ts
+++ b/products/signals/frontend/generated/api.schemas.ts
@@ -6088,10 +6088,11 @@ export type SignalScoutRunSummaryApiMetadataDerived = {
has_chart: boolean
has_self_validation: boolean
has_structured_output: boolean
+ has_not_in_use_closeout: boolean
}
/**
- * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
+ * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
*/
export type SignalScoutRunSummaryApiMetadata = {
harness_prompt_version?: string
@@ -6195,7 +6196,7 @@ export interface SignalScoutRunSummaryApi {
emitted_report_ids: string[]
/** The `SignalReport` ids this run mutated via the `edit_report` channel (rewrote title/summary and/or appended a note), deduped. Distinct from `emitted_report_ids`: edit can target any inbox report, so these are generally not reports the run authored. Empty for runs that edited no report. */
edited_report_ids: string[]
- /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
+ /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
metadata: SignalScoutRunSummaryApiMetadata
}
@@ -6206,10 +6207,11 @@ export type SignalScoutRunDetailApiMetadataDerived = {
has_chart: boolean
has_self_validation: boolean
has_structured_output: boolean
+ has_not_in_use_closeout: boolean
}
/**
- * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
+ * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
*/
export type SignalScoutRunDetailApiMetadata = {
harness_prompt_version?: string
@@ -6294,7 +6296,7 @@ export interface SignalScoutRunDetailApi {
emitted_report_ids: string[]
/** The `SignalReport` ids this run mutated via the `edit_report` channel (rewrote title/summary and/or appended a note), deduped. Distinct from `emitted_report_ids`: edit can target any inbox report, so these are generally not reports the run authored. Empty for runs that edited no report. */
edited_report_ids: string[]
- /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
+ /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
metadata: SignalScoutRunDetailApiMetadata
}
diff --git a/products/signals/skills/exploring-scouts/SKILL.md b/products/signals/skills/exploring-scouts/SKILL.md
index 1d540f325a0c..a91079f431fe 100644
--- a/products/signals/skills/exploring-scouts/SKILL.md
+++ b/products/signals/skills/exploring-scouts/SKILL.md
@@ -37,10 +37,12 @@ No records is not by itself a broken channel.
A run on a project with no recent `$mcp_tool_call` events stops early and records nothing, and a dry-run scout (`emit` off) has nowhere to record to.
Check the run summary, the `not-in-use:mcp_analytics` scratchpad entry, and the config's `emit` before you call the channel broken.
Find them with `event = '$scout_structured_output'` and `properties.skill_name = 'signals-scout-mcp-tool-calls'`; the scout's own `references/metrics-dashboard.md` carries the chart and alert recipes.
-Each run also carries a `metadata` map. Top-level: the provenance set `harness_prompt_version` / `report_channel` (`none`, `emit`, `edit`, or `both`) / `skill_origin` / `github_guidance`, saying which instructions the run was given; plus routing keys (`model` / `runtime_adapter` / `reasoning_effort` / `service_tier`) only when a gate or pin overrode the default. Nested under `metadata.derived`: booleans the harness computes at the end of the run (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`).
+Each run also carries a `metadata` map. Top-level: the provenance set `harness_prompt_version` / `report_channel` (`none`, `emit`, `edit`, or `both`) / `skill_origin` / `github_guidance`, saying which instructions the run was given; plus routing keys (`model` / `runtime_adapter` / `reasoning_effort` / `service_tier`) only when a gate or pin overrode the default. Nested under `metadata.derived`: booleans the harness computes at the end of the run (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, `has_not_in_use_closeout`).
When comparing runs (before/after a prompt change, one model against another), segment on all four provenance values first: runs differing on any of `harness_prompt_version`, `report_channel`, `skill_origin`, or `github_guidance` were given different instructions and aren't a like-for-like population. Runs predating this field have none of them, so treat missing provenance as unknown and exclude those runs from a comparison rather than pooling them.
For "what kind of run was this?" questions — did it author a self-improvement report, did it validate its follow-up queue — read `derived` rather than parsing the prose summary. It's computed server-side from what the run actually did, so it can't disagree with the run's own output — with one exception: `has_structured_output` tracks batches the run had **accepted**, not events delivered, so it alone can be true with fewer or no records behind it (count the events, as above). No `derived` map at all means unknown, not "all false" — the run predates the field, failed before finishing, or its stamp failed. Most runs from before this shipped have no map, so don't read their absence as a finding.
+To find **pointless runs**, read `has_not_in_use_closeout`. It is true when the run wrote a `not-in-use:` scratchpad entry (its quick close-out found the product off) and produced no report, edit, finding, or structured-output record. The harness counts the write against the run whose sandbox token made it, so a sibling scout's close-out on the same team is not credited to this run. A quiet run that looked and found nothing reads `false`. The pointless-run rate of a scout is the share of its finalized runs (runs that carry a `derived` map) with this flag true. Use it to rank which scout to gate with a pre-check next, and to confirm that a shipped pre-check moves the rate toward zero. Runs from before this flag shipped have no `has_not_in_use_closeout` key, so exclude them rather than count them as false.
+
There are six things you can observe about the fleet, each with its own tool:
| What you want to know | Tool | What it tells you |
diff --git a/products/signals/skills/exploring-scouts/references/scout-data-model.md b/products/signals/skills/exploring-scouts/references/scout-data-model.md
index 165d08ac44df..b591dec33a24 100644
--- a/products/signals/skills/exploring-scouts/references/scout-data-model.md
+++ b/products/signals/skills/exploring-scouts/references/scout-data-model.md
@@ -55,24 +55,24 @@ The run is a thin bridge to a `tasks.TaskRun` — status, timing, and the full t
`scout-runs-retrieve` takes the run id as `id`, **not** `run_id` — even though the list and the detail payload both name the field `run_id`.
Pass the list's `run_id` value through as `id`.
-| Field | Meaning |
-| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `run_id` | UUID of the run. Pass it to `scout-runs-retrieve` as `id`. Strictly team-scoped (404 across teams). |
-| `skill_name` | Which scout ran. |
-| `skill_version` | The body version that ran. If a scout was edited, older runs ran an older version — useful when comparing behavior before/after a change. |
-| `status` | Run outcome, from the linked `TaskRun` (see below). |
-| `started_at` | ISO-8601 — when the `TaskRun` was created. |
-| `completed_at` | ISO-8601 — when it finished. `null` while in flight. Duration = `completed_at - started_at`. |
-| `emitted_report_ids` | The reports the run **authored** via `emit_report`, in order. This (with `edited_report_ids`) is the run's output — resolve each id via `inbox-reports-retrieve`. Empty = the run authored nothing, except on a measurement scout, whose output is its `$scout_structured_output` records. |
-| `edited_report_ids` | The reports the run **edited** via `edit_report` (title/summary rewrite, appended note, or reviewers set), deduped. Edits can target any inbox report, not just scout-authored ones. |
-| `emitted_count` | **Legacy** — how many weak findings the run emitted on the deprecated signal channel. Always `0` on report-channel scouts; populated only on runs from scouts still on the legacy channel. Don't infer "did nothing" from `0` — check the report id columns. |
-| `emitted_finding_ids` | **Legacy** — the `finding_id`s behind `emitted_count`, in emit order. Each maps to a `Signal` with `source_id = run:<run_id>:finding:<finding_id>`. Empty on report-channel scouts. |
-| `metadata` | Two server-written regions. Top-level keys are runner-stamped at run start: `harness_prompt_version` / `report_channel` (`none`/`emit`/`edit`/`both`) / `skill_origin` / `github_guidance` (the provenance set — which prompt build, which report tools, canonical or custom skill, and whether the GitHub evidence section was rendered; segment on all four before comparing runs, and treat runs missing them as unknown rather than pooling them), plus `model` / `runtime_adapter` / `reasoning_effort` / `service_tier` only when routing overrode the default. `metadata.derived` is the harness's own map of booleans computed at finalize (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`) — the structured answer to "what kind of run was this?", so read it before parsing `summary`. Nothing here is scout-declared, so it can't contradict the run's actual output — except `has_structured_output`, which counts accepted batches rather than delivered events (see the structured-output section below). No `derived` map at all means unknown — the run predates the field (most historical runs), never reached finalize, or its stamp failed — never that every flag was false. |
-| `task_id`, `task_run_id` | Identifiers on the Tasks side. |
-| `task_url` | Relative deep-link to the Tasks UI for this run — **the full transcript** (every tool call and reasoning step) lives here, not in the run payload. |
-| `summary` | The scout's own one-paragraph end-of-run close-out. The primary thing to read and relay. Empty for runs that errored before close-out. |
-| `error` | The full TaskRun error text on a run that didn't complete cleanly; null otherwise. |
-| `failure_reason` | A concise, derived one-line diagnosis of why the run failed (timeout at the budget, a tool erroring, a sandbox that never started). Read this before the transcript. |
+| Field | Meaning |
+| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `run_id` | UUID of the run. Pass it to `scout-runs-retrieve` as `id`. Strictly team-scoped (404 across teams). |
+| `skill_name` | Which scout ran. |
+| `skill_version` | The body version that ran. If a scout was edited, older runs ran an older version — useful when comparing behavior before/after a change. |
+| `status` | Run outcome, from the linked `TaskRun` (see below). |
+| `started_at` | ISO-8601 — when the `TaskRun` was created. |
+| `completed_at` | ISO-8601 — when it finished. `null` while in flight. Duration = `completed_at - started_at`. |
+| `emitted_report_ids` | The reports the run **authored** via `emit_report`, in order. This (with `edited_report_ids`) is the run's output — resolve each id via `inbox-reports-retrieve`. Empty = the run authored nothing, except on a measurement scout, whose output is its `$scout_structured_output` records. |
+| `edited_report_ids` | The reports the run **edited** via `edit_report` (title/summary rewrite, appended note, or reviewers set), deduped. Edits can target any inbox report, not just scout-authored ones. |
+| `emitted_count` | **Legacy** — how many weak findings the run emitted on the deprecated signal channel. Always `0` on report-channel scouts; populated only on runs from scouts still on the legacy channel. Don't infer "did nothing" from `0` — check the report id columns. |
+| `emitted_finding_ids` | **Legacy** — the `finding_id`s behind `emitted_count`, in emit order. Each maps to a `Signal` with `source_id = run:<run_id>:finding:<finding_id>`. Empty on report-channel scouts. |
+| `metadata` | Two server-written regions. Top-level keys are runner-stamped at run start: `harness_prompt_version` / `report_channel` (`none`/`emit`/`edit`/`both`) / `skill_origin` / `github_guidance` (the provenance set — which prompt build, which report tools, canonical or custom skill, and whether the GitHub evidence section was rendered; segment on all four before comparing runs, and treat runs missing them as unknown rather than pooling them), plus `model` / `runtime_adapter` / `reasoning_effort` / `service_tier` only when routing overrode the default. `metadata.derived` is the harness's own map of booleans computed at finalize (`has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, `has_not_in_use_closeout`) — the structured answer to "what kind of run was this?", so read it before parsing `summary`. Nothing here is scout-declared, so it can't contradict the run's actual output — except `has_structured_output`, which counts accepted batches rather than delivered events (see the structured-output section below). No `derived` map at all means unknown — the run predates the field (most historical runs), never reached finalize, or its stamp failed — never that every flag was false. |
+| `task_id`, `task_run_id` | Identifiers on the Tasks side. |
+| `task_url` | Relative deep-link to the Tasks UI for this run — **the full transcript** (every tool call and reasoning step) lives here, not in the run payload. |
+| `summary` | The scout's own one-paragraph end-of-run close-out. The primary thing to read and relay. Empty for runs that errored before close-out. |
+| `error` | The full TaskRun error text on a run that didn't complete cleanly; null otherwise. |
+| `failure_reason` | A concise, derived one-line diagnosis of why the run failed (timeout at the budget, a tool erroring, a sandbox that never started). Read this before the transcript. |
### Run status values
@@ -81,7 +81,7 @@ Treat a completed run with an empty-handed summary as a **healthy quiet run**, n
- `not_started` / `queued` / `in_progress`: dispatched or running (`completed_at` null).
- `completed`: finished cleanly.
- May or may not have written anything; check `emitted_report_ids` / `edited_report_ids` (both empty = quiet, unless it's a measurement scout — then check `metadata.derived.has_structured_output`).
+ May or may not have written anything; check `emitted_report_ids` / `edited_report_ids` (both empty = quiet, unless it's a measurement scout — then check `metadata.derived.has_structured_output`). `metadata.derived.has_not_in_use_closeout` true means the quiet run was pointless: it wrote a `not-in-use:` entry because the product is off, rather than looking and finding nothing.
- `failed`: the run errored before closing out.
Its `summary` is empty; `failure_reason` says why in one line and `error` carries the full text, so the transcript (open `task_url`, or pull it as data with `tasks-runs-session-logs-retrieve`) is only needed for the sequence of calls that led there.
In practice the common failure is a timeout at the 15-minute per-run budget, not a logic-broken scout; a `failed` run whose duration ≈ the budget is a timeout, and `failure_reason` names it.
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index e470df6e222a..aa962e7c0d1c 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -100643,10 +100643,11 @@ export namespace Schemas {
has_chart: boolean;
has_self_validation: boolean;
has_structured_output: boolean;
+ has_not_in_use_closeout: boolean;
};
/**
- * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
+ * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
*/
export type SignalScoutRunDetailMetadata = {
harness_prompt_version?: string;
@@ -100731,7 +100732,7 @@ export namespace Schemas {
emitted_report_ids: string[];
/** The `SignalReport` ids this run mutated via the `edit_report` channel (rewrote title/summary and/or appended a note), deduped. Distinct from `emitted_report_ids`: edit can target any inbox report, so these are generally not reports the run authored. Empty for runs that edited no report. */
edited_report_ids: string[];
- /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
+ /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
metadata: SignalScoutRunDetailMetadata;
}
@@ -100742,10 +100743,11 @@ export namespace Schemas {
has_chart: boolean;
has_self_validation: boolean;
has_structured_output: boolean;
+ has_not_in_use_closeout: boolean;
};
/**
- * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
+ * Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed.
*/
export type SignalScoutRunSummaryMetadata = {
harness_prompt_version?: string;
@@ -100830,7 +100832,7 @@ export namespace Schemas {
emitted_report_ids: string[];
/** The `SignalReport` ids this run mutated via the `edit_report` channel (rewrote title/summary and/or appended a note), deduped. Distinct from `emitted_report_ids`: edit can target any inbox report, so these are generally not reports the run authored. Empty for runs that edited no report. */
edited_report_ids: string[];
- /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, and `has_self_validation`. Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
+ /** Scout-owned per-run context, in two regions. Top-level keys are stamped by the runner at run start. Always present: `harness_prompt_version` (id of the harness prompt build the run was given), `report_channel` (which report tools the run held: `none`, `emit`, `edit`, or `both`), `skill_origin` (`canonical` or `custom`), `github_guidance` (whether the run got the GitHub evidence section), and `business_knowledge_maintained` (whether the run got the business-knowledge section: the product flag is on and the team's knowledge base looks maintained) — the provenance set that says which instructions the run actually got, so runs are only compared against runs of the same shape. Present only when the run departed from a default: `model`, `runtime_adapter`, and `reasoning_effort` (routing overrode the agent-server default), `network_access` (`full` when the scout's config lifted the trusted-domain network restriction for this run), `write_scopes` (the extra write access the run's token carried, when the scout was granted any), and `triggered_by` (`manual` or `workflow` when the run was fired off-schedule; absent means the run came from the coordinator's schedule). The nested `derived` object is the harness's own map of boolean run dimensions, computed server-side at finalize: `has_emit_report`, `has_edit_report`, `has_self_improvement`, `has_chart`, `has_self_validation`, `has_structured_output`, and `has_not_in_use_closeout` (the run wrote a `not-in-use:` scratchpad entry and produced no report, finding, or structured output). Use `derived` to answer 'what kind of run was this?' instead of parsing the `summary` prose. Note the flags describe the reports the run authored as they stand now, so charts attached to someone else's report via an edit are not counted. A missing `derived` object is unknown, not all-false: the run predates the field, never finalized, or its stamp failed. */
metadata: SignalScoutRunSummaryMetadata;
}