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.

chore(signals): gate feature-flag report edits on material change (#70545)

posthog[bot]622f515d363b
diff --git a/products/signals/skills/signals-scout-feature-flags/SKILL.md b/products/signals/skills/signals-scout-feature-flags/SKILL.md
index 8b9b0aec371e..ebe478758a5d 100644
--- a/products/signals/skills/signals-scout-feature-flags/SKILL.md
+++ b/products/signals/skills/signals-scout-feature-flags/SKILL.md
@@ -27,7 +27,7 @@ You are a focused feature flags scout. A flag's configuration is a promise about
One mechanical fact anchors everything: **deactivating a flag does not stop `$feature_flag_called` events.** Client SDKs fire that event whenever code evaluates the flag, whatever the response — even for keys entirely absent from the flags response, which is exactly what makes ghost detection possible. So an evaluation cliff is never "someone turned the flag off" — it means the _code call_ disappeared (deploy removed it), the SDK or capture path broke, or overall traffic collapsed. Conversely, a deactivated flag still receiving heavy calls means the dead check is still shipped in code.
-You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated contradiction you'd stand behind as a standalone inbox item a human will act on. A flag issue the inbox already covers (a cliff that's still down, a ghost key still running hot, a debt bundle that only grew) is an **edit**, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the feature-flag-specific framing.
+You author reports directly via the report channel (`scout-emit-report` / `scout-edit-report`): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated contradiction you'd stand behind as a standalone inbox item a human will act on. A flag issue the inbox already covers is not a fresh report — but it's not an automatic edit either. **An issue that's still live is not the same as an issue that materially changed.** Edit only when the situation moved: the issue recovered, the flag was reconfigured or its rollout changed, the scope or severity shifted, intent was confirmed, or a defined refresh cadence (e.g. daily) has elapsed. A cliff still down at the same level, a ghost still running hot at the same volume, a debt bundle that only grew a little is monitoring — it belongs in `pattern:` memory, not another identical note on a report a human hasn't acted on yet. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the feature-flag-specific framing.
## Quick close-out: are flags even in use?
@@ -184,7 +184,7 @@ Write a scratchpad entry whenever you observe something a future run should know
- key `noise:feature-flags:qa-flags` — _"Keys prefixed `qa-` and `dev-` are internal test flags with spiky low volume — never cliff-worthy."_
- key `dedupe:feature-flags:checkout-v2-cliff` — _"`checkout-v2` evaluation cliff already handled (40k/day → 200/day, no flag edit). Skip unless volume recovers and cliffs again."_ One stable key per issue — update it in place, don't mint a dated variant.
- key `addressed:feature-flags:debt-bundle` — _"Flag-debt bundle already filed (9 stale + 2 dead-check flags). Don't re-file unless the set grows materially (>5 new)."_
-- key `report:feature-flags:checkout-v2` — _"Report `019f0a96-…` covers the `checkout-v2` evaluation cliff. Edit it (append_note the fresh numbers) while the cliff persists and the report is still live; if it was resolved and the flag later re-cliffs, that's a fresh report."_
+- key `report:feature-flags:checkout-v2` — _"Report `019f0a96-…` covers the `checkout-v2` evaluation cliff. Edit it only when the situation materially changes (recovers, deepens, gets reconfigured, or intent is confirmed) — not every run while the cliff simply persists at the same level; if it was resolved and the flag later re-cliffs, that's a fresh report."_
- key `reviewer:feature-flags:checkout-v2` — _"`checkout-v2` owned by `alice` (GitHub login) — route its reports there."_
By run #5 you should know the project's high-volume flags, their baselines and response mixes, which keys are internal noise, and the standing debt picture — so a real contradiction stands out immediately and cheaply.
@@ -194,7 +194,7 @@ By run #5 you should know the project's high-volume flags, their baselines and r
For a candidate that clears the bar, the call is **edit an existing report, author a new one, remember, or skip** — use judgment, these are the rails:
- **Search the inbox first.** The `report:feature-flags:<key>` scratchpad pointer is the reliable path (it holds the `report_id` — `inbox-reports-retrieve` it directly); with no pointer, `inbox-reports-list` by the specific flag key (`ordering=-updated_at`), not a broad word like `flag`.
-- **Edit** (`scout-edit-report`) when a still-live report already covers the flag — a cliff that hasn't recovered, a ghost still running hot, a widening distribution shift. `append_note` the fresh numbers, or rewrite the title/summary on a report you authored. This is the default when a match exists. `edit-report` can't change status, so if the matched report is `resolved` / `suppressed` / `failed`, don't append (it won't resurface) — author a fresh report for the relapse and repoint the `report:` key.
+- **Edit** (`scout-edit-report`) when a still-live report already covers the flag **and the situation materially changed** — the issue recovered, the flag was reconfigured or its rollout changed, the scope or severity shifted (a cliff deepened, a ghost's reach jumped, a distribution shift widened), intent was confirmed, or a defined refresh cadence (e.g. daily) has elapsed. `append_note` the fresh numbers, or rewrite the title/summary on a report you authored. **Don't edit just because the issue persists unchanged** — a cliff still down at the same level, a ghost still hot at the same volume, a debt bundle that only grew slightly is monitoring, not news. Re-appending the same measurement every three-hour run grows the audit trail without moving the decision forward; keep tracking it in `pattern:` memory and leave the report untouched, so its history records changes rather than ticks. `edit-report` can't change status, so if the matched report is `resolved` / `suppressed` / `failed`, don't append (it won't resurface) — author a fresh report for the relapse and repoint the `report:` key.
- **Author** (`scout-emit-report`) only when nothing live covers it. A good report names the flag key and id, quantifies the contradiction (baseline vs current calls, response mix before/after, ghost volume and reach), passes the volume gates, and dates the onset. Set `priority` (P0–P4) + `priority_explanation` — it's the report's importance in the inbox, your call to make. Set `suggested_reviewers` via `scout-members-list` (objects — a `{github_login}` or `{user_uuid}`, not bare strings; cache under `reviewer:feature-flags:<key>`); left empty the report reaches no one. Then choose the actionability + repo together:
- Most flag findings are an investigation a human confirms, not a one-line change → `actionability=requires_human_input` and `repository=NO_REPO` (NO_REPO is what stops `priority`+reviewers from spawning a pointless repo-selection sandbox).
- When the fix is an obvious code change (e.g. a ghost flag whose dead check just needs removing) → `actionability=immediately_actionable` with `repository="owner/repo"` (or omit `repository` to let the selector pick) to open a draft PR.
@@ -203,7 +203,7 @@ For a candidate that clears the bar, the call is **edit an existing report, auth
- **Remember** if below the bar but worth carrying forward (a drift inside the noise band, a ghost at 40 calls/day, a slowly-growing stale list); **skip** with a one-line note if a `noise:` / `addressed:` / `dedupe:` entry or an existing report already covers it.
-Sibling scouts share memory — the experiments scout owns experiment-linked flags, so skip any flag with a non-empty `experiment_set` and leave `dedupe:experiments:*` alone. When a prior run already covered a topic, default to edit-or-skip: the same fact twice in the inbox costs more than missing one finding for one tick.
+Sibling scouts share memory — the experiments scout owns experiment-linked flags, so skip any flag with a non-empty `experiment_set` and leave `dedupe:experiments:*` alone. When a prior run already covered a topic, default to skip — carry it in `pattern:` memory — unless the situation materially changed; edit only then. The same unchanged fact twice in the inbox costs more than missing one finding for one tick.
### Close out
@@ -263,5 +263,5 @@ Harness-level:
- No flags in use → `not-in-use:` entry, close out empty.
- No `$feature_flag_called` stream → config-side hygiene pass only, then close out.
- Traffic matches state everywhere (no cliffs, no ghosts, distributions stable or explained by edits) → close out empty; refresh `pattern:` baselines if stale.
-- Candidates all gated by `noise:` / `addressed:` / `dedupe:` entries, or an existing inbox report → edit-or-skip and close out.
+- Candidates all gated by `noise:` / `addressed:` / `dedupe:` entries, or an existing inbox report whose situation hasn't materially changed → skip (refresh `pattern:` memory) and close out; edit only the ones that moved.
- You've filed (or edited) reports for what's solid → close out. One sharp contradiction report beats a laundry list of P3 debt nits.