Skip to content

feat(id): Sketch guest domain model for sketch/redo-as-new-stroke (#13608) - #13651

Merged
dezren39 merged 1 commit into
mainfrom
lane/oc-code-02-13608-sketch-guest-wt
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane/oc-code-02-13608-sketch-guest-wt

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #13608.

Adds the standalone Plaza ABI v1 guest crate pkgs/id/examples/rust-sketch on the Rust SDK (examples/rust-world), modelled on rust-counter:

  • Transient draft state: BeginDraft/AppendDraftVertices keep preview geometry out of records and snapshots.
  • Immutable strokes: ConfirmStroke only commits the draft of the participant that began it.
  • Owner-scoped undo: UndoOwnStroke tombstones only the caller's own stroke; retained geometry stays available to its owner.
  • Copy with provenance: CopyOwnStroke assigns a fresh ID, copies retained or visible geometry of the caller's own stroke only, and records copy_of.
  • Idempotent redelivery: accepted event IDs are folded, so a repeated delivery of the same event does not rewrite state.

Oracle

The three unit tests assert the literal projections from the issue's six-step acceptance table (not derived from the guest), plus snapshot/restore-of-portable-view and a denied cross-participant copy. cargo test, cargo fmt --check and ./build.sh (wasm32, checked-in sketch.wasm) pass locally.

Scope

This slice is the guest domain model and its build. Host load/play, the targeted Fleet verification run, and the book-chapter/justfile wiring remain a follow-up slice; #13608 stays open for them. No justfile or book files are touched here, which keeps it clear of the in-flight Cells guest (#13587).

{
  "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-23T19:37:37Z",
    "session_id": "ses_e5df717b72effeaO478j1EZj50",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "ab82a4d76c06c3b1e3f23527bd803183efc1c013"
    },
    "auth_subject": "oc-code-02",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Proof this PR
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 59 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: 5ddfa2e0-0da4-43bd-aa57-83ef0a2c65e8
Commits

Reviewing files that changed from the base of the PR and between ab82a4d and f2611d8.

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: 4

  • 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
  • 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 f2611d8 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the lane/oc-code-02-13608-sketch-guest-wt branch November 24, 2026 00:15
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.

1 participant