Repository navigation
fix(desktop): gate backend candidates before traffic - #10670
Merged
Merged
Conversation
Failure-Class: FC-nonrecoverable-promotion Invariant: INV-DATA-1
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
desktop-backendseparate from the Python backend release vector, with its own immutable source, image, contract, traffic, and recovery identityIncident 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
.131samples 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-backendis 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
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 -- --checkcargo test --manifest-path desktop/macos/Backend-Rust/Cargo.toml— 385 passedThe 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.