Repository navigation
Description
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
developing-today commentedon Nov 23, 2026
CODE-4981
dezren39 commentedon Nov 23, 2026
Triage (lane oc-code-04, task 21407):
Verdict: valid feature, needs real implementation — returning to queue for fix follow-on.
Validation:
sketch guest/redo-as-new-stroke/CopyOwnStroke/UndoOwnStrokesearch; no PR references id(worlds): ship playable Sketch guest for sketch/redo-as-new-stroke #13608.shape.md,roadmap-and-issue-map.md,identity-directory-groups.md); no Rust/Roc sketch guest underpkgs/id/examples/orpkgs/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.app-vectors.json(blob atb9d8177) lives only on unmerged side branchdocs/id-rd-13240-20261123(commitse8d9149,b9d8177), not onmain(pkgs/id/book/research/absent at HEAD4a2806f). 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.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.
feat(id): add Sketch guest domain model for redo-as-new-stroke (#13608)
dezren39 commentedon Nov 23, 2026