Repository navigation
feat(relay): give Asia cell c34 a promotion wave so it can become a general cell - #25757
Conversation
…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
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
📝 WalkthroughWalkthroughC34 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 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 ReviewSecurity architecture risk: 🔵 Low · up to 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 Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
371571f7-ebb1-442e-a21e-ddf6ff6b416f
📒 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 |
There was a problem hiding this comment.
🩺 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.ymlRepository: 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.mjsRepository: 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' cloudRepository: 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)Mirrors #25757 (c34): adds the c35 promotion wave, workflow promote and canary case entries, the c35 canary evidence entry, tests, and docs.

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 topromotionWaves, alone.promoteandrecover-promotionnow accept it.cloud-operate-relay-asia-admission.yml: the production promotecaseand the canary-startcasenow accept c34. The canary aims its load atasia-east2.relay-asia-rollout-evidence.mjs: adds aproduction-c34-canaryentry. 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:
SAME_CAP_MIGRATION_ONLY_CELLSlist, not from the live selector.image-digestinput. Today c34 servesf30b5cb1, and the director servesd06f9ad5, 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):
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:
promote-general-cellalso accepts c34. It skips the Asia canary, though, and the docs tell operators not to use it for c34.Testing
cd cloud && node --test dev/scripts/*.test.mjs: all pass.relay-load-control-peerneededpnpm --filter @orca-cloud/relay-contract buildfirst, which is a local environment step.asia-east2; the canary-start block expects{"production-gce-c34":"general"}; the c34 canary evidence is satisfied only by placement on c34.orca_relay_idle_rehome_committedonorca-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.