Repository navigation
Description
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-betaandmacos-stable- legacy Firestore releases
- Python appcast
- Rust appcast
- static beta redirect
- Cloud Run image/revision/traffic
/healthrelease 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,WARNorFAILfor 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
- Implement doctor snapshots against current live state, advisory only.
- Generate evidence bundles for historical/recent releases and compare with known outcomes.
- Make immutable identity checks blocking.
- Validate telemetry denominators during dogfood and beta.
- Add minimum samples and thresholds.
- Make telemetry gates blocking only after false-positive/false-negative review.
- 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
- Desktop Release V2: build once and promote one immutable app/backend release unit #9526 — immutable app/backend release unit and compatibility contract (foundation)
- Desktop Release V2: safe resumable beta/stable promotion engine with candidate-first rollback #9525 — resumable candidate-first promotion and rollback engine
- Desktop Release V2: generated evidence, release doctor, and enforceable beta-to-stable drift gates #9523 — generated evidence, release doctor, and beta-to-stable drift gates
- Desktop backend: recover stale Redis connections and isolate Gemini timeout failures from release health #9524 — Redis recovery and Gemini timeout isolation for desktop-backend health
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
- Can start immediately in advisory mode: generate evidence, report unknown fields explicitly, and add the release-doctor command without blocking releases.
- Blocked by Desktop Release V2: build once and promote one immutable app/backend release unit #9526 for canonical identity: artifact, source, app, and backend identity checks must consume the versioned release manifest.
- Blocked by Desktop Release V2: safe resumable beta/stable promotion engine with candidate-first rollback #9525 for phase-aware enforcement: blocking preflight/finalization gates need durable promotion phases, candidate identity, and rollback outcomes.
- Consumes Desktop backend: recover stale Redis connections and isolate Gemini timeout failures from release health #9524 telemetry: runtime-health evidence and alerts should use the bounded Redis recovery and Gemini timeout classifications. Keep those checks advisory until Desktop backend: recover stale Redis connections and isolate Gemini timeout failures from release health #9524 is deployed and baseline denominators are established.
- Recommended rollout: advisory bundle and doctor; manifest-backed identity; promotion-state integration; collect at least one beta/stable baseline window; then enable blocking gates one category at a time with an explicit emergency override that is recorded in evidence.
Activity
Recover stale Redis connections and isolate Gemini timeouts (#9533)
feat(release): add advisory desktop release doctor (#9676)
feat(desktop): outcome-based, build-attributable macOS release-health…
feat(release): add advisory desktop release doctor (BasedHardware#9676)
feat(desktop): outcome-based, build-attributable macOS release-health…