Skip to content

id(worlds): ship playable Sketch guest for sketch/redo-as-new-stroke #13608

Open

Description

@dezren39

Part of #13240 and #5955. Ship a playable Sketch guest for the existing ID world runtime. The checked-in acceptance vectors name this scenario as sketch/redo-as-new-stroke. The playbook defines task goals and shell substitutions. Cells is tracked separately in #13558.

Behavior and scope

Make transient cursor/vertices separate from an immutable committed stroke. Own authorized undo leaves a tombstone; copying retained geometry requires current read-own-retained-strokes plus current write authority, assigns a fresh ID, and records provenance. Never synthesize a session grant from a guest string.

Use the standard import-free Plaza ABI v1 guest entry points and a supported pinned SDK. Prefer the existing Roc platform for the pure definition. The Rust twin is an available host-neutral alternative where its independently verified build path fits this slice. Keep I/O, admission, grants, clocks and input deduplication at the existing boundaries. The regular ID host must load and play the built guest. Add a README and update the owning book chapter or first-app coverage in the same PR.

Independent acceptance

Carry out the 6 logical steps on the supplied initial state. The expected intermediate states are literal domain projections in the vector; do not derive expected values from the guest.

Input Expected outcome Expected state
{"kind":"BeginDraft","at":[1,1]} preview-only {"visible_strokes":[],"tombstones":[]}
{"kind":"AppendDraftVertices","points":[[3,1],[3,2]]} preview-only {"visible_strokes":[],"tombstones":[]}
{"kind":"ConfirmStroke","id":"A.1","event":"add1"} added {"visible_strokes":[{"id":"A.1","author":"A","points":[[1,1],[3,1],[3,2]],"copy_of":null}],"tombstones":[]}
{"kind":"UndoOwnStroke","id":"A.1","event":"u1"} tombstoned {"visible_strokes":[],"tombstones":["A.1"]}
{"kind":"CopyOwnStroke","id":"A.2","copy_of":"A.1","event":"copy1"} added-with-fresh-id {"visible_strokes":[{"id":"A.2","author":"A","points":[[1,1],[3,1],[3,2]],"copy_of":"A.1"}],"tombstones":["A.1"]}
{"kind":"Redeliver","ref":"u1"} already-folded {"visible_strokes":[{"id":"A.2","author":"A","points":[[1,1],[3,1],[3,2]],"copy_of":"A.1"}],"tombstones":["A.1"]}

Restore a snapshot into a new instance, inspect a portable view and compare the next accepted operation through the regular host. Distinguish temporary UI state, guest-domain records, and host deduplication/permissions in the assertions. Submit the smallest targeted verification to Fleet on GitHub-hosted plan quota and attach the run URL. No physical device, hosted deployment or broader platform claim follows from the fixture.

Premise checked against current example and packaged-app paths, the existing Cells implementation, and issue/PR searches for these scenario names and related mechanics. No equivalent dedicated issue was found in those searches.

{
  "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-23T18:18:03Z",
    "session_id": "ses_e5df6aa00afffefrcGf3cGXzTl",
    "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": "fbf0b57f2bd3baf6c602e97551435ec3321c0fe3"
    },
    "auth_subject": "agent-next-19-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    kind/feature
    app/id
    epic/id-program
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Triage (lane oc-code-04, task 21407):

    Verdict: valid feature, needs real implementation — returning to queue for fix follow-on.

    Validation:

    • Unique: only open issue matching sketch guest / redo-as-new-stroke / CopyOwnStroke / UndoOwnStroke search; no PR references id(worlds): ship playable Sketch guest for sketch/redo-as-new-stroke #13608.
    • No existing Sketch guest in tree: only prose mentions in book (shape.md, roadmap-and-issue-map.md, identity-directory-groups.md); no Rust/Roc sketch guest under pkgs/id/examples/ or pkgs/id/crates/. Cells is separately tracked in id(worlds): implement the bounded Cells glider as a playable Plaza guest #13558 (status:in-review) — no overlap.
    • Evidence gap noted: the linked app-vectors.json (blob at b9d8177) lives only on unmerged side branch docs/id-rd-13240-20261123 (commits e8d9149, b9d8177), not on main (pkgs/id/book/research/ absent at HEAD 4a2806f). The 6-step table pasted in this issue body matches the side-branch vector exactly (verified), so the issue is self-contained and implementable without the branch.
    • Scope exceeds a triage small fix: new import-free Plaza ABI v1 guest + README + owning book chapter + host load/play + Fleet verification run. Routing to fix follow-on, not closing.

    Suggested fix scope: build the Sketch guest per the 6 accepted steps, plus snapshot-restore/portable-view/host-dedup assertions and Fleet run URL, in a worktree with Fleet worktree/shell rules.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor
    \n🤖 **Agent note** · slice landed — task 21414 (lane oc-code-02)\n\n**PR:** #13651 — `pkgs/id/examples/rust-sketch` standalone Plaza ABI v1 guest on the Rust SDK.\n\nThe six-step acceptance vector now passes as literal projections (independent of the guest): draft is preview-only, confirm commits, undo tombstones the caller's own stroke, copy assigns a fresh ID with `copy_of` provenance from retained geometry, and redelivery is folded. `cargo test` (3 tests), `cargo fmt --check` and the wasm32 build pass; `sketch.wasm` is checked in.\n\n**Not in this slice:** host load/play fixture, the targeted Fleet verification run, and book/justfile wiring — #13608 stays open for them. No `justfile`/book edits here, so nothing collides with the in-flight Cells guest (#13587).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idepic/id-programkind/featurestatus:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions