Skip to content

fix(desktop): gate backend candidates before traffic - #10670

Merged
Git-on-my-level merged 2 commits into
mainfrom
codex/desktop-backend-release-gate
Jul 27, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
codex/desktop-backend-release-gate

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • keep Rust desktop-backend separate from the Python backend release vector, with its own immutable source, image, contract, traffic, and recovery identity
  • deploy development and production revisions at zero traffic, then require chat/web-search, plain follow-up, Firestore/Redis, and managed realtime-provider acceptance before routing
  • add protected manual production deploy and retained-revision recovery workflows under one non-cancelling Cloud Run mutation lock
  • require live desktop chat-contract compatibility during macOS Beta qualification and Stable promotion
  • remove service-account JSON from immutable image layers and prove Cloud Run metadata identity on the candidate before traffic moves

Incident and failure boundary

The latest development run shifted 100% traffic before Firebase custom-token/provider proof, then failed after the new revision was already serving (run 30213703046). The .131 samples also showed the public-web 400/stalled-turn symptom that #10661 repaired in source. This PR makes candidate acceptance authoritative instead of advisory and adds a reusable guard that would reject the old workflow order.

The candidate probe now requires provider-reported web_search_requests > 0, bounded first-event and total response time, terminal SSE usage, and a same-history ordinary follow-up with zero web reuse. The managed realtime probes remain dependency checks; full macOS PTT capture, transcription, cold-start, replacement-turn, and UI terminalization remain in the app qualification boundary and are not claimed here.

Architecture

desktop-backend is intentionally not added to the Python Cloud Run/GKE release vector. The two planes keep independent rollout and rollback lifecycles, while shared desktop chat compatibility is explicit at candidate acceptance and app promotion.

Production source admission requires an exact merged-main SHA and first-attempt Release Eligibility proof. The standard break-glass inputs can waive only that proof; they cannot waive merged-main admission or candidate acceptance. Total runner loss after traffic mutation is handled by the protected traffic-only recovery workflow.

Product invariants affected

  • INV-DATA-1 — preserves the canonical production desktop Cloud Run authority and production Firebase/account universe; this is not a data-plane migration

Failure class

Failure-Class: FC-nonrecoverable-promotion

The new canonical prevention artifact is .github/scripts/check-desktop-backend-release-policy.py; it mutation-tests zero-traffic ordering, digest identity, manual production admission, rollback/recovery, contract parity, and the no-baked-credentials boundary.

Validation

  • cargo fmt --manifest-path desktop/macos/Backend-Rust/Cargo.toml -- --check
  • cargo test --manifest-path desktop/macos/Backend-Rust/Cargo.toml — 385 passed
  • candidate probe tests — 14 passed
  • desktop-backend release policy tests — 8 passed
  • desktop release-flow contract tests — 9 passed
  • desktop release doctor tests — 10 passed
  • production routing tests — 11 passed
  • dev-harness tests — 61 passed
  • deployment concurrency, Stable promotion policy, failure-class guard ratchet, actionlint, diff hygiene, and Docker-context checks passed

The local Docker image build was not run because the configured OrbStack Docker daemon was unavailable. CI's desktop-backend image workflow performs that build from the credential-free context.

No development or production deployment was triggered while preparing this PR.

Review in cubic

@mintlify

mintlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 26, 2026, 7:11 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@undivisible

Copy link
Copy Markdown
Collaborator

#10686 replaces the Rust desktop-backend service with a narrow Python image while preserving the candidate and traffic gate. Its Rust-separation architecture text now conflicts with the cutover.

@mintlify

mintlify Bot commented Jul 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟡 Building – Jul 26, 2026, 7:10 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@Git-on-my-level
Git-on-my-level merged commit 01c0eae into main Jul 27, 2026
36 of 39 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/desktop-backend-release-gate branch July 27, 2026 04:50
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…0670)

## Summary

- keep Rust `desktop-backend` separate from the Python backend release
vector, with its own immutable source, image, contract, traffic, and
recovery identity
- deploy development and production revisions at zero traffic, then
require chat/web-search, plain follow-up, Firestore/Redis, and managed
realtime-provider acceptance before routing
- add protected manual production deploy and retained-revision recovery
workflows under one non-cancelling Cloud Run mutation lock
- require live desktop chat-contract compatibility during macOS Beta
qualification and Stable promotion
- remove service-account JSON from immutable image layers and prove
Cloud Run metadata identity on the candidate before traffic moves

## Incident and failure boundary

The latest development run shifted 100% traffic before Firebase
custom-token/provider proof, then failed after the new revision was
already serving ([run
30213703046](https://github.com/BasedHardware/omi/actions/runs/30213703046)).
The `.131` samples also showed the public-web 400/stalled-turn symptom
that BasedHardware#10661 repaired in source. This PR makes candidate acceptance
authoritative instead of advisory and adds a reusable guard that would
reject the old workflow order.

The candidate probe now requires provider-reported `web_search_requests
> 0`, bounded first-event and total response time, terminal SSE usage,
and a same-history ordinary follow-up with zero web reuse. The managed
realtime probes remain dependency checks; full macOS PTT capture,
transcription, cold-start, replacement-turn, and UI terminalization
remain in the app qualification boundary and are not claimed here.

## Architecture

`desktop-backend` is intentionally not added to the Python Cloud Run/GKE
release vector. The two planes keep independent rollout and rollback
lifecycles, while shared desktop chat compatibility is explicit at
candidate acceptance and app promotion.

Production source admission requires an exact merged-main SHA and
first-attempt Release Eligibility proof. The standard break-glass inputs
can waive only that proof; they cannot waive merged-main admission or
candidate acceptance. Total runner loss after traffic mutation is
handled by the protected traffic-only recovery workflow.

## Product invariants affected

- INV-DATA-1 — preserves the canonical production desktop Cloud Run
authority and production Firebase/account universe; this is not a
data-plane migration

## Failure class

Failure-Class: FC-nonrecoverable-promotion

The new canonical prevention artifact is
`.github/scripts/check-desktop-backend-release-policy.py`; it
mutation-tests zero-traffic ordering, digest identity, manual production
admission, rollback/recovery, contract parity, and the
no-baked-credentials boundary.

## Validation

- `cargo fmt --manifest-path desktop/macos/Backend-Rust/Cargo.toml --
--check`
- `cargo test --manifest-path desktop/macos/Backend-Rust/Cargo.toml` —
385 passed
- candidate probe tests — 14 passed
- desktop-backend release policy tests — 8 passed
- desktop release-flow contract tests — 9 passed
- desktop release doctor tests — 10 passed
- production routing tests — 11 passed
- dev-harness tests — 61 passed
- deployment concurrency, Stable promotion policy, failure-class guard
ratchet, actionlint, diff hygiene, and Docker-context checks passed

The local Docker image build was not run because the configured OrbStack
Docker daemon was unavailable. CI's desktop-backend image workflow
performs that build from the credential-free context.

No development or production deployment was triggered while preparing
this PR.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10670?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->

This branch was successfully deployed

1 active deployment
staging - docs — 85b1f554 Deployed Jul 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants