Skip to content

fix(release): verify atomic recovery across GKE and Cloud Run - #10075

Closed
Git-on-my-level wants to merge 1 commit into
BasedHardware:codex/release-rings-v1-currentfrom
Git-on-my-level:fix/release-rings-atomic-recovery
Closed

Git-on-my-level wants to merge 1 commit into
BasedHardware:codex/release-rings-v1-currentfrom
Git-on-my-level:fix/release-rings-atomic-recovery

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Follow-up to #10068. Restores the complete pre-mutation serving vector after a failed release ring and verifies convergence rather than trusting command success.

  • Snapshot and restore GKE ConfigMaps plus Helm release revisions/manifests, with read-back checks.
  • Verify restored Cloud Run traffic, remove candidate tags, and delete first-time services during recovery.
  • Fail closed on recovery divergence and preserve the pre-mutation active release pointer using generation-aware updates.
  • Prevent manual-dispatch values from being interpolated directly into shell commands.

Verification

  • rtk proxy backend/.venv/bin/python -m pytest -q .github/scripts/test_check_release_rings.py backend/tests/unit/test_release_rings.py backend/tests/unit/test_render_release_ring_config.py backend/tests/unit/test_cloud_run_traffic_snapshot.py backend/tests/unit/test_release_ring_gke_snapshot.py — 25 passed
  • rtk python3 .github/scripts/check_release_rings.py — passed
  • rtk python3 .github/scripts/check-deployment-concurrency.py — passed
  • Independent review: approved; no blockers found.

Product invariants affected

  • INV-AUTH-1

Failure class

Failure-Class: FC-nonrecoverable-promotion

The release must preserve and restore the pre-promotion serving vector until the complete candidate is verified.

Review in cubic

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c7a56928e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Git-on-my-level
Git-on-my-level force-pushed the fix/release-rings-atomic-recovery branch from c7a5692 to 28cd245 Compare July 20, 2026 03:53
Restore the complete pre-mutation serving vector after a failed release ring
and verify convergence rather than trusting command success.

- Snapshot and restore GKE ConfigMaps plus Helm release revisions/manifests,
  with read-back checks.
- Verify restored Cloud Run traffic, remove candidate tags, and delete
  first-time services during recovery.
- Fail closed on recovery divergence and preserve the pre-mutation active
  release pointer using generation-aware updates.
- Prevent manual-dispatch values from being interpolated directly into shell
  commands.
- Resolve observed (status.traffic) rather than requested (spec.traffic) on
  the post-restore read-back so a wedged Cloud Run service whose status.traffic
  still serves the candidate cannot be falsely reported as restored.

Failure-Class: new
@Git-on-my-level
Git-on-my-level force-pushed the fix/release-rings-atomic-recovery branch from 28cd245 to 64d23e6 Compare July 20, 2026 04:34
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Addressed the Codex P1 review on _observed_targets.

The post-restore read-back now resolves status.traffic (what Cloud Run is actually serving) instead of spec.traffic (what we just requested). A wedged service whose status.traffic still serves the candidate revision can no longer be falsely reported as restored — the restore evidence will correctly fail with "observed traffic does not match snapshot".

Added a regression test (test_restore_detects_wedged_status_traffic_after_update) that proves a wedged status.traffic serving a different revision than the restored spec.traffic is detected as a recovery failure.

@undivisible

Copy link
Copy Markdown
Collaborator

Consolidated into #10090 — all 4 release-rings PRs merged sequentially with co-authorship preserved.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Git-on-my-level pushed a commit that referenced this pull request Jul 20, 2026
Git-on-my-level added a commit that referenced this pull request Jul 20, 2026
#10090)

Consolidates 4 sequential release-rings PRs by @Git-on-my-level into one
mergeable branch.

## Product invariants affected

- INV-AUTH-1

**Merged in order:**
- #10068: feat: add immutable beta-to-prod release rings (foundation)
- #10065: release: add audited macOS beta emergency forward-promotion
lane
- #10086: feat(release): make beta overrides explicit and dispatch
reliable (closes #10082)
- #10075: fix(release): verify atomic recovery across GKE and Cloud Run

Co-authored-by: Git-on-my-level

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10090?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. -->

## Failure class (fixes)

Failure-Class: FC-nonrecoverable-promotion
undivisible added a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…ify atomic recovery across GKE and Cloud Run
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…rdware#10065 BasedHardware#10086 BasedHardware#10075) (BasedHardware#10090)

Consolidates 4 sequential release-rings PRs by @Git-on-my-level into one
mergeable branch.

## Product invariants affected

- INV-AUTH-1

**Merged in order:**
- BasedHardware#10068: feat: add immutable beta-to-prod release rings (foundation)
- BasedHardware#10065: release: add audited macOS beta emergency forward-promotion
lane
- BasedHardware#10086: feat(release): make beta overrides explicit and dispatch
reliable (closes BasedHardware#10082)
- BasedHardware#10075: fix(release): verify atomic recovery across GKE and Cloud Run

Co-authored-by: Git-on-my-level

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10090?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. -->

## Failure class (fixes)

Failure-Class: FC-nonrecoverable-promotion
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