Skip to content

test(id): phase-4 acceptance — session round-trip and sibling isolation under publication mounts (#5537) - #11300

Merged
dezren39 merged 2 commits into
mainfrom
queue/5537-mount-session-tests
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/5537-mount-session-tests

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

What

Tests only (+121/−0 in pkgs/id/crates/id-web/src/routes.rs): the two #5537 phase-4 packet acceptance cases that PR #11284 did not cover, exercised at router level through the live publication-mount layer.

  • publication_mount_session_round_trip_is_gated_by_the_world_admin_secret — the unauthorized/authorized session round-trip under a mount: POST /prog/api/world/invite is refused 401 with no admin token and with a wrong one, and served 200 with the mounted world's admin secret. The mount adds no authority and removes none.
  • publication_mounts_isolate_sibling_worlds_at_the_router — cross-mount isolation with two worlds on one hub: each mount serves only its own world's program page; a mount's scoped API refuses to name the sibling world (404 on an invite naming it) while the sibling's own mount serves it; a string-prefix path (/prog2) reaches no mount.

Context

Task 19857 (phase 4) was completed by its owning session in PR #11284 (merged 6c20bab1); lane any-l held a duplicate claim from a capacity-park resume, stood down on the heartbeat verdict, and is landing these already-written acceptance tests as a follow-on instead of dropping them (recorded on #5537). The WebSocket-under-mount residual is owned by #11290 / task 20759 and is not touched here.

Verification

Targeted runs (cargo test -p id-web publication_mount and program_router) are queued behind the fleet build lock on the laptop; results will be recorded here before merge. The full id-web suite passed for the underlying implementation in PR #11284 (704 tests).

Refs #5537.


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

…on under publication mounts (#5537)

The two packet acceptance cases PR #11284 did not cover, at router level through the live mount layer: (1) unauthorized/authorized session round-trip under a mount — POST <mount>/api/world/invite is refused 401 with no or a wrong admin token and served 200 with the mounted world's admin secret; (2) sibling-mount isolation — two mounts on one hub each serve only their own world's program page, and a mount's scoped API refuses to name the sibling world (404) while the sibling's own mount serves it.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 13:04
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

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-17T13:04:57.802359Z
We couldn’t complete this review. Comment @codex review to try again.
6fb4c6b PR opened
ℹ️ 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.

@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, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 739f2c0 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/5537-mount-session-tests branch November 17, 2026 21:53
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