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.

fix(signals): retire cold anomaly-scout watchlist entries (#83474)

posthog[bot]3db7c5e1f1aa
diff --git a/products/signals/skills/signals-scout-anomaly-detection/SKILL.md b/products/signals/skills/signals-scout-anomaly-detection/SKILL.md
index 5e45b00ef344..1246649155f6 100644
--- a/products/signals/skills/signals-scout-anomaly-detection/SKILL.md
+++ b/products/signals/skills/signals-scout-anomaly-detection/SKILL.md
@@ -68,11 +68,16 @@ Spend a slice of each run widening coverage so the watchlist tracks what the tea
For each new candidate, do a first read to set its baseline and cadence, then add a `watchlist:` entry. Don't add more than a few per run — let coverage grow steadily.
-Explore is not only additive — **importance decays.** Every few days (~3), re-pull the ranking and reconcile the _existing_ watchlist against it: promote newly-hot items, demote or retire ones whose dashboards have gone cold. A large or "mature" watchlist is **not** a reason to skip explore — a frozen watchlist tracks last week's priorities, not today's. The refresh cadence and the `importance-refresh` memo are in [`references/watchlist-and-memory.md`](references/watchlist-and-memory.md).
+Explore is not only additive — **importance decays.**
+Every few days (~3), re-pull the ranking and reconcile the _existing_ watchlist against it: promote newly-hot items, and retire ones whose dashboards have gone cold.
+**Retiring is a delete, not a demote** — leave a one-line `retired:` tombstone, then `scout-scratchpad-forget` the item's `watchlist:` and `baseline:` entries, so the ledger holds only what you still score.
+Retire on evidence a metric went cold, never to make a refresh look productive, and never an item whose report is still live — the reference has the guard list.
+A large or "mature" watchlist is **not** a reason to skip explore — a frozen watchlist tracks last week's priorities, not today's.
+The refresh cadence, the terminal-state convention, and the `importance-refresh` memo are in [`references/watchlist-and-memory.md`](references/watchlist-and-memory.md).
### Save memory as you go
-Memory is continuous, not a final step. Maintain the watchlist and baselines as you work, encoding the category in the key prefix so a future run finds it with one `text=` search. The vocabulary (`watchlist:`, `baseline:`, `report:`, `noise:`, `addressed:`, `allowlist:`, `not-in-use:`) and worked entries are in [`references/watchlist-and-memory.md`](references/watchlist-and-memory.md). The short version:
+Memory is continuous, not a final step. Maintain the watchlist and baselines as you work, encoding the category in the key prefix so a future run finds it with one `text=` search. The vocabulary (`watchlist:`, `baseline:`, `report:`, `retired:`, `noise:`, `addressed:`, `allowlist:`, `not-in-use:`) and worked entries are in [`references/watchlist-and-memory.md`](references/watchlist-and-memory.md). The short version:
- `watchlist:anomaly_detection:insight:<short_id>` — a curated item: name, what it measures, cadence (hourly/daily), priority, and `last_checked` + `next_due` timestamps.
- `baseline:anomaly_detection:insight:<short_id>` — the learned normal (median + MAD per seasonal bucket) so the next run scores cheaply instead of recomputing from scratch.
diff --git a/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md b/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md
index 6e92d9125a86..26abf62ef033 100644
--- a/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md
+++ b/products/signals/skills/signals-scout-anomaly-detection/references/watchlist-and-memory.md
@@ -15,18 +15,19 @@ rewrites the entry in place (the idempotent refresh — use it to update a basel
### Key vocabulary
-| Key prefix | Holds |
-| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `watchlist:anomaly_detection:insight:<short_id>` | A curated insight to watch (the ledger row — see schema below). |
-| `watchlist:anomaly_detection:dashboard:<id>` | A curated whole dashboard to sweep (when its tiles are collectively key). |
-| `watchlist:anomaly_detection:importance-refresh` | Memo: when the watchlist's importance ranking was last reconciled + what changed. |
-| `baseline:anomaly_detection:insight:<short_id>` | The learned normal: median + MAD per seasonal bucket, so scoring is cheap. |
-| `report:anomaly_detection:insight:<short_id>` | Pointer to the inbox report you authored for this anomaly: `report_id` + re-escalation condition. Add a `:<series-or-direction>` suffix when one insight carries genuinely distinct concurrent anomalies (multi-series / breakdown, or an opposite-direction move) so they don't collapse onto one report. |
-| `reviewer:anomaly_detection:<area>` | A cached owner: the bare lowercase GitHub login for a dashboard / metric area. |
-| `noise:anomaly_detection:<topic>` | A pattern to ignore (a chronically erratic insight, a seasonal quirk). |
-| `addressed:anomaly_detection:<topic>` | Team-confirmed expected (a launch/backfill) or fix shipped — skip. |
-| `allowlist:anomaly_detection:insight:<short_id>` | An insight to never surface (deprecated, sandbox, test). |
-| `not-in-use:anomaly_detection:team{team_id}` | Close-out memo: team isn't actively using saved analytics right now. |
+| Key prefix | Holds |
+| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `watchlist:anomaly_detection:insight:<short_id>` | A curated insight to watch (the ledger row — see schema below). |
+| `watchlist:anomaly_detection:dashboard:<id>` | A curated whole dashboard to sweep (when its tiles are collectively key). |
+| `watchlist:anomaly_detection:importance-refresh` | Memo: when the watchlist's importance ranking was last reconciled + what changed. |
+| `baseline:anomaly_detection:insight:<short_id>` | The learned normal: median + MAD per seasonal bucket, so scoring is cheap. |
+| `report:anomaly_detection:insight:<short_id>` | Pointer to the inbox report you authored for this anomaly: `report_id` + re-escalation condition. Add a `:<series-or-direction>` suffix when one insight carries genuinely distinct concurrent anomalies (multi-series / breakdown, or an opposite-direction move) so they don't collapse onto one report. |
+| `retired:anomaly_detection:<suffix of the retired row>` | Tombstone for a watchlist item you stopped scoring: why, and what would bring it back. One line. |
+| `reviewer:anomaly_detection:<area>` | A cached owner: the bare lowercase GitHub login for a dashboard / metric area. |
+| `noise:anomaly_detection:<topic>` | A pattern to ignore (a chronically erratic insight, a seasonal quirk). |
+| `addressed:anomaly_detection:<topic>` | Team-confirmed expected (a launch/backfill) or fix shipped — skip. |
+| `allowlist:anomaly_detection:insight:<short_id>` | An insight to never surface (deprecated, sandbox, test). |
+| `not-in-use:anomaly_detection:team{team_id}` | Close-out memo: team isn't actively using saved analytics right now. |
### Watchlist entry schema
@@ -81,11 +82,23 @@ focus moves. Every ~3 days, treat the importance ranking itself as the thing to
- Re-pull `insights-trending-retrieve` (`days=7`) and `recent_dashboards`, and reconcile them
against the watchlist you already have — not just to add, but to **re-rank and prune**: bump
- the `priority` of items climbing the view counts, and **demote or retire** items whose
- dashboard is no longer accessed or whose view count has collapsed (drop them, or mark
- `priority: low` and stretch their cadence). A dashboard created last week that's now the
- most-opened one belongs on the list; one nobody has opened in a month should not keep burning
- the budget.
+ the `priority` of items climbing the view counts, and **retire** items whose dashboard is no
+ longer accessed or whose view count has collapsed. A dashboard created last week that's now
+ the most-opened one belongs on the list; one nobody has opened in a month should not keep
+ burning the budget.
+- **Cold needs positive evidence, not absence.** Both of those reads are top-N — trending defaults
+ to 10, and `recent_dashboards` holds only the most recently accessed — so an item can be missing
+ because it ranked 11th. Raise the limit, and check the item itself before retiring it. Absence
+ from a bounded list means unknown, not cold.
+- **Never retire these, however cold they look.** An item with a live `report:` pointer: you still
+ owe it the recurrence check the four states below require, and its baseline is what measures
+ whether the reported move persists. And the `importance-refresh` memo itself, which has to
+ survive for the cadence to work.
+- **Close the refresh by acting on what you found cold.** Naming the active scoreable set in the
+ memo is not pruning — every cold row survives it, and the ledger keeps growing while the memo
+ says coverage is fine. Retire the rows you actually judged cold (see _Retiring an item_ below),
+ so the ledger and the memo agree. Retiring nothing is a fine outcome on a stable watchlist; say
+ so in the memo. Never retire a live item to make a refresh look productive.
- A large watchlist is **not** a reason to skip this. "The watchlist is already mature" is the
trap: it freezes coverage on whatever was important when you bootstrapped. The refresh is
cheap — two reads plus a diff — and it is what keeps "important" meaning _currently_
@@ -95,6 +108,9 @@ focus moves. Every ~3 days, treat the importance ranking itself as the thing to
days old, do the refresh this run before exploiting, then reuse the key to update it in place.
Like the weekly baseline re-derivation above, this stops the watchlist going stale — but run it
more often, because the team's attention shifts faster than a metric's own distribution does.
+ **One memo, one key** — never date-suffix it (`…:importance-refresh:2026-06-18`) or spell it a
+ second way. A dated key can't be rewritten in place, so every refresh leaves another row behind
+ and the memo you're looking for gets harder to find.
**Round-robin, don't re-scan everything.** The watchlist + `next_due` timestamps are what let
successive runs cover different items instead of all repeating the same top insights every
@@ -105,6 +121,54 @@ the run summary, or a `watchlist:` `next_due` you set to "now" on the next item)
run knows where to resume. The run summary (`scout-runs-list`) is the natural place to
say "checked items A–F; G–K still due next run."
+## Retiring an item (the terminal state)
+
+An item you no longer score has to leave the ledger. `priority: low` is **not** a terminal state —
+it keeps the row in every `watchlist:` search, in the round-robin, and in the way of the items you
+do score. Retire in this order:
+
+1. Write the compact `retired:` tombstone (shape below) **first**. The three calls are independent,
+ so a run that dies mid-retirement leaves a record rather than a silent hole in coverage.
+2. `scout-scratchpad-forget` the `watchlist:anomaly_detection:…` row.
+3. `scout-scratchpad-forget` the `baseline:anomaly_detection:…` entry that row owns. A baseline
+ outlives the row that used it, so baselines are the first thing to overrun the ledger — retiring
+ the watchlist row alone just moves the bloat. Delete only a baseline the retired row alone used;
+ a dashboard row's tiles can share baselines with insight rows you still score.
+
+```text
+key: retired:anomaly_detection:insight:ym0K91uz
+content: "Revenue over time — retired 2026-06-14: the go/revenue dashboard hasn't been opened in
+ ~6 weeks and its view count fell 412 → 3. Re-add if it returns to the trending ranking."
+```
+
+Key the tombstone on the same suffix as the row it replaces. It exists so the next explore pass
+doesn't re-add what you just retired — one line, no charts, no verdict prose. It is distinct from
+`allowlist:`, which means never surface this at all (deprecated / sandbox / test); a `retired:`
+item is legitimate, just not worth the budget today.
+
+Search `retired:` when explore proposes an item, not during orientation — tombstones would
+otherwise crowd your capped reads, which is the failure this whole convention exists to prevent.
+When a retired item does earn its place back, `scout-scratchpad-forget` the tombstone as you write
+the fresh `watchlist:` row and baseline, so the ledger never says both at once.
+
+**This applies to every watchlist row, not just insight-keyed ones.** A finished investigation, a
+day-of-week sweep, or a bootstrap queue that has served its purpose retires the same way — a run
+log is not a ledger row. The write-up belongs in the run summary (`scout-runs-list`), not under a
+`watchlist:` key where the round-robin keeps picking it up. The `importance-refresh` memo is the
+one `watchlist:` row that never retires.
+
+**Keep the working set scannable.** Your orientation search is capped, so an unbounded ledger
+silently hides overdue items behind the limit — the exact failure this convention prevents. If a
+`watchlist:` search returns more rows than you could score in several runs, the surplus is backlog,
+not coverage: retire the coldest until it fits. Drop your own `retired:` tombstones older than ~90
+days, and the dated one-off entries you wrote once their window has passed.
+
+**Only ever forget keys you own.** The scratchpad is one team-wide keyspace shared with every other
+scout, and `scout-scratchpad-forget` deletes by exact key without checking who wrote it. Confine
+every delete to the `anomaly_detection` keys this skill writes. Another scout's cursor or `dedupe:`
+row is its pending work, not your backlog — removing it makes that scout repeat reports or lose its
+place.
+
## The four states (classify every candidate before reporting)
1. **Net new** — no prior report or scratchpad entry covers this metric move. → **Author** a