GeezerVison is showing github.com — feat(id): migrate world apps to structured RocJson and Screen by dezren39 · Pull Request #234 · developing-today/code
Conversation
Summary
- Migrates
territory to use pf.RocJson for decoding player presence events (joined, left, participant.id, participant.name) instead of fragile string slicing.
- Fixes
lounge presence participant name decoding and updates its checked-in WASM binary.
- Adds
build.sh, README.md, and checked-in roc-screen.wasm for examples/roc-screen demonstrating the portable Screen cell grid protocol and Key input.
- Adds a sandbox integration test
checked_in_roc_screen_renders_structured_surface verifying structured screen parsing and cell grid content against world_presentation policy.
- Rebuilds and validates all checked-in WASM binaries (
territory.wasm, lounge.wasm, tic-tac-toe.wasm, roc-screen.wasm) using the roc and wasm-tools toolchains.
- Decision record:
doc/2026-10-16T13-00-00Z_feature_world_apps_structured_migration/2026-10-16T13-00-00Z_feature_world_apps_structured_migration.md.
Validation
cargo fmt --check, git diff --check: clean.
- All 19 sandbox tests passed (
checked_in_territory_plays_persists_and_rejoins, the_lounge_uses_the_capability_protocol, checked_in_roc_screen_renders_structured_surface, etc.).
- All checked-in WASM modules validate import-free with
wasm-tools.
- Full library test suite passes.
Stacked on PR #233 (platform-world-cli-controls).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 16, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c8af310a-01b0-482a-a3c0-605f05c97448
📥 Commits
-
Reviewing files that changed from the base of the PR and between bbc7e21 and 52c662f.
⛔ Files ignored due to path filters: 8
-
pkgs/id/Cargo.lock is excluded by !**/*.lock
pkgs/id/examples/lounge/lounge.wasm is excluded by !**/*.wasm
pkgs/id/examples/roc-chat/roc-chat.wasm is excluded by !**/*.wasm
pkgs/id/examples/roc-counter/counter.wasm is excluded by !**/*.wasm
pkgs/id/examples/roc-grid/roc-grid.wasm is excluded by !**/*.wasm
pkgs/id/examples/roc-screen/roc-screen.wasm is excluded by !**/*.wasm
pkgs/id/examples/territory/territory.wasm is excluded by !**/*.wasm
pkgs/id/examples/tic-tac-toe/tic-tac-toe.wasm is excluded by !**/*.wasm
📒 Files selected for processing: 76
-
.opencode/plans/phase-9-portable-platform.md
doc/2026-10-07T00-20-00Z_architecture_roc_worlds/2026-10-07T00-20-00Z_architecture_roc_worlds.md
doc/2026-10-14T19-39-30Z_architecture_portable_world_surfaces/2026-10-14T19-39-30Z_architecture_portable_world_surfaces.md
doc/2026-10-14T20-00-05Z_feature_source_only_world_installs/2026-10-14T20-00-05Z_feature_source_only_world_installs.md
doc/2026-10-14T20-10-00Z_feature_world_keyboard_parity/2026-10-14T20-10-00Z_feature_world_keyboard_parity.md
doc/2026-10-15T09-27-28Z_feature_roc_json/2026-10-15T09-27-28Z_feature_roc_json.md
doc/2026-10-15T16-00-00Z_feature_world_viewport_and_paste/2026-10-15T16-00-00Z_feature_world_viewport_and_paste.md
doc/2026-10-15T16-30-00Z_feature_terminal_buffer_capture/2026-10-15T16-30-00Z_feature_terminal_buffer_capture.md
doc/2026-10-16T09-00-00Z_feature_world_module_provenance/2026-10-16T09-00-00Z_feature_world_module_provenance.md
doc/2026-10-16T09-30-00Z_feature_world_module_provenance/2026-10-16T09-30-00Z_feature_world_module_provenance.md
doc/2026-10-16T10-00-00Z_feature_world_resource_profile/2026-10-16T10-00-00Z_feature_world_resource_profile.md
doc/2026-10-16T10-30-00Z_feature_durable_world_resource_profiles/2026-10-16T10-30-00Z_feature_durable_world_resource_profiles.md
doc/2026-10-16T11-00-00Z_feature_world_capability_ceilings/2026-10-16T11-00-00Z_feature_world_capability_ceilings.md
doc/2026-10-16T12-00-00Z_feature_world_cli_controls/2026-10-16T12-00-00Z_feature_world_cli_controls.md
doc/2026-10-16T13-00-00Z_feature_world_apps_structured_migration/2026-10-16T13-00-00Z_feature_world_apps_structured_migration.md
doc/2026-10-16T14-00-00Z_feature_screen_render_alignment/2026-10-16T14-00-00Z_feature_screen_render_alignment.md
doc/2026-10-16T15-00-00Z_feature_roc_grid/2026-10-16T15-00-00Z_feature_roc_grid.md
doc/2026-10-16T16-00-00Z_feature_roc_cap/2026-10-16T16-00-00Z_feature_roc_cap.md
doc/2026-10-16T17-00-00Z_feature_chat_history/2026-10-16T17-00-00Z_feature_chat_history.md
doc/2026-10-16T18-00-00Z_feature_records_readback/2026-10-16T18-00-00Z_feature_records_readback.md
doc/2026-10-16T18-30-00Z_feature_world_authoring_cli/2026-10-16T18-30-00Z_feature_world_authoring_cli.md
doc/2026-10-16T19-00-00Z_feature_guest_reflow/2026-10-16T19-00-00Z_feature_guest_reflow.md
doc/2026-10-16T19-30-00Z_feature_screen_widgets/2026-10-16T19-30-00Z_feature_screen_widgets.md
doc/2026-10-17T08-00-00Z_feature_world_roles_directory/2026-10-17T08-00-00Z_feature_world_roles_directory.md
pkgs/id/.cargo/config.toml
pkgs/id/Cargo.toml
pkgs/id/examples/lounge/README.md
pkgs/id/examples/lounge/build.sh
pkgs/id/examples/lounge/main.roc
pkgs/id/examples/roc-chat/README.md
pkgs/id/examples/roc-chat/build.sh
pkgs/id/examples/roc-chat/main.roc
pkgs/id/examples/roc-counter/main.roc
pkgs/id/examples/roc-grid/README.md
pkgs/id/examples/roc-grid/build.sh
pkgs/id/examples/roc-grid/main.roc
pkgs/id/examples/roc-screen/README.md
pkgs/id/examples/roc-screen/build.sh
pkgs/id/examples/roc-screen/main.roc
pkgs/id/examples/roc-world/README.md
pkgs/id/examples/roc-world/RocCap.roc
pkgs/id/examples/roc-world/RocGrid.roc
pkgs/id/examples/roc-world/RocJson.roc
pkgs/id/examples/roc-world/RocText.roc
pkgs/id/examples/roc-world/Screen.roc
pkgs/id/examples/roc-world/host/src/host.zig
pkgs/id/examples/roc-world/host/src/roc_platform_abi.zig
pkgs/id/examples/roc-world/platform.roc
pkgs/id/examples/territory/README.md
pkgs/id/examples/territory/build.sh
pkgs/id/examples/territory/main.roc
pkgs/id/examples/tic-tac-toe/build.sh
pkgs/id/examples/tic-tac-toe/main.roc
pkgs/id/src/cli.rs
pkgs/id/src/commands/serve.rs
pkgs/id/src/commands/world.rs
pkgs/id/src/lib.rs
pkgs/id/src/log_sync.rs
pkgs/id/src/main.rs
pkgs/id/src/sandbox.rs
pkgs/id/src/web/templates.rs
pkgs/id/src/web/world_ws.rs
pkgs/id/src/world.rs
pkgs/id/src/world_caps.rs
pkgs/id/src/world_compile.rs
pkgs/id/src/world_limits.rs
pkgs/id/src/world_net.rs
pkgs/id/src/world_presentation.rs
pkgs/id/src/world_session.rs
pkgs/id/src/world_ssh.rs
pkgs/id/src/world_store.rs
pkgs/id/web/src/world-keyboard.test.ts
pkgs/id/web/src/world-keyboard.ts
pkgs/id/web/src/world-surface.test.ts
pkgs/id/web/src/world-surface.ts
pkgs/id/web/src/world.ts
+----------------------------------------------------------------------------------------------------------------------+
| Design with contracts. Use contracts to document and verify that code does no more and no less than it claims to do. |
+----------------------------------------------------------------------------------------------------------------------+
\
\ /)/)
( '')
/ |
o(___)
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
Resolutions:
- web/mod.rs: take main's unwrap_or(Duration::ZERO) in the save limiter.
- world.rs: keep ModuleProvenance and SourceBuildProvenance; drop the local
Isolation, which main moved to groups::worlds and re-exports.
- world_session.rs: keep main's per-viewer event projection and pass the
viewport through to send_view.
- world.rs project_event_for: zero only the install seed, keeping provenance
and any later event field; main's tests gain provenance: None.
Integration with the chat-visibility change (#256):
- chat.history now needs the right to read chat (CHAT or HISTORY), the same
rule the event stream applies.
- new observer role: join + history.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 18, 2026
This was referenced Nov 9, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|