Skip to content

feat(relay): give Asia cell c34 a promotion wave so it can become a general cell - #25757

Merged
Jinwoo-H merged 3 commits into
mainfrom
relay-c34-general
Oct 6, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
relay-c34-general

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​32
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8

ELI5

Asia cell c34 was added on 2026-10-05 as an empty standby cell. Jinwoo approved making it a regular Asia cell that takes desktops. Our reviewed Asia workflow currently refuses to promote c34. This PR lets the workflow promote it, through the same five-minute live test the earlier Asia cells c30 and c31 passed. It changes no production state. Promotion is a separate step that needs its own go.

What Changed

  • operate-relay-asia-admission.mjs: adds c34 to promotionWaves, alone. promote and recover-promotion now accept it.
  • cloud-operate-relay-asia-admission.yml: the production promote case and the canary-start case now accept c34. The canary aims its load at asia-east2.
  • relay-asia-rollout-evidence.mjs: adds a production-c34-canary entry. The canary only counts if the test connection landed on c34.
  • relay-workflows.md: updates the C34 paragraph.

Before: c34 stays migration-only. Ordinary placement and automatic rehome never send desktops to it.
After merge: nothing changes in production. After the promotion step: c34 is a general Asia cell. Automatic rehome starts landing Asia desktops that are now on US cells onto c34. It is the same ~1,000 moves a day as today (verified from logs below), so there are no extra moves.

Why

Why the same-cap list is not touched here. Two things block a one-PR change:

  1. A same-cap job reads a cell's class from the static SAME_CAP_MIGRATION_ONLY_CELLS list, not from the live selector.
  2. Promotion requires the director's serving digest and c34's runtime digest to equal the one image-digest input. Today c34 serves f30b5cb1, and the director serves d06f9ad5, so c34 must be rolled before it can be promoted.

That roll is a same-cap wave that enters and leaves migration-only, so the list must still say migration-only when it runs. After promotion, the list must say general, or a same-cap rollback would demote c34. This follows the precedent of c31 (#24310, then #24318) and c32/c33 (#24444, then #25367):

  • This PR adds the promotion path.
  • The stacked follow-up moves the list, and merges only after promotion.

Not evidence code. None of these files are in TRUSTED_EVIDENCE_CODE_PATHS, and none are in the relay image. Merging this does not invalidate a sealed monitor or a canary, and it does not change the image.

Alternatives considered:

  • Multi-target promote-general-cell also accepts c34. It skips the Asia canary, though, and the docs tell operators not to use it for c34.
  • Reading the same-cap class from the live selector would remove the two-PR dance. It is a larger change to evidence code, and it is not needed for one cell.

Testing

  • cd cloud && node --test dev/scripts/*.test.mjs: all pass. relay-load-control-peer needed pnpm --filter @orca-cloud/relay-contract build first, which is a local environment step.
  • New and updated tests: c34 in the accepted promote and recover-promotion waves; a promote of c34 from migration-only to general that leaves every other cell unchanged; the workflow's own promote block routes c34's canary to asia-east2; the canary-start block expects {"production-gce-c34":"general"}; the c34 canary evidence is satisfied only by placement on c34.
  • Rehome rate, read-only: orca_relay_idle_rehome_committed on orca-cloud-relay, us-central1. 1,069 commits in the 24 h to 2026-10-06T01:55Z, every one US to Asia. Daily totals: 10-03 980, 10-04 872, 10-05 993.

Notes

Follow-up list move: #25758 (stacked; merge only after promotion). Do not merge without Jinwoo's go.

…eneral cell

c34 launched on 2026-10-05 as a migration-only spare with no promotion path. This adds
it to the Asia admission promotion waves, the workflow's promote and canary cases, and
the canary evidence map, so the reviewed Asia workflow can promote it with the same
five-minute canary c30 and c31 ran.

The same-cap migration-only list is deliberately unchanged: a same-cap job reads a
cell's class from that list, and c34 must be rolled to the director's image as a
migration-only cell before promotion can run. The list moves after promotion, in its
own change.

Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
@pullfrog

pullfrog Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

Walkthrough

C34 now has a separate production promotion wave and uses its own canary evidence. Admission checks and tests cover standalone promotion to general and reject specified combined waves. The documentation describes the digest match, migration-only transition, and updates to the general and fleet-pool lists.

Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to 1bfc9

An operator could make C34 eligible for production placement before its canary runs. Block that route before merging unless the bypass is explicitly accepted.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 1bfc9

C34 can become an ordinary Asia workload destination through a separate, guarded promotion and its own five-minute canary. Existing identity and admission controls remain intact. Interrupted cleanup and the subsequent rollout-classification update still require operational care.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The admission change expands C34's workload eligibility from explicitly targeted migration traffic to ordinary Asia placement and regional rehome. Its effective workload scope is therefore not limited to the canary principal, although the selector mutation itself targets only C34.

Security Findings and Attack Paths

  • observed — The dedicated-canary requirement is a reviewed-workflow control, not a universal selector-promotion restriction. The separate privileged generic promote-general-cell path can promote a migration-only target without C34 canary evidence. That path and the documentation warning predate this PR; the base-to-head comparison shows no change to its implementation.

Trust Boundaries and Controls

  • observed — Operator inputs cross the existing deployment identity boundary. The workflow remains restricted to main with operations enabled, uses the selected environment and existing workload identity/service account, and serializes mutations without cancelling the previous run. Admission mutations retain reviewed-wave, expected-generation, durable-attempt, and exact-membership controls.

Resilience and Maintainability Implications

  • inferred — Failed-canary cleanup depends on execution in the same workflow job. The always-run step addresses ordinary failures, but the inspected evidence does not establish guaranteed demotion after hard runner loss or an independent reconciliation owner. This is an unresolved inherited recovery limitation, not a verified PR-introduced security failure.

Hardening Proposals

  • proposed — Consider assigning durable reconciliation ownership to promotions that have committed but lack successful canary evidence, so recovery does not depend solely on the original runner surviving.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely states the main change: adding a promotion wave for Asia cell C34.
Description check ✅ Passed The description explains the change, its rationale, the production impact, and the reported tests. It does not include several template sections, including a linked issue, Visual Proof with an N/A exp…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 371571f7-ebb1-442e-a21e-ddf6ff6b416f
📥 Commits

Reviewing files that changed from the base of the PR and between 168ac4d and 1bfc927.

📒 Files selected for processing (1)
  • cloud/docs/relay-workflows.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

then moves to the general list and the fleet pool list together, as its own reviewed change,
before any same-cap wave names C34 again. Between promotion and that change, do not run a same-cap
wave on C34; a rollback there would demote it. Do not name it in the multi-target
`promote-general-cell` or `retire-migration-cell` modes, which accept any migration-only cell. It

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 8 'promote-general-cell|c34|C34|canary|digest' \
  cloud/dev/scripts/deploy-relay-gce-multi-target.mjs \
  cloud/dev/scripts/operate-relay-asia-admission.mjs \
  .github/workflows/cloud-operate-relay-asia-admission.yml

Repository: stablyai/orca

Length of output: 42502


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- PR diff: docs and relevant scripts/workflow ---'
git diff --unified=12 a47e0f56578b2f3f4f07b6401fa0d38a39d67593 1bfc92712eeffcdd40fd438147af877dd5772c0b -- \
  cloud/docs/relay-workflows.md \
  cloud/dev/scripts/deploy-relay-gce-multi-target.mjs \
  cloud/dev/scripts/operate-relay-asia-admission.mjs \
  .github/workflows/cloud-operate-relay-asia-admission.yml

printf '%s\n' '--- generic promotion branch and surrounding execution flow ---'
sed -n '2700,2895p' cloud/dev/scripts/deploy-relay-gce-multi-target.mjs

printf '%s\n' '--- script entrypoint and relevant target/selector validation ---'
sed -n '1,225p' cloud/dev/scripts/deploy-relay-gce-multi-target.mjs
rg -n -F -- 'promote-general-cell' cloud .github || test "$?" -eq 1

printf '%s\n' '--- documentation context ---'
sed -n '215,245p' cloud/docs/relay-workflows.md

printf '%s\n' '--- C34 canary workflow cases ---'
rg -n -C 12 -F -- 'production-gce-c34' .github/workflows/cloud-operate-relay-asia-admission.yml cloud/dev/scripts/operate-relay-asia-admission.mjs

Repository: stablyai/orca

Length of output: 41965


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- production multi-target workflow dispatch and input guards ---'
sed -n '1,105p' .github/workflows/cloud-deploy-relay-production-multi-target.yml
sed -n '225,290p' .github/workflows/cloud-deploy-relay-production-multi-target.yml

printf '%s\n' '--- target resolution and general-promotion readiness helper ---'
rg -n 'function selectMultiTargetDeployments|function inspectGeneralPromotionTarget|async function inspectGeneralPromotionTarget|export function selectMultiTargetDeployments' cloud/dev/scripts/deploy-relay-gce-multi-target.mjs
sed -n '420,510p' cloud/dev/scripts/deploy-relay-gce-multi-target.mjs
sed -n '2410,2525p' cloud/dev/scripts/deploy-relay-gce-multi-target.mjs

printf '%s\n' '--- exact lines for generic promotion branch ---'
nl -ba cloud/dev/scripts/deploy-relay-gce-multi-target.mjs | sed -n '2820,2865p'

Repository: stablyai/orca

Length of output: 16220


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- workflow script invocation and mode/target handling ---'
rg -n -C 8 'deploy-relay-gce-multi-target|TARGET_CELL_IDS|DEPLOY_MODE|target-cell-ids' \
  .github/workflows/cloud-deploy-relay-production-multi-target.yml
printf '%s\n' '--- workflow invocation block ---'
nl -ba .github/workflows/cloud-deploy-relay-production-multi-target.yml | sed -n '285,375p'

printf '%s\n' '--- target selection implementation ---'
nl -ba cloud/dev/scripts/deploy-relay-gce-multi-target.mjs | sed -n '340,385p'
printf '%s\n' '--- complete generic promotion readiness helper ---'
nl -ba cloud/dev/scripts/deploy-relay-gce-multi-target.mjs | sed -n '1050,1135p'

printf '%s\n' '--- C34 in production topology ---'
rg -n -C 3 -F -- 'production-gce-c34' cloud

Repository: stablyai/orca

Length of output: 42216


Reject C34 in the generic promotion mode.

The production dispatch forwards caller-supplied targets to promote-general-cell. When C34 is migration-only, this branch checks director compatibility and target readiness, then marks it general without requiring or running its five-minute canary. An operator can therefore make C34 eligible for production placement before its canary. Reject C34 here and require its dedicated canary workflow.

Suggested fix
     if (
       !promoted ||
       selectorCellState(selectorInspection.selector, promoted.cellId) !== 'migration-only'
     ) {
       throw new Error('promoted cell admission must be migration-only')
     }
+    if (promoted.cellId === 'production-gce-c34') {
+      throw new Error('C34 promotion requires its canary workflow')
+    }
     const director = verifyActiveSelectorDirector(config, deps, promoted.cellId)

@Jinwoo-H
Jinwoo-H merged commit c7d74b1 into main Oct 6, 2026
23 checks passed
Jinwoo-H added a commit that referenced this pull request Oct 12, 2026
Mirrors #25757 (c34): adds the c35 promotion wave, workflow promote and
canary case entries, the c35 canary evidence entry, tests, and docs.
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.

1 participant