Skip to content

Desktop Release V2: generated evidence, release doctor, and enforceable beta-to-stable drift gates #9523

Open

Description

@Git-on-my-level

Summary

Replace manual release archaeology and free-form nomination text with one generated evidence bundle, a deterministic desktop-release doctor, and enforceable beta-to-stable drift gates.

Start advisory, establish honest denominators, then make identity and release-state invariants blocking. Do not make telemetry thresholds blocking until the measurements themselves are validated.

Evidence from v0.12.70

The release required manual comparison across all of these surfaces:

  • Git tag and source SHA
  • GitHub release body/title/assets
  • ZIP/DMG/evidence hashes
  • qualification metadata
  • canonical immutable manifest
  • macos-beta and macos-stable
  • legacy Firestore releases
  • Python appcast
  • Rust appcast
  • static beta redirect
  • Cloud Run image/revision/traffic
  • /health release identity
  • production tracking tag

No single command reported the complete truth or detected split-brain state.

Nomination only mechanically required four non-empty single-line strings. For .70:

  • direct unique beta cohort was unavailable;
  • direct client crash-free rate was unavailable;
  • GitHub download counts were not unique-user counts and included possible automation;
  • only 32 observed updater feed/latest requests were available, all 200 with p95 about 300 ms;
  • Tier-2 qualification passed 36/36 flows;
  • the product owner explicitly reviewed and accepted the low-sample limitation.

The workflow could not enforce the difference between honest caveated evidence and invented confidence.

Codemagic was red after artifact stages, while immutable signed/notarized/stapled artifacts and exact Tier-2 evidence passed. The exact post-artifact failure step was not present in durable qualification evidence, forcing human archaeology and an explicit exception.

Machine metadata became stable while human-readable prose still said stable was blocked. This drift was not detected automatically.

Deliverables

1. Versioned release evidence bundle

Generate one immutable JSON artifact containing:

  • release/manifest identity and all artifact/backend digests;
  • qualification tier, flow count, result and evidence digest;
  • beta start/end and actual soak duration;
  • updater attempts/success/failure with denominators;
  • unique eligible beta cohort and active cohort;
  • crash-free sessions/users with denominator and time window;
  • auth, microphone, screen capture, chat/agent, voice and PTT success/failure denominators;
  • backend requests and 5xx grouped by bounded route/failure class;
  • fallback outcomes;
  • pointer/appcast/static/GitHub/backend/tracking snapshots;
  • Codemagic artifact-producing step and any later failure step;
  • audited exceptions with approver, rationale and scope;
  • missing/unavailable metrics explicitly represented as unavailable, never omitted.

Do not include raw private content, prompts, audio, transcripts or user identifiers.

2. desktop-release doctor

Given a release tag, produce a deterministic human report and machine JSON:

  • PASS, WARN or FAIL for every surface;
  • exact expected versus actual values;
  • whether disagreement is safe residue, reversible drift or customer-visible split state;
  • the exact repair/resume command for repairable state;
  • no secret values.

It must support:

  • candidate/pre-beta;
  • beta;
  • nominated;
  • backend-live but stable-not-yet-exposed;
  • stable;
  • partial-finalization;
  • superseded/rejected.

3. Drift gates

Always-blocking identity invariants:

  • tag/source/manifest agreement;
  • asset and evidence hashes;
  • qualification source and evidence;
  • backend OCI/platform digest when required;
  • candidate/live health identity;
  • canonical pointer release ID and generation;
  • GitHub channel/live fields;
  • tracking tag;
  • no beta/prod rebuild drift.

Advisory-then-blocking operational gates:

  • beta soak duration;
  • updater failure rate;
  • crash-free rate;
  • feature-path denominators;
  • route-specific backend error rates;
  • fallback/degradation rates.

Every metric gate must state its denominator, time window, minimum sample, missing-data behavior and exception policy.

4. Release observability

Add bounded-label alerts/dashboards for:

  • release-state drift;
  • updater feed errors;
  • pointer/appcast disagreement;
  • candidate and live backend identity mismatch;
  • TTS Redis failures;
  • Gemini provider timeouts, separately from release regressions;
  • incomplete finalization;
  • repeated workflow retries/failures.

Rollout plan

  1. Implement doctor snapshots against current live state, advisory only.
  2. Generate evidence bundles for historical/recent releases and compare with known outcomes.
  3. Make immutable identity checks blocking.
  4. Validate telemetry denominators during dogfood and beta.
  5. Add minimum samples and thresholds.
  6. Make telemetry gates blocking only after false-positive/false-negative review.
  7. Require audited exceptions rather than implicit operator judgment.

Acceptance criteria

  • One command reports every release surface listed above.
  • JSON output is stable/versioned and suitable for CI artifacts.
  • Doctor detects raw-+ manifest lookup errors, stale human prose, wrong labels, missing pointers and appcast divergence.
  • Missing metrics are explicit and cannot be rendered as success.
  • Download counts are never described as unique users.
  • Codemagic post-artifact failures and exceptions are durable.
  • Identity gates fail before mutation.
  • Operational thresholds include denominators/time windows/minimum samples.
  • Release and provider-runtime failures are separated.
  • Evidence contains no raw private content.
  • Nomination consumes the generated evidence ID instead of arbitrary prose.

Related issue pack

Dependency graph

#9526 ──> #9525 ──> blocking phase-aware gates in #9523
   └────────────────> canonical identity checks in #9523

#9524 ── independent implementation lane
   ├────────────────> semantic runtime probes consumed by #9525
   └────────────────> bounded runtime telemetry consumed by #9523

Dependencies and rollout ordering

Activity

  1. added
    enhancement
    docs-tooling
    maintainer
    p2
    workflow-review
    on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyticsdesktopdocs-toolingenhancementmacOSmaintainerp2stabilityworkflow-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions