The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
feat(analytics): count the phone's relay opens by release, with debug and simulator opens apart (#1516)
tony496s2086a4ac6629
diff --git a/backend/src/analytics/dailyProductUsage.test.ts b/backend/src/analytics/dailyProductUsage.test.tsindex b4b18c969..0cb02ed1b 100644--- a/backend/src/analytics/dailyProductUsage.test.ts+++ b/backend/src/analytics/dailyProductUsage.test.ts@@ -16,6 +16,14 @@ it('keeps missing client coverage separate from zero and separates relay activitexpect(JSON.stringify(report)).not.toContain('PRIVATE_CANARY')})+it('reports the phone\'s debug and simulator opens beside its total, which still counts them', () => {+ const report = dailyProductUsage([+ { dayUtc: new Date('2026-10-13'), metric: 'relay_mobile_opens', value: 15104 },+ { dayUtc: new Date('2026-10-13'), metric: 'relay_mobile_debug_opens', value: 14760 },+ ], 1, new Date('2026-10-13T12:00:00Z'))+ expect(report.daily[0].counters).toMatchObject({ relay_mobile_opens: 15104, relay_mobile_debug_opens: 14760 })+})+it('uses the preceding complete week as the retention denominator, never this partial week', () => {const report = dailyProductUsage([{ dayUtc: new Date('2026-09-28'), metric: 'weekly_working_installations', value: 10 },diff --git a/backend/src/analytics/dailyProductUsage.ts b/backend/src/analytics/dailyProductUsage.tsindex 058025c3c..220852b8e 100644--- a/backend/src/analytics/dailyProductUsage.ts+++ b/backend/src/analytics/dailyProductUsage.ts@@ -2,7 +2,7 @@ import { PRODUCT_USAGE_METRICS, PRODUCT_USAGE_SETUP_METRICS } from '../types/proconst DAY = 86_400_000export const DAILY_PRODUCT_METRICS = [...PRODUCT_USAGE_METRICS, ...PRODUCT_USAGE_SETUP_METRICS,- 'relay_desktop_opens', 'relay_tui_opens', 'relay_mobile_opens', 'relay_web_opens',+ 'relay_desktop_opens', 'relay_tui_opens', 'relay_mobile_opens', 'relay_mobile_debug_opens', 'relay_web_opens','relay_harness-os_opens', 'relay_harness-os-pi_opens','relay_device_connections', 'relay_machine_connections', 'relay_remote_sessions', 'relay_turns_started',] as constdiff --git a/backend/src/analytics/productHealth.test.ts b/backend/src/analytics/productHealth.test.tsindex 8d56505d1..6c4eb1d58 100644--- a/backend/src/analytics/productHealth.test.ts+++ b/backend/src/analytics/productHealth.test.ts@@ -56,6 +56,19 @@ it('splits phone onboarding counts by release and platform, and drops a developmcounters: expect.objectContaining({ ui_phone_computer_wait_started: 12 }) })])})+it('reads the relay\'s count of the phone\'s opens by release with the release\'s coverage', () => {+ const row = (metric: string, value: number) => ({ dayUtc: new Date('2026-10-01'), metric, value })+ const data = dailyProductHealth([+ row('breakdown:release:phone:1.0.8:health_phone_collector_days', 25),+ row('breakdown:release:phone:1.0.8:relay_mobile_opens', 344),+ row('breakdown:release:phone:unknown:health_phone_collector_days', 3),+ row('breakdown:release:phone:unknown:relay_mobile_opens', 9000),+ row('breakdown:release:phone:1.0.8:relay_mobile_debug_opens', 15104),+ ], new Date('2026-10-04'))+ expect(data.breakdowns).toEqual([expect.objectContaining({ dimension: 'release', surface: 'phone', bucket: '1.0.8',+ counters: { health_phone_collector_days: 25, relay_mobile_opens: 344 } })])+ expect(data.sparseBreakdownsSuppressed).toBe(1)+})it('suppresses sparse labels, distinguishes missing from zero, and matures first-work cohorts', () => {const row = (day: string, metric: string, value: number) => ({ dayUtc: new Date(day), metric, value })const data = dailyProductHealth([diff --git a/backend/src/analytics/productHealth.ts b/backend/src/analytics/productHealth.tsindex 5b599a057..ecbc43e6e 100644--- a/backend/src/analytics/productHealth.ts+++ b/backend/src/analytics/productHealth.ts@@ -2,6 +2,9 @@ import { PRODUCT_USAGE_METRICS, PRODUCT_USAGE_SETUP_METRICS, PRODUCT_USAGE_ACTIOimport { cleanUsageContext, type ProductUsageContext } from '../types/productHealthContract.js'const allowed = new Set<string>(PRODUCT_USAGE_METRICS)+// Read from the margins too, though not reported by the clients: the relay's count of the phone's opens by release+// (lib/dailyTracking.ts mobileOpenMetrics), which shares the phone's release label and its coverage threshold.+const readableMargins = new Set<string>([...PRODUCT_USAGE_METRICS, 'relay_mobile_opens'])// Two marginal tables in the existing expiring total store. No release/platform cross-product,// account joins, per-report rows, or arbitrary attributes survive ingestion.export function healthBreakdowns(context: ProductUsageContext | undefined, metric: string): string[] {@@ -25,7 +28,7 @@ export function dailyProductHealth(rows: Row[], now: Date) {const c = days.get(day) ?? {}; c[row.metric] = (c[row.metric] ?? 0) + row.value; days.set(day, c)} else {const m = /^breakdown:(release|platform):(cli|desktop|phone):([^:]+):(.+)$/.exec(row.metric)- if (!m || !allowed.has(m[4])) continue+ if (!m || !readableMargins.has(m[4])) continueconst context = cleanUsageContext({ surface: m[2], release: m[1] === 'release' ? m[3] : 'unknown',platform: m[1] === 'platform' ? m[3] : 'other', channel: 'production' })if (!context || (m[1] === 'release' && context.release !== m[3])) continuediff --git a/backend/src/lib/dailyTracking.test.ts b/backend/src/lib/dailyTracking.test.tsindex d5bc413d3..2485bcf1c 100644--- a/backend/src/lib/dailyTracking.test.ts+++ b/backend/src/lib/dailyTracking.test.ts@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'const record = vi.hoisted(() => vi.fn())const mark = vi.hoisted(() => vi.fn())vi.mock('./productUsage.js', () => ({ recordRelayUsage: record, markActivity: mark }))-import { CLIENT_SURFACES, TUI_SURFACES, presenceTracker, presenceWriteDue, recordRemoteUsage, recordTurnStarted, touchClientOnlineDay, touchDeviceOnlineDay, touchMachineOnlineDay, touchUserOnlineDay } from './dailyTracking.js'+import { CLIENT_SURFACES, TUI_SURFACES, mobileOpenMetrics, presenceTracker, presenceWriteDue, recordRemoteUsage, recordTurnStarted, touchClientOnlineDay, touchDeviceOnlineDay, touchMachineOnlineDay, touchUserOnlineDay } from './dailyTracking.js'beforeEach(() => { record.mockReset(); record.mockResolvedValue(undefined); mark.mockReset(); mark.mockResolvedValue(undefined) })it('forwards only the choice identity and a fixed metric, never device, agent or location', async () => {@@ -17,6 +17,52 @@ it('forwards only the choice identity and a fixed metric, never device, agent orexpect(JSON.stringify(record.mock.calls)).not.toContain('PRIVATE_')expect(JSON.stringify(record.mock.calls)).not.toContain('VN')})+describe('a phone open, by release and apart for a debug or simulator build', () => {+ const now = new Date('2026-10-20T12:00:00Z')+ const open = (build?: Parameters<typeof touchClientOnlineDay>[3]['build']) =>+ touchClientOnlineDay('account', 'mobile', now, { isNewConnection: true, ...(build ? { build } : {}) })++ it('counts under its release, beside the unchanged total', async () => {+ await open({ release: '1.0.8' })+ expect(record.mock.calls).toEqual([['account', now, 'relay_mobile_opens', ['breakdown:release:phone:1.0.8:relay_mobile_opens']]])+ })++ it('counts a debug or simulator build apart, and not under a release', async () => {+ await open({ release: '1.0.8', debug: true })+ expect(record.mock.calls).toEqual([['account', now, 'relay_mobile_opens', ['relay_mobile_debug_opens']]])+ expect(JSON.stringify(record.mock.calls)).not.toContain('1.0.8')+ })++ it('counts an app that sends neither as an unknown release, not a debug build', async () => {+ await open()+ await open({})+ await open({ release: null, debug: false })+ expect(record.mock.calls.map(c => [c[2], c[3]])).toEqual(+ Array(3).fill(['relay_mobile_opens', ['breakdown:release:phone:unknown:relay_mobile_opens']]))+ })++ it.each(['', '1.0', '1.0.8+72', '1.0.8-dev', 'latest', '1.0.8.1', '01.0.8', '1000.0.0', ' 1.0.8', 'PRIVATE_BUILD'])(+ 'does not turn %j into a label', async release => {+ await open({ release })+ expect(record.mock.calls[0]![3]).toEqual(['breakdown:release:phone:unknown:relay_mobile_opens'])+ })++ it('adds a margin only to the phone, and only for an open', async () => {+ for (const surface of ['tui', 'web', 'harness-os'] as const) {+ await touchClientOnlineDay('account', surface, now, { isNewConnection: true, build: { release: '1.0.8', debug: true } })+ }+ expect(record.mock.calls.map(c => [c[2], c[3]])).toEqual([['relay_tui_opens', undefined], ['relay_web_opens', undefined], ['relay_harness-os_opens', undefined]])+ record.mockClear()+ await touchClientOnlineDay('account', 'mobile', now, { isNewConnection: false, build: { release: '1.0.8' } })+ expect(record).not.toHaveBeenCalled()+ })++ it('names only fixed metrics and a public release', () => {+ expect(mobileOpenMetrics({ release: '1.0.9' })).toEqual(['breakdown:release:phone:1.0.9:relay_mobile_opens'])+ expect(mobileOpenMetrics({ debug: true })).toEqual(['relay_mobile_debug_opens'])+ expect(mobileOpenMetrics()).toEqual(['breakdown:release:phone:unknown:relay_mobile_opens'])+ })+})it('idle heartbeats add no relay totals but keep the person active', async () => {const now = new Date()await touchUserOnlineDay('a', 'm', now, { isNewConnection: false })diff --git a/backend/src/lib/dailyTracking.ts b/backend/src/lib/dailyTracking.tsindex f7e83c5ee..ba210e487 100644--- a/backend/src/lib/dailyTracking.ts+++ b/backend/src/lib/dailyTracking.ts@@ -4,7 +4,8 @@* during their bounded expiry window; their historical metrics must not be mixed with these totals.*/import { utcDayKey } from '../types/analytics.js'-import { markActivity, recordRelayUsage } from './productUsage.js'+import { releaseBucket } from '../types/productHealthContract.js'+import { markActivity, recordRelayUsage, type RelayUsageMetric } from './productUsage.js'export interface PresenceTouchOpts { isNewConnection: boolean; countryCode?: string }@@ -48,12 +49,27 @@ export const CLIENT_SURFACES: ReadonlySet<string> = new Set<ClientSurface>(['tui/** Known terminal surfaces retain their platform distinction in fleet connection totals. */export const TUI_SURFACES: ReadonlySet<string> = new Set<ClientSurface>(['tui', 'harness-os', 'harness-os-pi'])+/** What the phone says of the build that opened a socket (`?release=` and `?debug=1`, webWs.ts). */+export interface ClientBuild { release?: string | null; debug?: boolean }++/** What a phone open adds beside `relay_mobile_opens`, which still counts every one of them: a debug or+ * simulator build's open under `relay_mobile_debug_opens`, any other under its release's margin, the way+ * phone reports split by release (`breakdown:release:phone:<release>:`). The release is the public+ * x.y.z only; an older app that sends none, or anything else, is `unknown`. The two never overlap, so a+ * simulator left open cannot pass for a release. */+export function mobileOpenMetrics(build: ClientBuild = {}): RelayUsageMetric[] {+ return [build.debug === true ? 'relay_mobile_debug_opens'+ : `breakdown:release:phone:${releaseBucket(build.release)}:relay_mobile_opens`]+}+/** Keep old protocol entry points while reducing only new connection events into fleet totals. */export async function touchClientOnlineDay(- userId: string, surface: ClientSurface, now: Date, opts: { isNewConnection: boolean },+ userId: string, surface: ClientSurface, now: Date, opts: { isNewConnection: boolean; build?: ClientBuild },): Promise<void> {void markActivity(userId, now, { surface }).catch(() => {})- if (opts.isNewConnection) await recordRelayUsage(userId, now, `relay_${surface}_opens`)+ if (!opts.isNewConnection) return+ if (surface === 'mobile') await recordRelayUsage(userId, now, 'relay_mobile_opens', mobileOpenMetrics(opts.build))+ else await recordRelayUsage(userId, now, `relay_${surface}_opens`)}/**diff --git a/backend/src/lib/productUsage.test.ts b/backend/src/lib/productUsage.test.tsindex c1a18b945..4f8090a75 100644--- a/backend/src/lib/productUsage.test.ts+++ b/backend/src/lib/productUsage.test.ts@@ -260,6 +260,19 @@ it('the legacy relay respects off and writes only an aggregate counter when on',expect(JSON.stringify(db.productUsageTotal.upsert.mock.calls)).not.toContain('private-account')})+it('one relay event adds to each total it names under a single preference read', async () => {+ db.productUsagePreference.findUnique.mockResolvedValue({ enabled: true, revision: 2 })+ await recordRelayUsage('private-account', now, 'relay_mobile_opens', ['breakdown:release:phone:1.0.8:relay_mobile_opens'])+ expect(db.productUsagePreference.findUnique).toHaveBeenCalledOnce()+ expect(db.productUsageTotal.upsert.mock.calls.map(([call]) => [call.where.dayUtc_metric.metric, call.create.value, call.update.value])).toEqual([+ ['relay_mobile_opens', 1, { increment: 1 }], ['breakdown:release:phone:1.0.8:relay_mobile_opens', 1, { increment: 1 }]])+ expect(JSON.stringify(db.productUsageTotal.upsert.mock.calls)).not.toContain('private-account')+ db.productUsageTotal.upsert.mockClear()+ db.productUsagePreference.findUnique.mockResolvedValue({ enabled: false, revision: 3 })+ await recordRelayUsage('private-account', now, 'relay_mobile_opens', ['relay_mobile_debug_opens'])+ expect(db.productUsageTotal.upsert).not.toHaveBeenCalled()+})+it('a relay metrics failure cannot interrupt work or log an identity or database error', async () => {const log = vi.spyOn(console, 'warn').mockImplementation(() => {})db.productUsagePreference.findUnique.mockRejectedValue(new Error('PRIVATE_DATABASE_CANARY'))diff --git a/backend/src/lib/productUsage.ts b/backend/src/lib/productUsage.tsindex 6240a035c..2e6442a91 100644--- a/backend/src/lib/productUsage.ts+++ b/backend/src/lib/productUsage.ts@@ -134,19 +134,25 @@ async function ingestCounters(report: SetupUsageReport & { revision?: number; coexport type RelayUsageMetric = 'relay_desktop_opens' | 'relay_tui_opens' | 'relay_mobile_opens' | 'relay_web_opens'| 'relay_harness-os_opens' | 'relay_harness-os-pi_opens'| 'relay_device_connections' | 'relay_machine_connections' | 'relay_remote_sessions' | 'relay_turns_started'+ // The phone's opens again, apart (`dailyTracking.ts` mobileOpenMetrics): from a debug or simulator build, and by release.+ | 'relay_mobile_debug_opens' | `breakdown:release:phone:${string}:relay_mobile_opens`let warnedAt = 0-/** Older clients still contribute totals. These are events, never distinct users or installations. */-export async function recordRelayUsage(userId: string, now: Date, metric: RelayUsageMetric): Promise<void> {+/** Older clients still contribute totals. These are events, never distinct users or installations.+ * [also]: more totals the same event adds to, under the one preference read. */+export async function recordRelayUsage(userId: string, now: Date, metric: RelayUsageMetric,+ also: readonly RelayUsageMetric[] = []): Promise<void> {try {if (!(await productUsageChoice(userId)).enabled) returnconst dayUtc = new Date(Math.floor(now.getTime() / DAY) * DAY)- const where = { dayUtc_metric: { dayUtc, metric } }- try {- await prisma.productUsageTotal.upsert({ where, create: { dayUtc, metric, value: 1 }, update: { value: { increment: 1 } } })- } catch (error) {- if ((error as { code?: string }).code !== 'P2002') throw error- await prisma.productUsageTotal.update({ where, data: { value: { increment: 1 } } })+ for (const name of [metric, ...also]) {+ const where = { dayUtc_metric: { dayUtc, metric: name } }+ try {+ await prisma.productUsageTotal.upsert({ where, create: { dayUtc, metric: name, value: 1 }, update: { value: { increment: 1 } } })+ } catch (error) {+ if ((error as { code?: string }).code !== 'P2002') throw error+ await prisma.productUsageTotal.update({ where, data: { value: { increment: 1 } } })+ }}} catch {// Do not let analytics break a session or reach callers that log the account/agent and DB error.diff --git a/backend/src/lib/webWs.test.ts b/backend/src/lib/webWs.test.tsindex 25aef6a16..a8e85dec7 100644--- a/backend/src/lib/webWs.test.ts+++ b/backend/src/lib/webWs.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest'-import { BACKEND_ONLY_DOWN_TYPES } from './webWs.js'+import { BACKEND_ONLY_DOWN_TYPES, declaredClient } from './webWs.js'/*** `handleFrame` forwards anything it does not recognise straight to the adapter@@ -24,3 +24,26 @@ describe('frames a web client may never forge', () => {for (const type of BACKEND_ONLY_DOWN_TYPES) expect(type.startsWith('__')).toBe(false)})})++describe('who a per-user socket says it is', () => {+ const declared = (query: string) => declaredClient(new URLSearchParams(query))++ it('reads the phone\'s surface, release and debug flag', () => {+ expect(declared('client=mobile&release=1.0.8')).toEqual({ surface: 'mobile', build: { release: '1.0.8', debug: false } })+ expect(declared('autonomousEnv=prod&client=mobile&release=1.0.8&debug=1')).toEqual({ surface: 'mobile', build: { release: '1.0.8', debug: true } })+ })++ it('takes an app that predates the release as no release and not a debug build', () => {+ expect(declared('client=mobile')).toEqual({ surface: 'mobile', build: { release: null, debug: false } })+ })++ it('takes only debug=1 as a debug build', () => {+ for (const value of ['0', 'true', '', 'yes', '2']) expect(declared(`client=mobile&debug=${value}`).build.debug).toBe(false)+ })++ it('says nothing of the build for the web viewer or an undeclared client', () => {+ expect(declared('client=web&release=1.0.8&debug=1')).toEqual({ surface: 'web', build: {} })+ expect(declared('release=1.0.8&debug=1')).toEqual({ surface: null, build: {} })+ expect(declared('client=desktop&release=1.0.8')).toEqual({ surface: null, build: {} })+ })+})diff --git a/backend/src/lib/webWs.ts b/backend/src/lib/webWs.tsindex 8f91edbb2..03cd9d03a 100644--- a/backend/src/lib/webWs.ts+++ b/backend/src/lib/webWs.ts@@ -57,7 +57,7 @@ import {P2pSignalRateGuard,terminalP2pPolicy,} from './p2pSignaling.js'-import { presenceTracker, recordRemoteUsage, touchClientOnlineDay } from './dailyTracking.js'+import { presenceTracker, recordRemoteUsage, touchClientOnlineDay, type ClientBuild } from './dailyTracking.js'import { isBackendOnlyDownType } from './backendOnlyFrames.js'// How often an open mobile/web socket refreshes its person's `user_daily_client_presence` row.@@ -74,6 +74,15 @@ const DEVICE_RESEED_MS = 30_000// Trailing debounce for list re-derivations poked by machines_watch (see scheduleWatchAgents).const WATCH_DEBOUNCE_MS = 250+/** Who is on the other end of a per-user socket, as the client declares it: the surface (`?client=`), and+ * for the phone the release (`?release=`, the public x.y.z) and whether the build is a debug or simulator+ * one (`?debug=1`). An app that predates the last two sends neither: no release, not a debug build. */+export function declaredClient(query: URLSearchParams): { surface: 'mobile' | 'web' | null; build: ClientBuild } {+ const declared = query.get('client')+ const surface = declared === 'mobile' || declared === 'web' ? declared : null+ return { surface, build: surface === 'mobile' ? { release: query.get('release'), debug: query.get('debug') === '1' } : {} }+}+/** HTTP upgrade hook for `/api/web-ws`. Subprotocol = SSO access token or legacy agent apiKey. */export function handleWebUpgrade(req: IncomingMessage, socket: Duplex, head: Buffer): void {const cred = extractKey(req)@@ -97,11 +106,10 @@ export function handleWebUpgrade(req: IncomingMessage, socket: Duplex, head: Bufconst requestedEnvironment = parseAutonomousEnvironment(query.get('autonomousEnv'))// Who is on the other end, as the client declares it: the mobile app and the web viewer say so;// the daemon's relay (and any older client) says nothing and is never counted as a person.- const declared = query.get('client')- const surface = declared === 'mobile' || declared === 'web' ? declared : null+ const { surface, build } = declaredClient(query)const user = await authenticateAccessToken(cred, requestedEnvironment)if (socket.destroyed) return- wss.handleUpgrade(req, socket, head, (ws) => attachUserClient(ws, user, surface))+ wss.handleUpgrade(req, socket, head, (ws) => attachUserClient(ws, user, surface, build))} catch (err) {if (socket.destroyed) returnconst invalid = err instanceof SsoAuthError && err.code === 'INVALID_TOKEN'@@ -119,7 +127,7 @@ export function handleWebUpgrade(req: IncomingMessage, socket: Duplex, head: Buf}/** PER-USER socket: starts unattached; `machine_select` scopes it to one owned machine at a time. */-function attachUserClient(ws: WebSocket, user: AuthUser, surface: 'mobile' | 'web' | null): void {+function attachUserClient(ws: WebSocket, user: AuthUser, surface: 'mobile' | 'web' | null, build: ClientBuild): void {let client: HubClient | null = nulllet currentAgentId: string | null = nulllet currentBinding: Machine | null = null@@ -143,7 +151,7 @@ function attachUserClient(ws: WebSocket, user: AuthUser, surface: 'mobile' | 'welet presenceTimer: ReturnType<typeof setInterval> | null = nullif (surface) {const touchPresence = presenceTracker(- (now, isNewConnection) => touchClientOnlineDay(user.sub, surface, now, { isNewConnection }),+ (now, isNewConnection) => touchClientOnlineDay(user.sub, surface, now, { isNewConnection, build }),(kind, err) => logger.warn('client presence tracking failed', { userId: user.sub, surface, kind, error: String(err) }),{ pingFloorMs: WEB_CLIENT_PRESENCE_WRITE_MS, openFloorMs: 0 },)diff --git a/docs/product-measurement.md b/docs/product-measurement.mdindex 9624afe91..90a4ed077 100644--- a/docs/product-measurement.md+++ b/docs/product-measurement.md@@ -14,7 +14,7 @@ automatically proven improvement. Changes still need review, tests and a deliber| Does work get a response promptly? | First text response buckets; over-one-minute waits; error events; matched ends without text; interruptions | Includes automation. Tool-only turns, interruptions and missing lifecycle events can explain missing text. No message is inspected. || Do installations return to work? | D1/D7/D28 working-day cohorts, consecutive complete-week and calendar-month returns, return after a seven-day gap | Any working day can be a cohort; not new-signup retention. Local date flags produce unlinked totals. Opt-outs, reinstallations, resets and missing uploads affect results. || Was the task useful? | Optional Completed / Partly completed / Not completed plus five fixed reason choices from clients that offer feedback; current Desktop Settings no longer exposes feedback controls | Voluntary and self-selected; not representative success or satisfaction. There is no free-text input. |-| Is there usage at all? | Active and working computer counts; app opens; older-client relay totals | Background windows can count as active. An open is a surface going from no attached window to one, not each connection (the desktop holds one per machine and redials). Relay events are not distinct people; the populations must not be added together. |+| Is there usage at all? | Active and working computer counts; app opens; older-client relay totals, the phone's also by release and with debug/simulator builds apart | Background windows can count as active. An open is a surface going from no attached window to one, not each connection (the desktop holds one per machine and redials). Relay events are not distinct people; the populations must not be added together. `relay_mobile_opens` still counts every phone socket open, a reconnect included (on 2026-10-19/20 one simulator left open made 15,104 against 344 the day before). The first phone release after 1.0.8 (71) says its release and whether it is a debug or simulator build on the socket (`release`, `debug`), and each open is counted a second time: `relay_mobile_debug_opens` for a debug or simulator build, otherwise `breakdown:release:phone:<x.y.z>:relay_mobile_opens`, so the two never overlap and together equal the total for those apps. An older app, or any release that is not a plain x.y.z, counts under release `unknown`. A release's margin is shown only where the day has 20 phone collector observations, like the phone's other release margins; an Android emulator running a release build is not told apart. || Why are Desktop frames long, and on how many computers? | One in 60 rendered frames by duration; a sample of 50 ms or more also by its longest phase (`frame_slow_wait`, `frame_slow_build`, `frame_slow_raster`); once per collector day, the first sample over 250 ms (`frame_long_collector`) | Wait is the UI thread busy before the frame could start (on macOS and Linux the platform's main thread: timers, channel and native callbacks, synchronous IO, AppKit or GTK); build is the framework's build, layout and paint; raster is drawing. The phases add up to the samples of 50 ms or more counted beside them. `frame_long_collector` over `collector_days` is the share of collector days with a long sample: many long samples on few such days are a few computers, not a broad problem. Counted only once the computer's CLI has announced them (below), so not before a run's first report answer or behind an older CLI; compare releases separately. || Which features get tried and used again? | First measured installations and daily first/repeat feature reach | Locally deduplicated installation-days, not unique accounts. Reads the apps make on their own (history, history paging, Store list, model list; `PRODUCT_USAGE_AUTOMATIC_ACTIONS`) count reliability only. The Store and model lists get reach only from the request an app marks `userAction` when a person opens them (`<action>_user_*`, `PRODUCT_USAGE_USER_OPENED_ACTIONS`); history has none. |