Skip to content

feat(id): support concurrent world session topology (#5543) - #6480

Merged
dezren39 merged 3 commits into
mainfrom
queue/9610-5543-f13-8-multi-server-client
Nov 9, 2026
Merged

dezren39 merged 3 commits into
mainfrom
queue/9610-5543-f13-8-multi-server-client

Conversation

@dezren39

@dezren39 dezren39 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Implements F13.8 multi-server and multi-client topology for #5543.

  • Give each WorldSessions open a distinct opaque handle and stream; keep one root connection per endpoint and route all operations through the selected handle.
  • Cover concurrent worlds on one endpoint, same-world sessions for the same participant, multiple endpoints, and request/reply isolation.
  • Verify connection and WorldHub capacity refusals remain visible and do not trigger redial; clarify when open-session refusals surface.
  • Preserve the design's Option B journal semantics: session joins are journal-neutral for an already-present participant, while first/last players presence transitions remain system events.

Verification:

  • cargo test --manifest-path pkgs/id/Cargo.toml -p id --lib test_coordinator_ -- --nocapture — 5 passed.
  • cargo test --manifest-path pkgs/id/Cargo.toml -p id --lib admin_history_is_admin_only_and_system_events_stay_off_join_streams -- --nocapture — 1 passed.
  • cargo fmt --manifest-path pkgs/id/Cargo.toml --all -- --check — passed.
  • git diff --check — passed.

Queue task 9610 (repo-health-code-pilot).

Closes #5543.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 6, 2026 09:22
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d2c8ded6-6ea5-4f19-91ad-b8f7519a930f
Commits

Reviewing files that changed from the base of the PR and between 0f9e471 and 75fcee8.

Files selected for processing: 2

  • pkgs/id/src/world_net.rs
  • pkgs/id/src/world_session/tests.rs
  • Autofix · 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T13:22:27.132918Z
We couldn’t complete this review. Comment @codex review to try again.
35c9cc5 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

developing-today[bot] and others added 2 commits November 8, 2026 20:05
… sessions

The #5543 change made WorldSessions::open_session return a
WorldSessionHandle and session() take that handle, but the
coordinator prekeyed-first-frame test (added on main after the
branch diverged, issue #4576) still used the old addr+world
lookup and treated the handle as a WorldClient. Resolve the
client through sessions.session(handle) for the alpha and beta
sessions, preserving the test's assertions exactly.

Shepherded under task 14036 (batch #7297 part 5) after rebasing
queue/9610-5543-f13-8-multi-server-client onto current main.
Targeted: cargo test --lib world_ — 366 + 77 passed.
@dezren39
dezren39 force-pushed the queue/9610-5543-f13-8-multi-server-client branch from c8bf8ed to 75fcee8 Compare November 9, 2026 02:26
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition work/assigned Queue worker lifecycle state labels Nov 9, 2026
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Agent note - parked on CI (task 14036, lane code-o, direct). Resumed from the awaiting_ci checkpoint and re-verified fresh: PR #6480 OPEN, head 75fcee8 (unchanged), no hard-stop labels. Progress since last park: native arm64 world snapshot determinism PASSED (5m9s); the basic checks (guard PR check list, id builds without world feature, proxy port fallbacks, scripts-test, fleet-search parity) and the aggregator suite are still pending in the runner backlog, so the merge criteria (checks green) are not yet met. Codex state unchanged: its review run failed on Codex usage limits with zero findings/comments, so there are no undispositioned Codex findings. Task 14036 parked 1200s. Resume: merge PR #6480 when the remaining checks on head 75fcee8 are green. Links: task 14036, PR #6480, issue #7297. agent-note:v1 lane=code-o state=parked task=14036

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI) — task 14036, lane code-w

  • Resumed from awaiting_ci checkpoint (head 75fcee8, unchanged). Fresh polls 2026-11-09T04:43-04:45Z: 1 pass (native arm64 world snapshot determinism), 7 pending, 2 skipping — checks pending since before 04:21Z, fleet-wide CI queue stall.
  • Codex: review run failed on usage limits, zero findings/comments. CodeRabbit: rate-limited, no findings. No hard-stop labels.
  • Per runbook §5 (park, do not wait on CI): task 14036 parked 1200s. Resume: merge PR feat(id): support concurrent world session topology (#5543) #6480 when remaining checks are green on 75fcee8.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked — CI still pending (fleet stall)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · Shepherd resume — CI still queued, parking

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

agent-note:v1 — task 14036, lane code-p, state parked (awaiting_ci): direct lane (row 5332), resumed from awaiting_ci. Fresh check 2026-11-09: PR #6480 OPEN, head 75fcee8 unchanged, no hard-stop labels; checks still QUEUED since 2026-11-09T02:27Z (1 SUCCESS, 0 failures) — CI stall, not a PR defect. Codex: no inline comments and no reviews on the PR, nothing to disposition. Resume when: checks on head 75fcee8 complete green, then merge and complete task 14036.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (CI pending)

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) labels Nov 9, 2026
@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 9, 2026
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (awaiting CI)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (CI pending) — Agent: queue worker (repo-worker-code), lane code-t — Session/ID: task 14036, repo-queue-worker-shift-t 2026-11-09 run. Shepherd task for PR #6480 (batch issue #7297 part 5), resumed at awaiting_ci. Fresh check 2026-11-09T11:05Z: PR #6480 OPEN, head 75fcee8 unchanged, no held/do-not-merge labels on the PR; 10 check-runs — native arm64 world snapshot determinism PASS, CodeRabbit neutral, flake check skipped, 7 basic-tier runs still QUEUED (fleet Actions stall, same as other PRs this hour). Codex: no inline findings; review failed on usage limits — nothing to disposition (per prior task progress). Parent issue #7297 carries user/escalated — flagged here; the resume action itself (merge when green) needs no new decision. Parking task 14036 for 20 minutes per the 5-minute CI rule. Resume: merge PR #6480 when basic checks green on this head, then complete task 14036.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (CI pending)

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Parked by lane code-m (task 14036): PR #6480 fresh-verified OPEN, MERGEABLE, head 75fcee8 unchanged, no hard-stop labels. CI: native arm64 PASS; 7 basic checks still QUEUED (fleet Actions stall, unchanged since 2026-11-09T02:27Z); CodeRabbit neutral; flake check skipped. Codex: no inline findings; latest Codex review attempt failed on usage limits 2026-11-09T02:27Z (previously dispositioned). Packet acceptance requires checks green before merge, so parking per the 5-minute CI rule; resume when basic checks go green on this head.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit a7441f9 into main Nov 9, 2026
1 of 5 checks passed
@dezren39
dezren39 deleted the queue/9610-5543-f13-8-multi-server-client branch November 9, 2026 13:22
@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 9, 2026
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.

id: implement F13.8 multi-server and multi-client topology (design #790)

1 participant