Skip to content

id(world): thread a DeviceManifest through the spawn path (#7942) - #8127

Merged
dezren39 merged 1 commit into
mainfrom
queue/14570-7942-device-manifest
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14570-7942-device-manifest

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #7942 (task 14570).

device.info shipped dead: WorldHandle::spawn_inner hardcoded device_manifest: None and no public spawn entry point accepted a manifest, so every real granted request was refused unknown_cap.

  • WorldHandle::spawn_with_device_manifest / spawn_durable_with_device_manifest accept an Option<DeviceManifest> and thread it through spawn_inner into the actor, replacing the hardcoded None. Existing spawn entry points delegate with None (unchanged behaviour for hosts that cannot describe themselves).
  • Production callers supply a real manifest: world_store::open_world (durable served worlds) and the ephemeral serve path in commands/serve.rs pass WorldHandle::host_device_manifest() — the headless server host describing itself (no display/keys/sensors/audio, network https).
  • The manifest is supplied once at spawn; repeated device.info requests serve the actor's cached copy (no per-request enumeration).

Tests: cargo test --lib device_info — 4 passed, including the new device_info_through_the_public_spawn_path_returns_the_supplied_manifest, which spawns through the public WorldHandle API (no direct field mutation), drives two device.info requests from the program's wants, and asserts the supplied manifest comes back in both result events. Existing unknown-cap-when-None and unsupported-version tests stay green.


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

spawn_inner hardcoded device_manifest: None, so device.info could never succeed outside actor unit tests. WorldHandle gains spawn_with_device_manifest / spawn_durable_with_device_manifest, threading an Option<DeviceManifest> into the actor; served worlds (world_store::open_world and the ephemeral serve path) supply WorldHandle::host_device_manifest() for the headless server host. The manifest is supplied once at spawn and served from the actor cache per request. A new test drives device.info through the public spawn path and asserts the supplied manifest returns in the result event for repeated requests.
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 06:14
@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-10T06:14:19.256414Z
We couldn’t complete this review. Comment @codex review to try again.
abed6a2 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.

@coderabbitai

coderabbitai Bot commented Nov 10, 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 34 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: d2da4c12-4e20-4cfd-a134-aecd2e808a38
Commits

Reviewing files that changed from the base of the PR and between 68af320 and abed6a2.

Files selected for processing: 4

  • pkgs/id/src/commands/serve.rs
  • pkgs/id/src/world/handle.rs
  • pkgs/id/src/world/tests.rs
  • pkgs/id/src/world_store.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

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

Copy link
Copy Markdown
Member Author

🤖 Agent note · Codex findings disposition for PR #8127 (task 14570)

  • The Codex review summary reports failed with unresolved findings at head abed6a2, but a fresh read of this PR's review comments shows zero inline Codex findings — there is nothing to fix or reply to thread-by-thread.
  • The follow-up Codex comment states the Codex usage limit for code reviews was reached; the failed summary is the fleet-wide usage-limit artifact (recorded in lane handoffs 2026-11-10), not a code finding.
  • Disposition: no Codex findings exist on this PR; the §5 Codex gate is satisfied by this read. Remaining gate is the queued basic: checks (fleet runner backlog).

@dezren39
dezren39 merged commit 2fdaafc into main Nov 10, 2026
6 of 9 checks passed
@dezren39
dezren39 deleted the queue/14570-7942-device-manifest branch November 10, 2026 10:14
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(world): device.info can never succeed in production — no spawn path supplies a DeviceManifest, so every real request is refused unknown_cap

1 participant