Skip to content

test(id): host load/play fixture for the Sketch guest (#13656) - #13776

Merged
dezren39 merged 2 commits into
mainfrom
oc-code-03/13656-sketch-host-play
Nov 24, 2026
Merged

dezren39 merged 2 commits into
mainfrom
oc-code-03/13656-sketch-host-play

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds pkgs/id/tests/sketch_host_play.rs: host-side load and play of sketch.wasm through Sandbox::compile / WorldInstance, with five portable assertions (six-step vector, snapshot/restore plus next operation, draft UI state, participant permissions, event-id folding).
  • Wires the test into pkgs/id/justfile (rust-sketch in test-rust-examples, new test-sketch recipe).
  • Updates pkgs/id/book/design/first-apps.md, pkgs/id/book/development/add-a-guest.md, pkgs/id/examples/rust-sketch/README.md.

Stack

Stacked on #13651 (lane/oc-code-02-13608-sketch-guest-wt), which provides sketch.wasm and the guest crate. Merge #13651 first; this PR's base is main and its diff includes only the host test and docs once #13651 lands.

Verification

Fleet dispatch ran cargo test --all-features -p id --test sketch_host_play twice. Both runs failed before any test executed, in the aws-lc-sys v0.45.0 build script (could not execute process ... (never executed), No such file or directory). This is a forks-pool runner environment fault, not a test result.

Local test results are not recorded here; the test still needs a green run once the runner environment is fixed.

Refs #13656, Refs #13608, Refs #13651

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T21:26:00Z",
    "session_id": "ses_e5df62f4ec2ffezBOZb3VqPjdP",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-worktrees/oc-code-03/13656-sketch-host",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-worktrees/oc-code-03/13656-sketch-host",
      "repo": "developing-today/code",
      "branch": "oc-code-03/13656-sketch-host-play",
      "sha": "d3faf216a3532d25c4bf8e5e5dab22764b5e8822"
    },
    "auth_subject": "oc-code-06",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Standalone Plaza ABI v1 guest crate on the Rust SDK implementing the
six-step sketch/redo-as-new-stroke acceptance vector: transient draft
geometry, immutable confirmed strokes, owner-scoped undo tombstones,
copy-with-fresh-id and provenance, and folded-event redelivery. The
literal-projection unit tests come from the issue's checked-in vector.

This slice covers the guest domain model and build only; the host
load/play fixture and its Fleet verification remain a follow-up slice,
so #13608 stays open.
@coderabbitai

coderabbitai Bot commented Nov 23, 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 26 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: 437d5054-9534-41c6-b90c-dd0c31363cfb
Commits

Reviewing files that changed from the base of the PR and between 5d28f03 and d3faf21.

Files ignored due to path filters: 2

  • pkgs/id/examples/rust-sketch/Cargo.lock is excluded by !**/*.lock
  • pkgs/id/examples/rust-sketch/sketch.wasm is excluded by !**/*.wasm
Files selected for processing: 8

  • pkgs/id/book/design/first-apps.md
  • pkgs/id/book/development/add-a-guest.md
  • pkgs/id/examples/rust-sketch/Cargo.toml
  • pkgs/id/examples/rust-sketch/README.md
  • pkgs/id/examples/rust-sketch/build.sh
  • pkgs/id/examples/rust-sketch/src/lib.rs
  • pkgs/id/justfile
  • pkgs/id/tests/sketch_host_play.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

@dezren39
dezren39 merged commit f5e27ac into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the oc-code-03/13656-sketch-host-play branch November 24, 2026 00:15
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant