Skip to content

chore(relay): move Asia cell c34 to the general same-cap lists after promotion - #25758

Merged
Jinwoo-H merged 6 commits into
mainfrom
relay-c34-general-same-cap
Oct 7, 2026
Merged

Jinwoo-H merged 6 commits into
mainfrom
relay-c34-general-same-cap

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8

ELI5

After c34 is promoted to a regular Asia cell (#25757 plus a separate, approved promotion step), the cell-update tooling must also treat it as a regular cell. Otherwise, rolling c34 back would quietly turn it into a standby cell again. Merge within minutes after c34's promotion succeeds, inside the same rehome pause and before the monitor run.

What Changed

  • relay-production-same-cap-wave.mjs: moves c34 from SAME_CAP_MIGRATION_ONLY_CELLS to the general part of SAME_CAP_CELLS. entryAdmission(c34) becomes general and the selector delta becomes 2. Asia stays out of the fast drain-pace list.
  • relay-same-cap-shadow-gate-verdict.mjs: adds c34 to FLEET_POOL_CELL_IDS, since its pool is 16, the Asia size.
  • Tests, the docs paragraph, and the c34 comment in production.tfvars (comment only, no plan change) are updated to match.

Before: a same-cap job on c34 enters and leaves it migration-only. On a promoted c34, a rollback would isolate it and hand it back migration-only, which demotes a live cell. The same thing happened to c32/c33 before #25367.
After: a same-cap job rolls c34 as a general cell, and a rollback restores it general.

Why

A same-cap job takes a cell's class from this static list, so the list must match the live selector whenever a job names c34:

Merge window. This is trusted evidence code (relay-production-same-cap-wave.mjs). Merging invalidates any sealed monitor and any same-cap canary sealed before it. Merge after promotion, outside a monitor-to-enable window, and before the next same-cap canary seals.

Testing

cd cloud && node --test dev/scripts/*.test.mjs: 902 pass, 0 fail. The new assertions cover c34 being general with delta 2, c34 not mixing with c17 in one wave, c34 in the fleet pool, and the census holding that only c17 and c18 are non-rehome-source cells.

Notes

Stacked on #25757. Do not merge without Jinwoo's go, and not before c34's promotion run is green.

…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
…promotion

A same-cap job reads a cell's class from SAME_CAP_MIGRATION_ONLY_CELLS, not from the
selector. Once c34's Asia canary promotes it, leaving it there would make a same-cap
rollback demote it to migration-only. This moves c34 to the general same-cap list and
the shadow gate's fleet pool list (its pool is the Asia 16).

Merge only after c34's promotion succeeds. This file set is trusted evidence code, so
merging invalidates any sealed monitor or same-cap canary: merge outside a
monitor-to-enable window and before the next same-cap canary seals.

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 | 𝕏

Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
Claude-Session: 1145a80d-dec4-4a9b-9373-bbbb876b9041
# Conflicts:
#	cloud/docs/relay-workflows.md
@Jinwoo-H
Jinwoo-H changed the base branch from relay-c34-general to main October 6, 2026 03:15
…e-cap

# Conflicts:
#	cloud/docs/relay-workflows.md
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c396b5f2-3898-42df-b701-525908213b41
📥 Commits

Reviewing files that changed from the base of the PR and between c7d74b1 and b9cb850.

📒 Files selected for processing (8)
  • cloud/dev/scripts/prepare-relay-production-capacity-canary.test.mjs
  • cloud/dev/scripts/relay-production-same-cap-wave.mjs
  • cloud/dev/scripts/relay-production-same-cap-wave.test.mjs
  • cloud/dev/scripts/relay-same-cap-script-census.test.mjs
  • cloud/dev/scripts/relay-same-cap-shadow-gate-verdict.mjs
  • cloud/dev/scripts/relay-same-cap-shadow-gate.test.mjs
  • cloud/docs/relay-workflows.md
  • cloud/infra/terraform/environments/production.tfvars

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


📝 Walkthrough

Walkthrough

C34 moves from the migration-only same-cap cell set to the general same-cap cell set. The fleet-pool list and related coverage tests now include C34. Other tests and documentation reflect its general classification after promotion.

Priority: ⬇️ Low

Merge Risk: 🟡 Moderate · up to b9cb8

This change makes C34 eligible for general-cell behavior, but the documented prerequisite is successful promotion. Confirm promotion before merging; otherwise same-cap operations may use general-cell semantics too early.

Security Architecture Review

Security architecture risk: 🔵 Low · up to b9cb8

The change aligns C34's deployment and recovery behavior with its intended promoted state. Existing identity, image, generation, and membership checks remain. The main uncertainty is operational ordering: the supplied evidence does not confirm that promotion succeeded, and rollback can restore C34 to general admission even when it is currently migration-only.

Retained concerns

  • Low · architecture · inferred: C34's recovery policy now assumes its separate promotion is authoritative. Same-cap rollback accepts migration-only C34 and restores it to general using the static classification, without verifying promotion completion. If the change becomes effective before successful promotion, or admission is subsequently rolled back independently, recovery can counteract that isolation. This is a conditional admission-control coordination concern, not evidence of an unauthenticated bypass; successful promotion and external sequencing controls remain unverified.
Security review details

Security Blast Radius

  • inferred — The changed restoration behavior targets C34's production admission and the hosts it may serve. Rollback is restricted to one selected cell, while exact expected fleet membership constrains collateral selector changes. C34 telemetry additionally contributes to fleet-wide shadow reports; this does not add tenant-facing authority.

Security Findings and Attack Paths

  • observed — The fleet-list addition inserts a fixed C34 identifier into existing Cloud Logging reads. Reads use argument arrays, and failed, truncated, or absent pool samples remain unverified rather than passing. The monitor remains report-only; adding C34 does not turn its verdict into an admission authorization.

Trust Boundaries and Controls

  • observed — Administrative requests carry an identity token. Runtime and restoration checks bind the selected cell to expected image, incarnation, admission, protocol, selector membership, and rehome generation. These controls constrain recovery but do not attest that the separate promotion succeeded. Actual production-environment approval policy was not supplied.

Resilience and Maintainability Implications

  • observed — Failures after mutation attempt to leave the cell isolated with rehome disabled. Timeout cancellation can skip that failsafe, and mutation reruns are refused; recovery requires a fresh dispatch. These lifecycle rules predate this PR and are not retained as a newly introduced concern.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: moving Asia cell c34 to the general same-cap lists after promotion.
Description check ✅ Passed The description explains the change, reason, promotion and merge conditions, and reported test results. It omits some template sections and checklist items, including an explicit linked-issue entry, b…
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 6 files. (2 skipped: 2 …
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • 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.

@Jinwoo-H
Jinwoo-H merged commit 9d8e363 into main Oct 7, 2026
23 checks passed
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