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(replay-vision): rank the watch feed with jev behind a flag (#107096)

Kim Svatos Duganf71a185c2aa4
diff --git a/products/replay_vision/backend/api/scanners.py b/products/replay_vision/backend/api/scanners.py
index d755c1c45812..7a362ba6c44f 100644
--- a/products/replay_vision/backend/api/scanners.py
+++ b/products/replay_vision/backend/api/scanners.py
@@ -96,6 +96,12 @@ from products.replay_vision.backend.impact import (
compute_scanner_impact,
create_affected_cohort,
)
+from products.replay_vision.backend.jev_watch_feed import (
+ JEV_WATCHABLE_MIN,
+ load_watch_ranks,
+ rank_watch_feed_by_jev,
+ watch_feed_ranker,
+)
from products.replay_vision.backend.models.replay_observation import (
ObservationStatus,
ObservationTrigger,
@@ -1445,6 +1451,9 @@ WATCH_FEED_CANDIDATE_CAP = 1000
# the whole cap and quiet scanners lose not just feed slots but their own baselines — "unusual for
# this scanner lately" silently stops firing for exactly the scanners the cap crowded out.
WATCH_FEED_PER_SCANNER_CAP = 100
+# Ids per query when the jev feed fetches cached watchable rows the recency slice cut off. Keeps
+# each id__in list bounded while the walk stops as soon as the page is covered.
+WATCH_FEED_BYPASS_CHUNK = 200
class WatchFeedReason(models.TextChoices):
@@ -1456,6 +1465,7 @@ class WatchFeedReason(models.TextChoices):
RARE_TAG = "rare_tag"
NOVEL_SUMMARY = "novel_summary"
FRICTION = "friction"
+ JEV_WATCHABLE = "jev_watchable"
UNVIEWED_RECENT = "unviewed_recent"
RECENT = "recent"
@@ -1550,6 +1560,8 @@ class WatchFeedReasonSerializer(serializers.Serializer):
"`rare_tag` (a tag uncommon for the scanner this window), `novel_summary` (a summary that "
"reads unlike the scanner's other sessions this window), `notable` (the scan itself judged the "
"session worth watching), `friction` (the scan describes errors, retries, or dead ends), "
+ "`jev_watchable` (the decision model judged the session worth watching; teams on the "
+ "Jev ranker experiment only), "
"`unviewed_recent` (new to you), `recent` (nothing special, newest available)."
),
)
@@ -1586,13 +1598,18 @@ class WatchFeedReasonSerializer(serializers.Serializer):
allow_null=True,
help_text="The scan's own 0-1 judgment of how much a team would benefit from watching, for `notable`.",
)
+ jev_probability = serializers.FloatField(
+ required=False,
+ allow_null=True,
+ help_text="The decision model's 0-1 judgment that the session is worth watching, for `jev_watchable`.",
+ )
notability_reason = serializers.CharField(
required=False,
allow_null=True,
help_text=(
- "The scan's own sentence naming why the session is worth watching. Present only on the `notable` "
- "reason kind, and preferred over copy derived from the reason kind. Absent on observations "
- "scanned before notability shipped."
+ "The scan's own sentence naming why the session is worth watching. Present on the `notable` and "
+ "`jev_watchable` reason kinds when the scan itself found the session notable, and preferred over "
+ "copy derived from the reason kind. Absent on observations scanned before notability shipped."
),
)
score = serializers.FloatField(
@@ -2318,7 +2335,45 @@ class ReplayScannerViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, vi
.values("id", "scanner_id", "created_at", "scanner_result", "feed_viewed")
.order_by("-created_at", "-id")[:WATCH_FEED_CANDIDATE_CAP]
)
- ranked = rank_watch_feed_candidates(candidate_rows)[: params["limit"]]
+ # The flag selects one of two independent rankers; nothing is blended between them. Shadow
+ # teams rank on the weighted score too, because only the `jev` arm reads the probabilities
+ # the hourly sweep cached. Neither arm makes a model call here.
+ if watch_feed_ranker(self.team_id) == "jev":
+ probabilities = load_watch_ranks(self.team_id, allowed_ids)
+ jev_rows = list(candidate_rows)
+ # The recency slice above holds only each scanner's newest rows, which on a high-volume
+ # scanner covers minutes. The sweep judged the whole window, so fetch the watchable rows
+ # the slice cut off, walking the cache in probability-descending chunks. Each chunk goes
+ # through `candidates` — team, scanner, date, and search — so nothing outside the
+ # request's scope can enter, and a cached id that matches no candidate row cannot use up
+ # the page: slicing the cache before filtering would let high-probability non-matches
+ # push out matching rows. The walk stops once the page is covered, and the cache itself
+ # bounds it (at most a window's judged rows per readable scanner).
+ watchable_missing = sorted(
+ (
+ UUID(observation_id)
+ for observation_id, probability in probabilities.items()
+ if probability >= JEV_WATCHABLE_MIN
+ ),
+ key=lambda observation_id: probabilities[str(observation_id)],
+ reverse=True,
+ )
+ loaded_ids = {row["id"] for row in jev_rows}
+ missing = [observation_id for observation_id in watchable_missing if observation_id not in loaded_ids]
+ needed = params["limit"]
+ for start in range(0, len(missing), WATCH_FEED_BYPASS_CHUNK):
+ if needed <= 0:
+ break
+ fetched = list(
+ candidates.filter(id__in=missing[start : start + WATCH_FEED_BYPASS_CHUNK])
+ .annotate(feed_viewed=viewed)
+ .values("id", "scanner_id", "created_at", "scanner_result", "feed_viewed")
+ )
+ jev_rows += fetched
+ needed -= len(fetched)
+ ranked = rank_watch_feed_by_jev(jev_rows, probabilities)[: params["limit"]]
+ else:
+ ranked = rank_watch_feed_candidates(candidate_rows)[: params["limit"]]
reasons_by_id = {entry.observation_id: entry.reason for entry in ranked}
rows = {
row.id: row
diff --git a/products/replay_vision/backend/jev_watch_feed.py b/products/replay_vision/backend/jev_watch_feed.py
index 3762e4611728..18cbae88846c 100644
--- a/products/replay_vision/backend/jev_watch_feed.py
+++ b/products/replay_vision/backend/jev_watch_feed.py
@@ -33,6 +33,7 @@ import structlog
from prometheus_client import Counter, Histogram
from posthog.dataclasses import frozen
+from posthog.llm.gateway_client import GatewayNotConfiguredError
from posthog.ph_client import get_feature_flag_or_none
from posthog.redis import get_client
@@ -62,6 +63,12 @@ JEV_INPUT_USD_PER_MILLION = 0.042
# client's own default; the sweep is background work, so latency is cheap and a timeout loses a
# whole chunk's judgments.
JEV_TIMEOUT_SECONDS = 30.0
+# Gateway refusals the batch itself can cause, so a retry fails the same way: a malformed request,
+# a payload past the gateway's limit, unprocessable content. An allowlist, because the two mistakes
+# cost differently: wrongly charging parks rows as judged-with-no-score for the cache entry's life,
+# wrongly not charging re-buys one batch next sweep. Auth and routing refusals, rate limits, server
+# errors, contract breaks reported as 200, and unknown statuses all retry free.
+_BATCH_FAULT_STATUSES = frozenset({400, 413, 422})
# How far a viewed row drops on the 0-1 probability scale, the same intent as WATCH_SEEN_PENALTY in
# the weighted ranker: an unviewed peer with comparable evidence comes first, and a very strong seen
# row still holds its place above weak unseen rows.
@@ -158,7 +165,7 @@ class WindowJudgment:
# from `probabilities` and retry next sweep.
skipped_no_prose: tuple[str, ...]
# Rows from chunks that failed for a reason the batch itself caused (an invalid answer, or a
- # gateway refusal that is not a rate limit), so a retry will fail the same way. The sweep
+ # gateway refusal in _BATCH_FAULT_STATUSES), so a retry will fail the same way. The sweep
# charges its retry budget only against these: an outage or a misconfigured gateway fails every
# chunk alike and must not park rows as judged-with-no-score.
batch_failed_ids: tuple[str, ...]
@@ -283,11 +290,12 @@ def judge_scanner_window(
_LATENCY.observe(perf_counter() - started)
_CALLS.labels(type(error).__name__).inc()
failed_chunks += 1
- # An invalid answer or a non-rate-limit gateway refusal is the batch's own fault; an
- # unreachable, disabled, misconfigured, rate-limited, or erroring gateway is not, and
- # its rows must retry free.
- if isinstance(error, ValueError) or (
- isinstance(error, DecisionGatewayError) and 400 <= error.status_code < 500 and error.status_code != 429
+ # An invalid answer or a batch-caused gateway refusal charges the retry budget. A
+ # missing gateway config raises a ValueError subclass and must not sneak in through
+ # the invalid-answer check: it fails every chunk alike, so its rows retry free, the
+ # same as an unreachable, disabled, rate-limited, or erroring gateway.
+ if (isinstance(error, ValueError) and not isinstance(error, GatewayNotConfiguredError)) or (
+ isinstance(error, DecisionGatewayError) and error.status_code in _BATCH_FAULT_STATUSES
):
batch_failed_ids.extend(entry_id for entry_id, _ in chunk)
# The gateway error body can echo the state, which holds recording-derived prose, so
diff --git a/products/replay_vision/backend/temporal/jev_watch_rank/activities.py b/products/replay_vision/backend/temporal/jev_watch_rank/activities.py
index c9d3030dd2fc..e78359ad0c66 100644
--- a/products/replay_vision/backend/temporal/jev_watch_rank/activities.py
+++ b/products/replay_vision/backend/temporal/jev_watch_rank/activities.py
@@ -195,8 +195,8 @@ async def _judge_watch_ranks(inputs: JevWatchRankSweepInputs) -> JevWatchRankSwe
**{oid: p for oid, p in cached_watchable.items() if oid in window_strs},
**{oid: p for oid, p in judgment.probabilities.items() if p >= JEV_WATCHABLE_MIN},
}
- # A row whose judgment failed through its own batch (an invalid answer, a non-rate-limit
- # gateway refusal) retries on later sweeps, but only MAX_JUDGE_ATTEMPTS times: the
+ # A row whose judgment failed through its own batch (an invalid answer, a gateway
+ # refusal the batch caused) retries on later sweeps, but only MAX_JUDGE_ATTEMPTS times: the
# newest-first pick would otherwise retry a deterministically failing batch every hour
# and starve older rows. An exhausted row is recorded as judged with no score, so it
# settles into the filler tier like a prose-less row. An outage charges nothing — its
diff --git a/products/replay_vision/backend/temporal/jev_watch_rank/constants.py b/products/replay_vision/backend/temporal/jev_watch_rank/constants.py
index 5fe028ce80dd..a2510cd2a941 100644
--- a/products/replay_vision/backend/temporal/jev_watch_rank/constants.py
+++ b/products/replay_vision/backend/temporal/jev_watch_rank/constants.py
@@ -18,7 +18,7 @@ WINDOW_SCAN_CAP = 1000
MAX_JUDGED_PER_SCANNER = 100
# The newest-first pick would retry a deterministically failing batch every hour and starve older
# rows for the whole window. After this many batch-attributable failures (an invalid answer, a
-# gateway refusal that is not a rate limit) a row is recorded as judged with no score, so it
+# gateway refusal the batch caused) a row is recorded as judged with no score, so it
# settles into the recency filler tier like a prose-less row — for the life of the cache entry,
# since every sweep over an active scanner refreshes the TTL. Environmental failures (an outage,
# a rate limit, a misconfigured gateway) charge no attempt, so a bad hour parks nothing.
diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.py
index 0fdf4083636d..6789939e46c9 100644
--- a/products/replay_vision/backend/tests/test_api.py
+++ b/products/replay_vision/backend/tests/test_api.py
@@ -32,10 +32,15 @@ from posthog.redis import get_client
from posthog.session_recordings.queries.test.session_replay_sql import produce_replay_summary
from products.experiments.backend.models.experiment import Experiment
-from products.replay_vision.backend.api.scanners import ReplayScannerSerializer, WatchFeedQuerySerializer
+from products.replay_vision.backend.api.scanners import (
+ WATCH_FEED_CANDIDATE_CAP,
+ ReplayScannerSerializer,
+ WatchFeedQuerySerializer,
+)
from products.replay_vision.backend.api.trigger import WorkflowStartOutcome, start_apply_scanner_workflow
from products.replay_vision.backend.billing import observation_credits_for_model
from products.replay_vision.backend.enqueue_claims import _scanner_key, _team_key, pending_enqueue_claims_for_team
+from products.replay_vision.backend.jev_watch_feed import store_watch_ranks
from products.replay_vision.backend.models.replay_observation import (
ObservationStatus,
ObservationTrigger,
@@ -4775,6 +4780,106 @@ class TestWatchFeedAPI(_VisionAPITestCase):
resp = self.client.get(self.feed_url)
self.assertEqual(resp.json()["results"][0]["reason"], {"kind": "unviewed_recent"})
+ def test_the_flag_switches_the_whole_ranker_between_weighted_score_and_jev(self) -> None:
+ # The two rankers are independent: a cached Jev probability must not move the weighted-score
+ # feed (weighted-score and jev-shadow arms), and the jev arm must rank on the cached
+ # probabilities alone, with unjudged and judged-low rows in the recency filler tier.
+ scanner = self._create_scanner(name="m")
+ jev_high = self._succeeded_observation(scanner, "jev-high", 40, self._monitor_result("no"))
+ self._succeeded_observation(scanner, "signal", 20, self._monitor_result("no", signals=2))
+ jev_low = self._succeeded_observation(scanner, "jev-low", 10, self._monitor_result("yes"))
+ store_watch_ranks(
+ self.team.id, scanner.id, {str(jev_high.id), str(jev_low.id)}, {str(jev_high.id): 0.95}, {}, "jevk5-fp8-0.2"
+ )
+
+ ranker = "products.replay_vision.backend.api.scanners.watch_feed_ranker"
+ for mode in ("weighted-score", "jev-shadow"):
+ with patch(ranker, return_value=mode):
+ resp = self.client.get(self.feed_url)
+ items = resp.json()["results"]
+ # The signal and the verdict hit lead as today; the cached 0.95 moves nothing.
+ self.assertEqual(
+ [item["observation"]["session_id"] for item in items],
+ ["signal", "jev-low", "jev-high"],
+ mode,
+ )
+ self.assertEqual(items[0]["reason"]["kind"], "signal_emitted", mode)
+ self.assertEqual(items[2]["reason"], {"kind": "unviewed_recent"}, mode)
+
+ with patch(ranker, return_value="jev"):
+ resp = self.client.get(self.feed_url)
+ items = resp.json()["results"]
+ # jev-high carries evidence; the 0.2 row and the unjudged row fall to the filler tier by
+ # recency, so neither claims the model judged it worth watching.
+ self.assertEqual(
+ [item["observation"]["session_id"] for item in items],
+ ["jev-high", "jev-low", "signal"],
+ )
+ self.assertEqual(items[0]["reason"], {"kind": "jev_watchable", "jev_probability": 0.95})
+ self.assertEqual(items[1]["reason"], {"kind": "unviewed_recent"})
+ self.assertEqual(items[2]["reason"], {"kind": "unviewed_recent"})
+
+ def test_the_jev_arm_surfaces_a_watchable_row_the_recency_slice_cut_off(self) -> None:
+ # The candidate query keeps only each scanner's newest rows, so on a high-volume scanner a
+ # watchable row from days ago never reaches the weighted feed. The jev arm must fetch it
+ # back from the cache and rank it first.
+ scanner = self._create_scanner(name="m")
+ interesting_result = self._monitor_result("yes")
+ interesting_result["model_output"]["notability"] = 0.9
+ interesting_result["model_output"]["notability_reason"] = "The user paid twice for one order."
+ old_interesting = self._succeeded_observation(scanner, "old-interesting", 60 * 24 * 2, interesting_result)
+ for index in range(100):
+ self._succeeded_observation(scanner, f"routine-{index}", index + 1, self._monitor_result("no"))
+ store_watch_ranks(
+ self.team.id, scanner.id, {str(old_interesting.id)}, {str(old_interesting.id): 0.9}, {}, "jevk5-fp8-0.2"
+ )
+
+ ranker = "products.replay_vision.backend.api.scanners.watch_feed_ranker"
+ with patch(ranker, return_value="weighted-score"):
+ resp = self.client.get(self.feed_url)
+ self.assertNotIn("old-interesting", [item["observation"]["session_id"] for item in resp.json()["results"]])
+
+ with patch(ranker, return_value="jev"):
+ resp = self.client.get(self.feed_url)
+ items = resp.json()["results"]
+ self.assertEqual(items[0]["observation"]["session_id"], "old-interesting")
+ # The scan found the session notable, so its own sentence reaches the card's reason.
+ self.assertEqual(
+ items[0]["reason"],
+ {
+ "kind": "jev_watchable",
+ "jev_probability": 0.9,
+ "notability_reason": "The user paid twice for one order.",
+ },
+ )
+ # The 100 routine rows are filler: they pad the one finding only to the feed's floor.
+ self.assertEqual(len(items), 3)
+
+ def test_the_jev_bypass_filters_before_it_caps(self) -> None:
+ # The cache knows nothing about the request's filters: cached watchable ids that match no
+ # candidate row must not use up the bypass and push out a lower-probability row that does.
+ scanner = self._create_scanner(name="m")
+ interesting = self._monitor_result("yes")
+ interesting["model_output"]["reasoning"] = "the checkout flow needle"
+ old_interesting = self._succeeded_observation(scanner, "old-interesting", 60 * 24 * 2, interesting)
+ for index in range(100):
+ routine = self._monitor_result("no")
+ routine["model_output"]["reasoning"] = "the checkout flow needle"
+ self._succeeded_observation(scanner, f"routine-{index}", index + 1, routine)
+ # More cached watchable ids than the old pre-filter slice kept, all rated above the one row
+ # that matches the search and none of them a real observation.
+ watchable = {str(uuid.uuid4()): 0.9 for _ in range(WATCH_FEED_CANDIDATE_CAP)}
+ watchable[str(old_interesting.id)] = 0.6
+ store_watch_ranks(self.team.id, scanner.id, set(watchable), watchable, {}, "jevk5-fp8-0.2")
+
+ ranker = "products.replay_vision.backend.api.scanners.watch_feed_ranker"
+ with patch(ranker, return_value="jev"):
+ resp = self.client.get(f"{self.feed_url}?search=needle")
+ items = resp.json()["results"]
+ self.assertEqual(items[0]["observation"]["session_id"], "old-interesting")
+ self.assertEqual(items[0]["reason"], {"kind": "jev_watchable", "jev_probability": 0.6})
+ self.assertEqual(len(items), 3)
+
def test_viewed_orders_within_tiers_but_never_sinks_a_signal_below_plain_rows(self) -> None:
# Seen-state is a within-tier order, not a top-level one: a signal the reader saw yesterday
# still outranks unviewed routine rows, while among plain rows unviewed comes first.
diff --git a/products/replay_vision/backend/tests/test_jev_watch_feed.py b/products/replay_vision/backend/tests/test_jev_watch_feed.py
index 670a8c90757f..2fac02c28427 100644
--- a/products/replay_vision/backend/tests/test_jev_watch_feed.py
+++ b/products/replay_vision/backend/tests/test_jev_watch_feed.py
@@ -12,6 +12,7 @@ from django.utils import timezone
from asgiref.sync import async_to_sync
from parameterized import parameterized
+from posthog.llm.gateway_client import GatewayNotConfiguredError
from posthog.redis import get_client
from products.ml_inference.backend.facade.contracts import (
@@ -136,7 +137,10 @@ class TestJudgeScannerWindow(SimpleTestCase):
@parameterized.expand(
[
- ("refusal", 422, True),
+ ("bad_request", 400, True),
+ ("unprocessable", 422, True),
+ ("unauthorized", 401, False),
+ ("not_found", 404, False),
("rate_limit", 429, False),
("server_error", 503, False),
]
@@ -151,6 +155,16 @@ class TestJudgeScannerWindow(SimpleTestCase):
assert judgment.failed_chunks == 1
assert judgment.batch_failed_ids == ((str(rows[0]["id"]),) if charged else ())
+ def test_a_misconfigured_gateway_charges_no_retry_budget(self) -> None:
+ # GatewayNotConfiguredError subclasses ValueError, so the invalid-answer check must not
+ # catch it: a broken gateway config would otherwise park the newest rows within hours.
+ rows = [_prose_row(uuid4(), "summary")]
+ with patch(_API) as api:
+ api.decide_when_available.side_effect = GatewayNotConfiguredError("no gateway configured")
+ judgment = judge_scanner_window(1, uuid4(), rows)
+ assert judgment.failed_chunks == 1
+ assert judgment.batch_failed_ids == ()
+
def test_rows_without_prose_are_reported_instead_of_sent(self) -> None:
no_output, no_result = uuid4(), uuid4()
rows = [
diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.ts
index ea20628c7013..5bbc73add929 100644
--- a/products/replay_vision/frontend/generated/api.schemas.ts
+++ b/products/replay_vision/frontend/generated/api.schemas.ts
@@ -2649,6 +2649,7 @@ export interface SuggestTagsResponseApi {
* * `rare_tag` - Rare Tag
* * `novel_summary` - Novel Summary
* * `friction` - Friction
+ * * `jev_watchable` - Jev Watchable
* * `unviewed_recent` - Unviewed Recent
* * `recent` - Recent
*/
@@ -2663,6 +2664,7 @@ export const WatchFeedReasonEnumApi = {
RareTag: 'rare_tag',
NovelSummary: 'novel_summary',
Friction: 'friction',
+ JevWatchable: 'jev_watchable',
UnviewedRecent: 'unviewed_recent',
Recent: 'recent',
} as const
@@ -2681,7 +2683,7 @@ export interface WatchFeedSignalApi {
* Machine-readable reason an observation made the feed; the frontend renders the copy.
*/
export interface WatchFeedReasonApi {
- /** Highest-priority rule the observation satisfied: `signal_emitted` (it pushed a signal), `unusual_verdict` (a monitor answer that is the minority for that scanner this window), `verdict_yes` (a monitor hit, when the window is too thin to know which answer is unusual), `outlier_score` (far from the scanner's window average), `rare_tag` (a tag uncommon for the scanner this window), `novel_summary` (a summary that reads unlike the scanner's other sessions this window), `notable` (the scan itself judged the session worth watching), `friction` (the scan describes errors, retries, or dead ends), `unviewed_recent` (new to you), `recent` (nothing special, newest available).
+ /** Highest-priority rule the observation satisfied: `signal_emitted` (it pushed a signal), `unusual_verdict` (a monitor answer that is the minority for that scanner this window), `verdict_yes` (a monitor hit, when the window is too thin to know which answer is unusual), `outlier_score` (far from the scanner's window average), `rare_tag` (a tag uncommon for the scanner this window), `novel_summary` (a summary that reads unlike the scanner's other sessions this window), `notable` (the scan itself judged the session worth watching), `friction` (the scan describes errors, retries, or dead ends), `jev_watchable` (the decision model judged the session worth watching; teams on the Jev ranker experiment only), `unviewed_recent` (new to you), `recent` (nothing special, newest available).
*
* * `signal_emitted` - Signal Emitted
* * `unusual_verdict` - Unusual Verdict
@@ -2691,6 +2693,7 @@ export interface WatchFeedReasonApi {
* * `rare_tag` - Rare Tag
* * `novel_summary` - Novel Summary
* * `friction` - Friction
+ * * `jev_watchable` - Jev Watchable
* * `unviewed_recent` - Unviewed Recent
* * `recent` - Recent */
kind: WatchFeedReasonEnumApi
@@ -2719,7 +2722,12 @@ export interface WatchFeedReasonApi {
*/
notability?: number | null
/**
- * The scan's own sentence naming why the session is worth watching. Present only on the `notable` reason kind, and preferred over copy derived from the reason kind. Absent on observations scanned before notability shipped.
+ * The decision model's 0-1 judgment that the session is worth watching, for `jev_watchable`.
+ * @nullable
+ */
+ jev_probability?: number | null
+ /**
+ * The scan's own sentence naming why the session is worth watching. Present on the `notable` and `jev_watchable` reason kinds when the scan itself found the session notable, and preferred over copy derived from the reason kind. Absent on observations scanned before notability shipped.
* @nullable
*/
notability_reason?: string | null
diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
index 42da26870f2a..222c8cd9ead5 100644
--- a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
@@ -126,6 +126,8 @@ export function watchReasonCopy(reason: WatchFeedReasonApi): string {
return 'The scanner judged this session worth watching.'
case 'friction':
return 'The session shows signs of friction, like errors, retries, or dead ends.'
+ case 'jev_watchable':
+ return 'The decision model judged this session worth watching.'
case 'unviewed_recent':
return 'New since you last looked.'
case 'recent':
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 7c0ce8e93b18..2db34b509840 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -105155,6 +105155,7 @@ export namespace Schemas {
* * `rare_tag` - Rare Tag
* * `novel_summary` - Novel Summary
* * `friction` - Friction
+ * * `jev_watchable` - Jev Watchable
* * `unviewed_recent` - Unviewed Recent
* * `recent` - Recent
*/
@@ -105170,6 +105171,7 @@ export namespace Schemas {
RareTag: 'rare_tag',
NovelSummary: 'novel_summary',
Friction: 'friction',
+ JevWatchable: 'jev_watchable',
UnviewedRecent: 'unviewed_recent',
Recent: 'recent',
} as const;
@@ -105188,7 +105190,7 @@ export namespace Schemas {
* Machine-readable reason an observation made the feed; the frontend renders the copy.
*/
export interface WatchFeedReason {
- /** Highest-priority rule the observation satisfied: `signal_emitted` (it pushed a signal), `unusual_verdict` (a monitor answer that is the minority for that scanner this window), `verdict_yes` (a monitor hit, when the window is too thin to know which answer is unusual), `outlier_score` (far from the scanner's window average), `rare_tag` (a tag uncommon for the scanner this window), `novel_summary` (a summary that reads unlike the scanner's other sessions this window), `notable` (the scan itself judged the session worth watching), `friction` (the scan describes errors, retries, or dead ends), `unviewed_recent` (new to you), `recent` (nothing special, newest available).
+ /** Highest-priority rule the observation satisfied: `signal_emitted` (it pushed a signal), `unusual_verdict` (a monitor answer that is the minority for that scanner this window), `verdict_yes` (a monitor hit, when the window is too thin to know which answer is unusual), `outlier_score` (far from the scanner's window average), `rare_tag` (a tag uncommon for the scanner this window), `novel_summary` (a summary that reads unlike the scanner's other sessions this window), `notable` (the scan itself judged the session worth watching), `friction` (the scan describes errors, retries, or dead ends), `jev_watchable` (the decision model judged the session worth watching; teams on the Jev ranker experiment only), `unviewed_recent` (new to you), `recent` (nothing special, newest available).
*
* * `signal_emitted` - Signal Emitted
* * `unusual_verdict` - Unusual Verdict
@@ -105198,6 +105200,7 @@ export namespace Schemas {
* * `rare_tag` - Rare Tag
* * `novel_summary` - Novel Summary
* * `friction` - Friction
+ * * `jev_watchable` - Jev Watchable
* * `unviewed_recent` - Unviewed Recent
* * `recent` - Recent */
kind: WatchFeedReasonEnum;
@@ -105226,7 +105229,12 @@ export namespace Schemas {
*/
notability?: number | null;
/**
- * The scan's own sentence naming why the session is worth watching. Present only on the `notable` reason kind, and preferred over copy derived from the reason kind. Absent on observations scanned before notability shipped.
+ * The decision model's 0-1 judgment that the session is worth watching, for `jev_watchable`.
+ * @nullable
+ */
+ jev_probability?: number | null;
+ /**
+ * The scan's own sentence naming why the session is worth watching. Present on the `notable` and `jev_watchable` reason kinds when the scan itself found the session notable, and preferred over copy derived from the reason kind. Absent on observations scanned before notability shipped.
* @nullable
*/
notability_reason?: string | null;