: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): file a linked follow-up report for every failed check (#115135)
Andrew Maguire41a15aacb89c
diff --git a/products/signals/skills/authoring-scouts/references/report-checks.md b/products/signals/skills/authoring-scouts/references/report-checks.mdindex 529aaff27ee7..052ee5c28c66 100644--- a/products/signals/skills/authoring-scouts/references/report-checks.md+++ b/products/signals/skills/authoring-scouts/references/report-checks.md@@ -86,7 +86,10 @@ The text in `instructions` and `probe_hints` reaches the run as evidence, not asA **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.A resolved report is no longer in the inbox, so a verdict left only on its artefact log would reach nobody, and this lane has no scout in it to author anything.-An `agent` check needs no such path, because the run that answers it can file a report itself.+An `agent` check has no such path, because the run that answers it can file the follow-up itself.+The fallback lane, `signals-scout-inbox-validation`, does: when it records `failed` on a resolved report, it first authors a fresh report linked `follow_up_of` the original, the same link the pipeline writes for a metric breach.+A named lane gets only the shared check brief, which asks for the verdict and nothing more.+If its failures must reach the inbox, its own skill has to say to file the linked follow-up, and the lane needs `emit_report`.## Reading a report's checksdiff --git a/products/signals/skills/signals-scout-inbox-validation/SKILL.md b/products/signals/skills/signals-scout-inbox-validation/SKILL.mdindex 85199f4b9cc6..1cdf79546ad1 100644--- a/products/signals/skills/signals-scout-inbox-validation/SKILL.md+++ b/products/signals/skills/signals-scout-inbox-validation/SKILL.md@@ -37,7 +37,7 @@ You are the fleet's follow-up scout. The other scouts and signal sources find prExpect to file a report rarely. Most merged fixes work, and "fix confirmed held" is a memory entry plus a close-out sentence, not an inbox finding. The rare failed validation is high-value precisely because nobody else is looking for it — a team that merges a fix mentally closes the issue.-You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): a failed validation is a finished, evidenced inbox item you own 1:1, not a weak signal for a pipeline to cluster. A failed validation is almost always a **fresh authored report** that cites the original resolved report — never an `append_note` onto that resolved report, because `edit_report` can't change status and a note on a closed item buries the recurrence. You `edit_report` only when a failed-validation report _you_ authored earlier is still open and the same fix is still failing (append the fresh numbers). The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, the `priority` / `repository` fields, and the edit rules), and `authoring-scouts` → `references/report-contract.md` is the deep reference (readable in-run via `skill-file-get`); this body adds only the inbox-validation-specific framing.+You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): a failed validation is a finished, evidenced inbox item you own 1:1, not a weak signal for a pipeline to cluster. A failed validation is a **fresh authored report** linked `follow_up_of` the original resolved report — never an `append_note` onto that resolved report, because `edit_report` can't change status and a note on a closed item buries the recurrence. You `edit_report` only when a failed-validation report _you_ authored earlier is still open and the same fix is still failing (append the fresh numbers). The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, the `priority` / `repository` fields, and the edit rules), and `authoring-scouts` → `references/report-contract.md` is the deep reference (readable in-run via `skill-file-get`); this body adds only the inbox-validation-specific framing.**A merged PR is not a deployed PR.** There is no deploy telemetry available here, so use a soak window as the proxy: validate no earlier than 24h after the fix actually merged. The resolved transition is webhook-driven on merge in the common case, but reports also get flipped resolved in backfill sweeps long after the merge — anchor a check's first run to the PR's real merge time when you can get it, and treat `updated_at` as an upper bound otherwise. Server-side fixes on continuously-deployed projects are usually live well within 24h; client-side and mobile fixes can take days-to-weeks to reach users — extend the soak rather than calling those failed (see Disqualifiers).@@ -51,7 +51,7 @@ Three rules specific to that mode:- **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.+- **A failed check gets a follow-up report, filed before the verdict.** The verdict lands on the resolved report, which has left the inbox, so the verdict alone reaches nobody. The follow-up goes to the parent project's inbox, including for a report in a child environment (see Decide). `failed` retires the check and nothing re-runs it, so file the report first and record `failed` second, citing the report id in the explanation. Author the report by the rules in Decide and link it to the original with `links: [{"kind": "follow_up_of", "report_id": "<original report id>", "reason": "Follow-up check <check_id> failed: <one line>"}]`. The link carries the original's findings and pull requests to whoever picks up the follow-up. Skip the new report only when the failure is already in the inbox: a failed-validation report you authored for the same fix is still open (edit it with the fresh numbers and add the links Decide asks for, `recurrence_of` included, since an older report may lack it), or a report filed after the merge that is still open already describes the recurrence (cite it in the verdict). A resolved or dismissed sibling does not count, because it has left the inbox too. If the emit or edit rejects a link as "not found in this project", retry the same write without `links` (see Decide). If it fails for any other reason, record `errored` with what failed instead of `failed`, so the check runs again. An emit can also return without failing and still leave the inbox untouched: `emitted: false` with a `skipped_reason` (a gate skipped it) or a `report_status` of `suppressed` (the safety judge held it). A retry hits the same policy, so record `failed` anyway and say in the explanation that the follow-up did not surface and why. A failure that missed the check's bar but still improved is still a failure: file it at P3 and say what improved. Say in your close-out what you recorded and which report you filed or edited.## Quick close-out: is there anything to follow up?@@ -147,8 +147,8 @@ The dispatch section at the top of this file says when you are in this mode. Run| ----------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------ || 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 |+| Same entity firing at a comparable-to-baseline rate, flat or rising | **Failed** | `failed`; author a linked follow-up report |+| Entities quiet but fresh signals / a sibling report describe the same problem | **Failed (moved)** | `failed`; cite an open sibling report, else author a linked follow-up citing both || 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 |@@ -179,9 +179,9 @@ Keep the working set under the 100-row search cap: when entries pile up, `scout-The generic report mechanics — edit-vs-author, the status rules (crucial here: `edit_report` can't reopen a `resolved` report), reviewer routing, non-idempotent dedup, and the `priority` / `repository` / actionability fields — live in the harness prompt and in `authoring-scouts` → `references/report-contract.md`. Do not re-derive them here. This section is only the inbox-validation judgment layered on top:-- **Author** a fresh report via `scout-emit-report` only for a **failed** validation (and the gated dismissed-escalation below). It cites the original resolved report (an `inbox` evidence entry with its id), names the report title, the PR URL and merge date, the before-vs-after numbers per re-probed entity, and a recommendation (reopen and follow up on the fix). A failed validation is a fresh report, not an edit of the resolved one — the resolved report can't be reopened via `edit_report`. Most failed validations are investigations (why didn't the fix hold?) → `actionability=requires_human_input` + `repository=NO_REPO`; when the recurrence is an unambiguous same-entity regression and the relevant fix repo is known from the merged `pull_requests` entries, `actionability=immediately_actionable` + `repository=owner/repo` (that repo) opens a re-fix draft PR. Priority: **P2** when the recurring problem is user-impacting at material volume, **P3** otherwise (and for the dismissed-escalation). Route `suggested_reviewers` to the fix's author / the original report's reviewer via `scout-members-list`. After authoring, write `report:inbox_validation:report-<id8>` with the `report_id`.+- **Author** a fresh report via `scout-emit-report` for every **failed** validation, whether a check verdict or a spot check (and the gated dismissed-escalation below). Link it `follow_up_of` the original resolved report in `links`, with the failed check's id in the link's `reason` when a check failed. When the same problem is still occurring (the **Failed** row, not **Failed (moved)**), add a `recurrence_of` link to the original too, so later signals that match the resolved report land on your follow-up instead of forking another report. A check run executes in the parent project, so the follow-up always lands in the parent project's inbox. When the original report lives in a child environment, that environment's inbox does not show the follow-up, and an emit or an edit rejects these links as "not found in this project". Send the same write again without `links` and keep the `inbox` evidence entry as the pointer to the original. Name the child environment in the title and in the first line of the description, so its owners can find the follow-up from the parent inbox. Cite the follow-up's report id in the verdict explanation: the verdict lands on the original report, so it is the pointer a reader in the child environment sees. It also cites the original as an `inbox` evidence entry, names the report title, the PR URL and merge date, the before-vs-after numbers per re-probed entity, and a recommendation (reopen and follow up on the fix). A failed validation is a fresh report, not an edit of the resolved one — the resolved report can't be reopened via `edit_report`. Most failed validations are investigations (why didn't the fix hold?) → `actionability=requires_human_input` + `repository=NO_REPO`; when the recurrence is an unambiguous same-entity regression and the relevant fix repo is known from the merged `pull_requests` entries, `actionability=immediately_actionable` + `repository=owner/repo` (that repo) opens a re-fix draft PR. Priority: **P2** when the recurring problem is user-impacting at material volume, **P3** otherwise (and for the dismissed-escalation). Route `suggested_reviewers` to the fix's author / the original report's reviewer via `scout-members-list`. After authoring, write `report:inbox_validation:report-<id8>` with the `report_id`.- **Edit** only when a failed-validation report _you_ authored earlier is still open and the same fix is still failing — add the fresh post-soak numbers with `append_evidence` rather than filing a near-duplicate. A new fix PR merging is a fresh validation cycle → a fresh report, not an edit.-- **Remember** everything else — held, unverifiable, extended, partial.+- **Remember** everything else — held, unverifiable, extended, and a partial improvement you did not record as `failed`.- **Skip** anything already covered by an active check, or by a `dedupe:` / `report:` / `noise:` entry — unless the report's resolution is _newer_ than what the entry records (a new fix PR merged since: compare the report's `updated_at` / PR URL against the entry, and date your entries so this comparison works). Then attach a fresh check.Fix confirmations are deliberately memory-only: a "it worked" finding per merged PR would swamp the inbox. A team that wants positive confirmations can flip that in their own copy of this scout.@@ -209,7 +209,7 @@ Summarize the run in one paragraph: what you attached checks to, spot-checked (w- **Inside the soak window** — less than 24h since the fix merged (fall back to the resolved transition when merge time is unknown); enqueue, never validate.- **Declining tail after merge** — events from stale clients, cached frontends, and slow deploy pipelines look like a failed fix but aren't. A rate that dropped hard and keeps falling is the fix landing; extend, don't file a report. Mobile fixes especially: app store rollouts take weeks — segment by app/SDK version where the events carry one before concluding anything.- **Quiet surface ≠ fixed** — if the whole surface has no traffic post-merge (weekend, low-volume project), you measured nothing. Check a denominator (overall event volume, the service's total log rate) before calling **held**.-- **Partial improvements** — rate down materially but nonzero is shipped value plus remaining work, not a broken promise. Memory, not a report; mention it in the close-out.+- **Partial improvements** — rate down materially but nonzero is shipped value plus remaining work, not a broken promise. Memory, not a report; mention it in the close-out. The exception is a check whose stated bar the result misses: that is a recorded `failed` and gets the P3 follow-up above.- **Cold backlog** — reports resolved > 14 days before you first saw them, or whose PR merged > 30 days ago (backfill sweeps flip old reports resolved in batches). Follow-up has a freshness window; don't generate archaeology.- **Dismissed reports below the escalation gate** — the team decided; honor it.- **Re-covering a report that already has a verdict** — a finished check and a `dedupe:` / `noise:` entry are both terminal for attaching another check, and a `spotcheck:` entry is terminal for spot-checking. The only re-open is a _new_ fix PR merging (the report flips resolved again with a fresh `updated_at`) — then attach a fresh check.