Repository navigation
Description
Summary
Make macOS release health telemetry outcome-based, build-attributable, and safe to use for release decisions. Today several high-volume desktop signals are intermediate lifecycle events or ambiguous terminal states, so they can resemble a user-visible regression when the product path is healthy.
This is deliberately an observability contract issue. It does not change realtime provider behavior, PTT UX, release promotion policy, or the root-cause fixes tracked by #10420.
Evidence
Read-only production checks on 2026-07-23:
0.12.113:ptt_audio_capture_silent_turnwas initially interpreted as a PTT no-transcript regression. Source inspection showsfloatingBarPTTEndedemitshadTranscript=falsefor deliberately discarded near-silent/too-fast input as well as actual non-transcript terminal paths. The metric is not a PTT-success/failure denominator.0.12.115early cohort: 255 active macOS users; 3 silent-turn users and zero PTT watchdog incidents. This is compatible with healthy PTT, but the shipped telemetry cannot quantify end-to-end PTT success.0.12.115:fallback_triggeredreportedarea=other, reason=capability_mismatchfor 32/255 users. Recovered and degraded outcomes are both present under that ambiguous area, so the aggregate fallback rate does not represent customer-visible failure.- Expected realtime idle teardown generated 1,200 events across 188 users in the same cohort. This is lifecycle noise and should not share an error/release-health rollup with failures.
- Warm
realtime_token_mint_failedevents still occur (3/255 users,backend_transient), and a small realtime-hub exhausted cohort exists. They need terminal recovery/outcome linkage before being interpreted as user-impact rates. - Sentry lacks reliable macOS build/version attribution for correlating native errors to a release cohort.
Scope
1. Define bounded terminal-outcome contracts
Add or standardize privacy-safe, bounded telemetry for:
- PTT: attempt → capture classification → committed/discarded → transcript/agent terminal outcome.
- Realtime session/token mint: trigger phase (
warmvs active), provider/result class, recovery attempted, recovered/degraded/exhausted terminal outcome. - Fallback: a non-
otherowning area, bounded reason, and a terminal outcome that cannot mix recovery with exhaustion.
The contract must explicitly distinguish user cancellation/short tap/quiet discard from failed capture and from a completed interaction. It must not emit transcript text, audio, prompt content, or free-form local errors.
2. Separate expected lifecycle noise
Classify expected idle teardown, planned session rotation, and other normal lifecycle transitions separately from actionable error telemetry. They may remain observable, but must not inflate error-rate or release-health panels.
3. Restore release attribution
Attach macOS app_version / app_build / release identity to native error reporting (including Sentry), and ensure PostHog release-health events retain comparable identity. Use bounded tags/fields only; do not add user content or free-form error payloads.
4. Publish a release-health metric specification
Document the exact numerator, denominator, time window, minimum cohort, missing-data behavior, and release-comparison rule for PTT, realtime, fallback, updater, crash, recording, and memory indicators. Intermediate events must not be rendered as customer failures.
Acceptance criteria
- PTT has a production-queryable terminal outcome funnel with a documented success denominator; short/quiet/user-cancelled input cannot be counted as an unexplained no-transcript failure.
- Realtime token-mint and fallback telemetry distinguish warm-up from active interaction and recovered/degraded/exhausted outcomes.
-
fallback_triggeredhas an owned boundedarea;area=otheris either eliminated for known paths or explicitly tracked as an instrumentation defect. - Expected idle teardown/session rotation is excluded from error and release-regression rollups while remaining separately inspectable.
- Native Sentry events can be filtered by macOS app version/build/release without exposing private content.
- A versioned release-health query/dashboard specification defines denominators, windows, minimum samples, and unknown/missing-data treatment.
- Focused unit/contract tests prevent schema regressions and prove no raw transcript/audio/free-form local errors enter analytics or Sentry tags.
- The resulting dashboard can explain why 0.12.113 PTT and 0.12.115 fallback signals are or are not customer-visible regressions without source-code archaeology.
Boundaries / related work
- macOS stable 0.12.113: root-cause release-scoped Sentry errors, memory pressure, hangs, and Realtime failures #10420 owns the concrete
.113Sentry errors, memory pressure, hangs, and Gemini transport investigation; this issue only supplies the release-attribution/telemetry contract needed to classify them. - Add macOS dev/beta auth canary and release guardrails #9160 owns beta auth canary/release-channel guardrails; this issue should reuse compatible app build/channel dimensions rather than create a second taxonomy.
- Desktop Release V2: generated evidence, release doctor, and enforceable beta-to-stable drift gates #9523 owns generated release evidence and doctor tooling; this issue provides the client-outcome and error-attribution inputs those release gates need.
Activity
fix(desktop): merge main and emit exhausted barge-in mint fallback (#…
chore(desktop): merge main and annotate barge-in failover test with @…
feat(desktop): outcome-based, build-attributable macOS release-health…
feat(desktop): outcome-based release-health telemetry contract (Based…
feat(desktop): build-attributable Sentry/PostHog release identity (Ba…
docs(desktop): versioned release-health metric specification (BasedHa…
test(desktop): release-health telemetry contract tests (BasedHardware…
fix(desktop): close release-health telemetry gaps from adversarial re…
docs(desktop): correct Sentry dist column in release-health identity …
chore(desktop): release-health telemetry ratchets + changelog (BasedH…
style(desktop): apply pinned swift-format to release-health telemetry…
chore(desktop): release-health telemetry ratchets + changelog (BasedH…
fix(desktop): merge main and emit exhausted barge-in mint fallback (B…
feat(desktop): outcome-based, build-attributable macOS release-health…