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(inbox): stop the scouts/roster polls re-rendering the whole page every cycle (#87783)

Paul D'Ambra9380e4a08f67
diff --git a/products/signals/frontend/inbox/inboxSceneLogic.ts b/products/signals/frontend/inbox/inboxSceneLogic.ts
index 7f6b52705291..ef8611129bfb 100644
--- a/products/signals/frontend/inbox/inboxSceneLogic.ts
+++ b/products/signals/frontend/inbox/inboxSceneLogic.ts
@@ -7,6 +7,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import api from 'lib/api'
import { ApiError } from 'lib/api-error'
+import { reconcileById } from 'lib/utils/objects'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
@@ -390,7 +391,7 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([
setScoutTemplateDraft: (draft: ScoutCreateInitialValues | null) => ({ draft }),
}),
- loaders(() => ({
+ loaders(({ values }) => ({
// Runs tab: a newest-first list of scout + signals-pipeline runs, composed from two existing
// endpoints, scout runs (clean `skill_name`) and signal-pipeline tasks (whose title is the
// originating report's title). Merged client-side; there is no unified backend "runs" resource
@@ -418,7 +419,16 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([
}
const scoutRuns = scoutResult.status === 'fulfilled' ? scoutResult.value : []
const signalTasks = signalResult.status === 'fulfilled' ? signalResult.value.results : []
- return mergeSignalRuns(scoutRuns, signalTasks)
+ // The tab polls every 5s and both endpoints return freshly parsed objects each
+ // time. Reconcile the merged list so a no-change poll keeps every reference —
+ // otherwise all ~100 run cards re-render every 5s on an idle tab. (No
+ // wall-clock exception needed: a run whose status flips deep-compares
+ // different and swaps identity on its own; timestamps self-update in TZLabel.)
+ return reconcileById(
+ values.signalRunsResponse ?? [],
+ mergeSignalRuns(scoutRuns, signalTasks),
+ (run) => run.task_id
+ )
},
},
],
diff --git a/products/signals/frontend/inbox/logics/scoutDetailLogic.ts b/products/signals/frontend/inbox/logics/scoutDetailLogic.ts
index 6359ab6dea19..2075d723ccb4 100644
--- a/products/signals/frontend/inbox/logics/scoutDetailLogic.ts
+++ b/products/signals/frontend/inbox/logics/scoutDetailLogic.ts
@@ -4,6 +4,7 @@ import { subscriptions } from 'kea-subscriptions'
import api from 'lib/api'
import { dayjs } from 'lib/dayjs'
+import { reconcileById } from 'lib/utils/objects'
import {
LinkedSignalReport,
@@ -210,7 +211,14 @@ export const scoutDetailLogic = kea<scoutDetailLogicType>([
if (fulfilled.length === 0) {
throw new Error('Failed to load scout emissions')
}
- return fulfilled.flatMap((result) => result.value)
+ // Reconcile by id so emissions unchanged across polls keep their reference —
+ // `ScoutEmissionCard` is memoized, and fresh references every poll re-render
+ // every card's markdown on an idle page.
+ return reconcileById(
+ values.emissions,
+ fulfilled.flatMap((result) => result.value),
+ (emission) => emission.id
+ )
},
},
],
@@ -235,7 +243,7 @@ export const scoutDetailLogic = kea<scoutDetailLogicType>([
const settled = await Promise.allSettled(
runs.map((run) => api.signalScout.runs.emissionReports(run.run_id))
)
- return runs.flatMap((run, index) => {
+ const merged = runs.flatMap((run, index) => {
const result = settled[index]
if (result.status === 'fulfilled') {
return result.value
@@ -243,6 +251,10 @@ export const scoutDetailLogic = kea<scoutDetailLogicType>([
const prefix = `run:${run.run_id}:`
return previous.filter((link) => link.source_id.startsWith(prefix))
})
+ // This loader re-runs on every 60s runs-window poll while a recent finding is
+ // unlinked. Reconcile so unchanged links keep their reference — a fresh
+ // `report` object per poll defeats the memo on every emission card.
+ return reconcileById(previous, merged, (link) => link.source_id)
},
},
],
@@ -259,11 +271,14 @@ export const scoutDetailLogic = kea<scoutDetailLogicType>([
return []
}
const settled = await Promise.allSettled(touched.map(({ id }) => api.signalReports.get(id)))
- return settled
+ const fetched = settled
.filter(
(result): result is PromiseFulfilledResult<SignalReport> => result.status === 'fulfilled'
)
.map((result) => result.value)
+ // Same identity contract as the emissions loaders: unchanged reports across
+ // polls keep their reference so memoized cards don't re-render.
+ return reconcileById(values.scoutReports, fetched, (report) => report.id)
},
},
],
diff --git a/products/signals/frontend/inbox/logics/scoutFleetLogic.test.ts b/products/signals/frontend/inbox/logics/scoutFleetLogic.test.ts
index 7dcae47a25b9..d6dcc77c055a 100644
--- a/products/signals/frontend/inbox/logics/scoutFleetLogic.test.ts
+++ b/products/signals/frontend/inbox/logics/scoutFleetLogic.test.ts
@@ -13,6 +13,7 @@ import {
signalsScoutChatTasksCreate,
signalsScoutConfigList,
signalsScoutConfigUpdate,
+ signalsScoutRunsRecentPerScout,
} from 'products/signals/frontend/generated/api'
import type { SignalScoutConfigApi } from 'products/signals/frontend/generated/api.schemas'
@@ -26,6 +27,8 @@ jest.mock('products/signals/frontend/generated/api', () => ({
signalsScoutConfigList: jest.fn(),
signalsScoutConfigUpdate: jest.fn(),
signalsScoutRunsFindingsSummary: jest.fn(),
+ signalsScoutRunsList: jest.fn(),
+ signalsScoutRunsRecentPerScout: jest.fn(),
}))
const mockSignalsScoutChatTasksCreate = signalsScoutChatTasksCreate as jest.MockedFunction<
@@ -33,6 +36,9 @@ const mockSignalsScoutChatTasksCreate = signalsScoutChatTasksCreate as jest.Mock
>
const mockSignalsScoutConfigList = signalsScoutConfigList as jest.MockedFunction<typeof signalsScoutConfigList>
const mockSignalsScoutConfigUpdate = signalsScoutConfigUpdate as jest.MockedFunction<typeof signalsScoutConfigUpdate>
+const mockSignalsScoutRunsRecentPerScout = signalsScoutRunsRecentPerScout as jest.MockedFunction<
+ typeof signalsScoutRunsRecentPerScout
+>
const BASE_CONFIG: SignalScoutConfigApi = {
id: 'config-1',
@@ -96,6 +102,7 @@ describe('scoutFleetLogic', () => {
mockSignalsScoutChatTasksCreate.mockReset()
mockSignalsScoutConfigList.mockReset().mockResolvedValue([])
mockSignalsScoutConfigUpdate.mockReset()
+ mockSignalsScoutRunsRecentPerScout.mockReset().mockResolvedValue([])
logic = scoutFleetLogic()
logic.mount()
await expectLogic(logic).toFinishAllListeners()
@@ -322,4 +329,123 @@ describe('scoutFleetLogic', () => {
expect(logic.values.runningChatType).toBeNull()
})
+
+ // The 60s roster poll returns freshly parsed objects every cycle. Without per-item
+ // reconciliation, every poll replaces every reference and the memoized roster re-renders on
+ // an idle page. With it, an unchanged response must preserve identity end-to-end.
+ describe('poll identity stability', () => {
+ // Mirror what a real poll gets from the API: every response is a fresh JSON parse,
+ // so identical content still arrives as all-new object references.
+ const freshConfigs = (...configs: SignalScoutConfigApi[]): SignalScoutConfigApi[] =>
+ configs.map((config) => JSON.parse(JSON.stringify(config)))
+
+ it('keeps the configs array and every config reference when a poll changes nothing', async () => {
+ mockSignalsScoutConfigList.mockImplementation(async () => freshConfigs(BASE_CONFIG))
+
+ logic.actions.loadScoutConfigs()
+ await expectLogic(logic).toDispatchActions(['loadScoutConfigs', 'loadScoutConfigsSuccess'])
+ const first = logic.values.scoutConfigs
+
+ logic.actions.loadScoutConfigs()
+ await expectLogic(logic).toDispatchActions(['loadScoutConfigs', 'loadScoutConfigsSuccess'])
+ const second = logic.values.scoutConfigs
+
+ expect(second).toBe(first)
+ expect(second?.[0]).toBe(first?.[0])
+ })
+
+ it('keeps unchanged config references when a poll changes one config', async () => {
+ const otherConfig = { ...BASE_CONFIG, id: 'config-2', skill_name: 'signals-scout-revenue' }
+ mockSignalsScoutConfigList.mockImplementation(async () => freshConfigs(BASE_CONFIG, otherConfig))
+
+ logic.actions.loadScoutConfigs()
+ await expectLogic(logic).toDispatchActions(['loadScoutConfigs', 'loadScoutConfigsSuccess'])
+ const first = logic.values.scoutConfigs
+
+ mockSignalsScoutConfigList.mockImplementation(async () =>
+ freshConfigs({ ...BASE_CONFIG, enabled: false }, otherConfig)
+ )
+ logic.actions.loadScoutConfigs()
+ await expectLogic(logic).toDispatchActions(['loadScoutConfigs', 'loadScoutConfigsSuccess'])
+ const second = logic.values.scoutConfigs
+
+ expect(second).not.toBe(first)
+ expect(second?.[0].enabled).toBe(false)
+ expect(second?.[1]).toBe(first?.[1])
+ })
+
+ it('moves scouts out of cold start when an unchanged runs poll crosses the boundary', async () => {
+ jest.useFakeTimers()
+ try {
+ jest.setSystemTime(Date.UTC(2026, 7, 4))
+ const settledRun = makeRun({ run_id: 'run-settled', status: 'completed' })
+ mockSignalsScoutRunsRecentPerScout.mockImplementation(async () => [
+ JSON.parse(JSON.stringify(settledRun)),
+ ])
+ logic.unmount()
+ logic = scoutFleetLogic()
+ logic.mount()
+ await expectLogic(logic).toFinishAllListeners()
+ logic.actions.loadScoutConfigsSuccess([BASE_CONFIG])
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+ const firstRuns = logic.values.scoutRuns
+
+ expect(logic.values.rosterScouts[0].group).toBe('settling_in')
+
+ jest.setSystemTime(Date.UTC(2026, 7, 6))
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+
+ expect(logic.values.scoutRuns).toBe(firstRuns)
+ expect(logic.values.rosterScouts[0].group).toBe('watching')
+ } finally {
+ jest.useRealTimers()
+ }
+ })
+
+ it('keeps the runs array and settled run references when a poll changes nothing', async () => {
+ const settledRun = makeRun({ run_id: 'run-settled', status: 'completed' })
+ mockSignalsScoutRunsRecentPerScout.mockImplementation(async () => [JSON.parse(JSON.stringify(settledRun))])
+
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+ const first = logic.values.scoutRuns
+ const firstRoster = logic.values.rosterScouts
+
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+ const second = logic.values.scoutRuns
+
+ expect(second).toBe(first)
+ expect(second[0]).toBe(first[0])
+ expect(logic.values.rosterScouts).toBe(firstRoster)
+ })
+
+ it('keeps settled run references but not live ones when a poll reruns with a live run', async () => {
+ const settledRun = makeRun({ run_id: 'run-settled', status: 'completed' })
+ const liveRun = makeRun({ run_id: 'run-live', status: 'in_progress' })
+ mockSignalsScoutRunsRecentPerScout.mockImplementation(async () =>
+ [settledRun, liveRun].map((run) => JSON.parse(JSON.stringify(run)))
+ )
+
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+ const first = logic.values.scoutRuns
+
+ logic.actions.loadScoutRuns()
+ await expectLogic(logic).toDispatchActions(['loadScoutRuns', 'loadScoutRunsSuccess'])
+ const second = logic.values.scoutRuns
+
+ // A live run must refresh identity — its rows render wall-clock durations that have
+ // to advance with each poll. Settled neighbours stay reference-stable.
+ expect(second).not.toBe(first)
+ expect(second.find((run) => run.run_id === 'run-settled')).toBe(
+ first.find((run) => run.run_id === 'run-settled')
+ )
+ expect(second.find((run) => run.run_id === 'run-live')).not.toBe(
+ first.find((run) => run.run_id === 'run-live')
+ )
+ })
+ })
})
diff --git a/products/signals/frontend/inbox/logics/scoutFleetLogic.ts b/products/signals/frontend/inbox/logics/scoutFleetLogic.ts
index b9bee4b83e14..7163fa3e6fa8 100644
--- a/products/signals/frontend/inbox/logics/scoutFleetLogic.ts
+++ b/products/signals/frontend/inbox/logics/scoutFleetLogic.ts
@@ -5,6 +5,7 @@ import { router } from 'kea-router'
import { lemonToast } from '@posthog/lemon-ui'
import { dayjs } from 'lib/dayjs'
+import { reconcileById } from 'lib/utils/objects'
import { aiConsentLogic } from 'scenes/settings/organization/aiConsentLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -46,7 +47,6 @@ import {
FleetSummary,
isSettledRun,
prettifyScoutSkillName,
- reconcileById,
SCOUT_ROSTER_WINDOW_HOURS,
SCOUT_RUNS_PER_SCOUT,
SCOUT_RUNS_WINDOW_HOURS,
@@ -117,6 +117,7 @@ export interface scoutFleetLogicValues {
lastRunAt: string | null
manualRunScoutIds: string[]
rollups: Map<string, ScoutRollup>
+ rosterEvaluatedAt: number
rosterScouts: ScoutRosterRow[]
runningChatType: ScoutChatType | null
runsWindow: {
@@ -249,6 +250,9 @@ export interface scoutFleetLogicActions {
runScoutNowFinished: (configId: string) => {
configId: string
}
+ setRosterEvaluatedAt: (evaluatedAt: number) => {
+ evaluatedAt: number
+ }
setScoutEnabledFilter: (filter: ScoutEnabledFilter) => {
filter: ScoutEnabledFilter
}
@@ -309,6 +313,7 @@ export interface scoutFleetLogicMeta {
rosterScouts: (
scoutConfigs: SignalScoutConfigApi[] | null,
rollups: Map<string, ScoutRollup>,
+ rosterEvaluatedAt: number,
activeScoutTags: string[],
scoutSearch: string,
scoutEnabledFilter: ScoutEnabledFilter
@@ -360,6 +365,7 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
removeScoutConfigLocally: (configId: string) => ({ configId }),
setScoutTagFilter: (tags: string[]) => ({ tags }),
setScoutSearch: (search: string) => ({ search }),
+ setRosterEvaluatedAt: (evaluatedAt: number) => ({ evaluatedAt }),
setScoutEnabledFilter: (filter: ScoutEnabledFilter) => ({ filter }),
runScoutNow: (configId: string) => ({ configId }),
runScoutNowFinished: (configId: string) => ({ configId }),
@@ -381,7 +387,14 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
{
loadScoutConfigs: async () => {
const teamId = teamLogic.values.currentTeamId
- return teamId ? await signalsScoutConfigList(String(teamId)) : null
+ if (!teamId) {
+ return null
+ }
+ const configs = await signalsScoutConfigList(String(teamId))
+ // The 60s poll refetches all configs every cycle. Reconcile against the previous
+ // list so an unchanged fleet keeps the same references — otherwise the whole
+ // roster re-renders on every poll even when nothing changed.
+ return reconcileById(values.scoutConfigs ?? [], configs, (config) => config.id)
},
},
],
@@ -535,6 +548,12 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
setScoutEnabledFilter: (_, { filter }) => filter,
},
],
+ rosterEvaluatedAt: [
+ 0,
+ {
+ setRosterEvaluatedAt: (_, { evaluatedAt }) => evaluatedAt,
+ },
+ ],
scoutConfigs: [
null as SignalScoutConfig[] | null,
{
@@ -647,21 +666,28 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
],
/**
* The roster as one alphabetical list, each row tagged with its lifecycle group and narrowed
- * by the roster's own chrome (search and the tag filter). The group is time-dependent (the
- * cold-start window), so this recomputes on every runs poll — which is also when a scout can
- * cross between Working and Watching, so the Status column stays in step.
+ * by the roster's own chrome (search and the tag filter). `rosterEvaluatedAt` advances only
+ * when time changes a lifecycle group, so settled polls keep this selector's output stable.
*/
rosterScouts: [
- (s) => [s.scoutConfigs, s.rollups, s.activeScoutTags, s.scoutSearch, s.scoutEnabledFilter],
+ (s) => [
+ s.scoutConfigs,
+ s.rollups,
+ s.rosterEvaluatedAt,
+ s.activeScoutTags,
+ s.scoutSearch,
+ s.scoutEnabledFilter,
+ ],
(
scoutConfigs: SignalScoutConfig[] | null,
rollups: Map<string, ScoutRollup>,
+ rosterEvaluatedAt: number,
activeScoutTags: string[],
scoutSearch: string,
scoutEnabledFilter: ScoutEnabledFilter
): ScoutRosterRow[] => {
const query = scoutSearch.trim().toLowerCase()
- const now = new Date()
+ const now = new Date(rosterEvaluatedAt)
return [...(scoutConfigs ?? [])]
.filter((config) => configMatchesScoutTags(config, activeScoutTags))
.filter(
@@ -712,6 +738,17 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
}),
listeners(({ actions, values, cache }) => ({
+ loadScoutRunsSuccess: () => {
+ const evaluatedAt = new Date(values.rosterEvaluatedAt)
+ const now = new Date()
+ const groupChanged = (values.scoutConfigs ?? []).some((config) => {
+ const rollup = values.rollups.get(config.skill_name)
+ return scoutGroup(config, rollup, evaluatedAt) !== scoutGroup(config, rollup, now)
+ })
+ if (groupChanged) {
+ actions.setRosterEvaluatedAt(now.valueOf())
+ }
+ },
setScoutTagFilter: ({ tags }) => {
captureScoutAction({
actionType: 'filter_tags',
@@ -987,6 +1024,7 @@ export const scoutFleetLogic = kea<scoutFleetLogicType>([
afterMount: () => {
// Configs are cheap and the always-mounted setup widget needs them. The paginated
// runs window is loaded + polled only while the fleet list is open (startRunsPolling).
+ actions.setRosterEvaluatedAt(Date.now())
actions.loadScoutConfigs()
},
})),
diff --git a/products/signals/frontend/inbox/utils/scoutRunsWindow.test.ts b/products/signals/frontend/inbox/utils/scoutRunsWindow.test.ts
index 3803a7de117c..f397d253371b 100644
--- a/products/signals/frontend/inbox/utils/scoutRunsWindow.test.ts
+++ b/products/signals/frontend/inbox/utils/scoutRunsWindow.test.ts
@@ -6,7 +6,6 @@ import {
computeScoutRollups,
deriveRunOutcome,
mostRecentEmittedRuns,
- reconcileById,
runMatchesFilter,
ScoutRunOutcome,
scoutReportActivityLabel,
@@ -135,47 +134,4 @@ describe('scoutRunsWindow report channel', () => {
expect(computeFleetSummary([], rollups).touchedReportCount).toEqual(2)
})
})
-
- describe('reconcileById', () => {
- it('keeps the previous reference for unchanged items and the fresh one for changed items', () => {
- // Every runs-window poll returns freshly parsed objects; reconcileById is what preserves
- // identity so memoized rows only re-render on real change. If it degrades to `return next`,
- // unchanged runs churn references every 60s and the memo is silently defeated.
- const prevUnchanged = makeRun({ run_id: 'run-1', emitted_count: 1 })
- const prevChanged = makeRun({ run_id: 'run-2', status: 'in_progress' })
-
- const nextUnchanged = makeRun({ run_id: 'run-1', emitted_count: 1 })
- const nextChanged = makeRun({ run_id: 'run-2', status: 'completed' })
- const nextNew = makeRun({ run_id: 'run-3' })
-
- const result = reconcileById(
- [prevUnchanged, prevChanged],
- [nextUnchanged, nextChanged, nextNew],
- (run) => run.run_id
- )
-
- expect(result[0]).toBe(prevUnchanged)
- expect(result[1]).toBe(nextChanged)
- expect(result[2]).toBe(nextNew)
- })
-
- it('returns the next array untouched when there is no previous window', () => {
- const next = [makeRun({ run_id: 'run-1' })]
- expect(reconcileById([], next, (run) => run.run_id)).toBe(next)
- })
-
- it('never reuses items the isReusable predicate rejects, even when deep-equal', () => {
- // A running run's row renders a wall-clock duration: reusing its reference would let the
- // memoized row skip the poll re-render and freeze the ticking timer.
- const prev = makeRun({ run_id: 'run-1', status: 'in_progress' })
- const next = makeRun({ run_id: 'run-1', status: 'in_progress' })
- const result = reconcileById(
- [prev],
- [next],
- (run) => run.run_id,
- (run) => run.status !== 'in_progress'
- )
- expect(result[0]).toBe(next)
- })
- })
})
diff --git a/products/signals/frontend/inbox/utils/scoutRunsWindow.ts b/products/signals/frontend/inbox/utils/scoutRunsWindow.ts
index 073e5c30d0ac..15b899b838c6 100644
--- a/products/signals/frontend/inbox/utils/scoutRunsWindow.ts
+++ b/products/signals/frontend/inbox/utils/scoutRunsWindow.ts
@@ -6,7 +6,6 @@
// the runs endpoint's `date_to` cursor past its 100-row page cap).
import { humanFriendlyDuration } from 'lib/utils/durations'
-import { objectsEqual } from 'lib/utils/objects'
import { pluralize } from 'lib/utils/strings'
import type { SignalScoutConfigApi as SignalScoutConfig } from 'products/signals/frontend/generated/api.schemas'
@@ -332,34 +331,6 @@ function emptyRollup(): ScoutRollup {
}
}
-/**
- * Reuse the previous poll's object reference for any item whose content is unchanged. The runs
- * endpoint returns freshly parsed objects on every 60s poll, so without this every run reference
- * changes each poll and every memoized row re-renders even when nothing changed. Matching by id and
- * reusing the old reference when deep-equal keeps identity stable through the rollup selectors, so
- * `React.memo` on the rows can actually bite.
- *
- * Cost: O(n·fields) per call — one Map build + one deep-equal per matched pair. Fine for the
- * runs window (≤100 items, 60s cadence); keep that in mind if pointed at a large, hot list.
- */
-export function reconcileById<T>(
- previous: T[],
- next: T[],
- getId: (item: T) => string,
- // Items whose rendering depends on wall-clock time (e.g. a live run's ticking duration) must
- // NOT be reused: a preserved reference lets a memoized row skip the poll's re-render and freeze.
- isReusable: (item: T) => boolean = () => true
-): T[] {
- if (previous.length === 0) {
- return next
- }
- const previousById = new Map(previous.map((item) => [getId(item), item]))
- return next.map((item) => {
- const existing = previousById.get(getId(item))
- return existing && isReusable(item) && objectsEqual(existing, item) ? existing : item
- })
-}
-
/**
* Client-side rollup over the recent fleet runs, keyed by skill_name. The runs
* endpoint has no per-scout filter or aggregate stats yet and caps at 100 rows,